/* Hoje do Master como painel do dia (desenho aprovado em 28/10/2026). Medidas do desenho: hoje-1acesso/build/gen2.mjs.
   Cartões, carrossel de avisos, "Seu dia até agora", "Para fazer hoje" e agenda. Tokens em tokens.css. */
.is-master { display: flex; flex-direction: column; gap: var(--sp-3); }
.is-master > .hm-grid { margin-top: var(--sp-3); }   /* 12 do gap + 12 = 24 entre o cartão do dia e o bloco "Para fazer hoje" */
.is-master > [hidden] { display: none; }
.is-master .today-head { margin: 0; }
.is-master .hj-urg { margin: 0; }
.is-master .hj-line-box, .is-master .hj-more { margin: 0; }
.hm-card { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--card-rule); border-radius: 18px; padding: 0; }
button.hm-card { cursor: pointer; }
.hm-title { margin: 0; padding: 14px 16px 0; font-size: 16px; font-weight: 800; }
.hm-sec { margin: 0 2px var(--sp-3); font-size: 16px; font-weight: 800; }
.hm-err { margin: 0; padding: 14px 16px; color: var(--ink-2); }

/* seu dia até agora */
.hm-kpis { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1fr); padding: 8px 0 14px; }
.hm-kpi { padding: 4px 12px 0 14px; border-left: 1px solid var(--rule-soft); min-width: 0; }
.hm-kpi:first-child { border-left: 0; }
.hm-kpi .l { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.2; min-height: 34px; }
.hm-kpi .n { font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-kpi .n.is-long { font-size: 19px; letter-spacing: -.02em; margin-top: 9px; }
.hm-kpi .n.is-long small { font-size: 13px; }
.hm-kpi .n small { font-size: 18px; letter-spacing: -.02em; }
.hm-kpi .n.z { color: var(--ink-mute); font-weight: 700; }
.hm-kpi .c { font-size: 13.5px; color: var(--ink-mute); font-weight: 600; line-height: 1.3; margin-top: 4px; }
.hm-kpi .c.ok { color: var(--ok); }
@media (max-width: 380px) { .hm-kpi { padding-left: 12px; padding-right: 12px; } .hm-kpi .n { font-size: 25px; } .hm-kpi .n.is-long { font-size: 17px; } }

/* para fazer hoje */
.hm-todo-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 8px 6px 14px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.hm-todo-row + .hm-todo-row { border-top: 1px solid var(--rule-soft); }
.hm-todo-row.is-attn { box-shadow: inset 4px 0 0 var(--attn); }
.hm-todo-row .ct { min-width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--surface-2); padding: 0 9px; }
.hm-todo-row .ct.w { background: var(--wait-bg); color: var(--wait); }
.hm-todo-row .ct.a { background: var(--attn-bg); color: var(--attn); }
.hm-todo-row .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.hm-todo-row small, .hm-row small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.hm-todo-row svg, .hm-row svg, .hm-ag .hd svg:last-child { transform: rotate(-90deg); color: var(--ink-mute); flex: none; }
.hm-todo-empty { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.hm-todo-empty .ok { flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }

/* linhas dos cartões (agenda e comanda) */
.hm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 14px 10px 16px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.hm-row + .hm-row { border-top: 1px solid var(--rule-soft); }
.hm-row .t { flex: 1; min-width: 0; font-size: 17px; }
.hm-row .t b { font-weight: 800; }
.hm-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.hm-ic.is-brand { background: var(--brand-soft); color: var(--brand-text); }
.hm-ag { padding: 14px 14px 14px 16px; }
.hm-ag > span { display: block; }
.hm-ag .hd { display: flex; align-items: center; gap: 10px; }
.hm-ag .hd b { flex: 1; font-size: 17px; font-weight: 800; }
.hm-ag .big { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin-top: 12px; }
.hm-ag .big time { font-variant-numeric: tabular-nums; }
.hm-ag .lead { font-size: 15px; color: var(--ink-2); line-height: 1.42; margin-top: 4px; font-weight: 500; }
.hm-ag .strip { margin: 14px 0 0; position: relative; height: 42px; }
.hm-ag .strip .bar { position: absolute; left: 0; right: 0; top: 8px; height: 16px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: block; }
.hm-ag .bar i, .hm-ag .legend i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.hm-ag .bar i.d, .hm-ag .legend i.d { background: color-mix(in srgb, var(--ok) 55%, var(--surface-2)); }
.hm-ag .bar i.m, .hm-ag .legend i.m { background: var(--brand-text); }
.hm-ag .strip .now { position: absolute; top: 2px; width: 2px; height: 28px; background: var(--attn); border-radius: 2px; }
.hm-ag .strip .now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--attn); }
.hm-ag .hrs { position: absolute; left: 0; right: 0; top: 28px; display: flex !important; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.hm-ag .legend { display: flex !important; gap: 14px; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-top: 6px; }
.hm-ag .legend i { position: static; display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }

/* linha discreta dos avisos dispensados */
.hm-quiet { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 15px; color: var(--ink-2); font-weight: 600; padding: 2px; }
.hm-pill { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 16px; border: 1.5px solid var(--brand-text); border-radius: 999px; color: var(--brand-text); font: inherit; font-weight: 800; font-size: 15px; background: var(--surface); white-space: nowrap; flex: none; cursor: pointer; }
.hm-pill svg { transform: rotate(-90deg); }

/* carrossel de avisos */
.hm-car .car { position: relative; background: var(--car-bg); color: #F5F1E8; border: 1px solid var(--car-rule); border-radius: 22px; }
.car-go { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 14px 8px 0 18px; cursor: pointer; border-radius: 22px 22px 0 0; }
.car-go:focus-visible, .car-dot:focus-visible, .car-pause:focus-visible, .car-more:focus-visible, .car-pop-item:focus-visible { outline: 3px solid #F5F1E8; outline-offset: -3px; }
.car-eb { display: block; min-height: 30px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #CFE2DF; line-height: 30px; }
.car-body { display: flex; gap: 14px; align-items: center; padding: 2px 10px 0 0; }
.car-txt { flex: 1; min-width: 0; display: block; }
.car-h { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.car-p { display: block; font-size: 15px; line-height: 1.42; color: #E8F1EF; margin-top: 6px; font-weight: 500; }
.car-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.car-cta svg { transform: rotate(-90deg); }
.car.cmp .car-go { padding-top: 12px; }
.car.cmp .car-eb { min-height: 0; font-size: 13px; line-height: 1.3; }
.car-line { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.car-line b { flex: 1; font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.car.cmp .car-cta { font-size: 15px; white-space: nowrap; }
.car-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(245,241,232,.16); margin-top: 8px; padding: 0 6px 0 8px; }
.car.cmp .car-foot { margin-top: 4px; }
.car-dots, .car-right { display: flex; align-items: center; }
.car-dot { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.car-dot i { display: block; width: 8px; height: 8px; border-radius: 9px; background: var(--dot-off); position: relative; overflow: hidden; }
.car-dot.on i { width: 30px; background: rgba(245,241,232,.32); }
.car-dot.on i::after { content: ''; position: absolute; inset: 0; width: 100%; background: #F5F1E8; border-radius: 9px; transform-origin: left; animation: car-fill 8s linear forwards; }
.car.is-reduced .car-dot.on i::after, .hm-car.is-still .car-dot.on i::after { animation: none; }
.hm-car.is-paused .car-dot.on i::after, .hm-car.is-menu .car-dot.on i::after { animation-play-state: paused; }
@keyframes car-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .car-dot.on i::after { animation: none; } }
.car-pause { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 800; color: #F5F1E8; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.car-more { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #F5F1E8; background: none; border: 0; cursor: pointer; }
.car-more[aria-expanded="true"] { background: rgba(245,241,232,.2); }
.car-pop { position: absolute; right: 6px; top: calc(100% + 6px); width: 262px; max-width: calc(100% - 12px); background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); padding: 6px; z-index: 9; }
.car-pop-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; }
.car-pop-item:hover { background: var(--surface-2); }
.car-pop-item small { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-mute); margin-top: 1px; }
.car-pop-item:focus-visible { outline-color: var(--brand-text); }
.car-slide { touch-action: pan-y; }

/* artes (CSS puro, sem imagem) */
.car-art { position: relative; display: block; width: 92px; height: 96px; flex: none; }
.a-wa .b1, .a-wa .b2 { position: absolute; border-radius: 14px 14px 14px 4px; background: #F5F1E8; height: 30px; }
.a-wa .b1 { left: 0; top: 10px; width: 70px; }
.a-wa .b2 { right: 0; top: 50px; width: 66px; background: #8FC9C0; border-radius: 14px 14px 4px 14px; }
.a-wa .b1::before, .a-wa .b1::after, .a-wa .b2::before { content: ''; position: absolute; left: 12px; height: 5px; border-radius: 5px; background: #9DB3AE; }
.a-wa .b1::before { top: 9px; width: 42px; } .a-wa .b1::after { top: 17px; width: 28px; } .a-wa .b2::before { top: 12px; width: 36px; background: #2B5E60; }
.a-site .ph { position: absolute; left: 18px; top: 0; width: 58px; height: 96px; border-radius: 12px; background: #F5F1E8; border: 3px solid #2B5E60; overflow: hidden; box-sizing: border-box; }
.a-site .ph i { display: block; height: 28px; background: #C9A86A; }
.a-site .ph u { display: block; height: 5px; border-radius: 5px; background: #9DB3AE; margin: 7px 8px 0; }
.a-site .ph s { display: block; height: 14px; border-radius: 9px; background: #123E40; margin: 9px 8px 0; }
.a-cli span { position: absolute; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; border: 3px solid #123E40; box-sizing: border-box; }
.a-cli span:nth-child(1) { left: 0; top: 6px; background: #F5F1E8; color: #123E40; }
.a-cli span:nth-child(2) { left: 26px; top: 28px; background: #8FC9C0; color: #0D2729; }
.a-cli span:nth-child(3) { left: 52px; top: 6px; background: #C9A86A; color: #123E40; }
.a-cli em { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 22px; border-radius: 8px; border: 2px dashed rgba(245,241,232,.55); }

/* botão fixo: só "Marcar horário" no celular; o do cabeçalho do Hoje antigo não existe neste layout */
@media (max-width: 1023px) { .is-master:has(.today-fixed-cta) { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); } }

/* ---- computador (a partir de 1024 px; desenho de 28/10/2026). Celular: nada daqui vale. ---- */
.hm-acts, .hm-keys, .hm-done { display: none; }
/* Celular: o DOM tem a agenda antes (ordem de foco no computador); aqui a ordem visual segue a de sempre (Para fazer, depois a agenda). */
.hm-grid, .hm-stack { display: flex; flex-direction: column; gap: var(--sp-5); }
.hm-stack { order: 1; }
#hm-agenda { order: 2; display: flex; flex-direction: column; gap: var(--sp-3); }
.hm-stack > :empty, .hm-grid > :empty { display: none; }
.hm-btn-out { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.hm-lk { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 10px; border: 0; border-radius: 10px; background: none; color: var(--brand-text); font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.hm-lk svg { transform: rotate(-90deg); }
.hm-acts kbd, .hm-lk kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.hm-acts .btn kbd { background: rgba(245, 241, 232, .16); color: var(--btn-ink); box-shadow: inset 0 0 0 1px rgba(245, 241, 232, .3); }
:root[data-theme="dark"] .hm-acts .btn kbd { background: rgba(13, 39, 41, .12); box-shadow: inset 0 0 0 1px rgba(13, 39, 41, .3); }
.hm-sk { display: block; background: var(--skel); border-radius: 8px; }
.hm-sk-corpo { padding: 4px 16px 18px; }
.hm-erro { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; }
.hm-erro .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--bad-bg); color: var(--bad); display: grid; place-items: center; flex: none; }
.hm-erro .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.hm-erro small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-mute); }

@media (min-width: 1024px) {
  .is-master { max-width: none; gap: var(--sp-4); }
  .is-master > .hm-grid { margin-top: var(--sp-2); }
  .is-master .today-fixed-cta, .is-master:has(.today-fixed-cta) .today-fixed-cta { display: none; }
  .is-master .today-head { align-items: flex-end; flex-wrap: nowrap; }
  .hm-acts { display: flex; gap: 10px; flex: none; }
  .hm-acts .btn { min-height: 46px; padding: 0 18px 0 16px; font-size: 15.5px; gap: 9px; }
  .hm-acts .hm-btn-out { min-height: 46px; }
  .hm-keys { display: block; margin: 0; font-size: 14px; color: var(--ink-mute); font-weight: 600; }
  .hm-keys-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-weight: 800; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .hm-keys span[hidden] { display: none; }
  .hm-done { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 52px; padding: 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--card-rule); font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .hm-done[hidden] { display: none; }
  .hm-done .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
  .hm-done b { color: var(--ink); font-weight: 800; }

  /* avisos lado a lado, sem giro */
  .av { background: var(--car-bg); border: 1px solid var(--car-rule); border-radius: 20px; color: #F5F1E8; padding: 6px; }
  .av-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 6px 16px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #CFE2DF; }
  .av-h em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 14px; color: #BFD6D2; text-align: right; }
  .av-g { display: grid; gap: 6px; }
  .tile { position: relative; border-radius: 14px; background: rgba(245, 241, 232, .06); min-width: 0; }
  .tile:hover { background: rgba(245, 241, 232, .1); }
  .tile-go { display: block; position: relative; width: 100%; min-height: 128px; padding: 14px 52px 10px 16px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
  .tile-go:focus-visible, .tile .more:focus-visible, .pop-item:focus-visible { outline: 3px solid #F5F1E8; outline-offset: -3px; }
  .tile .car-art { position: absolute; right: 12px; bottom: 6px; zoom: .62; }
  .tile b { display: block; font-size: 17.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
  .tile .tp { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.42; color: #E1ECEA; font-weight: 500; padding-right: 56px; }
  .tile .cta { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; margin-top: 4px; font-weight: 800; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .tile .cta svg { transform: rotate(-90deg); }
  .tile .more { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #F5F1E8; background: none; border: 0; cursor: pointer; }
  .tile .more[aria-expanded="true"] { background: rgba(245, 241, 232, .2); }
  .tile .pop { position: absolute; right: 0; top: calc(100% + 6px); width: 262px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); padding: 6px; z-index: 9; }
  .tile .pop[hidden] { display: none; }
  .pop-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
  .pop-item:hover { background: var(--surface-2); }
  .pop-item small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-mute); }
  .pop-item:focus-visible { outline-color: var(--brand-text); }
  .tile.cmp .tile-go { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 52px 6px 16px; }
  .tile.cmp .cta { margin: 0; white-space: nowrap; }

  /* seu dia até agora: 3 cartões */
  .hm-day { background: none; border: 0; border-radius: 0; }
  .hm-day .hm-title { padding: 0; display: flex; align-items: center; min-height: 30px; margin-bottom: 8px; }
  .hm-kpis { gap: 14px; padding: 0; }
  .hm-kpi { background: var(--surface); border: 1px solid var(--card-rule); border-radius: 18px; padding: 12px 20px 14px; min-height: 104px; display: flex; flex-direction: column; }
  .hm-kpi:first-child { border-left: 1px solid var(--card-rule); }
  .hm-kpi .l { min-height: 0; font-size: 14.5px; }
  .hm-kpi .n { font-size: 40px; margin-top: 8px; }
  .hm-kpi .n small { font-size: 20px; }
  .hm-kpi .n.is-long { font-size: 40px; margin-top: 8px; }
  .hm-kpi .n.is-long small { font-size: 20px; }
  .hm-kpi .c { font-size: 14px; margin-top: auto; padding-top: 6px; }
  .hm-bar { height: 6px; border-radius: 6px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
  .hm-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); }
  .hm-day .hm-erro { margin-top: 0; }

  /* agenda | para fazer + conversas */
  .hm-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
  .hm-stack { display: flex; flex-direction: column; gap: var(--sp-5); grid-column: 2; grid-row: 1; min-width: 0; }
  #hm-agenda { grid-column: 1; grid-row: 1; min-width: 0; }
  .hm-conv { overflow: hidden; }
  .hm-conv .cv-r { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 8px 6px 14px; }
  .hm-conv .t { flex: 1; min-width: 0; display: block; }
  .hm-conv .t .tt { margin: 0; display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
  .hm-conv .t small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-mute); line-height: 1.35; }
  .hm-conv .hm-ic { width: 38px; height: 38px; position: relative; }
  .hm-conv .dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--attn); border: 2px solid var(--surface); }
  .hm-conv.is-tap { cursor: pointer; }
  .hm-conv .hm-btn-out { min-height: 44px; }
  /* erro em cartão estreito: texto em cima, botão embaixo com a largura toda */
  .hm-erro { align-items: flex-start; }
  .hm-erro .t { flex: 1 1 calc(100% - 60px); }
  .hm-erro .hm-btn-out, .hm-conv .hm-btn-out[data-retry] { flex: 1 1 100%; }
  .hm-day .hm-erro { align-items: center; flex-wrap: nowrap; }
  .hm-day .hm-erro .t { flex: 1; }
  .hm-day .hm-erro .hm-btn-out { flex: none; }
  .tile .cta .s { display: none; }
  .hm-conv:has([data-retry]) .cv-r { flex-wrap: wrap; padding-bottom: 12px; }
  .hm-conv:has([data-retry]) .t { flex: 1 1 calc(100% - 60px); }

  .hm-ag2 { padding: 0; }
  .hm-ag2 .ag-h { display: flex; align-items: center; gap: 12px; padding: 12px 8px 8px 18px; min-height: 60px; }
  .hm-ag2 .ag-h .t { flex: 1; min-width: 0; }
  .hm-ag2 .ag-h .tt { margin: 0; display: block; font-size: 17px; font-weight: 800; }
  .hm-ag2 .ag-h small { font-size: 14px; font-weight: 600; color: var(--ink-mute); }
  .hm-ag2 .strip { margin: 6px 22px 0 18px; position: relative; height: 46px; }
  .hm-ag2 .strip .bar { position: absolute; left: 0; right: 0; top: 10px; height: 18px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: block; }
  .hm-ag2 .strip .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
  .hm-ag2 .bar i.d { background: color-mix(in srgb, var(--ok) 55%, var(--surface-2)); }
  .hm-ag2 .bar i.m { background: var(--brand-text); }
  .hm-ag2 .strip .now { position: absolute; top: 3px; width: 2px; height: 32px; background: var(--attn); border-radius: 2px; }
  .hm-ag2 .strip .now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--attn); }
  .hm-ag2 .strip .hrs { position: absolute; left: -8px; right: -8px; top: 32px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-mute); }
  .hm-ag2 .legend { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; color: var(--ink-mute); padding: 4px 8px 2px 18px; }
  .hm-ag2 .legend > span { white-space: nowrap; }
  .hm-ag2 .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .hm-ag2 .legend i.d { background: color-mix(in srgb, var(--ok) 55%, var(--surface-2)); }
  .hm-ag2 .legend i.m { background: var(--brand-text); }
  .hm-ag2 .legend i.n { background: var(--attn); width: 3px; }
  .hm-ag2 .legend .hm-lk { margin-left: auto; }
  .hm-ag2 .ap { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; width: 100%; min-height: 54px; padding: 8px 10px 8px 18px; border: 0; border-top: 1px solid var(--rule-soft); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
  .hm-ag2 .ap time { font-weight: 800; font-size: 16.5px; font-variant-numeric: tabular-nums; }
  .hm-ag2 .ap .t b { display: block; font-size: 16px; font-weight: 800; }
  .hm-ag2 .ap .t small { font-size: 14px; color: var(--ink-mute); font-weight: 500; }
  .hm-ag2 .ap svg { transform: rotate(-90deg); color: var(--ink-mute); justify-self: center; }
  .hm-ag2 .ap.nx { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); min-height: 66px; }
  .hm-ag2 .ap.nx time { font-size: 21px; }
  .hm-ag2 .ap.nx .t b { font-size: 17.5px; }
  .hm-ag2 .ap .lb { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 1px; }
  .hm-ag2 .pill { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; background: var(--attn-bg); color: var(--attn); }
  .hm-ag2 .pill.ok { background: var(--ok-bg); color: var(--ok); }
  .hm-ag2 .ap:last-child { border-radius: 0 0 17px 17px; }
  .hm-ag2 .ag-vz { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .hm-ag2 .ag-vz p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); font-weight: 500; }
  .hm-ag2 .ag-vz b { color: var(--ink); font-weight: 800; }
  .hm-ag2 .ag-pad { padding: 4px 18px 14px; }
  .hm-ag2 .ap > span:first-child .hm-sk { margin: 0; }
  .hm-lk:focus-visible, .hm-btn-out:focus-visible, .ap:focus-visible, .hm-conv.is-tap:focus-visible { outline: 3px solid var(--brand-text); outline-offset: -3px; }

  /* escuro: bordas de cartão e de botão vazado com contraste de componente (3:1) */
  :root[data-theme="dark"] .hm-card, :root[data-theme="dark"] .hm-kpi, :root[data-theme="dark"] .hm-done { border-color: #7C9184; }
  :root[data-theme="dark"] .hm-acts .hm-btn-out { border-color: #A9BBAF; }
  :root[data-theme="dark"] .tile .more { border: 1.5px solid rgba(245, 241, 232, .6); }
}
@media (min-width: 1024px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hm-card, :root:not([data-theme="light"]) .hm-kpi, :root:not([data-theme="light"]) .hm-done { border-color: #7C9184; }
  :root:not([data-theme="light"]) .hm-acts .hm-btn-out { border-color: #A9BBAF; }
  :root:not([data-theme="light"]) .tile .more { border: 1.5px solid rgba(245, 241, 232, .6); }
}
/* 1024 a 1279: a mesma composição, sem arte nos avisos e sem as letras dos atalhos nos botões */
.hm-lk .s { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hm-acts kbd, .hm-lk kbd { display: none; }
  .hm-lk .l { display: none; }
  .hm-lk .s { display: inline; }
  .tile .car-art { display: none; }
  .tile .cta .l { display: none; }
  .tile .cta .s { display: inline; }
  .tile .tp { padding-right: 0; font-size: 14px; }
  .tile b { font-size: 16.5px; }
  .tile-go { padding: 12px 52px 8px 14px; min-height: 108px; }
  .hm-kpis { gap: 10px; }
  .hm-kpi { padding: 10px 16px 12px; min-height: 96px; }
  .hm-kpi .n, .hm-kpi .n.is-long { font-size: 34px; }
  .hm-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--sp-5); }
  .hm-stack { gap: var(--sp-5); }
  .hm-ag2 .ag-h { padding: 10px 6px 6px 14px; }
  .hm-ag2 .strip { margin: 6px 16px 0 14px; }
  .hm-ag2 .legend { padding: 4px 6px 2px 14px; gap: 10px; }
  .hm-ag2 .ap { grid-template-columns: 56px minmax(0, 1fr) auto 24px; gap: 10px; padding: 8px 8px 8px 14px; }
  .hm-ag2 .ap.nx time { font-size: 19px; }
}
@media (max-width: 380px) { .car-h { font-size: 20px; } .car-art { zoom: .78; } .car-body { gap: 8px; } .car-line b { font-size: 16px; } }
/* erro de bloco no celular: texto em linha cheia e o botão embaixo */
@media (max-width: 1023px) { .hm-erro { align-items: flex-start; } .hm-erro .t { flex: 1 1 calc(100% - 60px); } .hm-erro .hm-btn-out { flex: 1 1 100%; } }
