/* Hero UI — componentes do HeroTracker (classes ht-*). Valores só de tokens.css (cor, raio, fonte, sombra, tamanho).
   Referência visual: docs/redesign/design/screens/DesignSystem.dc.html. Página viva: /admin/design-system (só admin). */

/* ---------------------------------------------------------------- tipografia */
.ht-display{font-size:44px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.ht-title{font-size:20px;font-weight:700;letter-spacing:-.015em;line-height:1.3;margin:0;color:var(--ht-ink)}
.ht-heading{font-size:15px;font-weight:600;line-height:1.35;margin:0;color:var(--ht-ink);text-transform:none;letter-spacing:0}
.ht-body{font-size:14px;font-weight:400}
.ht-caption{font-size:12px;font-weight:500;color:var(--ht-ink-2)}
.ht-overline{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ht-ink-3)}
.ht-muted{color:var(--ht-ink-2)}
.ht-faint{color:var(--ht-ink-3)}
.ht-mono{font-family:var(--ht-font-mono);font-size:12px;color:var(--ht-ink-2)}
.ht-num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.ht-pos{color:var(--ht-positive)}.ht-neg{color:var(--ht-negative)}.ht-warn{color:var(--ht-warning)}
.ht-narrow{max-width:560px}
.ht-flush{margin:0}
.ht-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ht-space-2)}
.mt-1{margin-top:var(--ht-space-1)}.mt-2{margin-top:var(--ht-space-2)}.mt-3{margin-top:var(--ht-space-3)}.mt-4{margin-top:var(--ht-space-4)}
.mb-1{margin-bottom:var(--ht-space-1)}.mb-3{margin-bottom:var(--ht-space-3)}.mb-4{margin-bottom:var(--ht-space-4)}.m-0{margin:0}
.items-start{align-items:start}.items-end{align-items:end}.w-auto{width:auto}.gap-2{gap:var(--ht-space-2)}.d-block{display:block}
.text-center{text-align:center}.minw-160{min-width:160px}
[data-neg]{color:var(--ht-negative)}[data-warn]{color:var(--ht-warning)}
.ht-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------------------------------------------------------------- Button */
.ht-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--ht-control);padding:0 var(--ht-space-3);
  border:1px solid var(--ht-line-strong);border-radius:var(--ht-radius-md);background:var(--ht-surface);color:var(--ht-ink);
  font:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;text-decoration:none}
.ht-btn:hover{border-color:var(--ht-ink-3);color:var(--ht-ink)}
.ht-btn svg{width:15px;height:15px;flex:none}
.ht-btn--primary{background:var(--ht-accent);border-color:var(--ht-accent);color:var(--ht-surface);font-weight:600;padding:0 14px}
.ht-btn--primary:hover{background:var(--ht-accent-hover);border-color:var(--ht-accent-hover);color:var(--ht-surface)}
.ht-btn--ghost{background:transparent;border-color:transparent;color:var(--ht-accent)}
.ht-btn--ghost:hover{background:var(--ht-accent-soft);border-color:transparent;color:var(--ht-accent-hover)}
.ht-btn--dashed{background:transparent;border-style:dashed;color:var(--ht-ink-2)}
.ht-btn--dashed:hover{color:var(--ht-ink);border-color:var(--ht-ink-3)}
.ht-btn--danger{background:var(--ht-negative);border-color:var(--ht-negative);color:var(--ht-surface);font-weight:600;padding:0 14px}
.ht-btn--danger:hover{filter:brightness(.92);color:var(--ht-surface)}
.ht-btn--sm{height:var(--ht-control-dense);padding:0 10px;font-size:12px}
.ht-btn--icon{width:var(--ht-control);padding:0}
.ht-btn--icon.ht-btn--sm{width:var(--ht-control-dense)}
.ht-btn:disabled,.ht-btn[aria-disabled=true]{background:var(--ht-canvas);border-color:var(--ht-line);color:var(--ht-ink-3);cursor:not-allowed;filter:none}
.ht-btn.is-busy{pointer-events:none;opacity:.85}
@media (pointer:coarse){ .ht-btn{min-height:44px} .ht-btn--sm{min-height:var(--ht-control)} }

/* ---------------------------------------------------------------- Input / Select */
.ht-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ht-label{font-size:12px;font-weight:600;color:var(--ht-ink-2);margin:0}
.ht-input,.ht-select{height:var(--ht-control);width:100%;padding:0 10px;border:1px solid var(--ht-line-strong);border-radius:var(--ht-radius-md);
  background:var(--ht-surface);color:var(--ht-ink);font:inherit;font-size:13px;outline:none}
.ht-input:focus,.ht-select:focus{border-color:var(--ht-accent);box-shadow:0 0 0 3px var(--ht-accent-ring)}
.ht-input::placeholder{color:var(--ht-ink-3)}
.ht-field--error .ht-input,.ht-field--error .ht-select,.ht-input[aria-invalid=true]{border-color:var(--ht-negative)}
.ht-error{font-size:12px;color:var(--ht-negative)}
.ht-hint{font-size:12px;color:var(--ht-ink-3)}
.ht-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.ht-check input{width:16px;height:16px;accent-color:var(--ht-accent);margin:0}

/* ---------------------------------------------------------------- SegmentedControl */
.ht-seg{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:7px;background:var(--ht-surface-muted);max-width:100%;overflow-x:auto;scrollbar-width:none}
.ht-seg::-webkit-scrollbar{display:none}
.ht-seg > a,.ht-seg > button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:5px;background:transparent;
  color:var(--ht-ink-2);font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;text-decoration:none}
.ht-seg > a:hover,.ht-seg > button:hover{color:var(--ht-ink)}
.ht-seg > [aria-pressed=true],.ht-seg > [aria-current],.ht-seg > [aria-checked=true],.ht-seg > .is-on,.ht-seg > .on{background:var(--ht-surface);color:var(--ht-ink);font-weight:600;box-shadow:var(--ht-shadow-1)}
.ht-seg--sm > a,.ht-seg--sm > button{height:var(--ht-control-dense);padding:0 10px}
.ht-seg .ht-seg__n{color:var(--ht-ink-3);font-weight:500}

/* ---------------------------------------------------------------- Tabs */
.ht-tabs{display:flex;gap:4px;border-bottom:1px solid var(--ht-line);overflow-x:auto;scrollbar-width:none}
.ht-tabs::-webkit-scrollbar{display:none}
.ht-tab{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;
  background:transparent;color:var(--ht-ink-3);font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;text-decoration:none}
.ht-tab:hover{color:var(--ht-ink)}
.ht-tab[aria-selected=true],.ht-tab[aria-current]{border-bottom-color:var(--ht-accent);color:var(--ht-ink);font-weight:600}
.ht-tab__n{font-size:12px;font-weight:500;color:var(--ht-ink-3)}
.ht-tab__dot{width:6px;height:6px;border-radius:var(--ht-radius-pill);background:var(--ht-warning)}
.ht-tab__dot--bad{background:var(--ht-negative)}

/* ---------------------------------------------------------------- FilterChip */
.ht-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ht-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 6px 0 10px;border-radius:var(--ht-radius-md);background:var(--ht-accent-soft);
  color:var(--ht-accent-hover);font-size:13px;white-space:nowrap;text-decoration:none}
.ht-chip strong{font-weight:600}
.ht-chip__x{display:inline-grid;place-items:center;width:22px;height:22px;border:0;border-radius:var(--ht-radius-sm);background:transparent;color:var(--ht-accent-hover);
  font:inherit;font-size:15px;line-height:1;cursor:pointer;text-decoration:none}
.ht-chip__x:hover{background:var(--ht-accent-ring)}
/* Chip de alternância (filtro que liga/desliga, ex.: tag das contas): neutro desligado, accent-soft ligado */
.ht-chip--toggle{background:var(--ht-surface);border:1px solid var(--ht-line-strong);color:var(--ht-ink-2);padding:0 10px;height:30px}
.ht-chip--toggle:hover{color:var(--ht-ink);border-color:var(--ht-ink-3)}
.ht-chip--toggle[aria-pressed=true],.ht-chip--toggle.is-on{background:var(--ht-accent-soft);border-color:var(--ht-accent-ring);color:var(--ht-accent-hover);font-weight:600}
.ht-chip--toggle .ht-chip__n{color:var(--ht-ink-3);font-weight:500}

/* ---------------------------------------------------------------- StatusPill */
.ht-status{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--ht-radius-lg);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;
  background:var(--ht-surface-muted);color:var(--ht-ink-2)}
.ht-status::before{content:"";width:6px;height:6px;border-radius:var(--ht-radius-pill);background:var(--ht-ink-3);flex:none}
.ht-status--positive{background:var(--ht-positive-soft);color:var(--ht-positive)}.ht-status--positive::before{background:var(--ht-positive)}
.ht-status--warning{background:var(--ht-warning-soft);color:var(--ht-warning)}.ht-status--warning::before{background:var(--ht-warning)}
.ht-status--negative{background:var(--ht-negative-soft);color:var(--ht-negative)}.ht-status--negative::before{background:var(--ht-negative)}

/* ---------------------------------------------------------------- DeltaPill */
.ht-delta{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:var(--ht-radius-sm);font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;
  background:var(--ht-surface-muted);color:var(--ht-ink-2)}
.ht-delta--good{background:var(--ht-positive-soft);color:var(--ht-positive)}
.ht-delta--bad{background:var(--ht-negative-soft);color:var(--ht-negative)}
.ht-delta-text{font-size:13px;font-weight:600}
.ht-delta-text.ht-delta--good,.ht-delta-text.ht-delta--bad,.ht-delta-text.ht-delta--flat{background:none;padding:0}

/* ---------------------------------------------------------------- Tag */
.ht-tag{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:var(--ht-radius-sm);background:var(--ht-surface-muted);color:var(--ht-ink-2);
  font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.ht-tag--accent{background:var(--ht-accent-soft);color:var(--ht-accent-hover);font-size:11px;font-weight:700;letter-spacing:.02em}
.ht-tag--warning{background:var(--ht-warning-soft);color:var(--ht-warning)}
.ht-tag--positive{background:var(--ht-positive-soft);color:var(--ht-positive)}
.ht-tag--negative{background:var(--ht-negative-soft);color:var(--ht-negative)}
/* Ponto de série/canal (legenda, tabela por canal): cor da paleta dataviz */
.ht-dot{display:inline-block;width:8px;height:8px;border-radius:var(--ht-radius-pill);background:var(--ht-viz-4);flex:none;vertical-align:1px}
.ht-dot--1{background:var(--ht-viz-1)}.ht-dot--2{background:var(--ht-viz-2)}.ht-dot--3{background:var(--ht-viz-3)}.ht-dot--4{background:var(--ht-viz-4)}

/* ---------------------------------------------------------------- Card */
.ht-card{background:var(--ht-surface);border:1px solid var(--ht-line);border-radius:var(--ht-radius-lg);padding:18px 20px;min-width:0}
.ht-card--flush{padding:0;overflow:hidden}
.ht-card__head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--ht-space-3);margin-bottom:var(--ht-space-4)}
.ht-card--flush > .ht-card__head{padding:16px 20px 0}
.ht-card__title{font-size:15px;font-weight:600;line-height:1.35;margin:0;color:var(--ht-ink);text-transform:none;letter-spacing:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ht-card__sub{font-size:12px;color:var(--ht-ink-3);margin:2px 0 0}
.ht-card__sub--late{color:var(--ht-warning)}
.ht-card__link{font-size:13px;font-weight:500;color:var(--ht-accent);text-decoration:none;white-space:nowrap}
.ht-card__link:hover{color:var(--ht-accent-hover)}
.ht-stack{display:flex;flex-direction:column;gap:var(--ht-space-4)}
.ht-grid{display:grid;gap:var(--ht-space-4);grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.ht-grid > *{min-width:0;margin-top:0} /* lado a lado: sem a margem de cards empilhados (alturas alinhadas) */
.ht-span-2{grid-column:span 2}
@media (max-width:760px){ .ht-span-2{grid-column:auto} .ht-grid{grid-template-columns:minmax(0,1fr)} }
.ht-section-title{margin:0 0 -6px 2px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ---------------------------------------------------------------- KpiCard */
.ht-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:var(--ht-space-3)}
.ht-kpi{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px 16px;background:var(--ht-surface);border:1px solid var(--ht-line);
  border-radius:var(--ht-radius-lg);container-type:inline-size;color:var(--ht-ink);text-decoration:none}
a.ht-kpi:hover{border-color:var(--ht-line-strong);color:var(--ht-ink)}
.ht-kpi__label{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:var(--ht-ink-2);line-height:1.3}
.ht-kpi__info{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:var(--ht-radius-pill);border:1px solid var(--ht-line-strong);color:var(--ht-ink-3);
  font-size:11px;font-weight:600;line-height:1;cursor:help;flex:none}
.ht-kpi__value{font-size:min(24px,11.5cqi);font-weight:700;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-kpi__value a{color:inherit;text-decoration:none}
.ht-kpi__value a:hover{color:var(--ht-accent)}
.ht-kpi--neg .ht-kpi__value{color:var(--ht-negative)}
.ht-kpi--pos .ht-kpi__value{color:var(--ht-positive)}
.ht-kpi__sub{font-size:12px;color:var(--ht-ink-3);line-height:1.35}
.ht-kpi__top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;min-height:24px}
.ht-kpi__top .ht-kpi__label{padding-top:2px;min-width:0}
.ht-kpi__foot{display:flex;align-items:center;gap:8px;min-width:0;margin-top:2px}
.ht-kpi__vs{font-size:12px;color:var(--ht-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ht-kpi__foot .ht-delta{flex:none}
.ht-spark{width:72px;height:24px;flex:none;overflow:visible}
.ht-spark path{fill:none;stroke:var(--ht-accent);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ht-split{display:flex;height:4px;border-radius:2px;overflow:hidden;background:var(--ht-surface-muted)}
.ht-split i{display:block;height:100%}

/* ---------------------------------------------------------------- SummaryStrip */
.ht-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));background:var(--ht-surface);border:1px solid var(--ht-line);border-radius:var(--ht-radius-lg);overflow:hidden}
.ht-summary__item{display:flex;flex-direction:column;gap:4px;padding:14px 18px;min-width:0;box-shadow:inset -1px 0 0 var(--ht-line-soft),inset 0 -1px 0 var(--ht-line-soft)}
.ht-summary__label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ht-ink-2)}
.ht-summary__value{font-size:20px;font-weight:700;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-summary__value .ht-delta-text{font-size:12px;margin-left:4px}
.ht-summary__sub{font-size:12px;color:var(--ht-ink-3)}
@media (max-width:600px){ .ht-summary__item{padding:12px 14px} .ht-summary__value{font-size:15px} } /* 2 por linha no celular: o valor cabe inteiro */

/* ---------------------------------------------------------------- DataTable */
.ht-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ht-card > .ht-table-wrap{margin-left:-20px;margin-right:-20px} /* só nas laterais: o espaço acima (mt-*) continua valendo */
.ht-card--flush > .ht-table-wrap{margin:0}
.ht-table{width:100%;border-collapse:collapse;font-size:13px}
.ht-table th{height:var(--ht-row);padding:0 12px;background:var(--ht-table-head);color:var(--ht-ink-2);font-size:12px;font-weight:600;text-align:left;white-space:nowrap;
  border-top:1px solid var(--ht-line);border-bottom:1px solid var(--ht-line);letter-spacing:0;text-transform:none}
.ht-table td{height:var(--ht-row);padding:6px 12px;border-bottom:1px solid var(--ht-line-soft);vertical-align:middle}
.ht-table th:first-child,.ht-table td:first-child{padding-left:20px}
.ht-table th:last-child,.ht-table td:last-child{padding-right:20px}
.ht-table tbody tr:last-child td{border-bottom:0}
.ht-table tbody tr:hover td{background:var(--ht-row-hover)}
.ht-table .num,.ht-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ht-table td.strong,.ht-table .num strong{font-weight:600}
.ht-table .id{font-family:var(--ht-font-mono);font-size:12px;color:var(--ht-ink-2);white-space:nowrap}
.ht-table a:not(.ht-btn){color:var(--ht-accent);font-weight:500;text-decoration:none}
.ht-table a:not(.ht-btn):hover{color:var(--ht-accent-hover)}
.ht-table tr[data-href]{cursor:pointer}
.ht-table tr.is-total td{background:var(--ht-table-head);font-weight:600;border-top:1px solid var(--ht-line)}
.ht-table tr.is-off td{opacity:.55}
.ht-table th .ht-sort{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:none}
.ht-table th[aria-sort] .ht-sort{color:var(--ht-ink)}
.ht-table th .ht-sort:hover{color:var(--ht-ink)}
.ht-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--ht-accent)}
.ht-table-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;font-size:13px;color:var(--ht-ink-2);border-top:1px solid var(--ht-line-soft)}
.ht-card:not(.ht-card--flush) > .ht-table-foot{margin:0 -20px -18px}
.ht-table-foot__pages{display:flex;align-items:center;gap:6px}

/* Barra de filtros do relatório (busca + selects + datas) */
.ht-filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ht-filterbar .ht-select,.ht-filterbar .csel-btn{width:auto;min-width:150px}
.ht-search{position:relative;display:flex;align-items:center;flex:1 1 260px;min-width:0;margin:0}
.ht-search > svg{position:absolute;left:10px;color:var(--ht-ink-3);pointer-events:none}
.ht-search .ht-input{padding-left:32px}
.ht-card__pad{padding:18px 20px}
@media (max-width:600px){ .ht-filterbar > .ht-search{flex:1 1 0} .ht-filterbar > .ht-btn{flex:none} }

/* Botão destrutivo pequeno dentro de tabela/lista (Excluir de cada linha): borda neutra e texto negative, para não
   encher a tela de vermelho; o destrutivo cheio fica para a ação principal */
.ht-table .ht-btn--danger,.row-act .ht-btn--danger{background:var(--ht-surface);border-color:var(--ht-line-strong);color:var(--ht-negative);font-weight:500}
.ht-table .ht-btn--danger:hover,.row-act .ht-btn--danger:hover{border-color:var(--ht-negative);filter:none}

/* ---------------------------------------------------------------- AlertItem */
.ht-alert{display:flex;gap:10px;padding:12px;border:1px solid var(--ht-line);border-radius:var(--ht-radius-md);background:var(--ht-surface);color:var(--ht-ink);text-decoration:none}
a.ht-alert:hover{border-color:var(--ht-line-strong);color:var(--ht-ink)}
.ht-alert > svg{width:18px;height:18px;flex:none;color:var(--ht-warning);margin-top:1px}
.ht-alert--negative > svg{color:var(--ht-negative)}
.ht-alert--positive > svg{color:var(--ht-positive)}
.ht-alert__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ht-alert__title{font-size:13px;font-weight:600}
.ht-alert__text{font-size:12px;color:var(--ht-ink-2);overflow-wrap:anywhere}
.ht-alert__text a{text-decoration:underline}

/* ---------------------------------------------------------------- EmptyState / erro */
.ht-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px;border:1px dashed var(--ht-line-strong);border-radius:var(--ht-radius-md);text-align:center}
.ht-empty__title{font-size:13px;font-weight:600}
.ht-empty__text{font-size:12px;color:var(--ht-ink-2);max-width:460px}
.ht-error-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--ht-negative-soft);border-radius:var(--ht-radius-md);background:var(--ht-negative-soft)}
.ht-error-state .ht-empty__title{color:var(--ht-negative)}

/* ---------------------------------------------------------------- Gráficos */
.ht-chart{display:flex;flex-direction:column;gap:10px}
.ht-chart__plot{position:relative;display:flex;gap:10px}
.ht-chart__y{display:flex;flex-direction:column;justify-content:space-between;min-width:44px;font-size:11px;color:var(--ht-ink-3);text-align:right}
.ht-chart__svg{flex:1;min-width:0;display:block;overflow:visible}
.ht-chart__grid{stroke:var(--ht-line-soft);stroke-width:1;vector-effect:non-scaling-stroke}
.ht-chart__line{fill:none;stroke:var(--ht-viz-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ht-chart__area{fill:var(--ht-viz-1);fill-opacity:.08}
.ht-chart__prev{fill:none;stroke:var(--ht-viz-prev);stroke-width:1.5;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.ht-chart__bar{fill:var(--ht-viz-1)}
.ht-chart__bar--2{fill:var(--ht-viz-2)}.ht-chart__bar--3{fill:var(--ht-viz-3)}.ht-chart__bar--4{fill:var(--ht-viz-4)}
.ht-chart__x{display:flex;justify-content:space-between;padding-left:54px;font-size:11px;color:var(--ht-ink-3)}
.ht-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--ht-ink-2)}
.ht-legend > span{display:inline-flex;align-items:center;gap:6px}
.ht-legend__line{width:14px;height:2px;background:var(--ht-viz-1)}
.ht-legend__prev{width:14px;height:0;border-top:2px dashed var(--ht-viz-prev)}
.ht-legend__sq{width:10px;height:10px;border-radius:2px;background:var(--ht-viz-1)}
.ht-legend__sq--2{background:var(--ht-viz-2)}.ht-legend__sq--3{background:var(--ht-viz-3)}.ht-legend__sq--4{background:var(--ht-viz-4)}
/* Barra empilhada 100% (participação por canal) */
.ht-stackbar{display:flex;height:10px;border-radius:var(--ht-radius-pill);overflow:hidden;background:var(--ht-surface-muted)}
.ht-stackbar > i{display:block;height:100%}
.ht-stackbar > i + i{box-shadow:inset 2px 0 0 var(--ht-surface)}
/* Medidor (uso de limite) */
.ht-meter{height:8px;border-radius:var(--ht-radius-pill);background:var(--ht-surface-muted);overflow:hidden}
.ht-meter > i{display:block;height:100%;border-radius:var(--ht-radius-pill);background:var(--ht-positive)}
.ht-meter--warning > i{background:var(--ht-warning)}.ht-meter--negative > i{background:var(--ht-negative)}

/* ---------------------------------------------------------------- Heatmap (rampa sequencial do accent) */
.ht-heat-1{background:rgba(var(--heat),.08)}.ht-heat-2{background:rgba(var(--heat),.2)}.ht-heat-3{background:rgba(var(--heat),.34)}
.ht-heat-4{background:rgba(var(--heat),.48)}.ht-heat-5{background:rgba(var(--heat),.62)}
.ht-heat-6{background:rgba(var(--heat),.76)}.ht-heat-7{background:rgba(var(--heat),.9);color:var(--ht-surface)}
/* Texto branco só no passo 0,90: em 0,62 e 0,76 o branco fica abaixo de 4,5:1 (2,9 e 4,0); o ink passa (6,2 e 4,5) */
.ht-heat-future{background:var(--ht-canvas)}

/* ---------------------------------------------------------------- Avatar */
.ht-avatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:var(--ht-radius-pill);background:var(--ht-line);color:var(--ht-ink-2);
  font-size:12px;font-weight:600;flex:none}
.ht-avatar--lg{width:52px;height:52px;font-size:15px}

/* ---------------------------------------------------------------- Lista de definição (detalhe) */
.ht-kv{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 16px;font-size:13px;margin:0}
.ht-kv dt{color:var(--ht-ink-2)}
.ht-kv dd{margin:0;overflow-wrap:anywhere}
@media (max-width:600px){ .ht-kv{grid-template-columns:minmax(0,1fr);gap:2px} .ht-kv dd{margin-bottom:8px} }
.ht-kv--side{grid-template-columns:minmax(0,1fr);gap:2px}
.ht-kv--side dd{margin-bottom:10px}
/* Detalhe (Evento #id): coluna principal + lateral, como o Jogador 360 */
.ev-detail{display:flex;flex-wrap:wrap;gap:var(--ht-space-4);align-items:flex-start}
.ev-detail__main{flex:2 1 560px;min-width:0}
.ev-detail__side{flex:1 1 300px}
.ht-code{margin:0;padding:12px;background:var(--ht-table-head);border:1px solid var(--ht-line);border-radius:var(--ht-radius-md);font-family:var(--ht-font-mono);font-size:12px;
  line-height:1.55;color:var(--ht-ink);white-space:pre-wrap;word-break:break-all;max-height:420px;overflow:auto}

/* ---------------------------------------------------------------- Logo (quadrado ink, raio 7) */
.ht-logo{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--ht-ink);color:var(--ht-surface);font-size:14px;font-weight:700;flex:none}
.ht-logo--lg{width:72px;height:72px;border-radius:var(--ht-radius-lg);font-size:28px}

/* ---------------------------------------------------------------- Shell: sidebar 232 px + conteúdo */
.ht-app{min-height:100vh}
.ht-skip{position:absolute;left:8px;top:-60px;z-index:1100;padding:8px 12px;border-radius:var(--ht-radius-md);background:var(--ht-surface);box-shadow:var(--ht-shadow-2);font-size:13px;font-weight:600}
.ht-skip:focus{top:8px}
.ht-shell{display:grid;grid-template-columns:var(--ht-sidebar) minmax(0,1fr);min-height:100vh}
.ht-topbar{display:none}
.ht-side{position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:var(--ht-space-5);padding:16px 12px;padding-top:max(16px,env(safe-area-inset-top));
  background:var(--ht-surface);border-right:1px solid var(--ht-line);overflow-y:auto;overscroll-behavior:contain;z-index:40}
.ht-side__head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px}
.ht-side__close{display:none}
.ht-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--ht-ink);text-decoration:none}
.ht-brand:hover{color:var(--ht-ink)}
.ht-brand__text{display:flex;flex-direction:column;min-width:0}
.ht-brand__name{font-size:15px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.ht-brand__ws{font-size:12px;color:var(--ht-ink-3);white-space:nowrap}
.ht-side__search{display:flex;align-items:center;gap:8px;height:var(--ht-control);padding:0 10px;border:1px solid var(--ht-line);border-radius:var(--ht-radius-md);
  background:var(--ht-canvas);color:var(--ht-ink-3);font:inherit;font-size:13px;cursor:pointer;text-align:left;flex:none}
.ht-side__search:hover{border-color:var(--ht-line-strong);color:var(--ht-ink-2)}
.ht-side__search span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
kbd{font:inherit;font-size:11px;line-height:1.4;padding:1px 5px;border:1px solid var(--ht-line-strong);border-radius:var(--ht-radius-sm);background:var(--ht-surface);color:var(--ht-ink-2)}
.ht-nav{display:flex;flex-direction:column;gap:14px}
.ht-nav__group{display:flex;flex-direction:column;gap:2px}
.ht-nav__label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ht-ink-3);padding:0 10px 6px}
.ht-nav__item{display:flex;align-items:center;gap:10px;width:100%;height:var(--ht-control);padding:0 10px;border:0;border-radius:var(--ht-radius-md);background:none;
  color:var(--ht-ink-2);font:inherit;font-size:14px;font-weight:500;text-align:left;text-decoration:none;cursor:pointer;white-space:nowrap}
.ht-nav__item span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ht-nav__item svg{flex:none}
.ht-nav__item:hover{background:var(--ht-surface-muted);color:var(--ht-ink)}
.ht-nav__item[aria-current]{background:var(--ht-accent-soft);color:var(--ht-accent);font-weight:600}
.ht-side__foot{margin-top:auto;display:flex;flex-direction:column;gap:2px;padding-top:12px;border-top:1px solid var(--ht-line)}
.ht-side__foot form{margin:0}
.ht-user{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--ht-radius-md);color:var(--ht-ink);text-decoration:none;min-width:0}
a.ht-user:hover{background:var(--ht-surface-muted);color:var(--ht-ink)}
a.ht-user[aria-current]{background:var(--ht-accent-soft)}
.ht-user__who{display:flex;flex-direction:column;min-width:0}
.ht-user__name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-user__role{font-size:12px;color:var(--ht-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-scrim{position:fixed;inset:0;z-index:35;background:color-mix(in srgb,var(--ht-ink) 45%,transparent)}
.ht-scrim[hidden]{display:none}

.ht-main{min-width:0;outline:none}
.ht-page{display:flex;flex-direction:column;gap:var(--ht-space-5);padding:0 var(--ht-content-pad) 40px;padding-bottom:calc(40px + env(safe-area-inset-bottom));container:main / inline-size}
.ht-page > *{width:100%;max-width:var(--ht-content-max);margin-top:0;margin-bottom:0}
.ht-page > .ht-page-head{order:-2;margin-bottom:4px} /* cabeçalho sempre no topo; até o 1º bloco: 24 px (gap 20 + 4) */
.ht-page > .flash{order:-1;margin:0} /* o gap da página (20 px) já espaça os avisos */
.ht-main.is-loading .ht-page > :not(.ht-page-head){opacity:.5;transition:opacity .15s .1s;pointer-events:none}

/* Cabeçalho da página */
.ht-page-head{max-width:none;width:auto;margin:0 calc(-1 * var(--ht-content-pad));padding:20px var(--ht-content-pad) 16px;background:var(--ht-surface);border-bottom:1px solid var(--ht-line);
  display:flex;flex-direction:column;gap:12px}
.ht-page-head__row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;max-width:var(--ht-content-max)}
.ht-page-head__titles{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}
.ht-page-head__title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.ht-page-head__sub{margin:0;font-size:13px;color:var(--ht-ink-3)}
.ht-page-head__sub strong{color:var(--ht-ink-2);font-weight:600}
.ht-page-head__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ht-page-head__filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:var(--ht-content-max)}
.ht-page-head .ht-tabs{margin:0 calc(-1 * var(--ht-content-pad)) -16px;padding:0 var(--ht-content-pad);border-bottom:0}
.ht-crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--ht-ink-3)}
.ht-crumbs a{color:var(--ht-ink-3);text-decoration:none}
.ht-crumbs a:hover{color:var(--ht-accent)}
/* Filtro global: rótulo (Marca / Canal / Período) + controle */
.ht-filter{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}
.ht-filter__label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ht-ink-3);white-space:nowrap}
.ht-range{display:inline-flex;align-items:center;gap:6px;height:var(--ht-control);padding:0 4px 0 10px;border:1px solid var(--ht-line-strong);border-radius:var(--ht-radius-md);background:var(--ht-surface);
  font-size:13px;color:var(--ht-ink);max-width:100%}
.ht-range > svg{color:var(--ht-ink-3);flex:none}
.ht-range.is-on{border-color:var(--ht-accent);box-shadow:0 0 0 1px var(--ht-accent)}
.ht-range input[type=date]{height:28px;width:auto;padding:0 4px;border:0;background:transparent;font:inherit;font-size:13px;color:var(--ht-ink);box-shadow:none;min-width:0}
.ht-range input[type=date]:focus{box-shadow:none;outline:none}
.ht-range:focus-within{border-color:var(--ht-accent);box-shadow:0 0 0 3px var(--ht-accent-ring)}
.ht-range__sep{color:var(--ht-ink-3)}

/* Resumo dos filtros no cabeçalho (só leitura: abre o drawer) + botão "Filtros" com a contagem dos que estão fora do padrão */
.ht-page-head__summary{display:flex;flex-wrap:wrap;gap:6px;max-width:var(--ht-content-max)}
.ht-sumchip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px;border:1px solid var(--ht-line);border-radius:var(--ht-radius-pill);background:var(--ht-surface);
  color:var(--ht-ink-3);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ht-sumchip strong{color:var(--ht-ink);font-weight:600}
.ht-sumchip:hover{border-color:var(--ht-line-strong)}
.ht-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:var(--ht-radius-pill);background:var(--ht-accent);color:var(--ht-surface);font-size:11px;font-weight:600}

/* Drawer de filtros: painel à direita (no celular, tela cheia de baixo para cima) */
.ht-page > .ht-drawer,.ht-drawer{position:fixed;inset:0 0 0 auto;width:min(380px,100vw);max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ht-ink);overflow:visible}
.ht-drawer::backdrop{background:color-mix(in srgb,var(--ht-ink) 30%,transparent)}
.ht-drawer[open]{animation:ht-drawer-in .18s ease-out}
@keyframes ht-drawer-in{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
.ht-drawer__box{display:flex;flex-direction:column;height:100%;background:var(--ht-surface);box-shadow:var(--ht-shadow-2)}
.ht-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;padding-top:max(16px,env(safe-area-inset-top));border-bottom:1px solid var(--ht-line)}
.ht-drawer__body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px;display:flex;flex-direction:column;gap:20px}
.ht-drawer__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--ht-line-soft)}
.ht-drawer__foot > .ht-btn{flex:none}
.ht-drawer .ht-filter{flex-direction:column;align-items:stretch;gap:8px}
.ht-drawer .ht-seg{display:flex;flex-wrap:wrap;overflow:visible}
.ht-drawer .ht-seg > *{flex:1 1 auto;justify-content:center}
.ht-drawer .ht-range{width:100%}
.ht-drawer .ht-range input[type=date]{flex:1;width:0}
.ht-drawer .aff-select,.ht-drawer .ht-select{max-width:none;width:100%}
body:has(.ht-drawer[open]){overflow:hidden}
@media (prefers-reduced-motion:reduce){ .ht-drawer[open]{animation:none} }

/* Carregando (troca de tela): barra de 3 px só depois de 150 ms, aviso aos 8 s */
.ht-progress{position:fixed;top:env(safe-area-inset-top);left:0;right:0;height:3px;z-index:1000;pointer-events:none;opacity:0;transition:opacity .2s}
.ht-progress.is-on{opacity:1}
.ht-progress i{display:block;height:100%;width:0;background:var(--ht-accent);border-radius:0 2px 2px 0;transition:width .3s ease-out}
.ht-slow{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:1000;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 14px;
  background:var(--ht-surface);border-radius:var(--ht-radius-lg);box-shadow:var(--ht-shadow-2);font-size:13px;color:var(--ht-ink-2);max-width:calc(100vw - 32px)}
.ht-slow[hidden]{display:none}
.ht-loading-head .ht-page-head__sub{color:var(--ht-ink-3)}

/* ⌘K */
.ht-cmdk{padding:0;border:0;background:transparent;width:min(560px,calc(100vw - 32px));max-width:none;margin:12vh auto auto;overflow:visible;color:var(--ht-ink)}
.ht-cmdk::backdrop{background:color-mix(in srgb,var(--ht-ink) 45%,transparent)}
.ht-cmdk__box{background:var(--ht-surface);border-radius:var(--ht-radius-lg);box-shadow:var(--ht-shadow-2);overflow:hidden;display:flex;flex-direction:column;max-height:70vh}
.ht-cmdk__input{display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--ht-line);color:var(--ht-ink-3)}
.ht-cmdk__input input{flex:1;min-width:0;height:52px;border:0;outline:none;background:transparent;font:inherit;font-size:15px;color:var(--ht-ink);box-shadow:none;padding:0}
.ht-cmdk__input input:focus{box-shadow:none}
.ht-cmdk__list{list-style:none;margin:0;padding:6px;overflow-y:auto;overscroll-behavior:contain}
.ht-cmdk__list li{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:var(--ht-radius-md);font-size:14px;cursor:pointer}
.ht-cmdk__list li[hidden]{display:none}
.ht-cmdk__list li span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-cmdk__list li small{font-size:12px;color:var(--ht-ink-3)}
.ht-cmdk__list li[aria-selected=true]{background:var(--ht-accent-soft);color:var(--ht-accent-hover)}
.ht-cmdk__list li svg{color:var(--ht-ink-3);flex:none}
.ht-cmdk__empty{margin:0;padding:14px 16px;font-size:13px;color:var(--ht-ink-3)}
.ht-cmdk__empty[hidden]{display:none}
.ht-cmdk__foot{margin:0;padding:8px 14px;border-top:1px solid var(--ht-line-soft);font-size:12px;color:var(--ht-ink-3)}
.ht-cmdk__foot kbd{margin-right:2px}

/* Abaixo de 800 px: barra do topo + sidebar em gaveta */
@media (max-width:799px){
  .ht-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start} /* tela curta: a barra do topo não estica */
  .ht-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:8px;height:56px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
    padding-top:env(safe-area-inset-top);box-sizing:content-box;background:var(--ht-surface);border-bottom:1px solid var(--ht-line)}
  .ht-topbar .ht-brand{margin-right:auto}
  .ht-topbar__btn{width:44px;height:44px;border-color:var(--ht-line)}
  .ht-side{position:fixed;top:0;left:0;bottom:0;width:min(300px,86vw);height:auto;transform:translateX(-100%);transition:transform .2s ease;box-shadow:var(--ht-shadow-2);visibility:hidden}
  .ht-side.is-open{transform:none;visibility:visible}
  .ht-side__close{display:inline-flex;width:44px;height:44px}
  .ht-nav__item{height:44px}
  .ht-page{--ht-content-pad:16px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .ht-page-head{padding:14px 16px}
  .ht-page-head__filters{flex-direction:column;align-items:stretch}
  .ht-filter{flex-direction:column;align-items:stretch;gap:5px}
  .ht-filter .ht-seg{width:100%}
  .ht-filter .ht-seg > *{flex:1;justify-content:center}
  .ht-range{width:100%}
  .ht-range input[type=date]{flex:1;width:0}
  .ht-cmdk{margin-top:8vh}
}
@media (prefers-reduced-motion:reduce){ .ht-side{transition:none} .ht-progress i{transition:none} }

/* Carregando a troca de tela: o splash dentro da área de conteúdo (o shell e o título ficam) */
.ht-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:min(60vh,520px);padding:48px 16px}
.ht-loading .ht-splash__mark{margin-bottom:0}
.ht-loading .ht-splash__load{width:240px}

/* Splash (Splash.dc.html): só no PWA instalado, na primeira abertura; no navegador comum nunca aparece */
.ht-splash{display:none}
@media (display-mode:standalone){
  .ht-splash{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:48px 24px;
    background:var(--ht-canvas);transition:opacity .25s}
  .ht-splash.is-done{opacity:0;pointer-events:none}
}
.ht-splash__brand{display:flex;flex-direction:column;align-items:center;gap:4px}
.ht-splash__mark{display:flex;align-items:flex-end;justify-content:center;gap:5px;width:72px;height:72px;padding-bottom:18px;margin-bottom:16px;border-radius:18px;background:var(--ht-ink);animation:ht-pulse 1.6s ease-in-out infinite}
.ht-splash__mark i{width:8px;border-radius:2px;background:var(--ht-surface);transform-origin:bottom;animation:ht-fill 1.2s ease-in-out infinite}
.ht-splash__mark i:nth-child(1){height:22px}
.ht-splash__mark i:nth-child(2){height:34px;animation-delay:.15s}
.ht-splash__mark i:nth-child(3){height:28px;background:var(--ht-accent);animation-delay:.3s}
.ht-splash__name{font-size:24px;font-weight:700;letter-spacing:-.02em}
.ht-splash__ws{font-size:13px;color:var(--ht-ink-3)}
.ht-splash__load{width:280px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.ht-splash__bar{width:100%;height:4px;border-radius:2px;background:var(--ht-line);overflow:hidden}
.ht-splash__bar i{display:block;width:40%;height:100%;border-radius:2px;background:var(--ht-accent);animation:ht-bar 1.4s cubic-bezier(.4,0,.2,1) infinite}
.ht-splash__msg{font-size:13px;color:var(--ht-ink-2)}
@keyframes ht-pulse{0%,100%{transform:scale(1)}50%{transform:scale(.92)}}
@keyframes ht-bar{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
@keyframes ht-fill{0%{transform:scaleY(.25)}50%{transform:scaleY(1)}100%{transform:scaleY(.25)}}
@media (prefers-reduced-motion:reduce){ .ht-splash__mark,.ht-splash__mark i,.ht-splash__bar i{animation:none} }

/* Jogadores no celular: lista compacta no lugar da tabela */
.pl-list{display:none;list-style:none;margin:0;padding:0}
.pl-item{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-bottom:1px solid var(--ht-line-soft);color:var(--ht-ink);text-decoration:none}
.pl-list li:last-child .pl-item{border-bottom:0}
.pl-item:active,.pl-item:hover{background:var(--ht-row-hover);color:var(--ht-ink)}
.pl-item__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pl-item__id{display:inline-flex;align-items:center;gap:6px;font-family:var(--ht-font-mono);font-size:13px;font-weight:600;color:var(--ht-accent)}
.pl-item__id .ht-tag{font-family:var(--ht-font)}
.pl-item__net{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.pl-item__meta,.pl-item__nums{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:12px;color:var(--ht-ink-2)}
.pl-item__meta > span{display:inline-flex;align-items:center}
.pl-item__nums strong{color:var(--ht-ink);font-weight:600;font-variant-numeric:tabular-nums}
.pl-item__when{margin-left:auto;color:var(--ht-ink-3)}
@media (max-width:600px){ .pl-table{display:none} .pl-list{display:block} }

/* Ficha do jogador: atividade de 60 dias e linha do tempo */
.pl-bars{display:flex;align-items:flex-end;gap:2px;height:140px;background-image:linear-gradient(var(--ht-line-soft) 1px,transparent 1px);background-size:100% 25%}
.pl-bars > span{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:1px;height:100%;min-width:0}
.pl-bars i{display:block;width:45%;border-radius:2px 2px 0 0}
.pl-bars__dep{background:var(--ht-viz-1)}.pl-bars__wd{background:var(--ht-viz-2)}
.pl-bars__x{display:flex;justify-content:space-between;font-size:11px;color:var(--ht-ink-3)}
.pl-tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pl-tl__item{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 0;border-top:1px solid var(--ht-line-soft)}
.pl-tl__item:first-child{border-top:0}
.pl-tl__dot{width:10px;height:10px;margin:4px 0 0 4px;border-radius:var(--ht-radius-pill);background:var(--ht-viz-4)}
.pl-tl__item--ftd .pl-tl__dot,.pl-tl__item--dep .pl-tl__dot{background:var(--ht-viz-1)}
.pl-tl__item--wd .pl-tl__dot{background:var(--ht-viz-2)}
.pl-tl__item--reg .pl-tl__dot{background:var(--ht-surface);box-shadow:inset 0 0 0 2px var(--ht-ink-3)}
.pl-tl__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.pl-tl__title{font-size:13px;font-weight:600}
.pl-tl__sub{overflow-wrap:anywhere}
.pl-tl__at{font-size:12px;color:var(--ht-ink-3);white-space:nowrap}

@media (prefers-reduced-motion:reduce){ .ht-btn,.ht-seg > *,.ht-tab{transition:none} }
