/* Grokbot (migration 104): propostas na Hoje e Ajustes › Grokbot. Mesmo vocabulário do painel;
   o único detalhe próprio é o bloco "texto do robô", separado do que vem do servidor. */
.gp-bot-lead{font-size:13px;color:var(--muted);margin:0 0 8px}
.gp-bot-quote{margin:0 0 12px;padding:12px 14px;border:1px dashed var(--hair-2);border-radius:var(--r-card);background:var(--bg-2)}
.gp-bot-quote figcaption{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:12px;font-weight:600;color:var(--fg);margin-bottom:6px}
.gp-bot-quote figcaption span{font-weight:400;color:var(--muted)}
.gp-bot-quote blockquote{margin:0;font-size:14px;line-height:1.55;color:var(--fg);white-space:pre-line;overflow-wrap:anywhere;max-width:72ch}
.gp-bot-found{margin:10px 0 0;font-size:13px;line-height:1.55;color:var(--fg);white-space:pre-line;overflow-wrap:anywhere;max-width:72ch}
.gp-bot-found b{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-bottom:2px}
.ti-panel .gp-note{margin:0 0 12px;max-width:72ch}

.gp-bot-intro{font-size:14px;line-height:1.6;color:var(--muted);max-width:72ch;margin:-4px 0 24px}
.gp-bot-sec{margin-bottom:28px}
.gp-bot-sec>h2{font:600 15px Inter,system-ui,sans-serif;color:var(--fg);margin:0 0 12px}
.gp-bot-key{background:var(--surface);border:1px solid var(--hair-2);border-radius:var(--r-card);padding:16px;margin-bottom:12px}
.gp-bot-key-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px}
.gp-bot-key h3{font:600 15px Inter,system-ui,sans-serif;margin:0 0 4px}
.gp-bot-key code,.gp-bot-secret{font:500 13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--muted)}
.gp-bot-key .ti-kv{margin-bottom:12px}
.gp-bot-new{border:1px solid var(--hair-2);border-radius:var(--r-card);background:var(--surface)}
.gp-bot-new>summary{cursor:pointer;padding:12px 16px;font:600 14px Inter,system-ui,sans-serif;color:var(--fg);min-height:44px;display:flex;align-items:center}
.gp-bot-new[open]>summary{border-bottom:1px solid var(--hair)}
.gp-bot-form{display:flex;flex-direction:column;gap:14px;padding:16px;max-width:560px}
.gp-bot-alone{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.gp-bot-alone legend{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:6px;padding:0}
.gp-bot-alone label{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--fg);line-height:1.45;min-height:24px;cursor:pointer}
.gp-bot-alone input{width:18px;height:18px;margin-top:1px;accent-color:var(--primary);flex:none}
.gp-bot-reveal{margin-top:12px;padding:16px;border:1px solid rgba(251,191,36,.45);border-radius:var(--r-card);background:var(--warn-soft);display:flex;flex-direction:column;gap:12px}
.gp-bot-reveal h3{font:600 15px Inter,system-ui,sans-serif;margin:0;color:var(--fg)}
.gp-bot-reveal .fld-lbl{color:var(--fg)}
.gp-bot-secret{color:var(--fg)!important;letter-spacing:0}
.gp-bot-reveal .gp-note{color:var(--fg)}
.gp-bot-sum{margin:0 0 16px}
.gp-bot-sec>h2+.gp-bot-sum{margin-top:-4px}
.gp-bot-log{list-style:none;margin:0;padding:0;border:1px solid var(--hair-2);border-radius:var(--r-card);background:var(--surface)}
.gp-bot-log li{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 16px;font-size:13px}
.gp-bot-log li+li{border-top:1px solid var(--hair)}
.gp-bot-log time{color:var(--muted);font-variant-numeric:tabular-nums}
.gp-bot-what{color:var(--fg);min-width:0;overflow-wrap:anywhere}
.gp-bot-what small{display:block;color:var(--muted);font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.gp-bot-sec details>summary{cursor:pointer;font-size:14px;color:var(--muted);min-height:44px;display:flex;align-items:center}
@media (max-width:760px){
  .gp-bot-log li{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .gp-bot-log time{grid-column:1/-1}
  .gp-bot-key .fld-row .btn,.gp-bot-reveal .fld-row .btn{flex:1}
}

/* Interruptores (migration 106): uma linha por ação, agrupadas. O interruptor é o checkbox nativo
   (role=switch); o selo de risco é texto, não cor sozinha. */
.gp-bot-sws{display:flex;flex-direction:column;gap:8px}
.gp-bot-sw-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.gp-bot-sw-bar p{font-size:14px;color:var(--muted)}
.gp-bot-sw-bar b{color:var(--fg);font-variant-numeric:tabular-nums}
.gp-bot-grp{border:1px solid var(--hair-2);border-radius:var(--r-card);background:var(--surface)}
.gp-bot-grp>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 16px;cursor:pointer;list-style:none;
  font:600 14px Inter,system-ui,sans-serif;color:var(--fg)}
.gp-bot-grp>summary::-webkit-details-marker{display:none}
.gp-bot-grp>summary::after{content:'';width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg) translateY(-2px);
  transition:transform var(--t-fast) var(--ease);flex:none}
.gp-bot-grp[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.gp-bot-grp>summary span{flex:1}
.gp-bot-grp>summary small{font:500 12px Inter,system-ui,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.gp-bot-grp>summary small.has-on{color:var(--blue-ink)}
.gp-bot-grp>summary:focus-visible,.gp-bot-toggle:focus-visible{outline:2px solid var(--blue-ink);outline-offset:2px}
.gp-bot-sw-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
.gp-bot-sw{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 14px;align-items:start;padding:12px 16px}
.gp-bot-sw+.gp-bot-sw{border-top:1px solid var(--hair)}
.gp-bot-toggle{appearance:none;-webkit-appearance:none;position:relative;width:40px;height:24px;margin:0;border-radius:12px;background:var(--line);border:1px solid var(--hair-2);
  cursor:pointer;flex:none;transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease)}
.gp-bot-toggle::before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform var(--t-fast) var(--ease),background var(--t-fast) var(--ease)}
.gp-bot-toggle:checked{background:var(--primary);border-color:var(--primary)}
.gp-bot-toggle:checked::before{transform:translateX(16px);background:#fff}
.gp-bot-toggle:disabled{opacity:.55;cursor:progress}
.gp-bot-sw-text{display:flex;flex-direction:column;gap:2px;min-width:0;cursor:pointer}
.gp-bot-sw-text b{font:500 14px/1.4 Inter,system-ui,sans-serif;color:var(--fg)}
.gp-bot-sw-text span{font-size:13px;line-height:1.5;color:var(--muted);max-width:72ch}
.gp-bot-sw-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.gp-bot-sw-state{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.gp-bot-sw.is-on .gp-bot-sw-state{color:var(--green)}
.gp-bot-risk{font:500 11px/1.4 Inter,system-ui,sans-serif;padding:2px 8px;border-radius:6px;background:var(--raise);color:var(--fg);white-space:nowrap}
.gp-bot-risk-dinheiro{background:var(--warn-soft);color:var(--warn)}
.gp-bot-risk-massa{background:var(--blue-soft);color:var(--blue-ink)}
.gp-bot-risk-lgpd{background:var(--red-soft);color:var(--red)}
.gp-bot-sw-meta .gp-bot-risk+.gp-bot-risk{margin-top:-2px}
.gp-bot-never{margin-top:8px;padding:14px 16px;border:1px dashed var(--hair-2);border-radius:var(--r-card)}
.gp-bot-never h3{font:600 13px Inter,system-ui,sans-serif;color:var(--fg);margin:0 0 6px}
.gp-bot-never ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.gp-bot-never li{font-size:13px;line-height:1.5;color:var(--muted);max-width:80ch}
.gp-bot-never li b{color:var(--fg);font-weight:500}
.gp-bot-why{display:block;margin-top:2px;font-size:13px;line-height:1.5;color:var(--muted);white-space:pre-line;max-width:72ch}
.gp-bot-exec li{align-items:start}
@media (max-width:760px){
  .gp-bot-sw{grid-template-columns:auto minmax(0,1fr);padding:12px}
  .gp-bot-sw-meta{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;text-align:left}
  .gp-bot-sw-bar .fld-row{width:100%}
  .gp-bot-sw-bar .btn{flex:1}
  .gp-bot-exec li{grid-template-columns:minmax(0,1fr)}
  .gp-bot-exec .pill{justify-self:start}
}
@media (prefers-reduced-motion:reduce){.gp-bot-toggle,.gp-bot-toggle::before,.gp-bot-grp>summary::after{transition:none}}

/* Conectar Grokbot (migration 107). Um bloco de ação, a frase em fonte fixa e um ponto de situação:
   azul piscando devagar enquanto espera (é ao vivo), verde conectado, vermelho vencido. */
.gp-bot-connect{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:start;padding:16px;margin-bottom:12px;
  border:1px solid var(--hair-2);border-radius:var(--r-card);background:var(--surface)}
.gp-bot-connect.is-first{border-color:rgba(127,196,255,.35);background:var(--bg-2);padding:20px}
.gp-bot-connect[hidden]{display:none}
.gp-bot-connect-text h3{font:600 15px Inter,system-ui,sans-serif;color:var(--fg);margin:0 0 4px}
.gp-bot-connect.is-first .gp-bot-connect-text h3{font-size:17px}
.gp-bot-connect-text p{margin:0;font-size:14px;line-height:1.55;color:var(--muted);max-width:60ch}
.gp-bot-opts{grid-column:1/-1;width:100%}
.gp-bot-opts>summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:36px;display:flex;align-items:center;gap:8px;list-style:none;overflow-wrap:anywhere}
.gp-bot-opts>summary::-webkit-details-marker{display:none}
.gp-bot-opts>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);
  transition:transform var(--t-fast) var(--ease);flex:none}
.gp-bot-opts[open]>summary::before{transform:rotate(45deg)}
.gp-bot-opts>summary:hover{color:var(--fg)}
.gp-bot-opts[open]{display:flex;flex-direction:column;gap:12px;padding-bottom:4px}
.gp-bot-opts .fld-lbl{max-width:360px}
.gp-bot-connect .gp-bot-cform{display:contents}
.gp-bot-connect .gp-bot-cform>.fld-row{grid-column:2;grid-row:1;justify-content:flex-end;align-items:center}
.gp-bot-open{grid-column:1/-1;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.gp-bot-open .btn-link{min-height:32px;padding:4px}

.gp-bot-pair{margin-bottom:12px;padding:20px;border:1px solid rgba(127,196,255,.35);border-radius:var(--r-card);background:var(--bg-2);
  display:flex;flex-direction:column;gap:14px;outline:none}
.gp-bot-pair h3{font:600 16px Inter,system-ui,sans-serif;color:var(--fg);margin:0}
.gp-bot-phrase{margin:0;padding:14px 16px;border:1px solid var(--hair-2);border-radius:var(--r-ctl);background:var(--surface);color:var(--fg);
  font:500 14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all;max-width:80ch}
.gp-bot-pair-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;font-size:14px;color:var(--fg)}
.gp-bot-pair-big{font:600 16px Inter,system-ui,sans-serif}
.gp-bot-dot{width:10px;height:10px;border-radius:50%;background:var(--blue-ink);flex:none;animation:gp-bot-wait 1.6s var(--ease) infinite}
.gp-bot-count{font:500 13px Inter,system-ui,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.gp-bot-count::before{content:'·';margin-right:10px}
.gp-bot-pair .gp-note{margin:0;max-width:72ch}
.gp-bot-pair.is-ok{border-color:rgba(54,214,161,.4)}
.gp-bot-pair.is-ok .gp-bot-dot{background:var(--green);animation:none}
.gp-bot-pair.is-bad{border-color:rgba(251,112,112,.4)}
.gp-bot-pair.is-bad .gp-bot-dot{background:var(--red);animation:none}
.gp-bot-pair .ti-kv code{font:500 12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--muted)}
.gp-bot-old{padding:14px 16px;border:1px solid rgba(251,191,36,.4);border-radius:var(--r-ctl);background:var(--warn-soft);display:flex;flex-direction:column;gap:10px}
.gp-bot-old p{margin:0;font-size:14px;line-height:1.55;color:var(--fg);max-width:72ch}
.gp-bot-old code{font:500 12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.gp-bot-stale{margin:0 0 12px;padding:10px 12px;border-radius:var(--r-ctl);background:var(--warn-soft);color:var(--fg);font-size:13px;line-height:1.5;max-width:72ch}
.gp-bot-manual{margin-top:4px}
.gp-bot-manual>summary{font-weight:500;color:var(--muted)}
.gp-bot-manual-note{margin:0;padding:12px 16px 0;max-width:72ch}
@keyframes gp-bot-wait{0%,100%{opacity:1}50%{opacity:.35}}
@media (max-width:760px){
  .gp-bot-connect,.gp-bot-connect.is-first{grid-template-columns:minmax(0,1fr);padding:16px}
  .gp-bot-connect .gp-bot-cform>.fld-row{grid-column:1;grid-row:auto;justify-content:flex-start}
  .gp-bot-connect .gp-bot-cform>.fld-row .btn,.gp-bot-pair .fld-row .btn,.gp-bot-old .btn{flex:1}
  .gp-bot-pair{padding:16px}
}
@media (prefers-reduced-motion:reduce){.gp-bot-dot{animation:none}.gp-bot-opts>summary::before{transition:none}}
/* Pagamento com comprovante (108): aviso no interruptor e conferência na proposta. */
.gp-bot-sw-note{display:block;margin-top:4px;font-style:normal;font-size:13px;line-height:1.5;color:var(--warn)}
.gp-bot-receipt{margin:0 0 12px;padding:12px 14px;border:1px solid var(--hair-2);border-radius:var(--r-card);background:var(--bg-2);display:flex;flex-direction:column;gap:8px}
.gp-bot-receipt h3{font:600 13px Inter,system-ui,sans-serif;color:var(--fg);margin:0}
.gp-bot-receipt .ti-kv{margin:0}
.gp-bot-receipt .btn{align-self:flex-start}
.gp-bot-receipt .gp-note{margin:0}
.gp-bot-receipt-verdict{margin:0;font-size:14px;font-weight:500;line-height:1.5}
.gp-bot-receipt-verdict.is-ok{color:var(--green)}
.gp-bot-receipt-verdict.is-bad{color:var(--warn)}
.gp-bot-receipt-why{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.5;color:var(--fg);max-width:72ch}
/* Trava de preço dos produtos (115) */
.gp-bot-rule{margin-top:12px;padding:14px 16px;border:1px solid var(--hair-2);border-radius:var(--r-card);display:flex;flex-direction:column;gap:8px;max-width:560px}
.gp-bot-rule h3{font:600 13px Inter,system-ui,sans-serif;color:var(--fg);margin:0}
.gp-bot-rule .fld{max-width:140px}
