/* BioSphere · cockpit v5.1 · MOD-27 Estudo clínico (construtor C) · prefixo cke-.
   Só tokens do design system. Cores de estado da faixa de janela: menta = feita, roxo = aberta, laranja = fechando,
   alerta = sem registro, cinza = programada, tracejado = planejada (D0 previsto). */

/* ================= Base ================= */
.cke { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.cke-bento { min-width: 0; }
.cke-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.cke-nota { font-size: 12.5px; color: var(--ink-muted); margin: 8px 0 0; line-height: 1.5; }
.cke-nota--m { color: inherit; opacity: .78; margin: 0; }
.cke-h3 { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 8px; }
.cke-lock { display: inline-flex; vertical-align: -2px; color: var(--ink-muted); margin-right: 4px; }
.cke-cofre-off { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; }
.cke-cofre-off .bs-i { flex: none; margin-top: 2px; color: var(--ink); }
.cke-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 var(--space-3); }
.cke-dt { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 44px; flex: none; border-radius: var(--radius-md); background: var(--surface-sunken); line-height: 1; }
.cke-dt small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.cke-dt b { font: 500 17px var(--font-mono); margin-top: 3px; }

/* ================= Cabeçalho do estudo ================= */
.cke-hd { display: flex; flex-direction: column; gap: 10px; }
.cke-hd__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cke-hd__cod { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); }
.cke-hd__t { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; margin: 0; max-width: 60ch; }
.cke-hd__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-muted); }
.cke-hd__meta span { display: inline-flex; align-items: center; gap: 6px; }
.cke-hd__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.cke-hd__incl { min-width: 220px; flex: 1 1 260px; max-width: 420px; }
.cke-hd__incl small { font-size: 11.5px; color: var(--ink-muted); }
.cke-hd__incl b { display: block; font: 500 20px var(--font-mono); margin: 2px 0 6px; }
.cke-hd__incl b span { font: 400 13px var(--font-sans); color: var(--ink-muted); }
.cke-hd__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cke-hd__cofre { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.cke-modo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cke-modo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-strong); }
.cke-modo--minimo::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }
.cke-oficial { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: var(--radius-md); background: var(--orange-tint); color: var(--orange-ink); font-size: 13px; line-height: 1.45; }
.cke-oficial .bs-i { flex: none; margin-top: 2px; }
.cke-oficial--s { margin: 0 0 var(--space-3); background: var(--surface-sunken); color: var(--ink-muted); font-size: 12.5px; }
.cke-subs { margin-top: 2px; }

/* ================= Faixa da janela (elemento-assinatura) ================= */
.cke-fx { --fx-axis: var(--line-strong); --fx-hoje: var(--ink); position: relative; height: 26px; min-width: 120px; }
.cke-fx__axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--fx-axis); }
.cke-fx__win { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: var(--radius-pill); box-sizing: border-box; overflow: hidden; min-width: 6px;
  background: var(--fx-bg); box-shadow: inset 0 0 0 1.5px var(--fx-bd); transition: transform .2s, box-shadow .2s; }
.cke-fx__win:hover { transform: scaleY(1.25); }
.cke-fx__win.is-foco { box-shadow: inset 0 0 0 1.5px var(--fx-bd), 0 0 0 3px var(--surface-raised), 0 0 0 4px var(--fx-bd); }
.cke-fx__used { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fx-used); }
.cke-fx__lbl { position: relative; z-index: 1; display: block; padding: 0 7px; font-size: 9.5px; line-height: 12px; font-weight: 500; color: var(--fx-txt, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-fx__prev { position: absolute; top: 50%; width: 2px; height: 18px; margin: -9px 0 0 -1px; border-radius: 2px; background: var(--fx-bd); }
.cke-fx__done { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 0 2px var(--surface-raised); z-index: 2; }
.cke-fx__hoje { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--fx-hoje); z-index: 3; }
.cke-fx__hoje::before { content: ""; position: absolute; top: -3px; left: -3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--fx-hoje); }
/* estados */
.cke-st--ok { --fx-bg: var(--mint-tint); --fx-bd: var(--mint-strong); --fx-used: var(--mint-soft); }
.cke-st--aberta { --fx-bg: var(--purple-tint); --fx-bd: var(--purple); --fx-used: var(--purple-300); }
.cke-st--fechando { --fx-bg: var(--orange-tint); --fx-bd: var(--orange); --fx-used: var(--orange); --fx-txt: var(--orange-ink); }
.cke-st--perdida { --fx-bg: repeating-linear-gradient(135deg, color-mix(in srgb, var(--alert) 22%, transparent) 0 3px, transparent 3px 6px); --fx-bd: var(--alert); --fx-used: color-mix(in srgb, var(--alert) 30%, transparent); }
.cke-st--prog { --fx-bg: var(--surface-sunken); --fx-bd: var(--line-strong); --fx-used: transparent; }
.cke-st--plan { --fx-bg: transparent; --fx-bd: var(--ink-faint); --fx-used: transparent; }
.cke-fx__win.cke-st--plan { box-shadow: none; border: 1.5px dashed var(--ink-faint); }
.cke-st--canc { --fx-bg: transparent; --fx-bd: var(--line); --fx-used: transparent; opacity: .5; }
.cke-fx__prev.cke-st--plan { background: var(--ink-faint); }

/* compacta: nome · trilha · leitura */
.cke-fxc { display: grid; grid-template-columns: minmax(64px, auto) minmax(120px, 1fr); grid-template-areas: "n t" "n r"; align-items: center; gap: 0 12px; min-width: 0; }
.cke-fxc__n { grid-area: n; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cke-fxc__n b { font-size: 13px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cke-fxc__n small { font: 11px var(--font-mono); color: var(--ink-muted); }
.cke-fxc .cke-fx { grid-area: t; }
.cke-fxc__r { grid-area: r; font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-r--fechando, .cke-r--perdida { color: var(--orange-ink); font-weight: 500; }
.cke-r--perdida { color: var(--alert); }
.cke-fxc--l .cke-fx { height: 34px; }
.cke-fxc--l .cke-fx__win { height: 16px; margin-top: -8px; }
.cke-fxc--l { margin: 6px 0 12px; }
.cke-fx-vazia { font-size: 12px; color: var(--ink-faint); }
.cke-vrow__fx .cke-fxc, .cke-kcard .cke-fxc, .cke-ini__v .cke-fxc, .cke-res__v .cke-fxc { grid-template-columns: minmax(120px, 1fr); grid-template-areas: "t" "r"; }
.cke-vrow__fx .cke-fxc__n, .cke-kcard .cke-fxc__n { display: none; }
.cke-kcard .cke-fxc, .cke-ini__v .cke-fxc, .cke-res__v .cke-fxc { grid-template-columns: auto minmax(100px, 1fr); grid-template-areas: "n t" "n r"; }

/* legenda */
.cke-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 11.5px; color: var(--ink-muted); }
.cke-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cke-leg__sw { width: 22px; height: 9px; border-radius: var(--radius-pill); background: var(--fx-bg); box-shadow: inset 0 0 0 1.5px var(--fx-bd); }
.cke-leg__sw.cke-st--plan { box-shadow: none; border: 1.5px dashed var(--ink-faint); box-sizing: border-box; }
.cke-leg__hoje { width: 1.5px; height: 14px; background: var(--ink); }

/* faixas com eixo comum (Gantt) */
.cke-ln { --lbl: 170px; min-width: 620px; }
.cke-ln__row { display: grid; grid-template-columns: var(--lbl) 1fr; align-items: center; gap: 12px; min-height: 40px; box-shadow: inset 0 -1px 0 var(--line); }
.cke-ln__row:last-child { box-shadow: none; }
.cke-ln__row--head { min-height: 28px; position: sticky; top: 0; }
.cke-ln__lbl { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.25; padding: 6px 0; }
.cke-ln__lbl a { color: inherit; text-decoration: none; }
.cke-ln__lbl a:hover { text-decoration: underline; }
.cke-ln__lbl small { font-size: 11px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-ln__scale { position: relative; height: 40px; }
.cke-ln__tick { position: absolute; bottom: 6px; transform: translateX(-50%); font: 10.5px var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.cke-ln__tick::after { content: ""; position: absolute; left: 50%; bottom: -6px; height: 4px; width: 1px; background: var(--line-strong); }
.cke-ln__hoje { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); z-index: 2; }
.cke-ln__track .cke-fx { height: 30px; }
.cke-ln__track .cke-fx__win { height: 14px; margin-top: -7px; }
.cke-ln__track .cke-fx__hoje::before { display: none; }

/* ================= Participantes ================= */
.cke-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cke-busca { flex: 1 1 220px; max-width: 360px; }
.cke-busca input { width: 100%; }
.cke-filtros { margin-bottom: 12px; }
.cke-filtros .bs-chip[disabled] { opacity: .55; cursor: not-allowed; }
.cke-tab td { vertical-align: middle; }
.cke-cod { color: var(--ink); text-decoration: none; font-weight: 600; }
.cke-cod:hover { text-decoration: underline; }
.cke-td-nome b { display: block; font-weight: 500; }
.cke-td-nome small { font-size: 11.5px; color: var(--ink-muted); }
.cke-td-fx { min-width: 280px; width: 34%; }
.cke-th { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cke-th.is-on { color: var(--ink); font-weight: 500; }
.cke-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 260px; white-space: normal; }
.cke-cons { display: inline-flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.cke-cons b { font-weight: 500; font-size: 13px; }
.cke-cons small { font-size: 11px; color: var(--ink-muted); }
.cke-alc { display: inline-flex; align-items: center; font-size: 12px; color: var(--ink-muted); }
.cke-kanban { overflow-x: auto; }
.cke-kcard { text-decoration: none; color: inherit; gap: 8px; }
.cke-kcard .bs-kcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cke-col-vazia { font-size: 12.5px; color: var(--ink-faint); margin: 8px 4px; }

/* calendário */
.cke-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cke-cal__h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); padding: 0 6px 4px; }
.cke-cal__d { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 92px; padding: 6px 6px 10px; border-radius: var(--radius-md); background: var(--surface-sunken); overflow: hidden; }
.cke-cal__d.is-passado { opacity: .6; }
.cke-cal__d.is-hoje { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cke-cal__n { font: 500 12px var(--font-mono); color: var(--ink-muted); }
.cke-cal__d.is-hoje .cke-cal__n { color: var(--ink); }
.cke-cal__v { display: block; font-size: 11px; line-height: 1.3; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--fx-bg); box-shadow: inset 2px 0 0 var(--fx-bd); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-cal__v b { font-family: var(--font-mono); font-weight: 600; }
.cke-cal__v.cke-st--plan { box-shadow: inset 2px 0 0 var(--ink-faint); }
.cke-cal__mais { font-size: 10.5px; color: var(--ink-muted); }
.cke-cal__fecha { font-size: 10.5px; color: var(--orange-ink); font-weight: 500; }
.cke-cal__heat { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--purple) calc(var(--n) / 6 * 100%), transparent 0); opacity: .75; }

/* ligar hoje e hoje */
.cke-lig { margin-top: 10px; }
.cke-lig__it { align-items: stretch; gap: 8px; }
.cke-lig__main { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.cke-lig__ins { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cke-lig__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.cke-hoje { display: flex; flex-direction: column; }
.cke-hoje__it { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
.cke-hoje__it:last-child { box-shadow: none; }
.cke-hoje__who { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.cke-hoje__who small { font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-slas { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.cke-slas .bs-sla { cursor: pointer; border: 0; font: inherit; font-size: 12.5px; }

/* ================= Agenda do estudo ================= */
.cke-sent { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 14px; font-size: 13px; line-height: 1.45; }
.cke-sent__it { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start; }
.cke-sent__it > span:first-child { display: inline-flex; padding-top: 2px; }
.cke-ev { width: 100%; text-align: left; }
.cke-evs .bs-row__main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Configuração ================= */
.cke-ancs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cke-anc { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); }
.cke-anc b { color: var(--ink); font-weight: 500; }
.cke-anc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--anc); }
.cke-anc--A0 { --anc: var(--data-evidence); }
.cke-anc--A1 { --anc: var(--data-experiment); }
.cke-anc--A2 { --anc: var(--purple); }
.cke-anc--s { padding: 2px 8px; font-family: var(--font-mono); color: var(--ink); }
.cke-ancs .cke-nota { margin: 0; flex: 1 1 260px; }
.cke-mod td { white-space: nowrap; }
.cke-proc { min-width: 240px; font-size: 12.5px; color: var(--ink-muted); }
.cke-wg { position: relative; display: inline-block; width: 92px; height: 14px; vertical-align: middle; }
.cke-wg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.cke-wg__b { position: absolute; top: 3px; height: 8px; border-radius: var(--radius-pill); background: var(--purple-tint); box-shadow: inset 0 0 0 1.5px var(--purple); min-width: 4px; }
.cke-wg__b.is-rigida { background: var(--ink); box-shadow: none; }
.cke-wg__t { position: absolute; left: 50%; top: 0; width: 2px; height: 14px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.cke-modelo { gap: 6px; }
.cke-modelo__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cke-modelo__h .ck-cod { font-size: 11.5px; color: var(--ink-muted); }
.cke-modelo__t { font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.cke-modelo.is-fixa .cke-modelo__t { background: var(--orange-tint); box-shadow: inset 3px 0 0 var(--alert); }
.cke-modelo__s { display: flex; flex-wrap: wrap; gap: 6px; }
.cke-var { font-style: normal; font: 500 11.5px var(--font-mono); padding: 1px 5px; border-radius: var(--radius-xs); background: var(--purple-tint); color: var(--purple-ink); }
.cke-regua__trk { position: relative; height: 70px; margin: 8px 6px 0; }
.cke-regua__trk::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.cke-regua__win { position: absolute; right: 0; width: 11%; top: 12px; height: 14px; border-radius: var(--radius-pill); background: var(--purple-tint); box-shadow: inset 0 0 0 1.5px var(--purple); }
.cke-regua__m { position: absolute; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cke-regua__m::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface-raised); margin-bottom: 6px; }
.cke-regua__m b { font: 500 12px var(--font-mono); }
.cke-regua__m small { font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.cke-regua.is-off { opacity: .5; }
.cke-regua__eq { margin-top: 12px; }
.cke-plantao .cke-tel { margin: 6px 0 14px; }
.cke-tel small { display: block; font-size: 11.5px; opacity: .72; }
.cke-tel b { font-size: 26px; letter-spacing: .01em; }
.cke-esc { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.cke-esc::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px; background: color-mix(in srgb, var(--on-media) 35%, transparent); }
.cke-esc li { position: relative; display: flex; flex-direction: column; font-size: 13.5px; }
.cke-esc li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--on-media); }
.cke-esc li.is-esc::before { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 30%, transparent); }
.cke-esc small { font-size: 12px; opacity: .72; }
.cke-plantao__n { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; opacity: .8; margin: 16px 0 0; }
.cke-chk { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.cke-chk__it { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: var(--radius-md); border: 0; font: inherit; color: inherit; background: color-mix(in srgb, var(--on-media) 10%, transparent); cursor: pointer; }
.cke-chk__it b { display: block; font-weight: 500; font-size: 13px; line-height: 1.35; }
.cke-chk__it small { display: block; font-size: 11.5px; opacity: .75; margin-top: 2px; }
.cke-chk__box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.cke-chk__it.is-ok .cke-chk__box { background: var(--mint); color: var(--on-mint); box-shadow: none; opacity: 1; }
.cke-chk__trav { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin: 12px 0 0; opacity: .85; }
.cke-chk--dr .cke-chk__it { background: var(--surface-sunken); cursor: default; align-items: center; }
.cke-chk--dr .cke-chk__it > span:nth-child(2) { flex: 1; }
.cke-chk--dr { grid-template-columns: 1fr; }
.cke-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cke-modos > div { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-md); background: var(--mint-tint); font-size: 13px; }
.cke-modos > div.is-trav { background: var(--orange-tint); }
.cke-modos small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.cke-modos span { display: flex; align-items: center; gap: 6px; }

/* ================= Card do Início ================= */
.cke-ini { display: flex; flex-direction: column; gap: 12px; }
.cke-nb { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--night); color: var(--on-media); position: relative; overflow: hidden; }
.cke-nb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--orange) 26%, transparent), transparent 55%); pointer-events: none; }
.cke-nb--calmo { flex-direction: row; align-items: center; cursor: default; }
.cke-nb--calmo::after { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--mint) 20%, transparent), transparent 55%); }
.cke-nb > * { position: relative; z-index: 1; }
.cke-nb b { font-weight: 500; font-size: 14px; display: block; }
.cke-nb small { font-size: 12px; opacity: .72; }
.cke-nb__top { display: flex; align-items: center; gap: 12px; }
.cke-nb__top > span:nth-child(2) { flex: 1; min-width: 0; }
.cke-nb__pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); animation: cke-pulse 1.8s infinite; }
.cke-nb__pulse.is-calmo { background: var(--mint); animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
.cke-nb.is-aberto .cke-nb__pulse { background: var(--alert); }
@keyframes cke-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cke-nb__pulse { animation: none; } }
.cke-nb__chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.cke-nb__chain > span { position: relative; display: flex; flex-direction: column; padding-top: 16px; min-width: 0; }
.cke-nb__chain > span::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px; background: color-mix(in srgb, var(--on-media) 25%, transparent); }
.cke-nb__chain > span.is-ok::before { background: color-mix(in srgb, var(--mint) 70%, transparent); }
.cke-nb__chain i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--on-media); }
.cke-nb__chain .is-ok i { background: var(--mint); box-shadow: none; }
.cke-nb__chain b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cke-nb__chain small { font: 11px var(--font-mono); }
.cke-sts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cke-st { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); color: inherit; text-decoration: none; border: 0; font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: background .2s; }
.cke-st:hover { background: var(--surface-strong); }
.cke-st small { font-size: 11.5px; color: var(--ink-muted); }
.cke-st span { font-size: 11px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cke-st.is-alerta { background: var(--orange-tint); }
.cke-ini__vs, .cke-res__vs { display: flex; flex-direction: column; gap: 4px; }
.cke-ini__v, .cke-res__v { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); }
.cke-ini__v:last-child, .cke-res__v:last-child { box-shadow: none; }
.cke-res { display: flex; flex-direction: column; gap: 10px; }

/* ================= Ficha do participante ================= */
.cke-abas { margin-bottom: var(--space-4); }
.cke-hero { display: flex; flex-direction: column; gap: 14px; }
.cke-hero .bs-card__head { align-items: flex-start; }
.cke-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cke-ancr { display: flex; gap: 0; }
.cke-ancr__it { position: relative; display: flex; flex-direction: column; padding: 16px 18px 0 0; min-width: 96px; }
.cke-ancr__it::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: color-mix(in srgb, var(--on-media) 30%, transparent); }
.cke-ancr__it i { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--on-media); background: transparent; }
.cke-ancr__it.is-on i { background: var(--on-media); }
.cke-ancr__it.is-prev i { background: transparent; box-shadow: none; border: 1.5px dashed var(--on-media); box-sizing: border-box; }
.cke-ancr__it b { font-size: 12px; font-weight: 500; }
.cke-ancr__it small { font: 11.5px var(--font-mono); opacity: .8; }
.cke-hero__fx { padding: 12px 14px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--on-media) 14%, transparent); backdrop-filter: blur(var(--blur-glass)); }
.cke-hero__fx > small { display: block; font-size: 11.5px; opacity: .78; margin-bottom: 4px; }
.cke-hero .cke-fx { --fx-axis: color-mix(in srgb, var(--on-media) 35%, transparent); --fx-hoje: var(--on-media); }
.cke-hero .cke-fxc__n small, .cke-hero .cke-fxc__r { color: inherit; opacity: .8; }
.cke-hero .cke-fx__done { box-shadow: none; }
.cke-hero__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cke-hero__acts:empty { display: none; }
.cke-alertas .cke-als { display: flex; flex-direction: column; gap: 6px; }
.cke-al { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; padding: 10px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--on-media) 9%, transparent); }
button.cke-al { cursor: pointer; }
button.cke-al:hover { background: color-mix(in srgb, var(--on-media) 15%, transparent); }
.cke-al b { display: block; font-size: 13px; font-weight: 500; }
.cke-al small { display: block; font-size: 11.5px; opacity: .72; margin-top: 2px; }
.cke-al__i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--on-media) 15%, transparent); }
.cke-al__i.is-alert { background: color-mix(in srgb, var(--alert) 40%, transparent); }
.cke-acoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.cke-acao { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 0; font: inherit; color: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.cke-acao:hover { background: var(--surface-strong); transform: translateY(-1px); }
.cke-acao b { font-size: 13.5px; font-weight: 500; }
.cke-acao small { font-size: 11.5px; color: var(--ink-muted); }

/* linha do tempo */
.cke-tl { display: flex; flex-direction: column; gap: 6px; }
.cke-tl__dia { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.cke-tl__dia .bs-tl { padding-top: 2px; }
.cke-tl__it p b { font-weight: 500; }
.cke-tl__it p span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.cke-tl__it[data-k="vis"]::before, .cke-tl-sw[data-k="vis"] { background: var(--data-experiment); }
.cke-tl__it[data-k="cons"]::before, .cke-tl__it[data-k="anc"]::before, .cke-tl-sw[data-k="cons"] { background: var(--data-decision); }
.cke-tl__it[data-k="msg"]::before, .cke-tl__it[data-k="in"]::before, .cke-tl-sw[data-k="msg"] { background: var(--data-evidence); }
.cke-tl__it[data-k="lig"]::before, .cke-tl-sw[data-k="lig"] { background: var(--data-hypothesis); }
.cke-tl__it[data-k="ea"]::before, .cke-tl__it[data-k="al"]::before, .cke-tl__it[data-k="perd"]::before, .cke-tl__it[data-k="falha"]::before, .cke-tl-sw[data-k="ea"] { background: var(--alert); }
.cke-tl-sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.cke-leg--tl { margin-top: 6px; }

/* visitas */
.cke-d0 .cke-d0__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cke-vrow { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1fr) auto auto; align-items: center; gap: 12px; }
.cke-vrow .bs-row__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* eventos */
.cke-escala { align-items: center; }
.cke-ea.is-aberto { box-shadow: var(--shadow-card), inset 3px 0 0 var(--alert); }
.cke-ea__clk { margin: 4px 0 10px; }
.cke-notifs { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.cke-notif { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 13px; }
.cke-notif b { font-weight: 600; }
.cke-notif span { color: var(--ink-muted); }
.cke-notif.is-late { background: var(--orange-tint); box-shadow: inset 3px 0 0 var(--alert); }
.cke-notif.is-ok .bs-i { color: var(--mint-strong); }
.cke-ea-hero { margin-top: 6px; }
.cke-ea-hero .bs-sla { border: 0; font: inherit; font-size: 13px; }

/* termos */
.cke-na { opacity: .55; }
.cke-drop { cursor: pointer; }

/* mensagens */
.cke-conv .bs-card__head { flex-wrap: wrap; }
.cke-semia { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--mint-tint); color: var(--mint-ink); white-space: nowrap; }
.cke-msgs { padding: 6px 0 4px; }
.cke-msg-out { display: flex; flex-direction: column; gap: 6px; }
.cke-msg-out .bs-msg__who { color: inherit; opacity: .7; }
.cke-msg-out.is-fixa { background: var(--orange-tint); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--orange); }
.cke-msg-out.is-fixa .bs-msg__who { color: var(--orange-ink); opacity: 1; font-weight: 500; }
.cke-msg-out.is-falhou { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--alert); }
.cke-msg__st { display: inline-flex; align-items: center; gap: 5px; align-self: flex-end; font-size: 11px; opacity: .8; }
.cke-msg__st--falhou { align-self: stretch; opacity: 1; font-size: 12px; font-weight: 500; color: var(--alert); padding: 6px 8px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--alert) 10%, transparent); }
.cke-msg-in.is-fora { box-shadow: inset 0 0 0 1.5px var(--alert); }
.cke-msg__al { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: inherit; font-size: 12px; font-weight: 500; color: var(--alert); background: none; border: 0; padding: 0; cursor: pointer; }
.cke-fixa { margin-top: 14px; padding: 12px; border-radius: var(--radius-md); background: var(--orange-tint); box-shadow: inset 3px 0 0 var(--alert); }
.cke-fixa small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--orange-ink); }
.cke-fixa p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }

/* acesso negado */
.cke-negado { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--space-8) var(--space-5); max-width: 640px; margin: 0 auto; }
.cke-negado__lock { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--night); color: var(--on-media); box-shadow: 0 0 0 10px var(--surface-sunken); margin-bottom: 8px; }
.cke-negado b { font-size: 18px; font-weight: 500; }
.cke-negado p { margin: 0; color: var(--ink-muted); line-height: 1.55; max-width: 52ch; }
.cke-negado .cke-negado__aud { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-sunken); }

/* ================= Camadas ================= */
.cke-chain { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; }
.cke-chain li { display: grid; grid-template-columns: 52px 18px 1fr; gap: 10px; align-items: start; padding-bottom: 16px; position: relative; }
.cke-chain__t { font: 500 12.5px var(--font-mono); text-align: right; padding-top: 1px; color: var(--ink-muted); }
.cke-chain__d { position: relative; width: 18px; height: 18px; }
.cke-chain__d::before { content: ""; position: absolute; left: 4px; top: 2px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-faint); background: var(--surface-raised); z-index: 1; }
.cke-chain li:not(:last-child) .cke-chain__d::after { content: ""; position: absolute; left: 8.25px; top: 12px; height: calc(100% + 22px); width: 1.5px; background: var(--line-strong); }
.cke-chain li.is-ok .cke-chain__d::before { background: var(--mint-strong); box-shadow: none; }
.cke-chain li.is-esc .cke-chain__d::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.cke-chain li.is-pend .cke-chain__d::before { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--orange); }
.cke-chain__x b { display: block; font-size: 14px; font-weight: 500; }
.cke-chain__x small { display: block; font-size: 12.5px; color: var(--ink-muted); line-height: 1.45; margin-top: 2px; }
.cke-al-hero { display: flex; align-items: center; gap: 12px; font-size: 12.5px; opacity: .85; }
.cke-auto { box-shadow: inset 3px 0 0 var(--alert); background: var(--orange-tint); }
.cke-temp { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cke-temp b { display: block; font-weight: 500; font-size: 13.5px; }
.cke-temp small { display: block; font-size: 12px; color: var(--ink-muted); }
.cke-tel-s { color: var(--ink); font-weight: 500; }
.cke-mov td { background: var(--purple-tint); }
.cke-dsv-seg { margin: 14px 0 6px; }
.cke-simchips { margin: 12px 0 6px; }
.cke-simres { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.cke-simres small { font-size: 11.5px; color: var(--ink-muted); }
.cke-simres b { font-size: 16px; font-weight: 500; }
.cke-simres span { font-size: 13px; line-height: 1.5; }
.cke-simres--confirmou { background: var(--mint-tint); }
.cke-simres--remarcar { background: var(--purple-tint); }
.cke-simres--fora-do-previsto { background: var(--night); color: var(--on-media); }
.cke-simres--fora-do-previsto small { color: inherit; opacity: .72; }
.cke-retir { margin: 4px 0 14px; font-size: 12.5px; }
.cke-retir td, .cke-retir th { padding: 6px 10px; }

/* Dentro do submenu lateral do projeto (CK.projetoShell): abas e sub-abas vivem no submenu; as barras daqui só no celular. */
@media (min-width: 901px) { .cke-emshell .cke-abas, .cke-emshell .cke-subs { display: none; } }

/* ================= Tema escuro ================= */
[data-theme="dark"] .cke-oficial { color: var(--orange); }
[data-theme="dark"] .cke-hd__cod { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ================= Celular (375 px) ================= */
@media (max-width: 900px) {
  .cke-hoje__it { grid-template-columns: 1fr auto; }
  .cke-hoje__it .cke-fxc { grid-column: 1 / -1; grid-row: 2; }
  .cke-vrow { grid-template-columns: 1fr auto; }
  .cke-vrow__fx { grid-column: 1 / -1; }
  .cke-vrow .bs-row__acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cke-sts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cke-hd__t { font-size: 18px; }
  .cke-hd__acts .bs-btn { flex: 1 1 auto; }
  .cke-fxc { grid-template-columns: 1fr; grid-template-areas: "n" "t" "r"; }
  .cke-td-fx { min-width: 220px; }
  .cke-ln { --lbl: 92px; min-width: 520px; }
  .cke-cal { gap: 2px; }
  .cke-cal__d { min-height: 64px; padding: 4px 3px 8px; }
  .cke-cal__v { font-size: 9.5px; padding: 1px 3px; }
  .cke-cal__v b { display: block; }
  .cke-cal__fecha { display: none; }
  .cke-nb__chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .cke-modos { grid-template-columns: 1fr; }
  .cke-notif { grid-template-columns: 1fr auto; }
  .cke-notif span { grid-column: 1 / -1; grid-row: 2; }
  .cke-ancr { flex-wrap: wrap; }
  .cke-ancr__it { min-width: 84px; }
  .cke-chain li { grid-template-columns: 44px 18px 1fr; }
  .cke-sent__it { grid-template-columns: 20px 1fr; }
  .cke-sent__it .bs-mini { grid-column: 2; justify-self: start; }
}
