/* Equipe: tela redesenhada em 31/10/2026 (classes tm-*). Mesmo padrão de Serviços: cabeçalho, abas, busca,
   4 blocos-resumo que também filtram, lista em um cartão, botão fixo no celular, gaveta de 768 a 1279 px e
   painel ao lado a partir de 1280 px. Só tokens; nenhum hex. As regras antigas da tela (team.css, services.css,
   catalog.css, client-forms.css) ficam onde estão: outras telas usam parte delas. */
.tm { --tm-bar: calc(76px + env(safe-area-inset-bottom, 0px)); padding: var(--sp-2) 0 var(--sp-6); max-width: 760px; margin-inline: 0; color: var(--ink); scroll-padding-bottom: calc(var(--tm-bar) + 16px); }
.tm.has-bar { padding-bottom: calc(var(--tm-bar) + var(--sp-6)); }
.tm [hidden], .tm-layer [hidden] { display: none !important; }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.tm-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.tm-head h1:focus { outline: none; }
.tm-head-actions { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; }
.tm-head-actions .btn { display: none; min-height: 48px; }
.tm-readonly { margin: calc(var(--sp-2) * -1) 0 var(--sp-3); padding: 0; background: none; border: 0; color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* abas */
.tm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; margin-bottom: var(--sp-3); background: var(--surface-2); border-radius: 12px; }
.tm-tab { min-height: 44px; padding: 0 var(--sp-1); border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tm-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--rule-strong); }
/* busca e blocos */
.tm-find { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.tm-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink-mute); }
.tm-search svg { flex: none; }
.tm-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.tm-search input::-webkit-search-cancel-button { display: none; }
.tm-search-clear { width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.tm-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.tm-block { display: grid; align-content: start; gap: var(--sp-1); min-height: 76px; padding: var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.tm-block b { font-size: 22px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-block span { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.tm-block[data-tone="attn"] b { color: var(--attn); }
.tm-block[data-tone="zero"] b { color: var(--ink-mute); }
.tm-block[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tm-block:disabled { cursor: progress; }
.tm-score.is-empty .tm-block { background: transparent; border-color: var(--rule-soft); min-height: 64px; }
.tm-score.is-empty .tm-block b { color: var(--ink-mute); font-weight: 600; }
.tm-count { min-height: 20px; margin: 0 0 var(--sp-2); color: var(--ink-mute); font-size: 13px; }
#tm-records { scroll-padding-bottom: calc(var(--tm-bar) + 16px); }
#tm-records:focus { outline: none; }
/* lista */
.tm-ul { list-style: none; margin: 0; padding: 0; }
.tm-records { margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.tm-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; column-gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-soft); min-height: 72px; box-sizing: border-box; }
.tm-row:first-child { border-top: 0; }
.tm-row.is-selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.tm-row:has(.tm-name:focus-visible) { outline: 2px solid var(--brand); outline-offset: -3px; }
.tm-av, .tm-big-av { flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.tm-av { width: 40px; height: 40px; font-size: 14px; }
.tm-big-av { width: 56px; height: 56px; font-size: 18px; }
.tm-av img, .tm-big-av img { width: 100%; height: 100%; object-fit: cover; }
.tm-row.is-off .tm-av { background: var(--surface-2); color: var(--ink-2); }
.tm-row.is-selected .tm-av { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); }
.tm-body { display: grid; gap: 2px; min-width: 0; }
.tm-name { justify-self: start; max-width: 100%; padding: 0; min-height: 24px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: left; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.tm-name:focus { outline: none; }
.tm-name::after { content: ""; position: absolute; inset: 0; min-height: 72px; }
.tm-meta { font-size: 14px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.tm-line3 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-2); font-size: 13px; line-height: 1.35; color: var(--ink-mute); }
.tm-line3 > span { display: inline-flex; align-items: center; gap: 4px; }
.tm-pill { padding: 1px 8px; border-radius: 10px; background: var(--attn-bg); color: var(--attn); font-weight: 700; }
.tm-ok { color: var(--ink-2); }
.tm-warn { color: var(--attn); font-weight: 600; }
.tm-row.is-selected .tm-warn { color: var(--ink-2); }
.tm-row.is-selected .tm-warn::before { content: none; }
.tm-row.is-selected .tm-line3 { color: var(--ink-2); }
.tm-row.is-selected .tm-pill { color: var(--ink); }
.tm-row.is-selected .tm-pill svg { color: var(--attn); }
.tm-go { display: grid; place-items: center; color: var(--ink-mute); pointer-events: none; }
.tm-go svg { transform: rotate(-90deg); }
.tm-row.is-off .tm-name { color: var(--ink-2); }
.tm-row.has-react { grid-template-columns: 40px minmax(0, 1fr) auto; }
.tm-react { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--brand-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
/* estados */
.tm-state { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-6) var(--sp-4); text-align: center; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; }
.tm-state > svg { color: var(--ink-mute); flex: none; }
.tm-state h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.tm-state h2:focus { outline: none; }
.tm-state p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-state .btn { min-height: 48px; margin-top: var(--sp-2); }
.tm-state.is-error { background: var(--bad-bg); border-color: transparent; }
.tm-state.is-error > svg, .tm-state.is-error h2 { color: var(--bad); }
.tm-skel { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.tm-skel-row { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-soft); height: 76px; box-sizing: border-box; }
.tm-skel-row:first-child { border-top: 0; }
.tm-skel i { display: block; height: 14px; border-radius: 7px; background: var(--rule-strong); opacity: .55; animation: tm-pulse 1.4s ease-in-out infinite; }
.tm-skel i:nth-child(2) { width: 55%; height: 12px; }
@keyframes tm-pulse { 50% { opacity: .3; } }
.tm-first { display: grid; gap: var(--sp-2); padding: var(--sp-4); background: var(--surface); border: 1.5px solid var(--brand); border-radius: 12px; margin-bottom: var(--sp-3); }
.tm-first h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.tm-first > p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-first .btn { min-height: 48px; width: 100%; justify-content: center; }
.tm-panel-empty { display: grid; gap: var(--sp-2); padding: var(--sp-5); text-align: center; color: var(--ink-2); font-size: 14px; }
.tm-panel-empty h2 { margin: 0; font-size: 18px; color: var(--ink); }
.tm-panel-empty p { margin: 0; }
.tm-panel-empty.is-loading { min-height: 126px; }
.tm-only-wide { display: none; }
/* barra fixa (celular) */
.tm-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; box-sizing: border-box; height: var(--tm-bar); padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1.5px solid var(--rule-strong); display: flex; }
.tm-bar .btn { width: 100%; min-height: 48px; justify-content: center; }
.tm .btn:disabled, .tm-layer .btn:disabled { opacity: .5 !important; cursor: not-allowed; }
/* foco visível em tudo */
:is(.tm, .tm-layer) :is(button, summary, a, select, [tabindex]):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:is(.tm, .tm-layer) .tm-name:focus-visible { outline: none; }
:is(.tm, .tm-layer) .tm-tab:focus-visible { outline-offset: -2px; }
:is(.tm, .tm-layer) :is(.tm-check, .tm-switch-row, .tm-nopause, .tm-vis):has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
:is(.tm, .tm-layer) :is(.tm-search, .tm-input):focus-within { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
:is(.tm, .tm-layer) :is(.tm-search, .tm-input) :is(input, textarea, select):is(:focus, :focus-visible) { outline: 0 !important; box-shadow: none !important; }
:is(.tm, .tm-layer) :is(h1, h2)[tabindex="-1"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
/* botões em forma de botão (alvo de 44 px, 8 px entre eles) */
.tm-quiet, .tm-link, .tm-danger, .tm-danger-soft, .tm-more-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 44px; min-width: 44px; padding: 0 var(--sp-3); border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.tm-quiet, .tm-more-btn { border: 1.5px solid var(--rule-strong); background: var(--surface); color: var(--ink); }
.tm-link { border: 0; background: var(--brand-soft); color: var(--brand-text); }
.tm-danger { border: 1.5px solid var(--bad); background: var(--bad-bg); color: var(--bad); }
.tm-danger-soft { border: 1.5px solid var(--bad); background: var(--surface); color: var(--bad); }
.tm-btn-danger { background: var(--bad); border-color: var(--bad); color: var(--surface); box-shadow: none; }
.tm-btn-danger:hover { background: var(--bad); }
/* ---------- ficha e formulário ---------- */
.tm-layout { display: block; }
.tm-panel { display: none; }
.tm-panel:focus { outline: none; }
.tm-form { display: flex; flex-direction: column; min-height: 0; flex: 1; position: relative; }
.tm-scroll { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; flex: 1; min-height: 0; overflow: auto; padding: var(--sp-4); padding-bottom: var(--sp-6); scroll-padding-bottom: calc(var(--tm-bar) + 16px); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.tm-form-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--rule-soft); }
.tm-form-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.tm-form-crumb { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tm-form-gap { width: 44px; }
.tm-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 10px; }
.tm-back { margin-right: 0; margin-left: -10px; }
.tm-back-ic svg { transform: rotate(90deg); }
.tm-x-ic { display: none; }
.tm-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--rule-soft); min-width: 0; }
.tm-scroll > .tm-sec:first-of-type, .tm-scroll > .tm-fhead + .tm-sec { border-top: 0; padding-top: 0; }
.tm-sec h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.tm-sec > p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.tm-fhead { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.tm-fhead h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.tm-fhead p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.tm-chip-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok); }
.tm-chip-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tm-chip-on.is-off { color: var(--ink-2); }
.tm-chip-on.is-off i { background: var(--ink-mute); }
.tm-contact { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.tm-acts .btn { min-height: 48px; justify-content: center; padding-inline: var(--sp-2); }
.tm-edit-desk { display: none !important; }
.tm-note { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: 12px; background: var(--attn-bg); color: var(--attn); font-size: 14px; font-weight: 600; line-height: 1.4; }
.tm-note > span, .tm-note.is-flex { display: flex; gap: var(--sp-2); align-items: flex-start; }
.tm-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.tm-note .btn { justify-self: start; min-height: 44px; }
.tm-note.is-quiet, .tm-note.is-ok { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.tm-note.is-ok { display: flex; gap: var(--sp-2); align-items: flex-start; }
.tm-note.is-ok svg { color: var(--ok); }
.tm-note.is-warn { background: var(--attn-bg); color: var(--attn); font-weight: 600; display: flex; gap: var(--sp-2); align-items: flex-start; }
.tm-lines { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.tm-lines > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--rule-soft); font-size: 15px; overflow-wrap: anywhere; }
.tm-lines > li:first-child { border-top: 0; }
.tm-lines small { display: block; font-size: 13px; color: var(--ink-mute); line-height: 1.3; }
.tm-lines .is-attn small { color: var(--attn); font-weight: 600; }
.tm-lines b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.tm-lines b.is-own { font-weight: 800; color: var(--brand-text); }
.tm-more + .tm-lines, .tm-more .tm-lines { margin-top: var(--sp-2); }
.tm-foot-note, .tm-sec > p.tm-foot-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-mute); }
.tm-wrap { overflow-wrap: anywhere; }
.tm-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-lead { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; display: flex; gap: var(--sp-2); align-items: flex-start; }
.tm-lead svg { flex: none; margin-top: 2px; }
.tm-ok-line { margin: 0; display: flex; gap: var(--sp-2); align-items: flex-start; font-size: 15px; }
.tm-ok-line svg { flex: none; margin-top: 2px; color: var(--ok); }
.tm-method { display: grid; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--rule-soft); border-radius: 12px; }
.tm-method strong { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.tm-method span { font-size: 14px; color: var(--ink-2); }
.tm-method small { font-size: 13px; color: var(--ink-mute); }
.tm-method .btn { justify-self: start; min-height: 44px; margin-top: var(--sp-1); }
.tm-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tm-btns .btn { min-height: 44px; }
.tm-more { border-top: 1px solid var(--rule-soft); padding-top: var(--sp-2); }
.tm-more summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: 15px; font-weight: 700; color: var(--ink); list-style: none; cursor: pointer; }
.tm-more summary::-webkit-details-marker { display: none; }
.tm-more summary svg { transition: transform .15s; flex: none; }
.tm-more[open] summary svg { transform: rotate(180deg); }
.tm-more > div, .tm-more > dl { padding-top: var(--sp-2); }
.tm-sees { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-sees p { margin: 0; }
.tm-sees svg { vertical-align: -2px; }
/* avisos das comissões (linha: ícone + texto) */
.tm-cnote { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3); margin-bottom: var(--sp-3); border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.tm-cnote svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.tm-cnote.is-ok svg { color: var(--ok); }
.tm-cnote.is-warn { background: var(--attn-bg); color: var(--attn); font-weight: 600; }
#tm-com-status .tm-cnote { margin-bottom: 0; }
/* campos */
.tm-formgrid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.tm-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); min-width: 0; }
.tm-field > label, .tm-pct > label { font-size: 14px; font-weight: 600; }
.tm-field small, .tm-pct small { font-size: 13px; color: var(--ink-mute); line-height: 1.4; }
.tm-field-err, .tm-sec > p.tm-field-err { display: block; margin: 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.tm-input { box-sizing: border-box; position: relative; width: 100%; min-height: 48px; padding: 0 var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; display: flex; align-items: center; gap: var(--sp-2); }
.tm-input input, .tm-input select { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; padding: 0; }
.tm-input input::placeholder { color: var(--ink-mute); opacity: 1; }
.tm-input em { font-style: normal; color: var(--ink-mute); }
.tm-input:has([aria-invalid="true"]) { border-color: var(--bad); }
.tm-input.is-select select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer; }
.tm-input.is-select > svg { position: absolute; right: var(--sp-3); pointer-events: none; }
.tm-select-btn { justify-content: space-between; text-align: left; cursor: pointer; }
.tm-select-btn.is-ph span { color: var(--ink-mute); }
.tm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.tm-check { position: relative; box-sizing: border-box; width: 100%; color: var(--ink); display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; }
.tm-check > input, .tm-switch-row > input, .tm-nopause > input, .tm-vis > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tm-check small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.tm-box { flex: none; width: 24px; height: 24px; border: 2px solid var(--rule-strong); border-radius: 6px; display: grid; place-items: center; color: transparent; }
.tm-check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.tm-check:has(input:checked) .tm-box { background: var(--btn-fill); border-color: var(--btn-fill); color: var(--btn-ink); }
.tm-check.is-error { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.tm-fieldset { display: grid; gap: var(--sp-4); margin: 0; padding: 0; border: 0; min-width: 0; }
.tm-svc-group { display: grid; gap: var(--sp-2); }
.tm-svc-group h4 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.tm-svc-row { display: grid; gap: var(--sp-2); }
.tm-pct { display: grid; gap: var(--sp-1); margin-left: var(--sp-5); }
.tm-pct .tm-input { max-width: 160px; }
.tm-svc-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-size: 14px; color: var(--ink-2); }
.tm-note[role="status"]:not([hidden]) { display: flex; }
.tm-nomatch { margin: 0; color: var(--ink-mute); font-size: 14px; }
.tm-svcfilter { margin: 0; }
.tm-photo { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); }
.tm-photo-info { display: grid; min-width: 0; font-size: 14px; }
.tm-photo-info small { color: var(--ink-mute); font-size: 13px; }
.tm-photo-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); }
@media (max-width: 359.98px) { .tm-photo { grid-template-columns: 56px minmax(0, 1fr); } .tm-photo-acts { grid-column: 1 / -1; justify-content: flex-start; } }
.tm-confirm { margin-top: var(--sp-1); }
.tm-danger-zone .tm-gap { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); padding-top: var(--sp-4); border-top: 2px solid var(--rule-strong); }
.tm-danger-zone p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-mute); }
.tm-danger-zone .btn, .tm-danger-zone .tm-danger { justify-self: start; min-height: 44px; }
.tm-dlg-error { margin: 0; padding: var(--sp-3); border-radius: 12px; background: var(--bad-bg); font-size: 14px; font-weight: 600; color: var(--bad); }
.tm-dlg-error[hidden] { display: none; }
.tm-foot { flex: none; box-sizing: border-box; padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1.5px solid var(--rule-strong); display: grid; gap: var(--sp-2); position: relative; }
.tm-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--surface)); }
.tm-foot .btn { min-height: 48px; width: 100%; justify-content: center; }
.tm-j-sum { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
/* jornada */
.tm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: 14px; color: var(--ink-2); }
.tm-days { display: grid; gap: var(--sp-2); }
.tm-day { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin: 0; min-width: 0; padding: var(--sp-2) var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); }
.tm-day.is-off { background: var(--surface-2); border-color: var(--rule-soft); color: var(--ink-2); }
.tm-switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 44px; cursor: pointer; flex-direction: row-reverse; }
.tm-switch-row b { font-size: 16px; margin-right: auto; }
.tm-switch { flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--rule-strong); position: relative; display: block; }
.tm-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); }
.tm-switch-row:has(input:checked) .tm-switch, .tm-vis:has(input:checked) .tm-switch { background: var(--btn-fill); }
.tm-switch-row:has(input:checked) .tm-switch i, .tm-vis:has(input:checked) .tm-switch i { left: 21px; }
.tm-times { display: grid; grid-template-columns: 84px 1fr 1fr; gap: var(--sp-2); align-items: center; }
.tm-times > span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.tm-times .tm-input { min-height: 44px; }
.tm-times input[type="time"] { text-align: center; font-variant-numeric: tabular-nums; }
.tm-nopause { position: relative; grid-column: 2 / -1; display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; font-size: 14px; cursor: pointer; }
.tm-nopause:has(input:checked) .tm-box { background: var(--btn-fill); border-color: var(--btn-fill); color: var(--btn-ink); }
.tm-nopause:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.tm-nopause > input { position: absolute; inset: 0; }
.tm-off-note { display: none; font-size: 13px; color: var(--ink-mute); }
.tm-day.is-off .tm-off-note { display: block; }
.tm-day.is-off .tm-times { display: none; }
/* funções */
.tm-role-list { margin-bottom: var(--sp-3); }
.tm-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3); border-top: 1px solid var(--rule-soft); min-height: 56px; }
.tm-role:first-child { border-top: 0; }
.tm-role-pick { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.tm-role-pick small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.tm-role-del { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; min-width: 44px; padding: 0 var(--sp-3); border: 1.5px solid var(--bad); border-radius: 12px; background: var(--surface); color: var(--bad); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tm-newcat { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
/* ---------- camadas ---------- */
.tm-scrim { position: fixed; inset: 0; z-index: var(--tm-z, 900); background: rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .tm-scrim { background: rgba(0, 0, 0, .72); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tm-scrim { background: rgba(0, 0, 0, .72); } }
.tm-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--tm-z, 900) + 1); max-height: 92dvh; display: flex; flex-direction: column; box-sizing: border-box; background: var(--surface); color: var(--ink); border-radius: 16px 16px 0 0; border: 1.5px solid var(--rule-strong); border-bottom: 0; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); overflow: hidden; }
.tm-sheet:focus { outline: none; }
.tm-sheet .tm-form-head h2 { font-size: 20px; }
.tm-sheet .tm-scroll { padding-bottom: var(--sp-4); }
.tm-sheet.is-form { height: 92dvh; }
.tm-form-sheet { position: fixed; inset: 0; z-index: calc(var(--tm-z, 900) + 1); height: 100dvh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); }
.tm-form-sheet:focus { outline: none; }
.tm-dialog { position: fixed; left: var(--sp-4); right: var(--sp-4); top: 50%; transform: translateY(-50%); z-index: calc(var(--tm-z, 900) + 2); box-sizing: border-box; display: grid; gap: var(--sp-3); padding: var(--sp-5); background: var(--surface); color: var(--ink); border-radius: 16px; max-width: 420px; max-height: 90dvh; overflow: auto; margin-inline: auto; border: 1.5px solid var(--rule-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.tm-dialog:focus { outline: none; }
.tm-dialog h2 { margin: 0; font-size: 20px; font-weight: 700; }
.tm-dialog p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tm-dialog .tm-dlg-error { color: var(--bad); }
.tm-dlg-actions { display: grid; gap: var(--sp-2); }
.tm-dlg-actions .btn { min-height: 48px; width: 100%; justify-content: center; }
/* ---------- acesso ---------- */
.tm-acc-grid { display: grid; gap: var(--sp-3); }
.tm-acc-group { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: visible; }
.tm-ghd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-3); min-height: 36px; padding: var(--sp-2) var(--sp-4); background: var(--surface-2); color: var(--ink-2); border-radius: 12px 12px 0 0; }
.tm-ghd h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tm-ghd small { font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.tm-acc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tm-acc { position: relative; display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-soft); }
.tm-acc:first-child { border-top: 0; }
.tm-acc-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.tm-acc-top b { font-size: 16px; overflow-wrap: anywhere; }
.tm-acc-top small { display: block; font-size: 13px; color: var(--ink-mute); overflow-wrap: anywhere; }
.tm-acc.is-blocked .tm-acc-top b { color: var(--ink-2); }
.tm-acc-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tm-acc-acts .btn, .tm-acc-acts .tm-danger-soft { min-height: 44px; }
.tm-acc-top .tm-av { background: var(--brand-soft); }
.tm-menu { position: absolute; right: var(--sp-4); top: 56px; z-index: 30; min-width: 220px; display: grid; gap: var(--sp-2); padding: var(--sp-2); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.tm-menu button { justify-content: flex-start; min-height: 44px; }
.tm-acc-empty { display: grid; gap: var(--sp-2); padding: var(--sp-4); justify-items: start; }
.tm-acc-empty p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tm-roles { margin-top: var(--sp-3); }
.tm-roles dl { display: grid; gap: var(--sp-2); margin: 0; }
.tm-roles dt { display: flex; gap: var(--sp-2); align-items: center; font-weight: 700; font-size: 14px; }
.tm-roles dd { margin: 2px 0 var(--sp-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
/* ---------- comissões ---------- */
.tm-month { max-width: 420px; margin-bottom: var(--sp-3); }
.tm-comrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n c" "m c" "p p"; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-soft); align-items: center; }
.tm-comrow:first-child { border-top: 0; }
.tm-comrow .c-n { grid-area: n; font-size: 16px; overflow-wrap: anywhere; }
.tm-comrow .c-m { grid-area: m; font-size: 13px; color: var(--ink-mute); }
.tm-comrow .c-c { grid-area: c; }
.tm-comrow .tm-pay { grid-area: p; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.tm-val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; display: grid; justify-items: end; }
.tm-val small { font-size: 13px; font-weight: 600; }
.tm-pay small { font-size: 13px; color: var(--ink-mute); }
.tm-pay .tm-ok { color: var(--ok); display: inline-flex; gap: 4px; align-items: center; }
.tm-comrow .btn, .tm-comrow .tm-quiet { min-height: 44px; }
.tm-comrow.is-diverges .c-n::after { content: " •"; color: var(--attn); }
.tm-comhead { display: none; }
.tm-total { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-com-table { margin-bottom: var(--sp-3); }
#tm-com-status { margin-bottom: var(--sp-3); }
#tm-com-status:empty { display: none; }
.tm-vis { position: relative; display: flex; gap: var(--sp-3); align-items: center; min-height: 48px; margin-top: var(--sp-3); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tm-vis > input { width: 52px; right: auto; }
.tm-history { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.tm-history-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.tm-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tm-chip { min-height: 44px; padding: 0 var(--sp-4); border: 1.5px solid var(--rule-strong); border-radius: 22px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tm-chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.tm-btns + .tm-history { margin-top: var(--sp-3); }
.tm-com-table + .tm-btns { margin-bottom: var(--sp-2); }
@media (max-width: 599.98px) { .tm-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 339px) { .tm-two { grid-template-columns: minmax(0, 1fr); } .tm-newcat { grid-template-columns: 1fr; } .tm-times { grid-template-columns: 1fr 1fr; } .tm-times > span { grid-column: 1 / -1; } .tm-nopause { grid-column: 1 / -1; } }
@media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) { .tm-name:hover { text-decoration: underline; } }
@media (prefers-reduced-motion: reduce) { .tm-skel i { animation: none; } .tm-more summary svg { transition: none; } }
/* ---------- tablet: 768 a 1279 px (gaveta de 520 px) ---------- */
@media (min-width: 768px) {
  .tm { max-width: 1160px; padding-bottom: var(--sp-6); }
  .tm.has-bar { padding-bottom: var(--sp-6); }
  .tm-layout { max-width: 820px; }
  .tm.is-solo .tm-layout { max-width: 980px; }
  .tm-head-actions .btn { display: inline-flex; }
  .tm-bar { display: none; }
  .tm-score { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tm-score.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-form-sheet { inset: 0 0 0 auto; width: min(520px, 100vw); border-left: 1.5px solid var(--rule-strong); box-shadow: -12px 0 40px rgba(0, 0, 0, .25); }
  .tm-back-ic, .tm-form-crumb { display: none; }
  .tm-x-ic { display: block; }
  .tm-back { order: 2; margin: 0 -10px 0 0; }
  .tm-form-gap { display: none; }
  .tm-form-head:has(.tm-back) { flex-direction: row-reverse; }
  .tm-acc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); padding: var(--sp-3); }
  .tm-acc-list > .tm-acc { border: 1px solid var(--rule-soft); border-radius: 12px; align-content: start; }
  .tm-comhead, .tm-comrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 120px 220px; grid-template-areas: none; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .tm-com-table:not(.is-closed) .tm-comhead, .tm-com-table:not(.is-closed) .tm-comrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 140px; }
  .tm-comhead { background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; min-height: 36px; padding-block: 0; }
  .tm-comhead span:nth-child(3), .tm-comrow .c-c { text-align: right; }
  .tm-comrow .c-n, .tm-comrow .c-m, .tm-comrow .c-c, .tm-comrow .tm-pay { grid-area: auto; }
  .tm-comrow .tm-pay { justify-content: flex-end; }
}
/* ---------- computador: painel ao lado a partir de 1280 px ---------- */
@media (min-width: 1280px) {
  .tm { max-width: 1240px; }
  .tm-layout { display: grid; grid-template-columns: minmax(340px, 1fr) clamp(380px, 38%, 460px); gap: var(--sp-5); max-width: none; align-items: start; }
  .tm.is-solo .tm-layout { display: block; max-width: 1040px; }
  .tm.is-solo .tm-panel, .tm.is-error .tm-panel { display: none; }
  .tm-panel { display: flex; flex-direction: column; position: sticky; top: var(--sp-4); height: calc(100dvh - 32px); background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; min-width: 380px; }
  .tm-panel:empty { display: none; }
  .tm-panel .tm-form { height: 100%; }
  .tm-panel .tm-first { margin: 0; border: 0; padding: var(--sp-5); }
  .tm-first.is-mobile { display: none; }
  .tm-only-wide { display: block; }
  .tm-readonly { display: none; }
  .tm-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-score.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-edit-desk { display: inline-flex !important; }
  .tm-acts { display: flex; flex-wrap: wrap; }
  .tm-acts .btn { flex: 1 1 auto; padding-inline: var(--sp-4); }
  .tm-x { display: none; }
  .tm-panel .tm-form-head .tm-x { display: grid; }
  .tm-panel .tm-fade { display: block; }
}
@media (min-width: 1440px) { .tm-score { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1279.98px) { .tm-first.is-desktop { display: none; } }
@media (min-width: 1280px) { .tm-dialog { max-width: 440px; } }
@media (min-width: 1024px) {
  .tm-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100vw - 32px); border-radius: 16px; border-bottom: 1.5px solid var(--rule-strong); max-height: 86dvh; }
  .tm-sheet.is-form { height: auto; max-height: 86dvh; }
}

/* botões de texto na ficha, no editor e nas folhas: 44 px */
:is(.tm, .tm-layer) :is(.tm-form, .tm-sec, .tm-acc, .tm-note, .tm-btns, .tm-quick, .tm-day) .btn { min-height: 44px; }

/* ---- rodada de correção (31/10/2026) ---- */
.tm-hint { font-size: 14px; color: var(--ink-2); }
.tm-skel + .tm-count, .tm-count + .tm-skel { margin-top: 0; }
:is(.tm, .tm-layer) .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
/* anel dos títulos focados por programa: só para quem usa teclado */
html:not([data-tm-kb]) :is(.tm, .tm-layer) :is(h1, h2)[tabindex="-1"]:focus-visible { outline: 0; }
/* acesso: status em linha própria; no celular "Bloquear" mora no menu Mais */
.tm-acc-top small.tm-st { margin-top: 2px; white-space: nowrap; }
.tm-menu-block { display: none; }
@media (max-width: 767.98px) { .tm-inline-block { display: none; } .tm-menu-block { display: inline-flex; } }
.tm-more-btn svg { flex: none; }
/* comissões: texto secundário a 14 px, "40%" não fica órfão, valores alinhados à direita */
.tm-comrow .c-m, .tm-pay small, .tm-val small { font-size: 14px; }
.tm-nw { white-space: nowrap; }
.tm-val { min-width: 104px; font-variant-numeric: tabular-nums; }
@media (min-width: 1280px) {
  /* a janela rola até o fim e o painel não pode subir junto: a margem negativa deixa o painel passar da base do contêiner */
  .tm-panel { margin-bottom: -120px; }
  .tm:not(.is-solo) .tm-layout { min-height: calc(100dvh - 32px); }
}
/* ficha: nome e avatar ficam fixos no topo da rolagem do painel/folha */
.tm-scroll > .tm-fhead { position: sticky; top: calc(var(--sp-4) * -1); z-index: 3; margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) 0; padding: var(--sp-3) var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--rule-soft); }

/* ---- rodada final de acessibilidade (31/10/2026) ---- */
.tm-search input::placeholder, #tm-ed-filter::placeholder { color: var(--ink-mute); opacity: 1; }
.tm-quick-k { flex-basis: 100%; font-weight: 600; color: var(--ink); }
.tm-comrow > .tm-field-err { grid-column: 1 / -1; grid-area: auto; }
@media (max-width: 767.98px) { .tm-acc { gap: var(--sp-3); } }
.tm-search input:disabled { cursor: not-allowed; }
