/* Hallmark · genre: modern-minimal · macrostructure: Workbench · design-system: design.md · designed-as-app */
/* Central · responsivo global: barra inferior, folhas de diálogo e ajustes de espaçamento no celular (telas definem o resto). */
/* Tablet: nomes curtos permanecem visíveis; demais áreas no menu Mais. */
@media (min-width: 821px) and (max-width: 1100px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .dock { padding: var(--sp-4) var(--sp-2); gap: var(--sp-3); }
  .brand-lockup { grid-template-columns: minmax(0, 1fr); justify-items: center; justify-content: center; padding: var(--sp-2) 0 var(--sp-4); }
  .brand-company, .brand-product, .dock-caption, .nav-label { display: none; }
  .brand-lockup { display: none; }
  .nav { gap: var(--sp-3); }
  .nav-group { gap: 2px; }
  .dock .nb { flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; padding: var(--sp-2) 2px; font-size: 10px; }
  .dock .nb > span:not(.bdg) { max-width: 60px; text-align: center; overflow-wrap: anywhere; }
  .dock .bdg { position: absolute; top: 1px; right: 0; margin: 0; min-width: 16px; height: 16px; padding: 0 3px; font-size: 10px; }
  .dock-end { display: grid; justify-items: center; padding-top: var(--sp-3); }
  .dock-profile { padding: 4px; }
  .profile-copy { display: none; }
  .dock-actions { display: grid; }
  .stage { --stage-pad: var(--sp-6); }
  .utilitybar .top-tools .searchbtn { flex-basis: 280px; }
  .utilitybar .top-tools { gap: var(--sp-2); }
}
/* celular: barra inferior, folhas, espaçamentos */
@media (max-width: 820px) {
  :root { --fs-base: 16px; --fs-sm: 14px; --fs-xs: 13px; --hit: 46px; --hit-sm: 44px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .dock { display: none; }
  .stage { --stage-pad: var(--sp-5); padding: 0 var(--stage-pad) 112px; }
  .utilitybar { margin-bottom: var(--sp-5); padding-block: var(--sp-3); }
  .utilitybar .top-tools { gap: var(--sp-2); }
  .utilitybar .top-tools .searchbtn { flex: 1 1 100%; }
  .utilitybar .pilotchip { flex: 1; justify-content: flex-start; }
  .utilitybar .chip { min-height: 40px; }
  .top { gap: var(--sp-2); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); }
  .top-tools { width: 100%; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
  .top-tools .searchbtn { flex: 1 1 100%; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 5px; box-shadow: var(--shadow-pop); }
  .tabbar .nb { display: grid; justify-content: stretch; justify-items: center; gap: 4px; min-height: 56px; padding: 7px 2px; border-radius: var(--r-md); background: transparent; color: var(--muted); text-align: center; font-size: 12px; }
  .tabbar .nb:hover { background: var(--surface-2); color: var(--ink); }
  .tabbar .nb[aria-current="page"] { background: var(--mint-soft); color: var(--brand-2); font-weight: 750; }
  .tabbar .nb:active { background: var(--surface-2); color: var(--ink); }
  .tabbar .bdg { right: 50%; margin-right: -26px; }
  .searchbtn { flex: 1 1 100%; }
  #density { display: none; }
  .inp, .field input, textarea, select { font-size: 16px; }
  .field input { min-height: 44px; }
  .btn, .pill, .chip, .opt, .chk { min-height: 44px; }
  .sw::before { inset-block: -7px; }
  :focus-visible { scroll-margin-block: 88px 120px; }
  .ho-hero { gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
  .ho-priority > .btn, .ho-priority .ho-links { grid-column: 1; grid-row: auto; }
  .ho-priority .ho-links { justify-content: flex-start; }
  .hero .ho-title { font-size: 27px; }
  .ho-command, .ho-workspace, .ho-activity { gap: var(--sp-4); }
  .ho-next { gap: var(--sp-2); }
  .ho-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
  .ho-kpis .kpi:nth-child(4) { border-left: 0; padding-left: 0; }
  .ho-kpis .kpi b { font-size: 24px; }
  #v-hoje .lane { min-height: 88px; padding: var(--sp-3); gap: var(--sp-2); }
  #v-hoje .lane .n { font-size: 26px; }
  .approval-stages { gap: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approval-stage { font-size: var(--fs-xs); padding: var(--sp-2) 6px; align-items: flex-start; min-height: 60px; min-width: 0; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
  .approval-stage > b, .approval-stage > span { max-width: 100%; overflow-wrap: anywhere; }
  .approval-summary { position: static; }
  .approval-actions .btn { flex: 1 1 auto; }
  .approval-message .tx { padding: var(--sp-3); }
  .safe-bar, .ap { padding: var(--sp-4); }
  button.row { flex-wrap: wrap; }
  button.row .m { flex: 1 1 150px; }
  .rows .r { max-width: none; margin-left: auto; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 370px) {
  .stage { --stage-pad: var(--sp-3); }
  .tabbar { left: 6px; right: 6px; padding: 4px; }
  .tabbar .nb { font-size: 12px; }
  .ho-hero > .btn { width: 100%; }
  .ho-links { gap: 6px; }
}
@media (max-width: 820px) and (orientation: landscape) {
  .tabbar .nb { min-height: 44px; }
  .tabbar { bottom: env(safe-area-inset-bottom, 0px); }
  .stage { padding-bottom: 88px; }
}
@media (max-width: 620px) { .fgrid, .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .card { padding: var(--sp-4); }
  .login-card { padding: 28px 20px 22px; }
  .modal:not(.pal) { place-items: end center; padding: 0; }
  .modal:not(.pal) > .mc { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; animation: sheet var(--dur-3) var(--ease) both; }
  .modal:not(.pal) > .mc::before { content: ""; width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--line-strong); justify-self: center; margin: -10px 0 -2px; }
  .modal.pal { padding-top: 8vh; }
  .f-head .right { flex: 1 1 100%; text-align: left; }
  .f-name { overflow-wrap: break-word; }
}
@media (max-width: 560px) {
  .ho-command .ho-hero { padding: var(--sp-5); }
  .ho-command .ho-next { padding: var(--sp-5); }
  .ho-priority .ho-links { padding-top: var(--sp-2); }
  .ho-links .btn { width: 100%; }
  .ho-kpis { gap: var(--sp-4) var(--sp-3); }
  .feed .fi { gap: var(--sp-2); }
  .feed .fi .tm { width: 64px; white-space: normal; }
  .approval-stage { display: block; line-height: 1.4; }
  .approval-stage b, .approval-stage > span { display: block; }
}
