/* Telas de trabalho: Início, Quadro, lista, detalhe da demanda e Calendário. */

/* ---------- Pedaços comuns das demandas ---------- */
.when-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.when-pill .icon {
  width: 14px;
  height: 14px;
}
.when-pill.late {
  border-color: transparent;
  background: var(--rose);
  color: var(--rose-ink);
}
.when-pill.warn {
  border-color: transparent;
  background: var(--peach);
  color: var(--peach-ink);
}
.when-pill.ok {
  border-color: transparent;
  background: var(--mint);
  color: var(--mint-ink);
}
.task-signals {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.task-signals > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task-signals .icon {
  width: 15px;
  height: 15px;
}
.stage-ring {
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.stage-ring.is-briefing {
  background: linear-gradient(90deg, currentColor 25%, transparent 25%);
}
.stage-ring.is-doing {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.stage-ring.is-review {
  background: linear-gradient(90deg, currentColor 75%, transparent 75%);
}
.stage-ring.is-done {
  background: currentColor;
}
.mini-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mini-progress > span {
  width: 64px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.mini-progress i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: width 0.4s var(--ease);
}
.priority-chip.priority-urgent,
.priority-chip.priority-high {
  background: var(--rose);
  color: var(--rose-ink);
}
.priority-chip.priority-medium {
  background: var(--sky);
  color: var(--sky-ink);
}
.fatal-chip {
  background: var(--peach);
  color: var(--peach-ink);
}
.fatal-chip.late,
.fatal-chip.urgent {
  background: var(--rose);
  color: var(--rose-ink);
}
.blocked-chip {
  background: var(--sun);
  color: var(--sun-ink);
}
.label-chip {
  background: var(--subtle);
  border: 1px solid var(--line-2);
}

/* ---------- Início ---------- */
.home-sections {
  margin-bottom: 20px;
}
/* Indicadores numa faixa compacta (04/11/2026): cabem numa linha só no
   computador e não empurram as demandas para baixo. */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  animation: rise 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.kpi header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  height: 18px;
  color: var(--muted);
  font-size: 12px;
}
.kpi header > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kpi header .chip {
  flex: none;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.4;
}
.kpi > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.kpi strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-bars {
  width: 52px;
  height: 24px;
  fill: var(--accent);
}
.kpi-line {
  width: 56px;
  height: 24px;
  stroke: #8b6cf5;
}
.kpi-faces {
  display: flex;
  gap: 6px;
}
.kpi-faces > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.kpi-faces .person-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.kpi-faces > span {
  flex-direction: row;
}
.kpi-faces b {
  padding: 0 7px;
  border-radius: 8px;
  background: var(--subtle);
  font-size: 11px;
}
.kpi-dots {
  display: flex;
  gap: 4px;
}
.kpi-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.kpi-dots i.on {
  background: var(--danger);
}
.home-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}
.home-demands {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-demands-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.home-demands-head h2 {
  font-size: 20px;
}
.home-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0 7px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.home-tabs button small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}
.home-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: width 0.25s var(--ease);
}
.home-tabs .selected {
  color: var(--ink);
  font-weight: 700;
}
.home-tabs .selected::after {
  width: 18px;
}
.home-tabs .flag {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.home-all {
  margin-left: auto;
  min-height: 36px;
  font-size: 13px;
}
.home-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-line {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  animation: rise 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 0.05s);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.task-line:hover {
  border-color: #d9dde3;
  box-shadow: var(--shadow-pop);
  transform: translateY(-1px);
}
.task-line .task-open-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
}
.tl-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.task-line h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tl-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.home-deck,
.home-board-rows {
  display: none;
}
.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.side-card-head h2 {
  font-size: 16px;
}
.side-card-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.side-empty {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  text-align: left;
}
.agenda-item time {
  padding-top: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.agenda-item > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--tone-bg);
  transition: transform 0.15s;
}
.agenda-item:hover > span {
  transform: translateX(2px);
}
.agenda-item em,
.cm-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--tone-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
:root[data-theme="dark"] .agenda-item em,
:root[data-theme="dark"] .cm-tag {
  background: rgba(0, 0, 0, 0.25);
}
.agenda-item strong {
  font-size: 14px;
}
.agenda-item small {
  color: var(--text);
  opacity: 0.75;
}
.tone-sky {
  --tone-bg: var(--sky);
  --tone-ink: var(--sky-ink);
}
.tone-mint {
  --tone-bg: var(--mint);
  --tone-ink: var(--mint-ink);
}
.tone-peach {
  --tone-bg: var(--peach);
  --tone-ink: var(--peach-ink);
}
.tone-lilac {
  --tone-bg: var(--lilac);
  --tone-ink: var(--lilac-ink);
}
.tone-rose {
  --tone-bg: var(--rose);
  --tone-ink: var(--rose-ink);
}
.tone-subtle {
  --tone-bg: var(--subtle);
  --tone-ink: var(--text);
}
.now-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.now-line i {
  position: relative;
  height: 2px;
  background: var(--accent);
}
.now-line i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.team-load {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-load .person-avatar {
  width: 38px;
  height: 38px;
}
.team-load > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.team-load strong,
.team-load span > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-load span > small {
  color: var(--muted);
}
.load-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--text);
  font-size: 11px;
}
.load-meter i {
  width: 70px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.load-meter b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--load);
}
.mention-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mention-row:first-of-type {
  border-top: 0;
}
.mention-row > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mention-row strong small {
  color: var(--faint);
  font-weight: 500;
}
.mention-row span > small {
  color: var(--text);
  font-size: 13px;
}
.activity-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.activity-row:first-of-type {
  border-top: 0;
}
.activity-row p {
  font-size: 13px;
}
.activity-row p button {
  font-weight: 700;
  text-align: left;
}
.activity-row p button:hover {
  text-decoration: underline;
}
.activity-row small {
  color: var(--muted);
}
.home-boards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.board-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.board-tile:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-1px);
}
.board-tile > button:first-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  text-align: left;
}
.board-tile strong {
  font-size: 16px;
}
.board-tile small {
  color: var(--muted);
}
.star-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--faint);
}
.star-button.selected {
  color: #f5b83d;
}
.star-button.selected .icon {
  fill: currentColor;
}
.board-tile .star-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Painel jurídico do Início (legal.dashboardPanel). */
.legal-dashboard,
.legal-panel {
  margin-bottom: 24px;
}

/* ---------- Quadro ---------- */
.board-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: left;
}
.board-selector .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.board-head h1 {
  flex-wrap: wrap;
}
.board-head .star-button.selected .icon {
  fill: #f5b83d;
}
.board-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-share-row .avatar-stack > * {
  width: 32px;
  height: 32px;
}
.share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.share-chip .icon {
  width: 15px;
  height: 15px;
}
.share-button {
  min-height: 44px;
  border-radius: 14px;
}
.board-views {
  margin-bottom: 14px;
}
.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--subtle);
  color: var(--muted);
}
.board-search input {
  min-height: 0 !important;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
.board-search .icon {
  width: 17px;
  height: 17px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.filter-pill small {
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}
.filter-pill .icon {
  width: 16px;
  height: 16px;
}
.filter-pill:hover {
  background: var(--subtle);
}
.filter-pill.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.board-hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.board-hint .icon {
  width: 15px;
  height: 15px;
}
.legal-board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}
.legal-board-tools select {
  width: auto;
  min-width: 200px;
}
.filter-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.mobile-stages {
  display: none;
}
.hub-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--column-width, 280px), 1fr);
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.hub-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  padding: 10px;
  border-radius: 22px;
  background: var(--subtle);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.hub-column.drag-over {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
}
.hub-column > header,
.list-section > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 2px 4px;
}
.hub-column > header .icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.hub-column > header .icon-button:first-of-type {
  margin-left: auto;
}
/* 15/11/2026 (auditoria): o nome da etapa é título (h2) do quadro; mantém o
   visual da etiqueta. */
h2.col-tag {
  margin: 0;
  line-height: 1.2;
  letter-spacing: normal;
}
.col-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  background: var(--subtle);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.col-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--col, currentColor);
}
.col-tag.info {
  background: var(--sky);
  color: var(--sky-ink);
}
.col-tag.warn {
  background: var(--peach);
  color: var(--peach-ink);
}
.col-tag.lilac {
  background: var(--lilac);
  color: var(--lilac-ink);
}
.col-tag.ok {
  background: var(--mint);
  color: var(--mint-ink);
}
.count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.column-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 12px;
}
.board-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  touch-action: manipulation;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.45s var(--ease-spring),
    opacity 0.2s;
}
.board-card[data-drag-id] {
  cursor: grab;
}
.board-card:hover {
  border-color: #d9dde3;
  box-shadow: var(--shadow-pop);
}
.board-card .task-open-area {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}
.board-card h3 {
  font-size: 15px;
  line-height: 1.3;
  padding-right: 22px;
}
.board-card.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
}
.bc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bc-chips:empty {
  display: none;
}
.bc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.bc-foot .mini-progress {
  flex: 1;
}
.bc-foot .mini-progress > span {
  flex: 1;
  width: auto;
}
.bc-spacer {
  flex: 1;
}
.bc-foot .avatar-stack > * {
  width: 24px;
  height: 24px;
}
.card-check {
  position: absolute;
  top: 48px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--faint);
  opacity: 0;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.board-card:hover .card-check,
.board-card.is-done .card-check,
.card-check:focus-visible {
  opacity: 1;
}
.card-check:hover,
.board-card.is-done .card-check {
  color: var(--accent);
}
.card-check .icon {
  width: 20px;
  height: 20px;
}
.card-cover {
  display: block;
  flex: none;
  width: calc(100% + 28px);
  max-width: none;
  height: 90px;
  margin: -14px -14px 2px;
  border-radius: 17px 17px 0 0;
  object-fit: cover;
  background: var(--subtle);
}
/* Com capa, o círculo de concluir desce para a altura do título. */
.board-card:has(.card-cover) .card-check {
  top: 140px;
}
.cover-yellow {
  background: var(--sun);
}
.cover-blue {
  background: var(--sky-2);
}
.cover-purple {
  background: var(--lilac-2);
}
.cover-pink {
  background: var(--rose);
}
.cover-teal {
  background: var(--mint-2);
}
.process-chip {
  align-self: flex-start;
}
.legal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.legal-card-process {
  width: 100%;
  color: var(--muted);
}
.type-chip {
  background: var(--lilac);
  color: var(--lilac-ink);
}
.column-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.column-add:hover {
  background: var(--surface);
}
.column-add .icon {
  width: 16px;
  height: 16px;
}
.quick-create {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.quick-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.quick-create textarea {
  min-height: 60px;
}
.quick-create small {
  color: var(--muted);
}
.quick-create footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.quick-save {
  min-height: 36px;
  font-size: 13px;
}
/* Arrasto: cartão levantado e inclinado, faixa de destino, pulo ao soltar. */
.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 500;
  margin: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lift);
  transition: box-shadow 0.2s;
  will-change: transform;
}
.drag-ghost.board-card {
  border-color: var(--line-2);
}
.drag-label {
  max-width: 260px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 700;
}
.drag-source {
  opacity: 0.35;
}
.board-card.drag-source {
  display: none;
}
.drop-slot {
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 18px;
  background: var(--accent-soft);
  animation: rise 0.2s var(--ease);
}
.task-is-dragging,
.task-is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.just-dropped {
  animation: pop 0.5s var(--ease-spring);
}
.drag-over:not(.hub-column) {
  background: var(--accent-soft) !important;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
}
.board-readonly .board-card {
  cursor: default;
}

/* Lista do quadro */
.demand-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.list-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 22px;
  background: var(--subtle);
}
.list-section .column-add {
  margin-top: 4px;
}
.list-empty {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 13px;
}
.demand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: box-shadow 0.2s;
}
.demand-row:hover {
  box-shadow: var(--shadow-pop);
}
.demand-row[data-drag-id] {
  cursor: grab;
}
.completion {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--faint);
  transition: color 0.2s;
}
.completion:hover,
.is-done .completion {
  color: var(--accent);
}
.row-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.row-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.is-done .row-title strong {
  color: var(--muted);
  text-decoration: line-through;
}
.row-title small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.row-chips {
  display: flex;
  gap: 6px;
}
.row-stage {
  width: auto !important;
  min-width: 140px;
  min-height: 36px !important;
  font-size: 13px !important;
}
.demand-row .avatar-stack > * {
  width: 26px;
  height: 26px;
}

/* Linhas por processo (modo Jurídico) */
.process-lanes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-lane > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.process-lane > header > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.process-lane > header small {
  color: var(--muted);
}
.lane-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 10px;
  overflow-x: auto;
}
.lane-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--subtle);
}
.lane-column h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.lane-column h3 span {
  margin-left: auto;
  color: var(--muted);
}
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

/* Calendário de demandas (aba Calendário do quadro e página Calendário) */
.status-drop-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.status-drop-strip small {
  margin-right: 6px;
  color: var(--muted);
}
.status-drop-strip > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
}
.task-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.task-month {
  padding: 16px;
}
.task-month > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.task-month > header h2 {
  font-size: 18px;
  text-transform: capitalize;
}
.task-month > header h2 span {
  color: var(--muted);
  font-weight: 500;
}
.task-month > header > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.month-weekdays,
.task-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.month-weekdays span {
  padding: 4px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.task-day {
  min-height: 108px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--r);
  background: var(--subtle);
  transition: background 0.15s;
}
.task-day.outside {
  opacity: 0.45;
}
.day-number {
  align-self: flex-start;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}
.day-number:hover {
  background: var(--hover);
}
.day-number.is-today {
  background: var(--accent);
  color: var(--on-accent, #fff);
}
.calendar-demand {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: grab;
}
.calendar-demand.overdue {
  background: var(--rose);
  border-color: transparent;
  color: var(--rose-ink);
}
.calendar-demand.is-done {
  color: var(--muted);
  text-decoration: line-through;
}
.no-due {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.no-due h2 span {
  color: var(--muted);
  font-weight: 500;
}
.no-due p {
  color: var(--muted);
  font-size: 13px;
}
.cal-tabs {
  margin-bottom: 18px;
}
.cal-mobile {
  display: none;
}

/* ---------- Detalhe da demanda ---------- */
.ts-process {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 8px 20px -14px rgba(21, 22, 26, 0.3);
}
.ts-process-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
}
.ts-process > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ts-process small {
  color: var(--muted);
}
.ts-process b {
  color: var(--accent);
  font-size: 13px;
}
.detail-title {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 24px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  resize: none !important;
  field-sizing: content;
}
.checklist-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-head h3 {
  margin: 0;
  flex: 1;
}
.cl-head > span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cl-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 4px;
}
.cl-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}
.editable-check {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
  border-radius: var(--r-md);
  background: var(--tone-bg);
  transition: background 0.2s;
}
.editable-check.tone-0 {
  --tone-bg: #f1edff;
}
.editable-check.tone-1 {
  --tone-bg: #e8f7ef;
}
.editable-check.tone-2 {
  --tone-bg: #e7f2fc;
}
:root[data-theme="dark"] .editable-check {
  --tone-bg: var(--subtle);
}
.editable-check.checked {
  --tone-bg: var(--subtle);
}
.editable-check label {
  flex: 1;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 6px 10px 14px;
  cursor: pointer;
}
.editable-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.editable-check label > span {
  flex: 1;
  font-weight: 600;
}
.editable-check.checked label > span {
  color: var(--muted);
  text-decoration: line-through;
}
.check-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid #b4b9c1;
  border-radius: 50%;
  color: #fff;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.check-dot .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  opacity: 0;
}
.editable-check.checked .check-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.editable-check.checked .check-dot .icon {
  opacity: 1;
}
.editable-check input:focus-visible + span {
  text-decoration: underline;
}
.editable-check .icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.check-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  color: var(--muted);
}
.check-add input {
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  background: transparent !important;
}
/* Vários checklists na mesma demanda */
.cl-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-group + .cl-group {
  margin-top: 8px;
}
.cl-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.cl-group-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-group-head small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cl-group-head .icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.cl-new {
  display: flex;
  flex-direction: column;
}
.cl-new > .text-button {
  align-self: flex-start;
}
.upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.upload-zone input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.upload-zone.drag-over {
  border-color: var(--accent);
}
.attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--r);
  background: var(--subtle);
}
.attachment-row a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}
.attachment-row small {
  color: var(--muted);
}
.task-comment {
  margin-bottom: 10px;
  padding: 10px 13px;
  border-radius: 4px 16px 16px 16px;
  background: var(--subtle);
}
.task-comment small {
  margin-left: 6px;
  color: var(--muted);
}
.task-comment p {
  margin-top: 4px;
}
.mention-delivery {
  display: block;
  margin: 4px 0 0 !important;
}
.comment-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-compose textarea {
  min-height: 70px;
  border-radius: var(--r-md);
  background: var(--subtle);
  border-color: transparent;
}
.comment-compose > .dark-button {
  align-self: flex-end;
}
.mention-hint {
  color: var(--muted);
}
.mention-picker {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.mention-picker button {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  text-align: left;
}
.mention-picker button:hover,
.mention-picker button.active {
  background: var(--subtle);
}
.detail-property {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-property > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.detail-property > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.property-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.property-picker summary::before {
  display: none;
}
.property-picker .icon {
  width: 15px;
  height: 15px;
}
.picker-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.picker-options label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-sm);
}
.picker-options label > span:not(.person-avatar) {
  flex: 1;
}
.picker-options label .person-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.picker-options small {
  color: var(--muted);
}
.blocked-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--sun);
  color: var(--sun-ink);
  font-size: 13px;
}
.timer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--surface);
}
.timer-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--on-ink);
}
.timer-box strong {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.timer-box small {
  color: var(--muted);
}
.ts-created {
  font-size: 12px;
}
.detail-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px -22px -22px;
  padding: 14px 22px 18px;
  background: linear-gradient(transparent, var(--surface) 30%);
}
.ts-save {
  margin-left: auto;
}
.ts-cta {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
}
.ts-cta .icon {
  order: 2;
}
.ts-delete:hover {
  background: var(--rose);
  color: var(--rose-ink);
}

/* ---------- Busca rápida ---------- */
dialog.hub-search-modal {
  width: min(640px, calc(100vw - 32px));
}
.command-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.command-input input {
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
}
#command-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.command-result,
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r);
  text-align: left;
}
.command-result:hover,
.search-result:hover {
  background: var(--subtle);
}
.command-result > div,
.search-result > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.command-result small:first-child {
  width: 40px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.command-result > div > span,
.search-result small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
/* Título e linha de detalhes em uma linha só, com reticências. */
.command-result strong,
.command-result > div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-result .stage-dot {
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}
.command-result > small,
.command-result > .due-chip {
  flex: none;
}
.due-chip.today {
  background: var(--peach);
  color: var(--peach-ink);
}
.due-chip.overdue {
  background: var(--rose);
  color: var(--rose-ink);
}
.search-group {
  margin-bottom: 18px;
}
.search-group h2 {
  margin-bottom: 8px;
}
.search-group h2 small {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .task-calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  /* Busca rápida: sem o código da demanda, que empurrava o título. */
  .command-result {
    gap: 10px;
    padding: 10px 8px;
  }
  .command-result > small {
    display: none;
  }
  .home-sections,
  .kpi-row,
  .home-side,
  .home-list,
  .home-all {
    display: none;
  }
  .home-demands-head h2 {
    width: 100%;
  }
  .home-tabs {
    gap: 20px;
  }
  /* Cartões pastel arrastáveis (protótipo do celular). */
  .home-deck {
    display: block;
    margin: 0 -18px;
  }
  .deck-track {
    display: flex;
    gap: 14px;
    padding: 16px 18px 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .deck-track::-webkit-scrollbar {
    display: none;
  }
  .deck-track > .calm-empty {
    width: 100%;
  }
  .deck-card {
    flex: none;
    width: 156px;
    height: 192px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: var(--card-bg);
    color: #15161a;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: grab;
    transition:
      transform 0.55s var(--ease-spring),
      box-shadow 0.3s;
  }
  .deck-card.tone-0 {
    --card-bg: #e6deff;
  }
  .deck-card.tone-1 {
    --card-bg: #d7f4e6;
  }
  .deck-card.tone-2 {
    --card-bg: #d6ecfb;
  }
  .deck-card.tone-3 {
    --card-bg: #fce7d6;
  }
  .deck-card.is-lifted {
    position: relative;
    z-index: 2;
    transform: translateY(-10px) rotate(var(--tilt, -5deg)) scale(1.05);
    box-shadow: var(--shadow-lift);
    transition:
      transform 0.14s ease-out,
      box-shadow 0.2s;
  }
  .deck-pill {
    align-self: flex-end;
    padding: 4px 8px;
    border: 1px solid rgba(21, 22, 26, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 700;
  }
  .deck-pill.late {
    color: #c2331f;
  }
  .deck-card strong {
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .deck-card small {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(21, 22, 26, 0.55);
    font-size: 11px;
  }
  .deck-progress {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: rgba(21, 22, 26, 0.6);
    font-size: 11px;
  }
  .deck-progress b {
    color: #15161a;
  }
  .deck-bar {
    margin-top: 6px;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(21, 22, 26, 0.1);
  }
  .deck-bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: #15161a;
  }
  .home-board-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -6px;
  }
  .home-rows-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .home-rows-head small {
    color: var(--muted);
  }
  .board-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 8px 8px 10px;
    border-radius: 14px;
    background: var(--subtle);
    text-align: left;
    animation: rise 0.45s var(--ease) backwards;
    transition: transform 0.15s;
  }
  .board-row:active {
    transform: scale(0.985);
  }
  .board-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .board-row-text strong {
    font-size: 14px;
  }
  .board-row-text small {
    color: var(--muted);
    font-size: 12px;
  }
  /* Quadros mais compactos no Início do celular (14/11/2026). */
  .home-board-rows {
    gap: 6px;
  }
  .board-row .board-dot.big {
    width: 32px;
    height: 32px;
  }
  .board-row > .icon {
    transform: rotate(90deg);
  }

  /* Quadro no celular: etapas em pílulas e uma coluna por vez. */
  .board-head .top-actions {
    display: none;
  }
  .board-selector {
    font-size: 22px;
  }
  .board-search {
    width: 100%;
  }
  .board-hint {
    display: none;
  }
  .board-tools {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -18px 14px;
    padding: 0 18px;
  }
  .board-tools .board-search {
    flex: 0 0 200px;
  }
  .mobile-stages {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -18px 12px;
    padding: 0 18px;
  }
  .mobile-stages button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    background: var(--subtle);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .mobile-stages button span {
    color: var(--muted);
  }
  .mobile-stages .selected {
    background: var(--ink);
    color: var(--on-ink);
  }
  .hub-board {
    grid-auto-columns: calc(100vw - 48px);
    gap: 12px;
    margin: 0 -18px;
    padding: 0 18px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    scrollbar-width: none;
  }
  .hub-column {
    scroll-snap-align: start;
  }
  .card-check {
    opacity: 1;
  }
  .demand-row {
    flex-wrap: wrap;
  }
  .row-chips {
    display: none;
  }
  .row-stage {
    width: 100% !important;
  }
  .task-month-grid,
  .month-weekdays {
    gap: 3px;
  }
  .task-day {
    min-height: 64px;
    padding: 3px;
  }
  .calendar-demand {
    padding: 3px 4px;
    font-size: 10px;
  }

  /* Calendário no celular: semana e linha do tempo (protótipo). */
  .cal-desktop {
    display: none;
  }
  .cal-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .cm-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .cm-head > div {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .cm-head small {
    display: block;
    color: var(--muted);
  }
  .cm-head small::first-letter {
    text-transform: uppercase;
  }
  .cm-head strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .cm-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .cm-week button {
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 18px;
    transition:
      background 0.25s,
      color 0.25s,
      box-shadow 0.25s,
      transform 0.2s;
  }
  .cm-week button:active {
    transform: scale(0.94);
  }
  .cm-week small {
    color: var(--faint);
    font-size: 11px;
    text-transform: capitalize;
  }
  .cm-week b {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
  }
  .cm-week i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
  }
  .cm-week i.on {
    background: var(--accent);
  }
  .cm-week .is-today:not(.selected) b {
    color: var(--accent);
  }
  .cm-week .selected {
    background: var(--accent);
    color: var(--on-accent, #fff);
    box-shadow: 0 10px 20px -8px var(--accent);
  }
  .cm-week .selected small {
    color: rgba(255, 255, 255, 0.85);
  }
  .cm-week .selected i.on {
    background: #fff;
  }
  .cm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  /* Datas do mês (14/11/2026). */
  .cm-month-bar {
    display: flex;
    justify-content: center;
  }
  .cm-month-bar .subtle-button {
    width: 100%;
    justify-content: center;
  }
  /* Busca e abas da lista do dia (14/11/2026). */
  .cm-tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .cm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--muted);
  }
  .cm-search:focus-within {
    border-color: var(--ink);
  }
  .cm-search > .icon {
    flex: none;
    width: 18px;
    height: 18px;
  }
  .cm-tools .cm-search input[data-cal-search] {
    flex: 1;
    width: auto !important;
    min-width: 0;
    min-height: 0 !important;
    height: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--ink);
    font-size: 14px;
    outline: none;
  }
  .cm-clear {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    color: var(--muted);
  }
  .cm-clear .icon {
    width: 16px;
    height: 16px;
  }
  .cm-tabs {
    display: flex;
    gap: 0;
    margin: 0 -2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .cm-tabs::-webkit-scrollbar {
    display: none;
  }
  .cm-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 44px;
    padding: 0 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .cm-tabs button .icon {
    width: 16px;
    height: 16px;
  }
  .cm-tabs button.selected {
    border-bottom-color: var(--ink);
    color: var(--ink);
  }
  .cm-tabs button.selected .icon {
    color: var(--accent);
  }
  .cal-mobile.is-filtered .now-line,
  .cm-list > .cm-row[hidden],
  .cm-list > .cm-none[hidden] {
    display: none;
  }
  /* Calendário do mês (modelo de referência, 14/11/2026). */
  .cm-monthgrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    row-gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .cm-monthgrid > small {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    text-transform: capitalize;
  }
  .cm-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--ink);
  }
  .cm-cell b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    transition: background 0.2s, color 0.2s;
  }
  .cm-cell.is-today:not(.selected) b {
    color: var(--accent);
    font-weight: 700;
  }
  .cm-cell.selected b {
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 700;
  }
  .cm-cell:active b {
    transform: scale(0.94);
  }
  .cm-dots {
    display: flex;
    gap: 3px;
    height: 5px;
  }
  .cm-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  .cm-dots .d-ev { background: var(--sky-ink); }
  .cm-dots .d-due { background: var(--lilac-ink); }
  .cm-dots .d-late { background: var(--danger); }
  .cm-dots .d-date { background: var(--peach-ink); }
  .cm-dots .d-holiday { background: var(--rose-ink); }
  .cm-day-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  @media (max-width: 340px) {
    .cm-cell b {
      width: 32px;
      height: 32px;
      font-size: 14px;
    }
  }
  .cm-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    animation: rise 0.45s var(--ease) backwards;
  }
  .cm-row time {
    padding-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .cm-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 20px;
    background: var(--tone-bg);
    text-align: left;
    transition: transform 0.15s;
  }
  .cm-item:active {
    transform: scale(0.985);
  }
  .cm-item strong {
    font-size: 16px;
  }
  .cm-item small {
    color: var(--text);
    opacity: 0.8;
  }
  /* Avatares no canto, sem puxar o fundo do cartão (antes a pilha vazia
     subia 30 px e o texto vazava para fora). */
  .cm-item {
    position: relative;
    min-width: 0;
    height: auto;
    min-height: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cm-item .avatar-stack {
    position: absolute;
    right: 14px;
    bottom: 12px;
    margin: 0;
  }
  .cm-item .avatar-stack:empty {
    display: none;
  }
  .cm-item:has(.avatar-stack:not(:empty)) small {
    padding-right: 64px;
  }
  .cm-item strong,
  .cm-item small {
    display: block;
    line-height: 1.3;
  }
  .cal-mobile .now-line {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  /* Detalhe no celular: folha cheia com botão principal fixo. */
  dialog.hub-detail-modal {
    width: 100vw;
    max-height: 96dvh;
  }
  .detail-title {
    font-size: 22px !important;
  }
  .detail-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .ts-cta {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ts-save {
    margin-left: 0;
  }
}
/* 320 px: "Salvar" vira só o ícone (o nome continua para leitores de tela)
   e o nome da próxima etapa pode ocupar duas linhas. */
@media (max-width: 360px) {
  .ts-save {
    width: 46px;
    flex: none;
    gap: 0;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .ts-cta {
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .ts-cta .icon {
    display: none;
  }
}

/* Etiquetas e prioridade no detalhe (team.js). */
.editable-labels,
.label-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.label-compose input {
  flex: 1;
  min-width: 120px;
}
.priority-preview {
  align-self: flex-start;
}
.cover-property {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cover-preview {
  width: 100%;
  height: 80px;
  border-radius: var(--r);
  object-fit: cover;
  background: var(--subtle);
}
.cover-upload {
  position: relative;
}
.cover-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.readonly-note {
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--sun);
  color: var(--sun-ink);
  font-size: 13px;
}

/* ---------- Editor da demanda (modelo de 27/10/2026) ----------
   Computador: barra com caminho e ações, título grande, propriedades em
   linhas (ícone + nome à esquerda), descrição, anexos em blocos, lista de
   tarefas em tabela, detalhes e comentários.
   Celular: mesma ordem do modelo mobile, com abas Checklist / Detalhes /
   Anexos e o botão principal fixo no rodapé. */
dialog.hub-detail-modal {
  width: min(840px, calc(100vw - 32px));
}
dialog.hub-detail-modal.is-wide {
  width: min(1180px, calc(100vw - 32px));
}
dialog.hub-detail-modal > .modal-heading {
  display: none;
}
dialog.hub-detail-modal > .tsx {
  margin: 0 !important;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tsx-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -28px;
  padding: 14px 20px 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tsx-crumb {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.tsx-crumb > span:not(.board-dot) {
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsx-crumb b {
  color: var(--faint);
  font-weight: 400;
}
.tsx-crumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsx-tools {
  display: flex;
  gap: 8px;
}
.tsx .tsx-tool {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.tsx .tsx-tool:hover {
  background: var(--subtle);
}
.tsx .tsx-tool .icon {
  width: 18px;
  height: 18px;
}
.tsx .detail-title {
  margin-top: 6px;
  font-size: 30px !important;
  letter-spacing: -0.025em;
}

/* Propriedades */
.tsx-props {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tsx-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.tsx-key {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.tsx-key .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.tsx-val {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tsx-val input[type="date"],
.tsx-val > select {
  width: auto !important;
  min-height: 0 !important;
  height: 36px;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background-color: transparent;
  box-shadow: none;
  font-weight: 500;
}
.tsx-val > select {
  padding-right: 30px !important;
}
.tsx-val input[type="date"]:hover,
.tsx-val input[type="date"]:focus,
.tsx-val > select:hover {
  border-color: var(--line-2) !important;
  background-color: var(--subtle);
}
.tsx-dates {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.tsx-arrow .icon {
  width: 16px;
  height: 16px;
  color: var(--faint);
}
/* Etapa como pílula com ponto (cores do quadro) */
.tsx-stage {
  --tone: var(--lilac);
  --tone-ink: var(--lilac-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 2px 0 12px;
  border-radius: 10px;
  background: var(--tone);
  color: var(--tone-ink);
}
.tsx-stage.stage-briefing {
  --tone: var(--sky);
  --tone-ink: var(--sky-ink);
}
.tsx-stage.stage-doing {
  --tone: var(--sun);
  --tone-ink: var(--sun-ink);
}
.tsx-stage.stage-review {
  --tone: var(--peach);
  --tone-ink: var(--peach-ink);
}
.tsx-stage.stage-done {
  --tone: var(--mint);
  --tone-ink: var(--mint-ink);
}
.tsx-stage i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.tsx-stage select {
  width: auto !important;
  min-height: 0 !important;
  height: 34px;
  padding: 0 28px 0 0 !important;
  border: 0 !important;
  background-color: transparent;
  box-shadow: none;
  color: inherit;
  font-weight: 600;
}
.tsx-val > select.tsx-priority {
  height: 34px;
  font-weight: 600;
}
.tsx-priority.priority-urgent,
.tsx-priority.priority-high {
  background-color: var(--rose) !important;
  color: var(--rose-ink);
}
.tsx-priority.priority-medium {
  background-color: var(--sun) !important;
  color: var(--sun-ink);
}
.tsx-priority.priority-low {
  background-color: var(--sky) !important;
  color: var(--sky-ink);
}
.tsx-priority.priority- {
  color: var(--muted);
}
/* Pessoas: fichas com foto e nome */
#tsx-people,
#tsx-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#assigned-avatars {
  display: contents;
}
.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  white-space: nowrap;
}
.person-chip .person-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.tsx .property-picker {
  position: relative;
}
.tsx .property-picker summary {
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
}
.tsx .picker-options {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  box-shadow: var(--shadow-pop);
}
.tsx .editable-labels {
  display: contents;
}
.tsx .label-chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
}
.tsx .label-compose {
  flex-wrap: nowrap;
}
.tsx .label-compose input {
  width: 150px !important;
  min-width: 0;
  flex: none;
  min-height: 0 !important;
  height: 34px;
  padding: 0 10px !important;
  border: 1px dashed var(--line-2) !important;
  border-radius: 10px !important;
  background: transparent;
  box-shadow: none;
}
.tsx .label-compose button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
/* Descrição */
.tsx-desc {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tsx-desc textarea {
  min-height: 104px;
  padding: 14px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--surface);
  line-height: 1.6;
}
/* Seções */
.tsx-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.tsx-section-title .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.tsx-section-title small {
  color: var(--muted);
  font-weight: 500;
}
.tsx-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
  font-weight: 700;
}
.tsx-tabs {
  display: none;
}
.tsx-files {
  order: 2;
}
.tsx-pane[data-pane="checklist"] {
  order: 3;
}
.tsx-details {
  order: 4;
}
.tsx-comments {
  order: 5;
}
.tsx > .form-error {
  order: 6;
}
.tsx-foot {
  order: 7;
}
/* Anexos em blocos */
.tsx-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tsx-download {
  color: var(--accent) !important;
}
.att-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.att-tile {
  position: relative;
  flex: 1 1 220px;
  max-width: 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.att-tile:hover {
  border-color: var(--line-2);
}
.att-tile a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px 12px 14px;
}
.att-tile a > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.att-tile strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-tile small {
  color: var(--muted);
  font-size: 13px;
}
.att-tile .icon-button {
  margin-right: 6px;
  color: var(--muted);
  opacity: 0;
}
.att-tile:hover .icon-button,
.att-tile:focus-within .icon-button {
  opacity: 1;
}
.att-ext {
  width: 36px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 -16px 0 var(--subtle);
}
.att-ext.ext-pdf {
  box-shadow: inset 0 -16px 0 var(--rose);
  color: var(--rose-ink);
}
.att-ext.ext-img,
.att-ext.ext-doc {
  box-shadow: inset 0 -16px 0 var(--sky);
  color: var(--sky-ink);
}
.att-ext.ext-video,
.att-ext.ext-design {
  box-shadow: inset 0 -16px 0 var(--lilac);
  color: var(--lilac-ink);
}
.att-ext.ext-sheet {
  box-shadow: inset 0 -16px 0 var(--mint);
  color: var(--mint-ink);
}
.tsx .att-add {
  flex: 0 0 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
}
.tsx .att-add:hover {
  background: var(--subtle);
}
.tsx .att-add span:empty {
  display: none;
}
.tsx .att-add:only-child {
  flex: 1 1 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
}
/* Checklist: cartões com a caixa de marcar à esquerda, em todas as larguras. */
.tsx .checklist-box {
  gap: 10px;
}
.tsx .cl-head h3 {
  flex: 1;
}
.tsx .cl-bar {
  height: 4px;
  margin: 0;
}
.tsx .cl-group {
  gap: 8px;
}
.tsx .cl-group + .cl-group {
  margin-top: 8px;
}
.tsx .editable-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tsx .editable-check label {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0;
}
.tsx .check-dot {
  width: 20px;
  height: 20px;
  margin-left: 14px;
  border-width: 1.5px;
  border-radius: 6px;
}
.tsx .editable-check.checked .check-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.tsx .editable-check label > span {
  padding: 11px 0;
  font-weight: 500;
}
.tsx .editable-check.checked label > span {
  color: var(--muted);
  text-decoration: line-through;
}
.tsx .editable-check input:focus-visible ~ span {
  text-decoration: underline;
}
.tsx .cl-group > .check-add {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}
.tsx .cl-group-head {
  margin-bottom: 0;
}
/* Detalhes */
.tsx-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tsx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.tsx-grid .cover-property {
  grid-column: 1 / -1;
}
.tsx .timer-box {
  border: 1px solid var(--line);
}
.tsx .timer-box .ts-created {
  margin-left: auto;
}
/* Comentários */
.tsx-comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tsx .task-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}
.tsx .task-comment .person-avatar {
  width: 34px;
  height: 34px;
}
.tsx .task-comment header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tsx .task-comment time {
  color: var(--muted);
  font-size: 12px;
}
.tsx .task-comment p {
  margin-top: 4px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.tsx .comment-compose {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tsx .comment-compose .person-avatar {
  width: 30px;
  height: 30px;
}
.tsx .comment-compose textarea {
  min-height: 38px !important;
  max-height: 160px;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  resize: none;
  field-sizing: content;
}
.tsx .comment-compose .tsx-send {
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
}
.tsx .comment-compose .mention-picker,
.tsx .comment-compose .mention-hint {
  grid-column: 1 / -1;
  font-size: 12px;
}
/* Rodapé */
.tsx .tsx-foot {
  margin: 0 -28px;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.tsx-viewers {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}
.tsx .ts-save {
  margin-left: 0;
}

@media (max-width: 600px) {
  dialog.hub-detail-modal > .tsx {
    padding: 0 18px;
    gap: 16px;
  }
  .tsx-bar {
    gap: 6px;
    margin: 0 -18px;
    padding: 10px 10px 10px 8px;
  }
  .tsx-tools {
    display: contents;
  }
  .tsx .tsx-tool {
    width: 38px;
    height: 38px;
    border: 0;
  }
  .tsx .tsx-close {
    order: -1;
  }
  .tsx .tsx-wide {
    display: none;
  }
  .tsx .detail-title {
    font-size: 23px !important;
  }
  .tsx-desc {
    order: 0;
  }
  .tsx-desc .tsx-key {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tsx-desc textarea {
    min-height: 64px;
    padding: 10px 12px !important;
    border-color: transparent !important;
    background: var(--subtle);
  }
  .tsx-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    min-height: 42px;
  }
  .tsx-key {
    font-size: 13px;
  }
  .tsx-files,
  .tsx-pane[data-pane="checklist"],
  .tsx-details,
  .tsx-comments,
  .tsx > .form-error,
  .tsx-foot {
    order: 0;
  }
  .tsx .picker-options {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .tsx .property-picker {
    flex-basis: 100%;
  }
  .tsx .label-compose input {
    width: 130px !important;
  }
  /* Abas: só a seção escolhida aparece. */
  .tsx-tabs {
    display: flex;
    margin: 4px -18px 0;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }
  .tsx-tabs button {
    flex: 1;
    padding: 12px 4px;
    color: var(--muted);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 transparent;
  }
  .tsx-tabs button.selected {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--ink);
  }
  .tsx-tabs small {
    color: var(--muted);
    font-weight: 500;
  }
  .tsx-pane {
    display: none !important;
  }
  .tsx[data-pane="checklist"] > .tsx-pane[data-pane="checklist"],
  .tsx[data-pane="files"] > .tsx-pane[data-pane="files"],
  .tsx[data-pane="details"] > .tsx-pane[data-pane="details"] {
    display: flex !important;
    flex-direction: column;
  }
  .tsx-details > .tsx-section-title,
  .tsx-files > .tsx-section-title {
    display: none;
  }
  .tsx-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .att-tile {
    max-width: none;
    flex-basis: 100%;
  }
  .att-tile .icon-button {
    opacity: 1;
  }
  .tsx .tsx-foot {
    margin: 0 -18px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  }
  .tsx-viewers .avatar-stack .person-avatar:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 360px) {
  .tsx-viewers small {
    display: none;
  }
  .tsx-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
.tsx .comment-compose > .person-avatar {
  grid-row: 1;
  grid-column: 1;
}
.tsx .comment-compose textarea {
  grid-row: 1;
  grid-column: 2;
}
.tsx .comment-compose .tsx-send {
  grid-row: 1;
  grid-column: 3;
}
.tsx .comment-compose .mention-hint {
  display: none;
}
.tsx .mention-picker[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .tsx-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .tsx .person-chip {
    height: 30px;
    gap: 6px;
    padding: 0 9px 0 3px;
    font-size: 12px;
  }
  .tsx .person-chip .person-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  .tsx .person-chip > span:last-child {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tsx .property-picker summary {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
  .tsx-dates {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .tsx-val .tsx-dates input[type="date"] {
    height: 34px;
    padding: 0 4px !important;
    font-size: 13px;
  }
  .tsx-val .tsx-dates input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
  }
  .tsx-arrow .icon {
    width: 14px;
    height: 14px;
  }
  /* Rodapé no celular: avatares + Salvar só com ícone + botão principal. */
  .tsx-viewers small {
    display: none;
  }
  .tsx .tsx-foot .ts-save:not(.ts-cta) {
    width: 46px;
    flex: none;
    gap: 0;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .tsx .tsx-foot .ts-cta {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
}
@media (max-width: 360px) {
  .tsx-dates {
    flex-wrap: wrap;
  }
  .tsx-arrow {
    display: none;
  }
}
@media (max-width: 600px) {
  .tsx-tabs button {
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .tsx-tabs button {
    font-size: 13px;
  }
}

/* Ajustes de 27/10 (tarde): janela mais larga; "ampliar" ocupa quase a tela. */
dialog.hub-detail-modal {
  width: min(960px, calc(100vw - 32px));
}
dialog.hub-detail-modal.is-wide {
  width: calc(100vw - 48px);
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: none;
}
/* Celular mais limpo: no topo só Etapa, Datas e Pessoas (e Prazo fatal no
   Jurídico); Etiquetas e Prioridade passam para a aba Detalhes. */
@media (max-width: 600px) {
  .tsx-props {
    display: contents;
  }
  .tsx > .tsx-bar {
    order: 0;
  }
  .tsx > .ts-process,
  .tsx > .readonly-note {
    order: 1;
  }
  .tsx > .sr-only,
  .tsx > .detail-title {
    order: 2;
  }
  .tsx > .tsx-desc {
    order: 3;
  }
  .tsx-props > .tsx-row {
    order: 4;
  }
  .tsx > .blocked-note {
    order: 5;
  }
  .tsx > .tsx-tabs {
    order: 6;
  }
  .tsx-props > .tsx-row.tsx-more {
    order: 7;
    display: none;
  }
  .tsx[data-pane="details"] .tsx-props > .tsx-row.tsx-more {
    display: grid;
  }
  .tsx > .tsx-pane {
    order: 8;
  }
  .tsx > .tsx-comments {
    order: 9;
  }
  .tsx > .form-error {
    order: 10;
  }
  .tsx > .tsx-foot {
    order: 11;
  }
  dialog.hub-detail-modal > .tsx {
    gap: 12px;
  }
  .tsx-props > .tsx-row {
    min-height: 38px;
  }
  .tsx .detail-title {
    margin-top: 2px;
    font-size: 22px !important;
  }
  .tsx-desc textarea {
    min-height: 44px !important;
    field-sizing: content;
    max-height: 180px;
  }
  .tsx-tabs {
    margin-top: 6px;
  }
  .tsx-pane[data-pane="checklist"] .cl-head h3 {
    display: none;
  }
  .tsx-pane[data-pane="checklist"] .cl-head {
    justify-content: flex-end;
  }
  .tsx-comments {
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .tsx-viewers {
    display: none;
  }
  .tsx .tsx-foot .ts-save:not(.ts-cta) {
    margin-right: 0;
  }
}

/* Início (27/10, tarde): clima minimalista no topo e os cartões de Agenda,
   Equipe e Menções em linha, abaixo de "Minhas demandas". */
.live-weather {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.live-weather [data-weather-value] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lw-temp {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lw-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.lw-text strong {
  font-size: 13px;
}
.lw-text small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lw-loading {
  min-width: 60px;
  color: var(--faint);
  font-size: 20px;
  font-weight: 700;
}
.home-head .live-weather + .top-actions,
.home-head .live-weather ~ * {
  margin-left: 0;
}
.home-grid {
  flex-direction: column;
  align-items: stretch;
}
.home-demands {
  flex: none;
  width: 100%;
}
.home-side {
  flex: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 16px;
}
.home-side > .side-card {
  min-width: 0;
}
@media (max-width: 600px) {
  .live-weather {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Painéis que abrem abaixo do botão: lista de quadros e dimensões. */
.board-head h1,
.top-actions {
  position: relative;
}
.hub-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  animation: pop-in 0.16s var(--ease);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.top-actions > .hub-pop {
  left: auto;
  right: 0;
}
.board-pop .board-picker {
  max-height: min(360px, 55dvh);
  margin: 0;
  gap: 2px;
}
.board-pop #board-picker-search {
  margin-bottom: 6px;
}
.board-pop .board-picker > button {
  min-height: 42px;
  padding: 8px 10px;
}
.board-pop .board-picker > button.selected {
  background: var(--subtle);
  font-weight: 600;
}
.board-pop .board-picker > button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-pop .picker-owner {
  margin: 0;
  font-size: 11px;
}
.board-pop .board-picker > button > small:last-child {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.board-pop .board-picker .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.board-pop .picker-group {
  margin: 8px 10px 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.board-pop .picker-dot {
  flex: none;
  background: var(--board, var(--accent));
}
.board-pop-new {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--accent);
  font-weight: 600;
}
.board-pop-new:hover {
  background: var(--subtle);
}
.board-pop-new .icon {
  width: 16px;
  height: 16px;
}
.size-pop-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 6px 4px;
}
.size-pop-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.size-pop-form label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.size-pop-form label > span .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.size-pop-form output {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--subtle);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.size-pop-form input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}
/* Etapas sem limite de altura. No computador a barra nativa some e a cópia
   (.board-scroll) fica presa ao pé da tela; no celular rola-se com o dedo. */
.hub-board {
  scrollbar-width: none;
}
.hub-board::-webkit-scrollbar {
  display: none;
}
.board-scroll {
  position: sticky;
  bottom: 0;
  z-index: 5;
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin-top: -4px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 35%, transparent) transparent;
}
.board-scroll > div {
  height: 1px;
}
.board-scroll[hidden] {
  display: none;
}
/* 15/11/2026: a barra de rolagem extra do quadro saiu (pedido do usuário).
   O quadro rola de lado com o trackpad, com Shift + roda ou arrastando o
   fundo do quadro com o mouse. */
.board-scroll {
  display: none !important;
}
.hub-board.is-panning {
  cursor: grabbing;
  user-select: none;
}
@media (max-width: 600px) {
  .hub-pop {
    width: calc(100vw - 32px);
  }
}
.tsx-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--subtle);
}
.tsx-share input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 0 !important;
  height: 38px;
  font-size: 13px;
}
.tsx-share .dark-button {
  min-height: 38px;
}
.tsx-share small {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 600px) {
  .tsx > .tsx-share {
    order: 1;
  }
}
@media (max-width: 600px) {
  .tsx-dates {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .home-head {
    flex-wrap: wrap;
  }
  .home-head .page-head-main {
    flex: 1 1 0;
  }
  .home-head .live-weather {
    order: 5;
    flex: 1 1 100%;
  }
}
/* Cor da coluna: seletor livre e opção de voltar à cor padrão. */
.column-color {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
}
.column-color-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.column-color-pick input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.column-color-pick input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}
.column-color-pick input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 9px;
}
.column-color-pick input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 9px;
}
.column-color-pick output {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Criação rápida: botões quebram de linha em colunas estreitas. */
.quick-create footer {
  flex-wrap: wrap;
}
.quick-create footer > * {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}
/* Datas da demanda: cada campo com rótulo visível e largura mínima. Em alguns
   celulares (Safari no iPhone) o campo de data vazio encolhia até sumir. */
.tsx-date {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.tsx-date:hover,
.tsx-date:focus-within {
  border-color: var(--line-2);
  background: var(--subtle);
}
.tsx-date small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
}
.tsx-val .tsx-date input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  min-width: 112px;
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 22px;
  color-scheme: light dark;
}
.tsx-val .tsx-date input[type="date"]::-webkit-date-and-time-value {
  min-height: 22px;
  margin: 0;
  text-align: left;
}
.tsx-val .tsx-date input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0 0 0 4px;
  opacity: 0.55;
  cursor: pointer;
}
@media (max-width: 600px) {
  .tsx-val .tsx-dates {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tsx-date {
    flex: 1 1 128px;
  }
  .tsx-val .tsx-dates .tsx-arrow {
    display: none;
  }
  .tsx-val .tsx-date input[type="date"] {
    min-width: 0;
    height: 22px;
  }
  .tsx-val .tsx-date input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
  }
}
/* Sugestões de menção (demanda e conversas): foto ou iniciais + nome. */
.mention-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px !important;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mention-option:hover,
.mention-option:focus-visible,
.mention-option.active {
  background: var(--subtle);
}
.mention-option .person-avatar {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
}
.chat-mention-picker {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.chat-mention-picker[hidden] {
  display: none;
}
/* Etapa com cor: o fundo inteiro da coluna ganha um tom da cor escolhida. */
.hub-column.has-color {
  background: color-mix(in srgb, var(--col) 16%, var(--surface));
}
.hub-column.has-color .col-tag {
  background: color-mix(in srgb, var(--col) 26%, var(--surface));
  color: color-mix(in srgb, var(--col) 70%, var(--text));
}
.hub-column.has-color .column-add {
  border-color: color-mix(in srgb, var(--col) 35%, transparent);
}
.col-tag.custom {
  background: var(--surface);
}
/* Botão "Nova etapa" ao fim do quadro. */
.stage-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: start;
  width: 120px;
  min-height: 120px;
  border: 1.5px dashed var(--line-2);
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.stage-add:hover,
.stage-add:focus-visible {
  background: var(--subtle);
  color: var(--text);
}
.stage-add .icon {
  width: 22px;
  height: 22px;
}
.hub-board.has-add {
  grid-template-columns:
    repeat(var(--stages), minmax(var(--column-width, 280px), 1fr))
    120px;
}
@media (max-width: 600px) {
  .hub-board.has-add {
    grid-template-columns: repeat(calc(var(--stages) + 1), calc(100vw - 48px));
  }
}
@media (max-width: 600px) {
  .stage-add {
    width: calc(100vw - 48px);
    min-height: 88px;
    scroll-snap-align: start;
  }
}
/* Capa no topo da demanda. */
.tsx-cover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  border-radius: 18px;
}
label.tsx-cover {
  padding: 14px 16px;
  border: 1.5px dashed var(--line-2);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 7%, var(--surface)),
    var(--surface)
  );
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
label.tsx-cover:hover,
label.tsx-cover:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.tsx-cover input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.tsx-cover-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.tsx-cover-icon .icon {
  width: 22px;
  height: 22px;
}
.tsx-cover strong {
  display: block;
  font-size: 14.5px;
}
.tsx-cover small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.tsx-cover.has-image {
  overflow: hidden;
  height: 168px;
  background: var(--subtle);
}
.tsx-cover.has-image .cover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tsx-cover.is-removed {
  display: none;
}
.tsx-cover-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.tsx-cover-actions .cover-upload,
.tsx-cover-actions .cover-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: #15161a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tsx-cover-actions .icon {
  width: 16px;
  height: 16px;
}
/* Detalhes recolhidos: só o título com o ícone até abrir. */
.tsx-fold > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.tsx-fold > summary::-webkit-details-marker {
  display: none;
}
.tsx-fold-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border-radius: 8px;
  background: var(--subtle);
  transition: transform 0.2s;
}
.tsx-fold-icon .icon {
  width: 16px;
  height: 16px;
}
.tsx-fold[open] .tsx-fold-icon {
  transform: rotate(180deg);
}
.tsx-fold > summary:hover .tsx-fold-icon {
  background: var(--line);
}
.tsx-fold[open] > .tsx-grid {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .tsx-cover.has-image {
    height: 132px;
  }
  label.tsx-cover {
    padding: 12px;
  }
}
.tsx-fold > summary::before {
  display: none;
}
.tsx label.tsx-cover {
  height: auto;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
}
/* ---------- Início abaixo de "Minhas demandas" (28/10/2026) ----------
   Esquerda: Próximas postagens e Próximas agendas. Direita: Membros da
   equipe e Menções recentes. Painéis brancos com borda fina. */
.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}
.home-lower-main,
.home-lower-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.home-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.home-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.home-panel-head h2 {
  margin: 0;
  font-size: 16.5px;
}
.home-panel-head small {
  color: var(--muted);
  font-size: 12px;
}
.home-panel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--lilac);
  color: var(--lilac-ink);
}
.home-panel-icon .icon {
  width: 18px;
  height: 18px;
}
.home-panel-link,
.home-post-filter {
  margin-left: auto;
}
.home-panel-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.home-panel-link:hover {
  color: var(--text);
}
.home-post-filter select {
  height: 34px;
  min-height: 0;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
/* Próximas postagens: tabela leve. */
.home-table {
  display: flex;
  flex-direction: column;
}
.home-tr {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 104px 112px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.home-tr:last-child {
  border-bottom: 0;
}
button.home-tr:hover {
  background: var(--subtle);
}
.home-th {
  min-height: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}
.home-client {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-client .ac-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
}
.home-client em {
  overflow: hidden;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-post-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-post-title strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-post-title small {
  color: var(--muted);
  font-size: 12px;
}
.home-date {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
/* Próximas agendas: linha do tempo. */
.home-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 60px 18px minmax(0, 1fr);
  align-items: center;
}
.home-timeline time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 4px;
}
.home-timeline time b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.home-timeline time small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.home-timeline li > i {
  justify-self: center;
  width: 9px;
  height: 9px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
}
.home-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% + 8px);
  bottom: calc(-50% - 2px);
  left: 68.5px;
  width: 1px;
  background: var(--line);
}
.home-timeline li.is-next > i {
  border-color: var(--lilac-ink);
  background: var(--lilac-ink);
}
.home-event {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.home-event:hover {
  border-color: var(--line-2);
}
.is-next .home-event {
  border-color: color-mix(in srgb, var(--lilac-ink) 35%, transparent);
  background: var(--lilac);
}
.is-next .home-event strong {
  color: var(--lilac-ink);
}
.home-event > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.home-event strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-event small {
  color: var(--muted);
  font-size: 12px;
}
.home-event em {
  flex: none;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
/* Equipe no Início (14/11/2026): lista com filtro, busca, presença e
   função em selo. */
.tm-head {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tm-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
}
.tm-pick b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tm-pick select {
  max-width: 150px;
  padding: 0 18px 0 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.tm-pick select option {
  color: var(--ink);
  background: var(--surface);
}
.tm-pick .icon {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.tm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--subtle);
  color: var(--muted);
}
.tm-search .icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.tm-card .tm-search input[data-team-search],
.tm-card .tm-search input[data-team-search]:focus {
  flex: 1;
  width: auto;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}
/* O estilo geral de campos (base.css) é mais específico: aqui ele não vale. */
.tm-card .tm-search input[data-team-search],
.tm-card .tm-pick select {
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.tm-card .tm-search input[data-team-search] {
  width: auto !important;
  padding: 0 !important;
}
.tm-card .tm-pick select {
  width: auto !important;
  padding: 0 18px 0 0 !important;
}
.tm-search:focus-within {
  border-color: var(--ink);
}
.tm-list {
  max-height: 392px;
  margin: 10px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.tm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tm-row:last-child {
  border-bottom: 0;
}
.tm-row[hidden] {
  display: none;
}
.tm-n {
  flex: none;
  width: 18px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.tm-who {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
button.tm-who {
  cursor: pointer;
}
.tm-who .person-avatar {
  flex: none;
  width: 42px;
  height: 42px;
}
.tm-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tm-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-name strong small {
  color: var(--muted);
  font-weight: 500;
}
.tm-name > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Cartão estreito (2 colunas no computador, celular): selo e número menores. */
.tm-card {
  container-type: inline-size;
}
@container (max-width: 360px) {
  .tm-row,
  .tm-who {
    gap: 8px;
  }
  .tm-n {
    width: 14px;
    font-size: 10px;
  }
  .tm-who .person-avatar {
    width: 36px;
    height: 36px;
  }
  .tm-role {
    max-width: 40%;
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }
}
.tm-name > small.is-on {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* Texto na cor de destaque escurecida: o verde puro dava 3,02:1. */
  color: color-mix(in srgb, var(--accent) 55%, var(--ink));
  font-weight: 600;
}
.tm-name > small.is-on::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tm-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 46%;
  height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tm-role span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-role .icon {
  flex: none;
  width: 14px;
  height: 14px;
}
.tm-role.tone-sky { background: var(--sky); color: var(--sky-ink); }
.tm-role.tone-sun { background: var(--sun); color: var(--sun-ink); }
.tm-role.tone-mint { background: var(--mint); color: var(--mint-ink); }
.tm-role.tone-peach { background: var(--peach); color: var(--peach-ink); }
.tm-role.tone-rose { background: var(--rose); color: var(--rose-ink); }
.tm-role.tone-lilac { background: var(--lilac); color: var(--lilac-ink); }
.tm-role.tone-subtle { background: var(--subtle); color: var(--text); }
.tm-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 420px) {
  .tm-head {
    flex-wrap: wrap;
  }
  .tm-search {
    flex-basis: 100%;
  }
}
@media (max-width: 340px) {
  .tm-n {
    display: none;
  }
  .tm-role {
    max-width: 40%;
    padding: 0 10px;
  }
}
/* Membros da equipe. */
.home-members {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-members li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.home-members li:last-child {
  border-bottom: 0;
}
.home-members .person-avatar {
  width: 36px;
  height: 36px;
}
.home-member-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.home-member-name strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-member-name strong small,
.home-member-name > small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}
.home-role {
  flex: none;
  max-width: 132px;
  overflow: hidden;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-member-tools {
  display: flex;
  flex: none;
  gap: 2px;
  min-width: 64px;
  justify-content: flex-end;
}
.home-member-tools .icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.home-member-tools .icon {
  width: 16px;
  height: 16px;
}
.home-mentions .mention-row {
  padding: 8px 0;
}
@media (max-width: 1100px) {
  .home-lower {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .home-lower {
    gap: 14px;
    margin-top: 18px;
  }
  .home-panel {
    padding: 16px;
  }
  .home-panel-head {
    flex-wrap: wrap;
  }
  .home-post-filter {
    width: 100%;
    margin-left: 0;
  }
  .home-post-filter select {
    width: 100%;
  }
  .home-th {
    display: none;
  }
  .home-tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title status"
      "client date";
    gap: 4px 10px;
  }
  .home-post-title {
    grid-area: title;
  }
  .home-client {
    grid-area: client;
  }
  .home-date {
    grid-area: date;
    justify-self: end;
  }
  .home-tr > span:last-child {
    grid-area: status;
    justify-self: end;
  }
  .home-client .ac-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  .home-role {
    display: none;
  }
}
/* Faixa de datas importantes, entre o cabeçalho do Início e as abas. */
.dates-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 9px 12px 9px 16px;
  border: 1px solid color-mix(in srgb, var(--lilac-ink) 18%, transparent);
  border-radius: 14px;
  background: var(--lilac);
  color: var(--text);
  font-size: 13px;
}
.dates-strip > .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--lilac-ink);
}
.dates-strip p {
  margin: 0;
  line-height: 1.4;
}
.dates-strip p > span {
  color: var(--muted);
}
.dates-strip strong {
  font-weight: 700;
}
.dates-strip .icon-button {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.dates-strip .icon-button .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 600px) {
  .dates-strip {
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 12.5px;
  }
  .dates-strip > .icon {
    margin-top: 1px;
  }
  .dates-strip .icon-button {
    margin-left: auto;
  }
}
/* Cronômetro no rodapé do editor: discreto, ao lado das pessoas. */
.tsx-foot .tsx-viewers {
  margin-right: 0;
}
.tsx-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-right: auto;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.tsx-timer:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.tsx-timer .icon {
  width: 14px;
  height: 14px;
}
.tsx-timer.is-running {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--text);
}
.tsx-timer.is-running .icon {
  color: var(--accent);
}
.tsx-details .ts-created {
  margin: 10px 0 0;
  font-size: 12px;
}
@media (max-width: 600px) {
  /* No celular as pessoas somem do rodapé: o cronômetro ganha um pouco mais
     de presença, sem competir com o botão principal. */
  .tsx-timer {
    flex: none;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    background: var(--subtle);
    color: var(--text);
    font-size: 13px;
  }
  .tsx-timer .icon {
    width: 16px;
    height: 16px;
  }
  .tsx-foot .tsx-timer {
    margin-right: 0;
  }
}
/* Etapa arrastada: coluna levantada e vaga tracejada no lugar de destino. */
.hub-column.stage-source {
  display: none;
}
.stage-slot {
  align-self: start;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 22px;
  background: var(--accent-soft);
}
.stage-ghost {
  overflow: hidden;
  border-radius: 22px;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.hub-column > header[data-stage-handle] {
  cursor: grab;
  touch-action: pan-y;
}
@media (max-width: 360px) {
  .tsx-timer {
    gap: 4px;
    padding: 0 8px;
    font-size: 12px;
  }
  .tsx-timer .icon {
    width: 14px;
    height: 14px;
  }
  .tsx .tsx-foot .ts-cta {
    font-size: 13px;
    padding: 0 10px;
  }
}
/* Cronômetro: iniciar/pausar e zerar lado a lado. */
.tsx-timer-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.tsx-timer-group .tsx-timer {
  margin-right: 0;
}
.tsx-timer-reset {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tsx-timer-reset:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.tsx-timer-reset .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 600px) {
  .tsx-foot .tsx-timer-group {
    margin-right: 0;
  }
  .tsx-timer-reset {
    width: 40px;
    height: 46px;
    border-radius: 14px;
    background: var(--subtle);
  }
}
/* Demanda: Tarefa ou Rede social. No modo Rede social, os campos da
   postagem entram junto com descrição, checklist e anexos da demanda. */
.tsx-mode {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin: 2px 0 12px;
  padding: 4px;
  border-radius: 12px;
  background: var(--subtle);
}
.tsx-mode button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tsx-mode button.selected {
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}
.tsx-mode .icon {
  width: 15px;
  height: 15px;
}
.tsx-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.tsx-social-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.tsx-social-head .subtle-button {
  margin-left: auto;
  height: 34px;
}
.tsx-social-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}
.tsx-social .field textarea,
.tsx-social .field input,
.tsx-social .field select {
  width: 100%;
}
.tsx-social-caption[hidden] {
  display: none !important;
}
.tsx-social-media {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tsx-social-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tsx-social-files figure {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--subtle);
}
.tsx-social-files img,
.tsx-social-files video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tsx-social-files .icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.tsx-social-files .icon-button .icon {
  width: 12px;
  height: 12px;
}
.tsx-social-add {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 84px;
  height: 84px;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tsx-social-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tsx-social-visible {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.tsx-social-visible input {
  position: absolute;
  opacity: 0;
}
.tsx-social-visible small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.tsx-social-visible .switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: var(--line-2);
  transition: background 0.2s;
}
.tsx-social-visible .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.tsx-social-visible input:checked + .switch {
  background: var(--accent);
}
.tsx-social-visible input:checked + .switch::after {
  transform: translateX(16px);
}
.tsx-social-visible input:disabled + .switch {
  opacity: 0.6;
}
.tsx-social-visible input:focus-visible + .switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tsx-social-files figure.is-pending {
  outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -2px;
}
.tsx-social-files figure.is-pending::after {
  content: "ao salvar";
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(21, 22, 26, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.tsx-social-script[hidden] {
  display: none !important;
}
/* Reuniões para aprovar (03/11/2026): pedidos do portal do cliente. */
.mr-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--lilac-ink) 25%, var(--line));
  border-radius: 18px;
  background: var(--lilac);
}
.mr-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.mr-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lilac-ink);
  color: var(--lilac);
}
.mr-ico .icon {
  width: 18px;
  height: 18px;
}
.mr-panel h2 {
  margin: 0;
  font-size: 16px;
}
.mr-panel header small {
  color: var(--muted);
  font-size: 12.5px;
}
.mr-panel ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mr-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}
.mr-date {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--lilac);
  color: var(--lilac-ink);
  line-height: 1.1;
}
.mr-date b {
  font-size: 17px;
}
.mr-date small {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.mr-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}
.mr-main > small {
  color: var(--muted);
}
.mr-main q,
.mr-quote {
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
}
.mr-quote {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-left: 3px solid var(--lilac-ink);
  border-radius: 6px;
  background: var(--lilac);
}
.mr-clash,
.mr-free,
.mr-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.mr-clash,
.mr-check.is-clash {
  color: var(--rose-ink);
}
.mr-free,
.mr-check {
  color: var(--mint-ink);
}
.mr-clash .icon,
.mr-free .icon,
.mr-check .icon {
  width: 14px;
  height: 14px;
}
.mr-actions {
  flex: none;
  display: flex;
  gap: 8px;
}
.mr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 760px) {
  .mr-panel li {
    flex-wrap: wrap;
  }
  .mr-actions {
    width: 100%;
  }
  .mr-actions > * {
    flex: 1;
    justify-content: center;
  }
}
/* Versão mais compacta (04/11/2026): uma barra só, com divisórias; em cada
   item, o número e o nome na mesma linha. Gráficos e rostos ficam de fora. */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.kpi-row .kpi {
  flex: 1 1 150px;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  animation: none;
}
.kpi-row .kpi + .kpi {
  box-shadow: inset 1px 0 0 var(--line);
}
.kpi-row .kpi header {
  height: auto;
}
.kpi-row .kpi > div {
  flex: none;
}
.kpi-row .kpi strong {
  font-size: 18px;
}
.kpi-row :is(.kpi-bars, .kpi-line, .kpi-faces, .kpi-dots) {
  display: none;
}
@media (max-width: 1200px) {
  .kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi-row .kpi:nth-child(3n + 1) {
    box-shadow: none;
  }
}
@media (max-width: 600px) {
  /* No celular, os indicadores continuam fora (ficam os cartões). */
  .kpi-row {
    display: none;
  }
}

/* V4 3.1 — Meu Dia */
.md-page {
  display: grid;
  gap: 16px;
}
.md-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.md-head p::first-letter {
  text-transform: uppercase;
}
.md-counters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.md-counter {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.md-counter .md-ico {
  grid-row: 1 / 3;
}
.md-counter b {
  font-size: 22px;
  line-height: 1;
}
.md-counter small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.md-counter:hover {
  box-shadow: var(--shadow-pop);
}
.md-counter.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.md-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--subtle);
  color: var(--text);
}
.md-ico .icon {
  width: 16px;
  height: 16px;
}
.md-ico.k-task {
  background: var(--sky);
  color: var(--sky-ink);
}
.md-ico.k-event {
  background: var(--lilac);
  color: var(--lilac-ink);
}
.md-ico.k-check {
  background: var(--mint);
  color: var(--mint-ink);
}
.md-ico.k-adjust {
  background: var(--peach);
  color: var(--peach-ink);
}
.md-ico.k-deadline {
  background: var(--rose);
  color: var(--rose-ink);
}
.md-ico.k-intimation {
  background: var(--sun);
  color: var(--sun-ink);
}
.md-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.md-filters select {
  width: auto;
  height: 38px;
  min-width: 170px;
}
.md-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.md-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.md-open,
.md-check {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.md-open > span:last-child,
.md-check > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.md-open b,
.md-check b {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.md-open small,
.md-check small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.md-check input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.md-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 45%;
}
.md-meta small {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.md-meta small.is-late {
  color: var(--danger-ink);
}
.md-meta i {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.md-meta .md-prio.p-urgent {
  background: var(--rose);
  color: var(--rose-ink);
}
.md-meta .md-prio.p-high {
  background: var(--peach);
  color: var(--peach-ink);
}
.md-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 28px 12px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 640px) {
  .md-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-row {
    flex-wrap: wrap;
  }
  .md-meta {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    padding-left: 46px;
  }
  .md-filters select {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* V4 3.4 — notas com pastas e checklists modelo */
.nt-page {
  display: grid;
  gap: 14px;
}
.nt-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nt-tabs {
  flex-wrap: nowrap;
}
.nt-tabs > button {
  white-space: nowrap;
}
.nt-tabs small {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.nt-folders {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.nt-folders .filter-pill {
  flex: none;
  height: 34px;
  padding: 0 12px;
}
.nt-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nt-search {
  flex: 1 1 240px;
  max-width: 420px;
}
.nt-tools select {
  width: auto;
  height: 40px;
  min-width: 190px;
}
.nt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.nt-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.nt-card[hidden] {
  display: none;
}
.nt-card:hover {
  box-shadow: var(--shadow-pop);
}
.nt-card.is-pinned {
  border-color: var(--line-2);
}
.nt-open {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px 14px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nt-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.nt-title .icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--muted);
}
.nt-title b {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.nt-body {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nt-body i {
  color: var(--muted);
}
.nt-items {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 13px;
}
.nt-items li {
  position: relative;
  padding-left: 18px;
  overflow-wrap: anywhere;
}
.nt-items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-2);
  border-radius: 3px;
}
.nt-items li.nt-more {
  padding-left: 0;
  color: var(--muted);
  font-size: 12px;
}
.nt-items li.nt-more::before {
  display: none;
}
.nt-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 14px 12px;
}
.nt-card footer small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.nt-folder,
.nt-client {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nt-folder {
  background: var(--lilac);
  color: var(--lilac-ink);
}
.nt-client {
  background: var(--sky);
  color: var(--sky-ink);
}
.nt-folder .icon,
.nt-client .icon {
  flex: none;
  width: 12px;
  height: 12px;
}
.nt-empty b {
  color: var(--ink);
}
/* Seletor de modelo no checklist da demanda */
.cl-new {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.cl-new > .check-add {
  flex: 1 1 100%;
}
.cl-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.cl-pick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cl-pick-item:hover {
  background: var(--subtle);
}
.cl-pick-item .icon {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--mint-ink);
}
.cl-pick-item span {
  display: grid;
  min-width: 0;
}
.cl-pick-item b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.cl-pick-item small {
  color: var(--muted);
  font-size: 11px;
}
.cl-pick-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 640px) {
  .nt-head-actions {
    width: 100%;
  }
  .nt-head-actions .segmented {
    flex: 1 1 100%;
  }
  .nt-head-actions .segmented > button {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 8px;
  }
  .nt-search {
    max-width: none;
  }
  .nt-tools select {
    flex: 1 1 100%;
    min-width: 0;
  }
  .nt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* V4 3.5 — squad do cliente */
.sq-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.sq-field legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.sq-field > small,
.sq-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.sq-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sq-person {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}
.sq-person input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sq-person > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sq-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sq);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.sq-person:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.sq-person:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* V4 3.6 — aniversários no Início */
.home-birthdays li.is-today {
  border-radius: var(--r);
  background: var(--sun);
}
.home-birthdays .hb-when {
  font-weight: 700;
}
.home-birthdays li.is-today .hb-when {
  color: var(--sun-ink);
}
@media (max-width: 640px) {
  .home-birthdays .home-role.hb-when {
    display: inline-flex;
    flex: none;
  }
}
/* APIs do sistema × APIs do cliente (06/11/2026) */
.api-split-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--sky);
  color: var(--sky-ink);
  font-size: 13px;
}
.api-split-note > .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.api-split-note > span {
  flex: 1 1 240px;
  min-width: 0;
}
.api-split-note b {
  color: var(--ink);
}
/* Solicitações de ajuda (06/11/2026) */
.rail-link .rail-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--rose-ink);
  font-size: 11px;
  text-align: center;
}
.team-tabs {
  flex-wrap: nowrap;
  margin: 0 0 16px;
}
@media (max-width: 640px) {
  .team-tabs {
    display: flex;
  }
  .team-tabs > button {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 8px;
    font-size: 13px;
  }
}
.hp-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--rose-ink);
  font-size: 11px;
  font-weight: 700;
}
.hp-page {
  display: grid;
  gap: 16px;
}
.hp-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-rows > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.hp-rows > li:first-child {
  border-top: 0;
}
.hp-rows > li > div {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hp-rows q {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}
.hp-rows .hp-when {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.hp-status {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.hp-status.s-sun { background: var(--sun); color: var(--sun-ink); }
.hp-status.s-mint { background: var(--mint); color: var(--mint-ink); }
.hp-status.s-rose { background: var(--rose); color: var(--rose-ink); }
.hp-status.s-gray { background: var(--subtle); color: var(--text); }
.hp-page .hp-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
/* V4 3.2 — indicadores do Início */
.home-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.hm-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.hm-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}
.hm-card > span:last-child {
  display: grid;
  min-width: 0;
}
.hm-card b {
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.hm-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--subtle);
  color: var(--text);
}
.hm-ico .icon {
  width: 15px;
  height: 15px;
}
.hm-card.is-late .hm-ico {
  background: var(--rose);
  color: var(--rose-ink);
}
.hm-card.is-late b {
  color: var(--danger-ink);
}
/* Variação da semana ao lado do número (Minha semana). */
.hm-delta {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 2px;
}
.hm-delta.up {
  background: var(--mint);
  color: var(--mint-ink);
}
.hm-delta.down {
  background: var(--rose);
  color: var(--rose-ink);
}
@media (max-width: 640px) {
  .home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-card {
    padding: 10px;
  }
}

/* V4 3.3 — primeiros passos */
.first-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.fs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.fs-head > div {
  display: grid;
  gap: 2px;
}
.fs-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.fs-head h2 .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.fs-head small {
  color: var(--muted);
  font-size: 12px;
}
.fs-bar {
  flex: 1 1 120px;
  height: 6px;
  border-radius: 999px;
  background: var(--subtle);
  overflow: hidden;
}
.fs-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.fs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fs-list li {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.fs-list li.is-open {
  grid-column: 1 / -1;
  border-color: var(--ink);
}
.fs-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fs-step:disabled {
  cursor: default;
}
.fs-step b {
  flex: 1;
  font-size: 13px;
}
.fs-step small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.fs-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.fs-dot .icon {
  width: 13px;
  height: 13px;
}
.fs-list li.is-done .fs-dot {
  background: var(--mint);
  color: var(--mint-ink);
}
.fs-list li.is-done b {
  color: var(--muted);
  text-decoration: line-through;
}
.fs-how {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 12px 12px 46px;
}
.fs-how p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .fs-how {
    padding-left: 12px;
  }
}

/* Desempenho (V4 3.7): aba de Equipes. */
@media (max-width: 640px) {
  .team-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .team-tabs > button {
    white-space: nowrap;
  }
}
.pf-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.pf-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.pf-top p {
  margin: 0;
}
/* Atividade do Início: Meu desempenho e, abaixo, o da equipe (08/11/2026). */
.home-perf {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-bottom: 16px;
}
.home-perf .perf-panel {
  margin: 0;
}
.pf-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pf-card > header h2 {
  margin: 0;
  font-size: 16px;
}
.pf-card > header p {
  margin: 4px 0 0;
}
.pf-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pf-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--subtle);
}
.pf-tile span {
  color: var(--muted);
  font-size: 12px;
}
.pf-tile strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}
.pf-tile small,
.pf-delta {
  color: var(--muted);
  font-size: 12px;
}
.pf-delta.up {
  color: var(--mint-ink);
}
.pf-delta.down {
  color: var(--peach-ink);
}
.pf-most {
  margin-top: 16px;
}
.pf-most h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.pf-most ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-most li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.pf-most li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-most li small {
  flex: none;
  color: var(--muted);
}
.pf-people {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.pf-person {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.pf-who {
  display: grid;
  min-width: 0;
}
.pf-who strong,
.pf-who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-who small,
.pf-load small {
  color: var(--muted);
  font-size: 12px;
}
.pf-load {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pf-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--subtle);
}
.pf-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.pf-high .pf-bar i {
  background: var(--warn);
}
.pf-nums {
  display: flex;
  gap: 14px;
  margin: 0;
}
.pf-nums div {
  display: grid;
  text-align: center;
}
.pf-nums dt {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.pf-nums dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.pf-level {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.pf-high .pf-level {
  background: var(--peach);
  color: var(--peach-ink);
}
.pf-low .pf-level {
  background: var(--mint);
  color: var(--mint-ink);
}
@media (max-width: 900px) {
  .pf-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-person {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pf-load,
  .pf-nums {
    grid-column: 1 / -1;
  }
  .pf-level {
    grid-row: 1;
    grid-column: 2;
  }
  .pf-nums {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .pf-nums dt {
    font-size: 10px;
    white-space: normal;
    line-height: 1.2;
  }
}
@media (max-width: 380px) {
  .pf-card {
    padding: 14px;
  }
  .pf-tiles {
    gap: 8px;
  }
  .pf-tile {
    padding: 10px;
  }
  .pf-tile strong {
    font-size: 18px;
  }
  .pf-nums {
    gap: 6px;
  }
}

/* Desempenho (Equipes): barras de capacidade mais legíveis (07/11/2026). */
.pf-bar { height: 8px; }
.pf-nums dd { font-variant-numeric: tabular-nums; }
.fs-tools { display: inline-flex; align-items: center; gap: 2px; flex: none; }
/* Solicitações de ajuda no topo dos Quadros (08/11/2026). */
.board-help-link {
  position: relative;
}
.board-help-link .rail-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--rose-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Atalho "Abrir Datas Comemorativas" na faixa do Início (11/11/2026). */
.dates-strip .dates-open {
  flex: none;
  padding: 2px 4px;
  color: var(--lilac-ink);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .dates-strip {
    flex-wrap: wrap;
  }
}
/* Etiquetas na demanda (14/11/2026): atalhos para as que já existem e
   "Editar etiquetas" aqui mesmo (renomear, cor, excluir). */
.label-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.label-quick:empty {
  display: none;
}
.label-quick .label-chip {
  cursor: pointer;
  opacity: 0.75;
}
.label-quick .label-chip:hover,
.label-quick .label-chip:focus-visible {
  opacity: 1;
}
.label-quick .label-chip .icon {
  width: 12px;
  height: 12px;
}
.label-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}
.label-edit-toggle .icon {
  width: 14px;
  height: 14px;
}
.label-admin {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--subtle);
}
.label-admin[hidden] {
  display: none;
}
.label-admin-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
}
.label-admin-row input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--surface);
}
.label-admin-row input:not([type]) {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--surface);
}
.label-admin-row .is-danger {
  color: var(--danger-ink);
  background: var(--rose);
}
.label-admin-note {
  margin: 2px 0 0;
  font-size: 12px;
}

/* Quadros no celular (16/11/2026): os modos de exibição e os filtros do
   Jurídico ficam em uma linha que desliza, para o primeiro cartão aparecer
   sem rolar a página. Antes eram três linhas de modos e três de filtros. */
@media (max-width: 760px) {
  .board-views.segmented,
  .legal-board-tools {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
  }
  .board-views.segmented::-webkit-scrollbar,
  .legal-board-tools::-webkit-scrollbar {
    display: none;
  }
  .board-views.segmented {
    margin-bottom: 12px;
  }
  .board-views.segmented > button,
  .legal-board-tools > * {
    flex: none;
  }
  .legal-board-tools {
    margin-top: -4px;
    margin-bottom: 14px;
  }
  .legal-board-tools select {
    width: auto;
    min-width: 0;
    max-width: 230px;
  }
  /* Meu Dia: com a fonte de 16 px os dois filtros não cabem lado a lado. */
  .md-filters select {
    flex-basis: 100%;
  }
}
