/* KORTEX /novo v0.5.3 — corredor do setpoint, faixa de desvio e causa-efeito (Kleversom 21/11 23:50) */
/* legenda do corredor: uma linha cinza pequena, com a amostra da faixa */
.kxc-cor{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;line-height:1.35;color:var(--text-secondary)}
.kxc-cor span{min-width:0}
.kxc-cor i{flex:0 0 auto;width:16px;height:10px;border-radius:3px;background:rgba(16,42,67,.12)}
:root[data-theme="dark"] .kxc-cor i{background:rgba(255,255,255,.13)}
/* números dos marcadores: o desenho é do Plotly (sai igual na exportação); aqui só a área de toque (≥ 36 px) */
.kxc-mks{position:absolute;inset:0;pointer-events:none;z-index:2}
.kxc-mk{position:absolute;width:36px;height:36px;margin:-18px 0 0 -18px;padding:0;border:0;border-radius:50%;background:transparent!important;box-shadow:none!important;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent}
.kxc-mk::after{content:"";position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;box-shadow:0 0 0 0 transparent;transition:box-shadow .15s}
.kxc-mk.is-on::after{box-shadow:0 0 0 2px #3B6E9E}
:root[data-theme="dark"] .kxc-mk.is-on::after{box-shadow:0 0 0 2px #7FB2E5}
@media (hover:hover){.kxc-mk:hover::after{box-shadow:0 0 0 2px rgba(107,119,133,.45)}}
.kxc-mk:focus-visible{outline:none}
.kxc-mk:focus-visible::after{box-shadow:0 0 0 2px #3B6E9E}
/* explicação do marcador: cartão discreto logo abaixo do gráfico */
.kxc-note{display:flex;gap:10px;align-items:flex-start;margin-top:8px;padding:10px 4px 10px 12px;border-radius:12px;background:rgba(16,42,67,.045);animation:kxcNote .18s ease-out}
:root[data-theme="dark"] .kxc-note{background:#232428}
@keyframes kxcNote{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.kxc-note{animation:none}}
.kxc-nn{flex:0 0 auto;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border-radius:50%;border:1.5px solid #6B7785;font:600 11px/1 var(--kx-font);color:var(--text-primary)}
:root[data-theme="dark"] .kxc-nn{border-color:#8C8F95}
.kxc-nn.is-w{border-color:#C77F12}
:root[data-theme="dark"] .kxc-nn.is-w{border-color:#D9A548}
.kxc-nb{flex:1 1 auto;min-width:0}
.kxc-nt{font-weight:600;font-size:13px;line-height:1.35;color:var(--text-primary)}
.kxc-nx{margin-top:2px;font-size:13px;line-height:1.45;color:var(--text-secondary)}
.kxc-note .kxc-nc{width:36px;height:36px;margin:-7px 0 -7px 0;flex:0 0 auto}
/* balão do toque: linha do desvio */
.kxc-tr i.is-dv{width:10px;height:2px;border-radius:1px;background:var(--text-muted)}
/* tela cheia deitada: explicação por cima do pé do gráfico, legenda do corredor escondida (falta altura) */
@media (orientation:landscape) and (max-height:520px){
  /* posições fixas: sem os chips de período (gráfico da conversa) a área do gráfico continuava na linha 1fr */
  .kxc-fullhost .kxc{position:relative;grid-template-rows:auto auto auto auto minmax(0,1fr)}
  .kxc-fullhost .kxc-head{grid-row:1}
  .kxc-fullhost .kxc-vrow{grid-row:2;grid-column:1}
  .kxc-fullhost .kxc-sum{grid-row:3}
  .kxc-fullhost .kxc-leg{grid-row:4}
  .kxc-fullhost .kxc-wrap{grid-row:5}
  .kxc-fullhost .kxc-cor{display:none}
  .kxc-fullhost .kxc-note{position:absolute;left:0;right:0;bottom:0;z-index:4;margin:0;box-shadow:0 6px 18px rgba(0,0,0,.18);background:var(--bg-elevated,#fff)}
  :root[data-theme="dark"] .kxc-fullhost .kxc-note{background:#232428}
}
