/* Figtree (fonte variável, pesos 300 a 900), incluída localmente. Licença em fonts/OFL.txt. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2');
  /* Métricas verticais ajustadas, com a mesma altura total de linha: sem elas, o texto fica
     cerca de 1px acima do centro, desalinhado dos ícones e das formas ao redor. */
  ascent-override: 100%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-wght-italic.woff2') format('woff2');
  /* Métricas verticais ajustadas, com a mesma altura total de linha: sem elas, o texto fica
     cerca de 1px acima do centro, desalinhado dos ícones e das formas ao redor. */
  ascent-override: 100%;
  descent-override: 20%;
  line-gap-override: 0%;
}
:root {
  --red: #db1526;
  --redhover: #b81020;
  --redpale: #fff0f2;
  --ink: #202020;
  --muted: #666466;
  --faint: #92949b;
  --line: #e5e6e8;
  --page: #f8f9fb;
  --paper: #fefefe;
  --column: #f1f3f6;
  --shadow: 0 7px 30px #2020200a;
  --side: 254px;
  --radius: 15px;
  --soft: #edf0f4;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --redpale: #43262d;
  --ink: #f4f5f7;
  --muted: #b9c0cb;
  --faint: #9099a6;
  --line: #373c46;
  --page: #111318;
  --paper: #1e222b;
  --column: #191d24;
  --soft: #303640;
  --shadow: 0 10px 30px #0003;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font:
    14px/1.48 'Figtree',
    'Segoe UI',
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
input,
textarea,
select {
  accent-color: var(--red);
}
svg.ic {
  display: inline-block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-thumb {
  background: #c8cbd2;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html[data-theme='dark'] *::-webkit-scrollbar-thumb {
  background: #565e6d;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.app {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  transition:
    width 0.2s,
    transform 0.2s;
}
.brand {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.brand #brandSvg {
  display: flex;
  align-items: center;
  width: 122px;
  flex: none;
}
.brand svg.brand-logo {
  display: block;
  width: 122px;
  height: auto;
  max-height: 36px;
  flex: none;
}
.brand-label {
  border-left: 1px solid var(--line);
  padding-left: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
}
.side-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 13px;
}
.side-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 17px 12px 9px;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 750;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 3px;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 560;
  min-height: 42px;
}
.nav-item:hover {
  background: var(--page);
  color: var(--ink);
}
.nav-item.active {
  background: var(--redpale);
  color: var(--red);
  font-weight: 750;
}
.nav-item .ic {
  width: 18px;
  height: 18px;
}
.nav-item .grow {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.side-foot {
  border-top: 1px solid var(--line);
  padding: 12px 13px;
  flex: none;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.profile strong {
  font-size: 13px;
}
.profile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.collapse-btn {
  position: absolute;
  top: 45%;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.is-collapsed {
  --side: 72px;
}
.is-collapsed .sidebar {
  width: 72px;
}
.is-collapsed .brand {
  padding: 0;
  justify-content: center;
}
.is-collapsed .brand #brandSvg {
  width: 34px;
  overflow: hidden;
}
.is-collapsed .brand svg.brand-logo {
  width: 122px;
  max-width: none;
  flex: none;
}
.is-collapsed .brand-label,
.is-collapsed .side-heading,
.is-collapsed .nav-item .grow,
.is-collapsed .side-foot .side-word,
.is-collapsed .profile .profile-word,
.is-collapsed .side-dot,
.is-collapsed .nav-item .count-bubble {
  display: none;
}
.is-collapsed .side-scroll,
.is-collapsed .side-foot {
  padding-inline: 11px;
}
.is-collapsed .nav-item {
  justify-content: center;
  padding: 11px;
}
.is-collapsed .profile {
  justify-content: center;
  padding: 5px 0 13px;
}
.is-collapsed .collapse-btn .ic {
  transform: rotate(180deg);
}
.workspace {
  margin-left: var(--side);
  min-width: 0;
  min-height: 100dvh;
  transition: margin-left 0.2s;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 26px 30px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 116px;
}
.head-copy {
  min-width: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 750;
  margin: 0 0 6px;
}
.head-title {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 760;
  margin: 0;
}
.head-sub {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
  max-width: 78ch;
}
.head-actions,
.toolbar,
.actions,
.inline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.head-actions {
  flex: none;
}
.btn {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-weight: 680;
  font-size: 13px;
  white-space: nowrap;
}
.btn .ic {
  width: 16px;
  height: 16px;
}
.btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--redpale);
}
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.primary:hover {
  background: var(--redhover);
  color: #fff;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.btn.danger {
  border-color: #eab7bf;
  color: var(--red);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
  padding: 0;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--ink);
}
.icon-btn .ic {
  width: 18px;
  height: 18px;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 24px 30px 36px;
}
.toolbar {
  margin-bottom: 18px;
  justify-content: space-between;
  gap: 12px;
}
.left-tools,
.right-tools {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.search {
  position: relative;
  min-width: 230px;
}
.search .ic {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 17px;
  height: 17px;
  color: var(--faint);
}
.search input {
  min-height: 39px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px 9px 38px;
  background: var(--paper);
  font-size: 13px;
}
.control {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 13px;
  padding: 8px 11px;
  max-width: 220px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.count-bubble {
  font-size: 11px;
  border-radius: 6px;
  background: var(--soft);
  padding: 2px 6px;
  font-weight: 750;
  color: var(--muted);
}
.view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  gap: 2px;
}
.view-toggle button {
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-toggle button.active {
  background: var(--redpale);
  color: var(--red);
}
.view-toggle .ic {
  width: 15px;
  height: 15px;
}
.board-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 18px;
  margin: 0 -2px;
  min-height: calc(100dvh - 249px);
}
.kanban {
  display: flex;
  gap: 13px;
  align-items: stretch;
  min-height: calc(100dvh - 283px);
  width: max-content;
  min-width: 100%;
}
.kcolumn {
  width: 286px;
  flex: none;
  padding: 13px 11px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--column);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: outline 0.15s;
}
.kcolumn.drag-over {
  outline: 2px dashed var(--red);
  outline-offset: -4px;
}
.column-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 3px;
  min-height: 30px;
}
.stage-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.column-heading h2 {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  font-weight: 750;
}
.column-heading .icon-btn {
  width: 25px;
  height: 25px;
}
.column-heading .icon-btn .ic {
  width: 15px;
  height: 15px;
}
.column-desc {
  font-size: 12px;
  line-height: 1.45;
  margin: -7px 3px 4px;
  color: var(--muted);
  min-height: 0;
}
.kcards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-height: 32px;
}
.kcard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 14px 13px;
  text-align: left;
  width: 100%;
  color: var(--ink);
  box-shadow: 0 3px 15px #20202007;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.kcard:hover {
  border-color: #f3b1b8;
  box-shadow: 0 5px 18px #20202010;
  transform: translateY(-1px);
}
.kcard.dragging {
  opacity: 0.45;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.tag {
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1px;
  background: var(--redpale);
  color: var(--red);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tag.neutral {
  background: var(--soft);
  color: var(--muted);
}
.card-title {
  font-weight: 730;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 7px;
  letter-spacing: -0.1px;
}
.card-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-stats svg {
  width: 13px;
  height: 13px;
}
.mini-progress {
  height: 5px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
  margin-top: 12px;
}
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--red);
}
.card-next {
  color: var(--faint);
}
.add-col-btn {
  border: 1px dashed #c6cad1;
  border-radius: 9px;
  min-height: 36px;
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.add-col-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--redpale);
}
.add-col-btn .ic {
  width: 15px;
  height: 15px;
}
.new-column {
  width: 250px;
  align-self: flex-start;
  flex: none;
}
.empty-col {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 5px;
  text-align: center;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 10px;
}
.crumb {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
}
.crumb:hover {
  color: var(--red);
}
.crumb .ic {
  width: 14px;
  height: 14px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.kpi .label {
  font-size: 13px;
  color: var(--muted);
}
.kpi strong {
  display: block;
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 12px 0 4px;
}
.kpi .hint {
  font-size: 12px;
  color: var(--muted);
}
.section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 0 12px;
}
.section-h h2 {
  font-size: 16px;
  margin: 0;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.8fr);
  gap: 16px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.panel h2 {
  font-size: 15px;
  margin: 0 0 15px;
}
.project-overview {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.project-overview button {
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.stat-line {
  display: flex;
  gap: 12px;
  align-items: center;
}
.stat-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: none;
}
.stat-text {
  flex: 1;
  min-width: 0;
}
.stat-text strong {
  font-size: 13px;
}
.stat-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat-right {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.bar {
  height: 6px;
  border-radius: 9px;
  background: var(--soft);
  overflow: hidden;
  margin: 8px 0 0 47px;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 9px;
}
.feed {
  display: grid;
  gap: 0;
}
.feed-item {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.feed-item:first-child {
  padding-top: 0;
}
.feed-item:last-child {
  border: 0;
}
.feed-item p {
  margin: 0 0 4px;
  font-size: 13px;
}
.feed-item small {
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 750px;
  text-align: left;
}
.data-table th {
  padding: 13px 16px;
  background: var(--column);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.data-table td {
  border-top: 1px solid var(--line);
  padding: 15px 16px;
  font-size: 13px;
}
.data-table tr:hover td {
  background: var(--page);
}
.data-table td:first-child {
  font-weight: 680;
}
.link-cell {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}
.link-cell:hover {
  color: var(--red);
}
.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
}
.priority .p-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pct {
  font-size: 12px;
  color: var(--muted);
}
.alert-note {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.alert-note .ic {
  width: 14px;
  height: 14px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 21, 27, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  backdrop-filter: blur(2px);
}
.modal {
  width: min(650px, 100%);
  max-height: min(92dvh, 930px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 26px 80px #0003;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0;
}
.modal-body {
  padding: 23px 25px;
  overflow: auto;
  min-height: 0;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 25px;
  border-top: 1px solid var(--line);
  background: var(--page);
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field label,
.input-label {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select,
.entry {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 11px 12px;
  min-height: 43px;
  font-size: 13px;
  outline: 0;
}
.field textarea,
.entry.textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.entry:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #db15261a;
}
.field-hint {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.color-control {
  width: 46px !important;
  height: 40px !important;
  padding: 4px !important;
  cursor: pointer;
}
.stage-editor {
  display: grid;
  gap: 9px;
}
.stage-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr auto auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stage-row input[type='text'] {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--page);
  padding: 7px 9px;
  font-size: 13px;
}
.stage-row input[type='color'] {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 2px;
  background: transparent;
  cursor: pointer;
}
.stage-row .icon-btn {
  width: 27px;
  height: 27px;
}
.stage-row .icon-btn .ic {
  width: 15px;
  height: 15px;
}
.stage-row .order {
  display: grid;
  gap: 2px;
}
.stage-row .order .icon-btn {
  width: 26px;
  height: 22px;
}
.stage-row .order .ic {
  width: 14px;
  height: 14px;
}
.segment {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: max-content;
  margin-bottom: 19px;
}
.segment button {
  border: 0;
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.segment button.active {
  background: var(--redpale);
  color: var(--red);
}
.task-modal {
  width: min(1120px, calc(100vw - 34px));
  height: min(87dvh, 850px);
  max-height: none;
  display: flex;
  flex-direction: column;
}
.task-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.task-main {
  min-height: 0;
  overflow-y: auto;
  padding: 26px 29px 36px;
}
.task-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--page);
}
.task-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.task-header .task-heading {
  flex: 1;
  min-width: 0;
}
.task-header .task-heading small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.task-header .task-heading strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-title-input {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.3px;
  line-height: 1.32;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 9px;
  margin: -7px -9px 15px;
  outline: 0;
}
.task-title-input:hover,
.task-title-input:focus {
  border-color: var(--line);
  background: var(--page);
}
.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 20px 0 26px;
}
.task-block {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 20px;
}
.task-block h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.task-block h3 .ic {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.task-block .entry {
  font-size: 13px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 2px;
  font-size: 13px;
  min-height: 35px;
}
.check-row input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.check-row label {
  flex: 1;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.check-row.done label {
  text-decoration: line-through;
  color: var(--muted);
}
.check-row .icon-btn {
  width: 24px;
  height: 24px;
  margin-top: -4px;
}
.check-row .ic {
  width: 15px;
  height: 15px;
}
.check-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 13px;
}
.check-progress .bar {
  flex: 1;
  margin: 0;
}
.check-progress span {
  font-size: 12px;
  color: var(--muted);
}
.add-row {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.add-row input {
  flex: 1;
  min-width: 0;
  min-height: 39px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
}
.linkfile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  margin: 6px 0;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 10px;
  font-size: 13px;
}
.linkfile a {
  overflow-wrap: anywhere;
  color: var(--red);
}
.file-input {
  display: none;
}
.attachments-cta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.chat-head {
  border-bottom: 1px solid var(--line);
  padding: 18px 19px;
}
.chat-head h3 {
  font-size: 14px;
  margin: 0;
}
.chat-head p {
  font-size: 12px;
  margin: 4px 0 0;
  color: var(--muted);
}
.chat-messages {
  padding: 17px 15px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.chat-empty {
  margin: auto;
  text-align: center;
  max-width: 225px;
  color: var(--muted);
}
.chat-empty .ic {
  width: 28px;
  height: 28px;
  color: var(--red);
}
.chat-empty strong {
  display: block;
  color: var(--ink);
  margin: 12px 0 7px;
  font-size: 13px;
}
.chat-empty p {
  margin: 0;
  font-size: 12px;
}
.chat-msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.chat-msg .avatar {
  width: 27px;
  height: 27px;
  font-size: 11px;
}
.chat-content {
  min-width: 0;
  flex: 1;
}
.chat-byline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.chat-byline strong {
  font-size: 12px;
}
.chat-byline small {
  font-size: 11px;
  color: var(--muted);
}
.chat-bubble {
  border-radius: 3px 12px 12px 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-delete {
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11px;
  padding: 4px 0;
}
.chat-delete:hover {
  color: var(--red);
}
.chat-compose {
  border-top: 1px solid var(--line);
  padding: 13px;
  background: var(--paper);
}
.chat-compose textarea {
  width: 100%;
  min-height: 85px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  outline: none;
  font-size: 13px;
  background: var(--paper);
}
.chat-compose textarea:focus {
  border-color: var(--red);
}
.chat-compose .actions {
  justify-content: space-between;
  margin-top: 8px;
}
.chat-compose small {
  font-size: 11px;
  color: var(--muted);
}
.task-mobile-tabs {
  display: none;
}
.task-actionbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.task-actionbar .left-tools {
  gap: 6px;
}
.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 200;
  background: #202020;
  color: #fff;
  padding: 11px 17px;
  border-radius: 9px;
  box-shadow: 0 8px 24px #0004;
  font-size: 13px;
  max-width: 90vw;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 50px 16px;
  background: var(--paper);
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  margin: 12px 0 6px;
}
.empty-state p {
  max-width: 450px;
  margin: 0 auto 15px;
  font-size: 13px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.reset-tip {
  padding: 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-layout {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 22px;
  }
  .main {
    padding: 20px 22px;
  }
  .task-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 760px) {
  :root,
  .is-collapsed {
    --side: 0px;
  }
  .sidebar,
  .is-collapsed .sidebar {
    width: 264px;
    transform: translateX(-105%);
    box-shadow: 0 10px 30px #0002;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .is-collapsed .brand-label,
  .is-collapsed .side-heading,
  .is-collapsed .nav-item .grow,
  .is-collapsed .side-foot .side-word,
  .is-collapsed .profile .profile-word,
  .is-collapsed .side-dot,
  .is-collapsed .nav-item .count-bubble {
    display: block;
  }
  .is-collapsed .brand {
    justify-content: flex-start;
    padding: 0 20px;
  }
  .is-collapsed .brand #brandSvg {
    width: 122px;
    overflow: visible;
  }
  .is-collapsed .brand svg.brand-logo {
    width: 122px;
  }
  .is-collapsed .side-scroll {
    padding: 20px 13px;
  }
  .is-collapsed .nav-item {
    justify-content: flex-start;
    padding: 11px 12px;
  }
  .is-collapsed .profile {
    justify-content: flex-start;
    padding: 6px 11px 11px;
  }
  .collapse-btn {
    display: none;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 18px 16px;
    align-items: flex-start;
    min-height: 0;
    flex-wrap: wrap;
  }
  .head-copy {
    flex: 1;
  }
  .head-title {
    font-size: 21px;
  }
  .head-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .main {
    padding: 18px 16px;
  }
  .search {
    min-width: 190px;
    flex: 1;
  }
  .toolbar {
    align-items: stretch;
  }
  .left-tools,
  .right-tools {
    width: 100%;
  }
  .board-scroller {
    margin-right: -16px;
  }
  .kanban {
    min-height: calc(100dvh - 265px);
  }
  .kcolumn {
    width: 275px;
  }
  .overlay {
    padding: 10px;
  }
  .modal {
    max-height: 96dvh;
  }
  .modal-head {
    padding: 17px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-foot {
    padding: 13px 17px;
  }
  .task-modal {
    width: 100%;
    height: 96dvh;
  }
  .task-shell {
    grid-template-columns: 1fr;
  }
  .task-chat {
    display: none;
    border-left: 0;
  }
  .task-shell.chat-visible .task-chat {
    display: flex;
  }
  .task-shell.chat-visible .task-main {
    display: none;
  }
  .task-mobile-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--line);
    padding: 7px 15px;
  }
  .task-mobile-tabs button {
    flex: 1;
    border: 0;
    background: none;
    padding: 10px;
    font-weight: 680;
    font-size: 13px;
    color: var(--muted);
    border-radius: 7px;
  }
  .task-mobile-tabs button.active {
    color: var(--red);
    background: var(--redpale);
  }
  .task-main {
    padding: 20px 18px 28px;
  }
  .task-header {
    padding: 11px 15px;
  }
  .task-title-input {
    font-size: 19px;
  }
  .task-meta-grid {
    gap: 13px;
  }
  .stage-row {
    grid-template-columns: 28px 1fr 1fr auto;
  }
  .stage-row .order {
    display: none;
  }
  .form {
    gap: 12px;
  }
  .kpi-grid {
    gap: 9px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi strong {
    font-size: 25px;
  }
  .head-sub {
    font-size: 13px;
  }
  .side-backdrop.open {
    display: block;
  }
}
@media (max-width: 430px) {
  .form {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: 1;
  }
  .task-meta-grid {
    grid-template-columns: 1fr;
  }
  .stage-row {
    grid-template-columns: 28px 1fr auto;
  }
  .stage-row .stage-desc-editor {
    grid-column: 2;
  }
  .stage-row .order {
    display: none;
  }
  .stage-row .del-stage {
    grid-column: 3;
    grid-row: 1;
  }
  .head-actions .btn {
    min-height: 36px;
  }
  .topbar {
    gap: 11px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 16px;
  }
}
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: #10131a88;
  z-index: 35;
}
.mobile-close {
  display: none;
}
@media (max-width: 760px) {
  .mobile-close {
    display: inline-grid;
    margin-left: auto;
  }
}

/* V2 - rigor de alinhamento para todos os controles e ícones */
svg.ic {
  display: block !important;
  flex: 0 0 auto;
  vertical-align: middle;
  transform-origin: center;
}
button,
.btn,
.icon-btn,
.nav-item,
.add-col-btn,
.pill,
.tag,
.priority,
.card-stats span,
.card-due,
.card-time,
.column-heading,
.chat-head h3,
.task-block h3,
.task-mobile-tabs button,
.back-link,
.alert-note,
.stage-row,
.time-entry {
  min-width: 0;
}
.btn,
.icon-btn,
.nav-item,
.add-col-btn,
.pill,
.tag,
.priority,
.card-stats span,
.card-due,
.card-time,
.chat-head h3,
.task-block h3,
.task-mobile-tabs button {
  align-items: center;
}
.btn,
.pill,
.tag,
.priority,
.card-stats span,
.card-due,
.card-time,
.chat-head h3,
.task-block h3,
.task-mobile-tabs button {
  display: inline-flex;
  gap: 7px;
  vertical-align: middle;
}
.btn,
.icon-btn {
  flex-shrink: 0;
  line-height: 1.35;
}
.btn svg.ic {
  height: 16px;
  width: 16px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.nav-item {
  line-height: 1.4;
  align-items: center;
}
.nav-item > .ic,
.nav-item > .side-dot,
.nav-item > .count-bubble {
  flex: none;
}
.card-foot {
  min-height: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.card-stats {
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.card-stats span {
  gap: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-stats .ic {
  width: 14px;
  height: 14px;
}
.card-due {
  gap: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-due:empty {
  display: none;
}
.card-due .ic {
  width: 14px;
  height: 14px;
}
.card-time {
  color: var(--muted);
}
.card-time.running-time {
  color: var(--red);
}
.card-time svg.ic {
  width: 14px;
  height: 14px;
}
.card-top {
  align-items: center;
  min-height: 23px;
}
.tag {
  line-height: 1.35;
  min-height: 21px;
}
.column-heading {
  min-height: 31px;
}
.column-heading .icon-btn,
.column-heading .count-bubble {
  flex: none;
  align-self: center;
}
.column-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.task-header {
  min-height: 72px;
}
.task-header > .tag {
  flex-shrink: 0;
  max-width: 30%;
}
.task-actionbar {
  min-height: 33px;
}
.task-title-input {
  box-sizing: border-box;
  max-width: 100%;
}
.task-block h3,
.chat-head h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  line-height: 1.45;
}
.task-block h3 svg.ic,
.chat-head h3 svg.ic {
  width: 18px;
  height: 18px;
}
.check-row {
  align-items: center;
  min-height: 40px;
}
.check-row input {
  margin: 0;
  flex: none;
}
.check-row label {
  line-height: 1.5;
}
.check-row .icon-btn {
  margin: 0;
  flex: none;
}
.chat-byline {
  flex-wrap: wrap;
}
.chat-compose .actions {
  flex-wrap: wrap;
}
.chat-compose .actions small {
  flex: 1;
  min-width: 145px;
}
.chat-head {
  min-height: 76px;
}
.chat-msg .avatar {
  flex: 0 0 27px;
}
.linkfile > div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.linkfile > div > a,
.linkfile > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.field label {
  line-height: 1.4;
}
.field input,
.field select,
.entry {
  line-height: 1.45;
}
.stage-row .order {
  align-items: center;
}
.stage-row .order button {
  display: grid;
  place-items: center;
}
.alert-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.alert-note .ic {
  margin-top: 2px;
}
.task-mobile-tabs button {
  justify-content: center;
}
/* Cronômetro da demanda */
.timer-section {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 13px;
}
.timer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.timer-section-head h3 {
  margin: 0;
  font-size: 13px;
}
.timer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.timer-indicator {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--faint);
}
.timer-status.is-running {
  color: #197747;
  border-color: #b3dec9;
  background: #e8f6ee;
}
.timer-status.is-running .timer-indicator {
  background: #23a064;
  box-shadow: 0 0 0 3px #3bb67a18;
}
.timer-status.is-paused {
  color: #8a5919;
  border-color: #efd5a9;
  background: #fff7e9;
}
.timer-status.is-paused .timer-indicator {
  background: #d49430;
}
.timer-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(175px, 1fr);
  gap: 11px;
}
.timer-live,
.timer-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.timer-label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 650;
}
.timer-clock {
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 13px;
  white-space: nowrap;
}
.timer-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.timer-buttons .btn {
  min-height: 36px;
  gap: 7px;
  padding: 8px 11px;
  font-size: 12px;
}
.timer-finish {
  background: var(--paper);
}
.timer-summary strong {
  font-size: 23px;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  margin: 7px 0;
}
.timer-summary small {
  font-size: 12px;
  color: var(--muted);
}
.timer-hint {
  margin: 12px 0 0;
  line-height: 1.55;
}
.time-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 9px;
}
.time-history-head h4 {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.timer-history {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
}
.time-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
}
.time-entry + .time-entry {
  border-top: 1px solid var(--line);
}
.time-entry-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e9f7ee;
  color: #197747;
}
.time-entry-icon .ic {
  width: 15px;
  height: 15px;
}
.time-entry-text {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.time-entry-text strong {
  font-weight: 700;
}
.time-entry-text span {
  color: var(--muted);
}
.time-entry-duration {
  flex: none;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.timer-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 15px;
  background: var(--paper);
}
html[data-theme='dark'] .timer-status.is-running {
  background: #193a2b;
  color: #a3e0bd;
  border-color: #355a43;
}
html[data-theme='dark'] .timer-status.is-paused {
  background: #3a2a1e;
  color: #ffd1ab;
  border-color: #8e653d;
}
html[data-theme='dark'] .time-entry-icon {
  background: #193a2b;
  color: #a3e0bd;
}
@media (max-width: 1050px) {
  .timer-dashboard {
    grid-template-columns: 1fr;
  }
  .timer-summary {
    padding: 14px 18px;
  }
  .timer-summary strong {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .task-header {
    min-height: 64px;
  }
  .timer-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(135px, 0.75fr);
  }
  .timer-clock {
    font-size: 28px;
  }
  .timer-section {
    padding: 13px;
  }
  .timer-live,
  .timer-summary {
    padding: 13px;
  }
  .timer-buttons .btn {
    flex: 1;
    min-width: 100px;
  }
  .timer-summary strong {
    font-size: 18px;
  }
  .chat-head h3 {
    font-size: 13px;
  }
}
@media (max-width: 430px) {
  .timer-dashboard {
    grid-template-columns: 1fr;
  }
  .timer-clock {
    font-size: 30px;
  }
  .timer-summary strong {
    font-size: 20px;
  }
  .timer-section-head {
    align-items: flex-start;
  }
  .card-foot {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .timer-status.is-running .timer-indicator {
    animation: none;
  }
}

/* Correções pontuais das capturas: sem botões mobile no desktop e rodapés sem quebra */
@media (min-width: 761px) {
  .mobile-menu,
  .mobile-close {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .mobile-menu {
    display: inline-grid !important;
  }
  .mobile-close {
    display: inline-grid !important;
  }
}
.card-foot:has(.card-next) {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 8px;
}
.card-next {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  line-height: 1.4;
}
.card-next svg.ic {
  width: 15px;
  height: 15px;
}
.card-foot:has(.card-next) > span:first-child {
  min-width: 0;
  line-height: 1.45;
}
.card-foot:has(.card-stats) {
  justify-content: space-between;
  gap: 10px;
}
.card-stats {
  flex: 1;
  min-width: 0;
}
.kcard .card-top > svg.ic {
  width: 17px;
  height: 17px;
}
.sidebar .brand {
  gap: 9px;
}
.sidebar .brand-label {
  min-width: 0;
}
@media (max-width: 760px) {
  .task-header > .tag {
    max-width: 33%;
  }
}

.timer-history-details {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 1px;
}
.timer-history-details summary {
  cursor: pointer;
  list-style: none;
  outline-offset: 2px;
}
.timer-history-details summary::-webkit-details-marker {
  display: none;
}
.timer-history-details summary .muted {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.timer-history-details summary .ic {
  width: 14px;
  height: 14px;
  transition: transform 0.17s;
}
.timer-history-details[open] summary .ic {
  transform: rotate(180deg);
}
.timer-history-details[open] summary {
  margin-bottom: 10px;
}
.timer-history-details .time-history-head {
  margin: 8px 0 0;
  padding: 5px 1px;
  font-weight: 700;
  font-size: 13px;
  min-height: 30px;
}
.timer-history-details .time-history-head .muted {
  font-weight: 400;
}
.timer-section {
  margin-top: 7px;
}
.timer-summary strong {
  white-space: nowrap;
}
.time-list-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Ajuste de barra de ações em telas estreitas para não deixar Excluir órfão */
@media (max-width: 520px) {
  .task-actionbar {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .task-actionbar .left-tools {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .task-actionbar .left-tools .tiny {
    font-size: 11px;
    line-height: 1.35;
  }
  .task-actionbar > .btn {
    align-self: flex-start;
    margin-top: 0;
  }
  .task-header {
    gap: 8px;
  }
  .task-header .task-heading {
    min-width: 0;
  }
}

/* Biblioteca de etiquetas compartilhada por todos os projetos */
.tag-cluster {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 25px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--tag-base), transparent 88%);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  vertical-align: middle;
}
.tag-chip .tag-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-base);
}
.tag-chip .tag-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-chip .remove-tag {
  display: grid;
  place-items: center;
  flex: none;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  margin: -2px -4px -2px 0;
}
.tag-chip .remove-tag .ic {
  width: 12px;
  height: 12px;
}
.tag-chip .remove-tag:hover {
  background: var(--soft);
  color: var(--red);
}
.tag-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.tag-field {
  position: relative;
  min-width: 0;
}
.tag-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  min-height: 27px;
}
.tag-placeholder {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.tag-add-btn {
  justify-content: flex-start;
  min-height: 37px;
  width: auto;
}
.tag-picker {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 8px 20px #20202009;
}
.tag-picker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 9px;
}
.tag-picker-top strong {
  font-size: 13px;
}
.tag-picker-search {
  padding: 0 12px 10px;
}
.tag-picker-search input {
  min-height: 36px !important;
  padding: 8px 11px !important;
  font-size: 13px !important;
}
.tag-options {
  max-height: 185px;
  overflow-y: auto;
  padding: 0 7px 6px;
  scrollbar-width: thin;
}
.tag-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 9px;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
}
.tag-option:hover {
  background: var(--page);
}
.tag-option .tag-chip {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-width: calc(100% - 30px);
}
.tag-option .tag-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: transparent;
  flex: none;
}
.tag-option.selected .tag-check {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tag-option .tag-check .ic {
  width: 13px;
  height: 13px;
}
.tag-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 8px;
}
.tag-picker-actions .btn {
  border: 0;
  background: transparent;
  min-height: 33px;
  padding: 7px 9px;
}
.tag-picker-actions .btn:hover {
  background: var(--redpale);
}
.tag-quick-form {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.tag-quick-form .field label {
  font-size: 12px;
}
.tag-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-color-choice {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 2px;
}
.tag-color-choice span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--choice-color);
}
.tag-color-choice.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px #db152626;
}
.tag-color-input {
  width: 36px !important;
  min-height: 29px !important;
  height: 29px !important;
  padding: 2px !important;
  cursor: pointer;
}
.tag-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-library-lead {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.tag-library-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.tag-library-count {
  font-size: 13px;
  color: var(--muted);
}
.tag-library-list {
  display: grid;
  gap: 8px;
}
.tag-library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.tag-library-item .tag-chip {
  font-size: 13px;
  max-width: 100%;
  min-height: 29px;
}
.tag-library-item-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  justify-items: start;
}
.tag-library-item-main small {
  font-size: 12px;
  color: var(--muted);
}
.tag-library-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
}
.tag-library-controls .icon-btn {
  width: 32px;
  height: 32px;
}
.tag-library-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: var(--page);
  margin: 0 0 16px;
}
.tag-library-editor h3 {
  margin: 0 0 14px;
  font-size: 14px;
}
.tag-library-editor .field input[type='text'] {
  background: var(--paper);
}
.tag-library-editor .tag-color-row {
  margin-top: 9px;
}
.tag-delete-confirm {
  border: 1px solid #e9abb2;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0 12px;
  background: var(--redpale);
}
.tag-delete-confirm p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--ink);
}
.tag-delete-confirm .actions {
  justify-content: flex-end;
}
html[data-theme='dark'] .tag-chip {
  border-color: color-mix(in srgb, var(--tag-base), #373c46 60%);
}
@media (max-width: 480px) {
  .tag-library-item {
    padding: 9px;
    gap: 8px;
  }
  .tag-library-item .tag-chip {
    max-width: 100%;
  }
  .tag-library-controls .icon-btn {
    width: 28px;
    height: 28px;
  }
  .tag-picker-actions .btn {
    font-size: 12px;
  }
  .tag-color-row {
    gap: 5px;
  }
}

.tag-create-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.tag-create-check:hover {
  background: var(--page);
}
.tag-create-check input {
  min-height: 16px;
  width: 16px;
  accent-color: var(--red);
}

/* V4 - auditoria de geometria, icones e campos (desktop e mobile). */
:root {
  --control-h: 44px;
  --control-inset: 18px;
}
svg.ic {
  box-sizing: content-box;
  display: block;
  flex: none;
  vertical-align: middle;
}
.btn,
.nav-item,
.add-col-btn,
.icon-btn,
.collapse-btn,
.column-heading .icon-btn,
.task-mobile-tabs button,
.view-toggle button,
.tag-library-controls .btn {
  align-items: center;
  justify-content: center;
}
.btn,
.nav-item,
.add-col-btn,
.view-toggle button {
  line-height: 1.4;
}
.btn svg.ic,
.nav-item svg.ic {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  align-self: center;
}
.nav-item {
  justify-content: flex-start;
}
.icon-btn,
.collapse-btn {
  display: grid;
  place-items: center;
  padding: 0;
}
.icon-btn svg.ic,
.collapse-btn svg.ic {
  display: block;
  margin: auto;
  align-self: center;
  justify-self: center;
}
/* A seta do menu precisa ser geometricamente simetrica dentro do circulo. */
.collapse-btn {
  top: 50%;
  right: -17px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 4;
}
.collapse-btn .ic {
  width: 18px;
  height: 18px;
}
/* Dropdowns: seta uniforme, posicionada 20 px longe da borda direita. */
select.control,
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: var(--control-h);
  padding: 10px 51px 10px 15px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 19px center;
  line-height: 1.4;
  cursor: pointer;
}
html[data-theme='dark'] select.control,
html[data-theme='dark'] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b9c0cb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
select.control {
  max-width: 260px;
  min-width: 170px;
}
select.control:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* Icone nativo do calendario: area de clique visivel sem encostar na borda. */
.field input[type='date'],
.field input[type='datetime-local'] {
  min-height: var(--control-h);
  padding: 10px 17px;
  line-height: 1.4;
}
.field input[type='date']::-webkit-calendar-picker-indicator,
.field input[type='datetime-local']::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 0.85;
  margin: 0 0 0 7px;
  padding: 0;
}
.field input[type='date']::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
/* Alinhamento consistente em botoes de acao, inclusive as variacoes da biblioteca de etiquetas. */
.btn {
  display: inline-flex;
  gap: 9px;
  min-height: 40px;
  padding: 9px 15px;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
}
.btn .ic {
  width: 17px;
  height: 17px;
}
.tag-library-controls .btn,
.tag-picker-actions .btn {
  vertical-align: middle;
}
.tag-library-controls .btn .ic,
.tag-picker-actions .btn .ic {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  select.control {
    min-width: 0;
    max-width: 100%;
    padding-right: 47px;
    background-position: right 17px center;
  }
  .field select {
    padding-right: 47px;
    background-position: right 17px center;
  }
  .collapse-btn {
    display: none;
  }
}

/* V5 - hierarquia visual: etapas, etiquetas e prioridades usam codigos diferentes. */
/* Etapa: marcador retangular vertical, sem ponto circular. */
.column-heading {
  gap: 9px;
  align-items: center;
}
.column-heading .stage-color {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 19px;
  border-radius: 3px;
}
.status-dot {
  display: inline-block;
  flex: 0 0 4px;
  width: 4px;
  height: 15px;
  border-radius: 3px;
  vertical-align: middle;
}
.pill:has(.status-dot) {
  gap: 9px;
}
/* Etiqueta: bloco preenchido, com texto WCAG contrastante. */
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 0;
  min-height: 24px;
  max-width: 100%;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--tag-base);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.06px;
  box-shadow: none;
  vertical-align: middle;
}
.tag-chip .tag-dot {
  display: none;
}
.tag-chip .tag-name {
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-chip .remove-tag {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: -2px -5px -2px 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  opacity: 0.84;
}
.tag-chip .remove-tag:hover,
.tag-chip .remove-tag:focus-visible {
  background: color-mix(in srgb, currentColor 19%, transparent);
  color: inherit;
  opacity: 1;
}
.tag-chip .remove-tag svg {
  stroke: currentColor;
}
.tag-cluster {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
}
.card-top {
  align-items: flex-start;
  gap: 8px;
}
.card-top .tag-chip {
  max-width: 100%;
}
.tag-library-item .tag-chip {
  font-size: 13px;
  min-height: 28px;
  padding: 5px 10px;
}
.tag-option .tag-chip {
  margin-block: 2px;
}
/* A mesma cor e contraste ficam preservados no modo escuro. */
html[data-theme='dark'] .tag-chip {
  background: var(--tag-base);
  color: var(--tag-text);
  border-color: transparent;
}
/* Prioridade: bandeira de contorno, sem bolinha ou fundo de etiqueta. */
.priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--priority-color);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.priority .p-dot {
  display: none;
}
.priority svg.ic {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  stroke: var(--priority-color);
  stroke-width: 2.2;
}
.card-top .priority {
  margin-top: 1px;
}
@media (max-width: 480px) {
  .tag-chip {
    max-width: 100%;
  }
  .tag-cluster .tag-chip {
    font-size: 11px;
  }
  .priority {
    font-size: 11px;
  }
  .priority svg.ic {
    width: 13px;
    height: 13px;
  }
}

/* V6 - controles e avisos conforme referencia Gestao de Vagas Cozimax. */
.cozi-select,
.cozi-date {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.cozi-select.compact {
  width: 230px;
  max-width: 100%;
}
.cozi-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  left: 0;
  top: 0;
}
.cozi-select-trigger,
.cozi-date-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  min-height: 48px;
  width: 100%;
  text-align: left;
  color: var(--ink);
  font-weight: 550;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 44px 10px 14px;
  background: var(--paper);
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.cozi-select.compact .cozi-select-trigger {
  min-height: 43px;
  font-size: 13px;
  border-radius: 9px;
}
.cozi-select-trigger:hover,
.cozi-date-trigger:hover {
  border-color: #cbd0d7;
  background: var(--paper);
}
.cozi-select-trigger:focus-visible,
.cozi-date-trigger:focus-visible,
.cozi-select.open .cozi-select-trigger,
.cozi-date.open .cozi-date-trigger {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px #db15261a;
}
.cozi-select-label,
.cozi-date-label {
  min-width: 0;
  display: block;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cozi-date-label.is-empty {
  color: var(--faint);
  font-weight: 400;
}
.cozi-select-chevron,
.cozi-date-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  pointer-events: none;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.cozi-select-chevron svg,
.cozi-date-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}
.cozi-select.open .cozi-select-chevron svg {
  transform: rotate(180deg);
}
.cozi-select-menu,
.cozi-date-popup {
  position: fixed;
  z-index: 650;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 14px 38px rgba(32, 32, 32, 0.16);
  padding: 7px;
  max-height: min(315px, calc(100dvh - 24px));
}
.cozi-select-menu[hidden],
.cozi-date-popup[hidden] {
  display: none !important;
}
.cozi-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 9px;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.cozi-option:hover,
.cozi-option:focus-visible {
  background: var(--page);
  outline: 0;
}
.cozi-option.selected {
  background: var(--redpale);
  color: var(--red);
  font-weight: 750;
}
.cozi-option[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
.cozi-option .cozi-check {
  margin-left: auto;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}
.cozi-option:not(.selected) .cozi-check {
  visibility: hidden;
}
.cozi-option .cozi-check svg {
  width: 14px;
  height: 14px;
}
.cozi-date-popup {
  width: 316px;
  max-width: calc(100vw - 20px);
  padding: 13px;
  overflow: auto;
}
.cozi-cal-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.cozi-cal-nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
}
.cozi-cal-nav:hover {
  background: var(--page);
  color: var(--ink);
}
.cozi-cal-month,
.cozi-cal-year {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  min-height: 34px;
  padding: 5px 7px;
  cursor: pointer;
}
.cozi-cal-month:hover,
.cozi-cal-year:hover {
  background: var(--page);
}
.cozi-cal-period {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
}
.cozi-cal-weekdays,
.cozi-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.cozi-cal-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px 0;
}
.cozi-cal-day,
.cozi-cal-blank {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cozi-cal-day:hover {
  background: var(--redpale);
  color: var(--red);
}
.cozi-cal-day.is-selected {
  background: var(--red);
  color: #fff;
}
.cozi-cal-day.today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--red);
}
.cozi-cal-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.cozi-cal-footer button {
  min-height: 31px;
  padding: 6px 7px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.cozi-cal-footer button:hover {
  background: var(--redpale);
}
.cozi-cal-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.cozi-cal-choice.years {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 218px;
  overflow-y: auto;
}
.cozi-cal-choice button {
  padding: 8px 3px;
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.cozi-cal-choice button:hover {
  background: var(--page);
}
.cozi-cal-choice button.selected {
  color: var(--red);
  border-color: var(--red);
  background: var(--redpale);
  font-weight: 700;
}
.cozi-toast {
  position: fixed;
  bottom: 22px;
  left: calc(50% + var(--side) / 2);
  transform: translateX(-50%);
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(540px, calc(100vw - 24px));
  width: max-content;
  background: #202020;
  color: #fff;
  padding: 11px 12px 11px 15px;
  border: 1px solid #202020;
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.5;
  animation: cozi-toast-in 0.18s ease-out;
}
.cozi-toast .ic {
  width: 17px;
  height: 17px;
  flex: none;
}
.cozi-toast span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cozi-toast button {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #eee;
}
.cozi-toast button:hover {
  background: #ffffff25;
}
.cozi-toast button .ic {
  width: 15px;
  height: 15px;
}
.cozi-toast.error {
  border-left: 3px solid #ff6875;
}
.cozi-toast.success {
  border-left: 3px solid #61c997;
}
@keyframes cozi-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
html[data-theme='dark'] .cozi-select-trigger,
html[data-theme='dark'] .cozi-date-trigger {
  background: #191d24;
  border-color: #454c59;
}
html[data-theme='dark'] .cozi-select-menu,
html[data-theme='dark'] .cozi-date-popup {
  background: #252a34;
  border-color: #46505e;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
html[data-theme='dark'] .cozi-option.selected,
html[data-theme='dark'] .cozi-cal-choice button.selected {
  color: #ffadb5;
}
html[data-theme='dark'] .cozi-toast {
  background: #303640;
  border-color: #46505e;
  color: var(--ink);
}
.form-feedback {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.45;
}
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'],
.cozi-select[aria-invalid='true'] .cozi-select-trigger {
  border-color: var(--red) !important;
}
@media (max-width: 760px) {
  .cozi-select.compact {
    width: 100%;
  }
  .cozi-toast {
    left: 50%;
    bottom: 15px;
  }
  .cozi-select-menu {
    max-height: 50dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cozi-toast {
    animation: none;
  }
}

.cozi-confirm-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #f0bdc4;
  border-radius: 12px;
  background: var(--redpale);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.cozi-confirm-warning > .ic {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--red);
  margin-top: 1px;
}
.cozi-confirm-warning p {
  margin: 0;
  min-width: 0;
}
html[data-theme='dark'] .cozi-confirm-warning {
  border-color: #84424a;
}

/* V7 - etiquetas: seletor integrado e cores com contraste aprimorado */
.tag-create-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.tag-create-heading label {
  margin: 0;
}
.tag-create-heading small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tag-create-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.tag-create-search-wrap > svg.ic {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
}
.tag-create-search-wrap input {
  height: 42px !important;
  min-height: 42px !important;
  width: 100%;
  padding: 9px 13px 9px 39px !important;
  border-radius: 9px;
  font-size: 13px;
}
.tag-create-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  max-height: 238px;
  overflow-y: auto;
  padding: 3px;
  scrollbar-width: thin;
}
.field label.tag-create-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 49px;
  padding: 9px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}
.tag-create-check:hover {
  background: var(--page);
  border-color: var(--red-border, #efb1b7) !important;
}
.tag-create-check:has(.tag-create-input:checked) {
  background: var(--redpale);
  border-color: var(--red-border, #efb1b7) !important;
}
.tag-create-check:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.tag-create-check[hidden] {
  display: none !important;
}
.tag-create-input {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  opacity: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
.tag-create-box {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border: 1.5px solid #a9adb5;
  border-radius: 5px;
  background: var(--paper);
  color: transparent;
  box-shadow: none;
}
.tag-create-box svg.ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.tag-create-input:checked + .tag-create-box {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tag-create-check .tag-chip {
  min-width: 0;
  max-width: calc(100% - 31px);
  font-size: 13px;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 8px;
}
.tag-create-empty {
  grid-column: 1/-1;
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.tag-option {
  min-height: 45px;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 9px;
}
.tag-option .tag-chip {
  font-size: 13px;
  min-height: 27px;
  padding: 5px 11px;
  border-radius: 8px;
  margin: 0;
  max-width: calc(100% - 32px);
}
.tag-option .tag-check {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-color: #a9adb5;
}
.tag-option.selected {
  background: var(--redpale);
}
.tag-option.selected .tag-check {
  background: var(--red);
  border-color: var(--red);
}
html[data-theme='dark'] .tag-create-check:hover {
  border-color: #84424a !important;
}
html[data-theme='dark'] .tag-create-check:has(.tag-create-input:checked) {
  border-color: #84424a !important;
}
html[data-theme='dark'] .tag-create-box {
  border-color: #828b9a;
  background: var(--paper);
}
html[data-theme='dark'] .tag-create-input:checked + .tag-create-box {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
@media (max-width: 540px) {
  .tag-create-list {
    grid-template-columns: 1fr;
    max-height: 242px;
  }
  .tag-create-check {
    min-height: 46px;
  }
}

/* V8 refinamentos de usabilidade. */
.timer-section {
  margin: 8px 0 8px;
  padding: 0;
  background: var(--paper);
  overflow: hidden;
}
.timer-accordion > summary {
  list-style: none;
  cursor: pointer;
}
.timer-accordion > summary::-webkit-details-marker {
  display: none;
}
.timer-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 13px 16px;
}
.timer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  min-width: 0;
}
.timer-title .ic {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.timer-compact-right {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.timer-total-chip {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.timer-expand-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.timer-expand-icon .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.timer-accordion[open] .timer-expand-icon .ic {
  transform: rotate(180deg);
}
.timer-details {
  padding: 15px 17px 15px;
  border-top: 1px solid var(--line);
}
.timer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.timer-live-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timer-clock {
  font-size: 27px;
  margin: 0;
  line-height: 1.2;
}
.timer-buttons {
  width: auto;
}
.timer-buttons .btn {
  min-height: 35px;
  padding: 8px 11px;
}
.timer-subline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.timer-history-details {
  margin-top: 11px;
}
.cozi-option {
  margin: 3px 0;
  min-height: 42px;
}
.cozi-option-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cozi-select-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cozi-priority-flag {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
}
.cozi-priority-flag .ic {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.cozi-date-popup {
  padding: 9px 11px;
  max-height: none !important;
  overflow: visible !important;
}
.cozi-cal-header {
  margin-bottom: 5px;
  gap: 5px;
}
.cozi-cal-nav {
  width: 31px;
  height: 30px;
}
.cozi-cal-period {
  gap: 2px;
}
.cozi-cal-month,
.cozi-cal-year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 5px;
  min-height: 30px;
  white-space: nowrap;
  font-size: 13px;
}
.cozi-cal-month .ic,
.cozi-cal-year .ic {
  width: 12px;
  height: 12px;
  flex: none;
  stroke-width: 1.7;
  color: var(--muted);
}
.cozi-cal-weekdays,
.cozi-cal-grid {
  gap: 2px;
}
.cozi-cal-day,
.cozi-cal-blank {
  min-height: 32px;
  height: 32px;
  font-size: 13px;
}
.cozi-cal-weekdays span {
  padding: 4px 0;
}
.cozi-cal-footer {
  margin-top: 6px;
  padding-top: 5px;
}
.cozi-cal-footer button {
  min-height: 28px;
}
.cozi-cal-choice.years {
  max-height: none;
  overflow: visible;
}
.cozi-cal-choice button {
  min-height: 32px;
}
.chat-head h3 {
  font-size: 14px;
}
.chat-empty strong {
  margin: 0 0 8px;
}
.chat-compose .actions .btn {
  gap: 7px;
}
.rich-editor {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  overflow: hidden;
}
.rich-editor:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #db15261a;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  background: var(--page);
}
.rich-toolbar > button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 29px;
  height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}
.rich-toolbar > button:hover,
.rich-toolbar > button:focus-visible {
  background: var(--redpale);
  color: var(--red);
}
.rich-toolbar > button .ic {
  width: 16px;
  height: 16px;
}
.rich-separator {
  display: block;
  flex: none;
  height: 19px;
  width: 1px;
  margin: 0 5px;
  background: var(--line);
}
.rich-canvas {
  min-height: 135px;
  padding: 14px 15px;
  outline: none;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rich-canvas:empty:before {
  content: attr(data-placeholder);
  color: var(--faint);
  pointer-events: none;
}
.rich-canvas p,
.rich-canvas div {
  margin: 0 0 8px;
}
.rich-canvas h3 {
  font-size: 17px;
  margin: 8px 0;
}
.rich-canvas blockquote {
  margin: 10px 0;
  padding: 7px 11px;
  border-left: 3px solid var(--red);
  background: var(--page);
}
.rich-canvas ul,
.rich-canvas ol {
  padding-left: 24px;
  margin: 7px 0;
}
.rich-canvas a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-link-popover {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.rich-link-popover[hidden] {
  display: none;
}
.rich-link-popover label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}
.rich-link-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.rich-link-row input {
  flex: 1;
  min-width: 155px;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  padding: 6px 9px;
}
.rich-link-row .btn {
  min-height: 35px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .timer-compact-head {
    gap: 8px;
    padding: 11px 12px;
  }
  .timer-compact-right {
    gap: 7px;
  }
  .timer-status {
    font-size: 11px;
  }
  .timer-details {
    padding: 13px;
  }
  .rich-toolbar {
    gap: 2px;
    padding: 6px;
  }
  .rich-toolbar > button {
    width: 28px;
    height: 28px;
  }
  .rich-separator {
    margin: 0 2px;
  }
}
@media (max-width: 430px) {
  .timer-compact-head {
    flex-wrap: wrap;
  }
  .timer-compact-right {
    width: 100%;
    justify-content: space-between;
  }
  .timer-main-row {
    align-items: flex-start;
  }
  .timer-buttons {
    width: 100%;
  }
  .timer-buttons .btn {
    flex: 1;
  }
  .cozi-date-popup {
    padding: 9px;
  }
  .rich-editor {
    min-width: 0;
  }
}

.rich-color-tool {
  position: relative;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  padding-bottom: 4px;
}
.rich-color-tool:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 3px;
  border-radius: 4px;
  background: var(--red);
}
.rich-highlight:after {
  background: #fdc300;
}
.rich-code-icon {
  font-size: 11px;
  letter-spacing: -0.5px;
  font-weight: 750;
}
.rich-color-panel {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
}
.rich-color-panel[hidden] {
  display: none;
}
.rich-color-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rich-color-choices button {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--chosen);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.rich-color-choices button:hover,
.rich-color-choices button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.rich-close-palette {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--page);
  color: var(--muted);
  margin-left: auto;
}
.rich-close-palette .ic {
  width: 15px;
  height: 15px;
}
.rich-canvas pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--page);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: Consolas, monospace;
}
html[data-theme='dark'] .task-mobile-tabs button.active {
  background: #44272d;
  color: #ffb0b8;
}
html[data-theme='dark'] .task-main .btn.danger {
  color: #ff9da5;
  border-color: #82464c;
}
html[data-theme='dark'] .cozi-option.selected {
  background: #42262d;
  color: #ffadb5;
}

/* V9 - Identidade Cozimax com SVG fiel ao arquivo fornecido */
.brand #brandSvg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  min-width: 0;
  overflow: visible;
  flex: none;
}
.brand svg.brand-logo.brand-full {
  display: block;
  width: 136px;
  max-width: 136px;
  height: auto;
  max-height: 40px;
  overflow: visible;
}
.brand svg.brand-symbol {
  display: none;
  width: 34px;
  height: 34px;
  overflow: visible;
}
.is-collapsed .brand #brandSvg {
  width: 38px;
  overflow: visible;
}
.is-collapsed .brand svg.brand-full {
  display: none !important;
}
.is-collapsed .brand svg.brand-symbol {
  display: block;
  width: 34px;
  height: 34px;
}
.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  margin: 17px 12px 9px;
}
.projects-heading .icon-btn {
  width: 30px !important;
  height: 30px !important;
  justify-self: end;
  place-items: center;
  padding: 0;
  color: var(--muted);
}
.projects-heading .icon-btn:hover {
  color: var(--red);
  background: var(--redpale);
}
.projects-heading .icon-btn .ic {
  width: 18px;
  height: 18px;
}
#projectNav .nav-item {
  gap: 11px;
  padding-right: 12px;
  min-height: 50px;
}
#projectNav .nav-item .count-bubble {
  min-width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 9px;
  font-size: 12px;
}
.project-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--project-color, #64748b);
  color: var(--project-icon-color, #fff);
}
.project-icon svg.ic {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.9;
}
.is-collapsed #projectNav .nav-item {
  justify-content: center;
  padding: 9px 0;
  min-height: 50px;
}
.is-collapsed #projectNav .nav-item .count-bubble,
.is-collapsed #projectNav .nav-item .grow {
  display: none !important;
}
.is-collapsed #projectNav .project-icon {
  width: 34px;
  height: 34px;
}
.is-collapsed #projectNav .nav-item.active {
  background: var(--redpale);
}
.project-heading-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.project-heading-identity .project-icon {
  width: 27px;
  height: 27px;
}
.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.project-card-head .project-tags {
  flex: 1;
  min-width: 0;
}
.project-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.project-area-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--area-bg);
  color: var(--area-fg);
}
.project-area-chip.is-neutral {
  background: var(--soft);
  color: var(--muted);
}
.project-color-field {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
}
.project-color-preview {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--project-color);
  color: var(--project-icon-color);
}
.project-color-preview .ic {
  width: 17px;
  height: 17px;
}
.project-color-field .tag-color-row {
  margin: 0;
  gap: 6px;
}
.project-color-field .tag-color-choice {
  width: 28px;
  height: 28px;
}
.project-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 2px;
}
.project-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.project-section-header strong {
  font-size: 13px;
  line-height: 1.4;
}
.project-section-header small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.project-area-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.field label.project-area-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.field label.project-area-option {
  margin: 0;
  font-weight: inherit;
  font-size: 13px;
}
.project-area-option:hover {
  background: var(--page);
  border-color: #cdd2db;
}
.project-area-option:has(input:checked) {
  border-color: var(--red);
  background: var(--redpale);
}
.project-area-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.project-area-option .tag-create-box {
  margin: 0;
  flex: none;
  width: 19px;
  height: 19px;
}
.project-area-option .project-area-chip {
  max-width: calc(100% - 29px);
}
.project-area-option:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.project-areas-library .tag-library-item-main {
  justify-items: start;
}
.project-areas-library .tag-library-item .project-area-chip {
  font-size: 13px;
  min-height: 30px;
}
@media (max-width: 760px) {
  .brand .brand-label,
  .is-collapsed .brand .brand-label {
    display: none !important;
  }
  .brand #brandSvg,
  .is-collapsed .brand #brandSvg {
    width: 136px;
    overflow: visible;
  }
  .brand svg.brand-full,
  .is-collapsed .brand svg.brand-full {
    display: block !important;
    width: 136px !important;
    max-width: 136px !important;
  }
  .brand svg.brand-symbol,
  .is-collapsed .brand svg.brand-symbol {
    display: none !important;
  }
  .is-collapsed #projectNav .nav-item {
    justify-content: flex-start;
    padding: 11px 12px;
  }
  .is-collapsed #projectNav .nav-item .count-bubble,
  .is-collapsed #projectNav .nav-item .grow {
    display: grid !important;
  }
  .is-collapsed #projectNav .nav-item .grow {
    display: block !important;
  }
  .projects-heading {
    display: grid !important;
  }
  .project-area-create-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .project-area-options {
    grid-template-columns: 1fr;
  }
  .project-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* V10 · Painel de gestão de desempenho UX/UI */
.ov-dashboard {
  max-width: 1620px;
  margin: 0 auto;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ov-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ov-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  flex: 1;
}
.ov-toolbar-title h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 4px;
  font-weight: 750;
}
.ov-toolbar-title p,
.ov-panel-head p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.ov-period {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.ov-period button {
  min-height: 35px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.ov-period button:hover {
  border-color: var(--line);
  background: var(--page);
  color: var(--ink);
}
.ov-period button.selected {
  border-color: var(--red);
  background: var(--redpale);
  color: var(--red);
  font-weight: 750;
}
.ov-toolbar-right {
  min-width: 200px;
}
.ov-filter-select {
  display: grid;
  gap: 5px;
  min-width: 215px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.ov-filter-select select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 40px;
  padding: 8px 30px 8px 12px;
  font-size: 13px;
  width: 100%;
}
.ov-custom-dates {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.ov-custom-dates label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  min-width: 155px;
}
.ov-custom-dates input {
  height: 42px;
  max-width: 220px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
}
.ov-custom-dates .btn {
  margin-bottom: 0;
}
.ov-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  padding: 0 3px;
}
.ov-scope > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ov-scope .ic {
  width: 14px;
  height: 14px;
}
.ov-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-top: 3px;
}
.ov-section-label span:last-child {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
}
.ov-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ov-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 17px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  box-shadow: 0 1px 1px #00000003;
  min-height: 145px;
}
.ov-kpi:hover {
  border-color: #df9ba3;
  box-shadow: 0 5px 20px #2020200a;
  transform: translateY(-1px);
}
.ov-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ov-kpi-label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}
.ov-kpi-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--page);
  color: var(--muted);
  flex: none;
}
.ov-kpi-icon .ic {
  width: 16px;
  height: 16px;
}
.ov-kpi-icon.alert {
  background: #fff0f1;
  color: #c41929;
}
.ov-kpi-icon.amber {
  background: #fff3df;
  color: #a76810;
}
.ov-kpi-icon.green {
  background: #e8f6ee;
  color: #147947;
}
.ov-kpi-icon.blue {
  background: #ebf2ff;
  color: #366acc;
}
.ov-kpi-icon.purple {
  background: #f2ecff;
  color: #7853ce;
}
.ov-kpi strong {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ov-kpi-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: auto;
}
.ov-kpi-note .ic {
  width: 13px;
  height: 13px;
}
.ov-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  align-items: stretch;
}
.ov-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  min-width: 0;
}
.ov-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ov-panel-head h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.1px;
  line-height: 1.35;
}
.ov-panel-head .btn {
  font-size: 12px;
  min-height: 32px;
  padding: 7px 10px;
}
.ov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.ov-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ov-legend i,
.ov-color-dot,
.ov-status-row i,
.ov-bottle-label i {
  display: inline-block;
  background: var(--c);
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: none;
}
.ov-legend b {
  color: var(--ink);
}
.ov-trend-chart {
  height: 210px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.ov-bin {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.ov-bars {
  height: 176px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.ov-bar {
  position: relative;
  min-width: 4px;
  width: min(21px, 42%);
  border: 0;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    opacity 0.15s,
    filter 0.15s;
}
.ov-bar:hover,
.ov-bar:focus-visible {
  filter: brightness(0.86);
  outline-offset: 2px;
}
.ov-bar.entry {
  background: #a3a9b5;
}
.ov-bar.delivered {
  background: var(--red);
}
.ov-bar span {
  font-size: 11px;
  color: var(--ink);
  font-weight: 750;
  position: absolute;
  bottom: calc(100% + 4px);
  white-space: nowrap;
}
.ov-bin small {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 9px 1px 6px;
  white-space: nowrap;
}
.ov-chart-foot,
.ov-fine {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
.ov-status-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 204px;
}
.ov-donut {
  width: 163px;
  height: 163px;
  border-radius: 50%;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}
.ov-donut > div {
  width: 117px;
  height: 117px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.ov-donut strong {
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.ov-donut span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.ov-status-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.ov-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.ov-status-row:hover {
  background: var(--page);
  border-color: var(--line);
}
.ov-status-row > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.ov-status-row strong {
  min-width: 18px;
  text-align: right;
}
.ov-status-percent {
  color: var(--muted);
  font-size: 11px;
  min-width: 33px;
  text-align: right;
}
.ov-delivery-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
}
.ov-big-ratio {
  display: block;
  font-size: 44px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -1px;
}
.ov-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.ov-rate-breakdown {
  min-width: 165px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ov-rate-breakdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 9px;
  padding: 10px;
  font-size: 12px;
  text-align: left;
  color: var(--ink);
}
.ov-rate-breakdown button:hover {
  border-color: #db949a;
}
.ov-rate-breakdown button span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ov-rate-breakdown .ic {
  height: 14px;
  width: 14px;
}
.ov-rate-good .ic {
  color: #2c9871;
}
.ov-rate-bad .ic {
  color: #c02a3b;
}
.ov-meter {
  height: 8px;
  border-radius: 99px;
  background: #d5a5a9;
  overflow: hidden;
}
.ov-meter > span {
  height: 100%;
  background: #29976c;
  border-radius: 99px;
  display: block;
}
.ov-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}
.ov-project-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-project-bar-row {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 7px 4px 8px;
  text-align: left;
  color: var(--ink);
  display: grid;
  gap: 8px;
  width: 100%;
}
.ov-project-bar-row:hover {
  border-color: var(--line);
  background: var(--page);
}
.ov-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ov-color-dot {
  background: var(--project-color);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}
.ov-bar-title > span:nth-child(2) {
  flex: 1;
}
.ov-bar-title strong {
  font-size: 12px;
  white-space: nowrap;
}
.ov-progress-track {
  height: 7px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
  display: block;
  width: 100%;
}
.ov-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--red);
}
.ov-project-bar-row small {
  font-size: 11px;
  color: var(--muted);
}
.ov-bottleneck-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov-bottleneck {
  padding: 8px 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: var(--ink);
}
.ov-bottleneck:hover {
  background: var(--page);
  border-color: var(--line);
}
.ov-bottle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.ov-bottle-label i {
  width: 8px;
  height: 8px;
}
.ov-bottle-number {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.ov-bottle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.ov-danger {
  color: #c92a3b;
}
.ov-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--soft);
}
.ov-badge.danger {
  color: #ad1c2c;
  background: #ffeced;
}
.ov-badge.good {
  color: #137149;
  background: #e7f6ee;
}
.ov-project-health {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ov-health-row {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  color: var(--ink);
}
.ov-health-row:hover {
  background: var(--page);
  border-color: #dfabb0;
}
.ov-health-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.ov-health-head > .project-icon {
  height: 34px;
  width: 34px;
  flex: none;
}
.ov-health-head > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.ov-health-head strong {
  display: block;
  font-size: 12.5px;
}
.ov-health-head small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.ov-health-head > b {
  font-size: 13px;
}
.ov-health-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.ov-attention {
  margin-top: 0;
}
.ov-attention-list {
  display: flex;
  flex-direction: column;
}
.ov-attention-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.ov-attention-row:last-child {
  border-bottom: 0;
}
.ov-attention-row:hover {
  background: var(--page);
}
.ov-attention-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--muted);
}
.ov-attention-icon.danger {
  background: #fff0f1;
  color: #c62a3b;
}
.ov-attention-icon .ic {
  height: 16px;
  width: 16px;
}
.ov-attention-name {
  flex: 1;
  min-width: 0;
}
.ov-attention-name strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
}
.ov-attention-name small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.ov-attention-reason {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.ov-attention-reason.danger {
  color: #b51228;
  font-weight: 700;
}
.ov-attention-row > .ic {
  height: 14px;
  width: 14px;
  color: var(--muted);
}
.ov-empty {
  text-align: center;
  padding: 30px 15px;
  font-size: 13px;
  color: var(--muted);
}
.ov-drill {
  outline: 1px solid #e8bcc1;
}
.ov-drill-count {
  font-size: 13px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 99px;
  padding: 2px 7px;
  vertical-align: middle;
  margin-left: 5px;
}
.ov-drill-table {
  overflow: auto;
}
.ov-drill-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}
.ov-drill-table th,
.ov-drill-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.ov-drill-table th {
  color: var(--muted);
  background: var(--column);
  font-size: 11px;
}
.ov-drill-table td > button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
}
.ov-drill-table td > button:hover strong {
  color: var(--red);
}
.ov-drill-table td strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.ov-drill-table td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.ov-footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  padding: 12px 15px;
}
.ov-footnote .ic {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
html[data-theme='dark'] .ov-kpi-icon.alert,
html[data-theme='dark'] .ov-attention-icon.danger,
html[data-theme='dark'] .ov-badge.danger {
  background: #3b2028;
  color: #ff9ca5;
}
html[data-theme='dark'] .ov-kpi-icon.amber {
  background: #3e2c20;
  color: #ffd3a1;
}
html[data-theme='dark'] .ov-kpi-icon.green,
html[data-theme='dark'] .ov-badge.good {
  background: #203b30;
  color: #9fe1bb;
}
html[data-theme='dark'] .ov-kpi-icon.blue {
  background: #232e49;
  color: #a8c4ff;
}
html[data-theme='dark'] .ov-kpi-icon.purple {
  background: #352848;
  color: #c7afff;
}
html[data-theme='dark'] .ov-meter {
  background: #57343a;
}
@media (max-width: 1360px) {
  .ov-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-dashboard {
    gap: 13px;
  }
  .ov-analytics-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ov-status-chart {
    flex-direction: column;
    gap: 12px;
  }
  .ov-status-legend {
    width: 100%;
  }
  .ov-status-row {
    padding: 4px 6px;
  }
  .ov-donut {
    height: 142px;
    width: 142px;
  }
  .ov-donut > div {
    width: 101px;
    height: 101px;
  }
}
@media (max-width: 900px) {
  .ov-analytics-grid {
    grid-template-columns: 1fr;
  }
  .ov-status-chart {
    flex-direction: row;
  }
  .ov-status-legend {
    width: auto;
  }
  .ov-toolbar {
    align-items: stretch;
  }
  .ov-toolbar-right {
    width: 100%;
  }
  .ov-filter-select {
    max-width: 360px;
  }
  .ov-section-label span:last-child {
    display: none;
  }
}
@media (max-width: 580px) {
  .ov-dashboard {
    gap: 12px;
  }
  .ov-toolbar {
    padding: 16px;
    gap: 15px;
  }
  .ov-toolbar-left {
    gap: 13px;
  }
  .ov-period {
    gap: 4px;
  }
  .ov-period button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .ov-toolbar-right,
  .ov-filter-select {
    width: 100%;
    max-width: none;
  }
  .ov-kpis {
    gap: 9px;
  }
  .ov-kpi {
    padding: 13px;
    min-height: 125px;
    gap: 10px;
  }
  .ov-kpi strong {
    font-size: 25px;
  }
  .ov-kpi-label {
    font-size: 11px;
  }
  .ov-kpi-note {
    font-size: 11px;
  }
  .ov-kpi-icon {
    height: 27px;
    width: 27px;
  }
  .ov-panel {
    padding: 15px;
  }
  .ov-status-chart {
    flex-direction: column;
  }
  .ov-trend-chart {
    height: 185px;
  }
  .ov-bars {
    height: 148px;
  }
  .ov-attention-row {
    gap: 8px;
  }
  .ov-attention-reason {
    font-size: 11px;
    max-width: 100px;
    white-space: normal;
    text-align: right;
  }
  .ov-custom-dates label {
    flex: 1;
    min-width: 120px;
  }
  .ov-custom-dates input {
    max-width: none;
  }
  .ov-scope > span:last-child {
    display: none;
  }
}

.ov-analytics-grid {
  align-items: start;
}
.ov-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ov-deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ov-deadline-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  padding: 12px;
}
.ov-deadline-row:hover {
  border-color: #df9ba3;
  background: var(--page);
}
.ov-deadline-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.ov-deadline-heading strong {
  flex: 1;
  min-width: 0;
}
.ov-deadline-heading b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ov-deadline-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 580px) {
  .ov-deadline-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ov-deadline-row {
    padding: 10px;
  }
  .ov-deadline-heading {
    font-size: 11px;
  }
}

/* V11 • Uniformidade de paletas, contrastes e arquivamento */
.tag-library-editor {
  padding: 19px 20px 18px;
  border-radius: 16px;
}
.tag-library-editor .field {
  min-width: 0;
}
.tag-library-editor .tag-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.tag-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}
.tag-color-row .tag-color-choice {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 4px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.tag-color-row .tag-color-choice span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.tag-color-row .tag-color-choice.selected {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red), transparent 80%);
  border: 1px solid var(--red);
}
.tag-color-row .tag-color-input {
  display: block;
  flex: 0 0 34px;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px !important;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
  box-sizing: border-box;
}
.tag-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.tag-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}
.tag-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 6px;
}
.tag-library-editor .tag-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}
.tag-library-editor .tag-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  line-height: 1.25;
}
.tag-library-editor .tag-quick-actions .btn .ic {
  width: 17px;
  height: 17px;
}
.library-panel {
  display: grid;
  gap: 14px;
}
.library-fixed-head {
  display: grid;
  gap: 12px;
}
.library-scroll-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.library-scroll-list.is-scrollable {
  max-height: 372px;
  overflow: auto;
  padding-right: 6px;
}
.library-scroll-list.is-scrollable::-webkit-scrollbar {
  width: 10px;
}
.library-scroll-list.is-scrollable::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted), transparent 35%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.library-scroll-list.is-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.project-color-field .tag-color-row {
  gap: 6px;
}
.project-color-field .tag-color-choice {
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
}
.project-color-field .tag-color-input {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  flex-basis: 36px;
}
.archive-nav-count {
  margin-left: auto;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}
.is-collapsed .archive-nav-count {
  display: none;
}
.archived-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.archived-toolbar .search {
  width: min(380px, 100%);
}
.archive-summary {
  font-size: 13px;
  color: var(--muted);
}
.archived-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 15px;
}
.archived-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 19px;
  box-shadow: var(--shadow);
}
.archived-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.archive-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  color: var(--muted);
  padding: 5px 9px;
  font-weight: 650;
  font-size: 12px;
}
.archive-chip .ic {
  width: 14px;
  height: 14px;
}
.archived-card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}
.archived-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.archive-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-empty {
  grid-column: 1/-1;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  background: var(--paper);
}
.archive-empty > .ic {
  margin: 0 auto 10px;
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.archive-empty h3 {
  margin: 0 0 7px;
}
.archive-empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}
.archive-project-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}
.archive-project-banner > .ic {
  flex: none;
  width: 18px;
  height: 18px;
}
.archive-project-banner span {
  flex: 1;
  min-width: 160px;
}
.archive-button {
  color: var(--muted);
}
@media (max-width: 550px) {
  .tag-library-editor {
    padding: 14px;
  }
  .tag-library-editor .tag-color-row {
    gap: 5px;
  }
  .tag-color-row .tag-color-choice {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 4px;
  }
  .tag-color-row .tag-color-choice span {
    width: 24px;
    height: 24px;
  }
  .tag-color-row .tag-color-input {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex-basis: 34px;
  }
  .tag-library-editor .tag-quick-actions .btn {
    flex: 1;
    min-width: 110px;
  }
  .archived-grid {
    grid-template-columns: 1fr;
  }
}

/* V13 – acesso demonstrativo e menu de perfil, consistentes com a identidade Cozimax. */
body:not(.is-authenticated) #app {
  display: none !important;
}
body.is-authenticated #loginPage {
  display: none !important;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(360px, 0.84fr);
  background: var(--paper);
  color: var(--ink);
}
.login-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px clamp(24px, 6vw, 96px);
}
.login-inner {
  width: 100%;
  max-width: 420px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 58px;
}
.login-brand svg.brand-logo {
  width: 172px;
  max-height: 44px;
  height: auto;
  display: block;
}
.login-brand .login-product {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  line-height: 1.3;
}
.login-kicker {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 11px;
}
.login-inner h1 {
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 780;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.login-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 38ch;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.login-field label {
  font-size: 13px;
  font-weight: 700;
}
.login-field input {
  height: 49px;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.login-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #db15261b;
}
.login-field input[aria-invalid='true'] {
  border-color: var(--red);
}
.login-password-box {
  position: relative;
}
.login-password-box input {
  padding-right: 51px;
}
.login-password-toggle {
  position: absolute;
  right: 6px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.login-password-toggle:hover {
  color: var(--ink);
  background: var(--soft);
}
.login-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-error[hidden] {
  display: none !important;
}
.login-error {
  color: #b70c20;
  background: var(--redpale);
  border: 1px solid #efb7c0;
  border-radius: 9px;
  margin: 5px 0 14px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.55;
}
html[data-theme='dark'] .login-error {
  color: #ffbac0;
  border-color: #84424a;
}
.login-submit {
  width: 100%;
  min-height: 49px;
  font-size: 14px !important;
  justify-content: center;
  margin-top: 5px;
}
.login-submit .ic {
  width: 18px;
  height: 18px;
}
.login-demo {
  margin-top: 31px;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 14px;
  padding: 17px 18px;
}
.login-demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
  margin-bottom: 10px;
}
.login-demo-head .ic {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.login-demo-data {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.login-demo-data strong {
  color: var(--ink);
  font-weight: 650;
}
.login-demo-fill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
  margin-top: 10px;
  padding: 5px 0;
  text-align: left;
}
.login-demo-fill:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-disclaimer {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.65;
  margin: 20px 0 0;
}
.login-aside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #db1526;
  color: #fff;
  overflow: hidden;
  padding: 56px;
}
.login-aside:before,
.login-aside:after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #ffffff29;
  border-radius: 50%;
  pointer-events: none;
}
.login-aside:before {
  top: -235px;
  right: -120px;
}
.login-aside:after {
  bottom: -300px;
  left: -190px;
  width: 620px;
  height: 620px;
}
.login-aside-inner {
  position: relative;
  max-width: 420px;
  width: 100%;
  z-index: 1;
}
.login-aside-title {
  font-size: 35px;
  line-height: 1.18;
  letter-spacing: -1.1px;
  font-weight: 760;
  margin: 0 0 15px;
}
.login-aside-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #fff; /* contraste AA sobre o vermelho */
  margin: 0 0 42px;
  max-width: 36ch;
}
.login-preview {
  background: #fff;
  border: 1px solid #fff4;
  border-radius: 17px;
  padding: 19px;
  color: #202020;
  box-shadow: 0 22px 70px #75091444;
}
.login-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e6e8;
  gap: 12px;
}
.login-preview-head strong {
  font-size: 13px;
}
.login-preview-head span {
  font-size: 11px;
  background: #fff1f2;
  color: #b10e1d;
  border-radius: 7px;
  padding: 5px 8px;
  font-weight: 700;
}
.login-preview-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eef0f2;
}
.login-preview-row:last-child {
  border: 0;
  padding-bottom: 3px;
}
.login-preview-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f4f5f7;
  color: #60656c;
  flex: none;
}
.login-preview-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.login-preview-row div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.login-preview-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}
.login-preview-row small {
  font-size: 11px;
  color: #73777d;
}
.login-preview-bar {
  height: 5px;
  border-radius: 9px;
  background: #eef0f2;
  width: 72px;
  overflow: hidden;
}
.login-preview-bar i {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--bar-color);
  width: var(--bar-width);
}
.user-profile-footer {
  position: relative;
  z-index: 80;
  isolation: isolate;
  border-top: 1px solid var(--line);
  padding: 12px 12px 13px;
  background: var(--paper);
}
.user-profile-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.user-profile-trigger:hover,
.user-profile-trigger[aria-expanded='true'] {
  background: var(--page);
  border-color: var(--line);
}
.user-avatar {
  width: 37px;
  height: 37px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #f1e3e4;
  border: 1px solid #e1ced0;
}
.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-profile-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.user-profile-info strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-profile-info small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-profile-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
  transition: transform 0.15s;
}
.user-profile-trigger[aria-expanded='true'] .user-profile-chevron {
  transform: rotate(180deg);
}
.user-profile-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px;
  width: calc(100% - 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 6px;
  box-shadow: 0 14px 45px #20202026;
  z-index: 65;
  display: grid;
  gap: 2px;
  animation: menu-up 0.16s ease both;
}
.user-profile-menu[hidden] {
  display: none !important;
}
@keyframes menu-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-menu-header {
  padding: 10px 10px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
.user-menu-header strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
}
.user-menu-header small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-button {
  min-height: 40px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 630;
}
.user-menu-button:hover,
.user-menu-button:focus-visible {
  background: var(--page);
}
.user-menu-button .ic {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.user-menu-button.logout {
  color: #c0182a;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 3px;
  padding-top: 12px;
}
.user-menu-button.logout .ic {
  color: #c0182a;
}
html[data-theme='dark'] .user-menu-button.logout,
html[data-theme='dark'] .user-menu-button.logout .ic {
  color: #ff929a;
}
.is-collapsed .user-profile-footer {
  padding-inline: 10px;
}
.is-collapsed .user-profile-trigger {
  justify-content: center;
  padding: 7px 0;
}
.is-collapsed .user-profile-info,
.is-collapsed .user-profile-chevron {
  display: none;
}
.is-collapsed .user-profile-menu {
  bottom: 9px;
  left: calc(100% + 8px);
  width: 238px;
}
@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  }
  .login-aside {
    padding: 32px;
  }
  .login-primary {
    padding: 35px;
  }
  .login-aside-title {
    font-size: 29px;
  }
}
@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-primary {
    min-height: 100dvh;
    padding: 35px 23px;
  }
  .login-aside {
    display: none;
  }
  .login-brand {
    margin-bottom: 42px;
  }
  .login-inner {
    max-width: 450px;
  }
  .is-collapsed .user-profile-info,
  .is-collapsed .user-profile-chevron {
    display: flex;
  }
  .is-collapsed .user-profile-trigger {
    justify-content: flex-start;
    padding: 9px 8px;
  }
  .is-collapsed .user-profile-menu {
    bottom: calc(100% + 8px);
    left: 12px;
    width: calc(100% - 24px);
  }
  .user-profile-footer {
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .login-primary {
    padding-inline: 17px;
  }
  .login-brand svg.brand-logo {
    width: 147px;
  }
  .login-inner h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .user-profile-menu {
    animation: none;
  }
}

/* V16: identidade, círculos, perfil e espaços de trabalho */
.project-icon {
  display: grid !important;
  place-items: center !important;
  align-content: center;
  justify-content: center;
  line-height: 0 !important;
  overflow: hidden;
}
.project-icon svg.ic {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  vertical-align: initial;
  transform: translateY(-0.25px);
  width: 19px !important;
  height: 19px !important;
  stroke-width: 1.9 !important;
}
.is-collapsed #projectNav .nav-item {
  min-height: 45px;
  padding: 5px 0;
  gap: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.is-collapsed #projectNav .project-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0 auto;
}
.user-avatar {
  width: 37px;
  height: 37px;
  border: 1px solid #e0bdc2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbeaec;
  color: #ba1225;
  line-height: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
html[data-theme='dark'] .user-avatar {
  background: #43262d;
  color: #ffb3bc;
  border-color: #84424a;
}
.user-avatar span {
  display: block;
  line-height: 1;
}
.user-profile-chevron {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}
.is-collapsed .user-profile-footer {
  padding: 12px 7px 14px;
}
.is-collapsed .user-profile-trigger {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 2px;
  min-height: 66px;
  width: 100%;
}
.is-collapsed .user-profile-info {
  display: none;
}
.is-collapsed .user-profile-chevron {
  display: block;
  order: -1;
  width: 14px;
  height: 14px;
}
.is-collapsed .user-profile-chevron path {
  stroke-width: 2.2;
}
.is-collapsed .user-profile-menu {
  bottom: calc(100% + 8px);
  left: 8px;
  width: 242px;
  max-width: calc(100vw - 16px);
}
.workspace-picker {
  position: relative;
  flex: none;
  margin: 12px 13px 1px;
  z-index: 83;
}
.workspace-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  min-height: 60px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.workspace-switch:hover,
.workspace-switch[aria-expanded='true'] {
  background: var(--page);
  border-color: var(--red-border, #e6bdc0);
}
.ws-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--ws-color);
  color: #fff;
}
.ws-mark .ic {
  display: block;
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}
.workspace-switch-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.workspace-switch-copy strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 750;
}
.workspace-switch-copy small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.ws-switch-chevron {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.ws-switch-chevron .ic {
  width: 16px;
  height: 16px;
}
.workspace-dropdown {
  position: absolute;
  z-index: 105;
  left: 0;
  top: calc(100% + 8px);
  width: 310px;
  max-width: calc(100vw - 20px);
  max-height: 70dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 7px;
  box-shadow: 0 18px 45px rgba(10, 15, 25, 0.16);
}
.ws-dropdown-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 11px 10px 6px;
}
.workspace-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 51px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 7px 9px;
  border-radius: 10px;
}
.workspace-menu-item:hover,
.workspace-menu-item.selected {
  background: var(--page);
}
.workspace-menu-item.selected {
  color: var(--red);
}
.ws-menu-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-menu-copy strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-menu-copy small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-menu-item > .ic {
  color: var(--red);
  width: 16px;
  height: 16px;
}
.ws-dropdown-actions {
  margin-top: 6px;
  padding: 6px 3px 2px;
  border-top: 1px solid var(--line);
}
.ws-dropdown-actions .user-menu-button {
  min-height: 38px;
}
.ws-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 10px 12px;
  line-height: 1.55;
}
.is-collapsed .workspace-picker {
  margin: 11px 9px 0;
}
.is-collapsed .workspace-switch {
  justify-content: center;
  min-height: 48px;
  padding: 6px;
  border-radius: 11px;
}
.is-collapsed .workspace-switch-copy,
.is-collapsed .ws-switch-chevron {
  display: none;
}
.is-collapsed .workspace-dropdown {
  top: 0;
  left: calc(100% + 9px);
}
.is-collapsed .side-scroll {
  padding-top: 8px;
}
.invite-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--page);
  margin-bottom: 17px;
}
.invite-intro > div {
  min-width: 0;
}
.invite-intro strong {
  display: block;
  font-size: 13px;
}
.invite-intro small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 9px;
}
.members-heading strong {
  font-size: 14px;
}
.members-heading span {
  color: var(--muted);
  font-size: 12px;
}
.members-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.member-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.member-row:last-child {
  border-bottom: 0;
}
.member-avatar {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
}
.member-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.member-row > span:nth-child(2) strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-row > span:nth-child(2) small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-state {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--page);
  border-radius: 7px;
  padding: 5px 8px;
}
.profile-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 11px;
  margin-top: 10px;
}
.profile-edit-form .field {
  margin: 0;
}
.profile-edit-form > .btn {
  grid-column: 1/-1;
  justify-self: start;
}
@media (max-width: 760px) {
  .workspace-picker,
  .is-collapsed .workspace-picker {
    margin: 12px 13px 1px;
  }
  .is-collapsed .workspace-switch {
    justify-content: flex-start;
    min-height: 60px;
    padding: 10px;
  }
  .is-collapsed .workspace-switch-copy {
    display: flex;
  }
  .is-collapsed .ws-switch-chevron {
    display: grid;
  }
  .is-collapsed .workspace-dropdown {
    left: 0;
    top: calc(100% + 8px);
  }
  .is-collapsed .user-profile-trigger {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 9px 8px;
  }
  .is-collapsed .user-profile-info {
    display: flex;
  }
  .is-collapsed .user-profile-chevron {
    order: 0;
    width: 16px;
    height: 16px;
  }
  .is-collapsed .user-profile-menu {
    left: 12px;
    bottom: calc(100% + 8px);
    width: calc(100% - 24px);
  }
  .profile-edit-form {
    grid-template-columns: 1fr;
  }
}

/* V17: seletor de espacos tem iconografia propria, separada da Visao geral. */
.ws-mark .ic {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
}
.is-collapsed .workspace-picker {
  margin: 12px 9px 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.is-collapsed .workspace-switch {
  min-height: 52px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-collapsed .workspace-switch:hover,
.is-collapsed .workspace-switch[aria-expanded='true'] {
  border-color: var(--line);
  background: var(--page);
}
.is-collapsed .workspace-switch .ws-mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ws-color) 10%, var(--paper));
  color: var(--ws-color);
  border: 1px solid color-mix(in srgb, var(--ws-color) 27%, var(--line));
  display: grid;
  place-items: center;
}
.is-collapsed .workspace-switch .ws-mark .ic {
  width: 19px;
  height: 19px;
}
@media (max-width: 760px) {
  .is-collapsed .workspace-picker {
    margin: 12px 13px 1px;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .is-collapsed .workspace-switch {
    min-height: 60px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    justify-content: flex-start;
  }
  .is-collapsed .workspace-switch .ws-mark {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    background: var(--ws-color);
    color: #fff;
    border: 0;
  }
}

/* V18 - identificacao personalizada por espaco, sem alterar o logotipo oficial. */
.sidebar .brand {
  padding-inline: 16px;
  gap: 9px;
}
.sidebar .brand-label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 77px;
  max-height: 37px;
  padding-left: 10px;
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ws-dropdown-options {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.ws-dropdown-options .user-menu-button {
  width: 100%;
  min-height: 39px;
}
.header-edit-intro {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}
.workspace-brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px 18px;
  min-height: 95px;
  margin-bottom: 19px;
}
.workspace-brand-preview-logo {
  display: grid;
  align-items: center;
  flex: 0 0 135px;
  min-width: 0;
}
.workspace-brand-preview-logo svg.brand-full {
  width: 135px;
  height: auto;
  display: block;
}
.workspace-brand-preview-label {
  flex: 0 1 104px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 48px;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.workspace-header-form .field {
  min-width: 0;
}
.workspace-header-form .field input {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
}
.workspace-header-form .field input[aria-invalid='true'] {
  border-color: var(--red);
}
@media (max-width: 760px) {
  .sidebar .brand,
  .is-collapsed .sidebar .brand {
    padding-inline: 16px;
  }
  .sidebar .brand .brand-label,
  .is-collapsed .sidebar .brand .brand-label {
    display: -webkit-box !important;
    max-width: 72px;
    font-size: 12px;
  }
  .sidebar .brand #brandSvg,
  .is-collapsed .sidebar .brand #brandSvg {
    width: 116px;
  }
  .sidebar .brand svg.brand-full,
  .is-collapsed .sidebar .brand svg.brand-full {
    width: 116px !important;
    max-width: 116px !important;
  }
}
@media (max-width: 370px) {
  .workspace-brand-preview {
    padding: 17px 12px;
    gap: 8px;
  }
  .workspace-brand-preview-logo {
    flex-basis: 115px;
  }
  .workspace-brand-preview-logo svg.brand-full {
    width: 115px;
  }
  .workspace-brand-preview-label {
    font-size: 13px;
    padding-left: 8px;
  }
}

/* V22 — mensagens e confirmações consistentes com a identidade Cozimax, sem ícones. */
.cozi-toast {
  position: fixed;
  top: 22px;
  right: 25px;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 18px;
  width: clamp(280px, 32vw, 410px);
  max-width: calc(100vw - 30px);
  min-height: 55px;
  padding: 13px 14px 13px 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid #9ca3af;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(32, 32, 32, 0.12);
  font-size: 13px;
  line-height: 1.55;
  animation: cozi-notice-enter 0.2s ease-out;
}
.cozi-toast.info {
  border-left-color: #8c96a4;
}
.cozi-toast.success {
  border-left-color: #20835b;
}
.cozi-toast.error {
  border-left-color: var(--red);
}
.cozi-toast-message {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 560;
}
.cozi-toast-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 30px;
  flex: none;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cozi-toast .cozi-toast-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.cozi-toast .cozi-toast-dismiss:hover,
.cozi-toast .cozi-toast-dismiss:focus-visible {
  background: var(--soft);
  color: var(--ink);
}
html[data-theme='dark'] .cozi-toast {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 12px 36px #0005;
}
html[data-theme='dark'] .cozi-toast.error {
  border-left-color: #f15c69;
}
html[data-theme='dark'] .cozi-toast.success {
  border-left-color: #3eac85;
}
html[data-theme='dark'] .cozi-toast.info {
  border-left-color: #9099a6;
}
.cozi-confirm-warning {
  display: block;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 17px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}
.cozi-confirm-warning p {
  margin: 0;
}
html[data-theme='dark'] .cozi-confirm-warning {
  border-color: var(--line);
  background: var(--page);
}
.form-feedback {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--red);
  font-weight: 550;
}
html[data-theme='dark'] .form-feedback {
  color: #ff8d97;
}
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'],
.login-field input[aria-invalid='true'],
.cozi-select[aria-invalid='true'] .cozi-select-trigger,
.cozi-date[aria-invalid='true'] .cozi-date-trigger {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 2px #db152614;
}
@keyframes cozi-notice-enter {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .cozi-toast {
    top: auto;
    right: 15px;
    left: 15px;
    bottom: 16px;
    transform: none;
    width: auto;
    max-width: none;
    min-height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cozi-toast {
    animation: none;
  }
}

/* V23 - cabecalho centralizado no menu lateral recolhido (desktop). */
@media (min-width: 761px) {
  body.is-collapsed .sidebar .brand {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 !important;
    border-bottom: 0;
  }
  body.is-collapsed .sidebar .brand #brandSvg {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  body.is-collapsed .sidebar .brand svg.brand-full {
    display: none !important;
  }
  body.is-collapsed .sidebar .brand svg.brand-symbol {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    margin: 0;
  }
  body.is-collapsed .sidebar .brand .brand-label {
    display: none !important;
    border: 0 !important;
    margin: 0;
    padding: 0;
  }
}

/* Contador das colunas do Kanban: no modo claro, o fundo cinza quase sumia sobre a coluna. */
html:not([data-theme='dark']) .column-heading .count-bubble {
  background: var(--paper);
  border: 1px solid #d5d9e0;
  color: #4a4f57;
}

/* Menu lateral: quando falta espaço, só a lista de "Meus projetos" rola. A navegação e o título
   da seção ficam fixos. Em telas muito baixas, volta a rolar o menu inteiro para nada ficar escondido. */
.side-scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.side-scroll > * {
  flex: none;
}
#projectNav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -6px;
  padding: 0 6px 16px 0;
}
@media (max-height: 520px) {
  .side-scroll {
    overflow-y: auto;
    padding-bottom: 20px;
  }
  #projectNav {
    flex: none;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* Menos espaço entre o seletor de espaços e o título "Navegação". */
.side-scroll {
  padding-top: 14px;
}
.side-scroll > .side-heading:first-child {
  margin-top: 4px;
}

/* Visão geral: as duas colunas de painéis terminam na mesma linha. O último painel de cada coluna
   ocupa a sobra, e os quadros de "Planejamento de prazos" crescem para preencher o espaço. */
.ov-analytics-grid {
  align-items: stretch;
}
.ov-stack > .ov-panel:last-child {
  flex: 1 1 auto;
}
.ov-panel:has(> .ov-deadline-grid) {
  display: flex;
  flex-direction: column;
}
.ov-panel > .ov-deadline-grid {
  flex: 1 1 auto;
  align-content: stretch;
}
.ov-deadline-row {
  justify-content: space-between;
}

/* Personalizar espaço de trabalho: prévia, ícones e cor. */
.ws-settings-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 19px;
}
.ws-settings-preview .workspace-brand-preview {
  margin-bottom: 0;
}
.ws-preview-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.ws-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.ws-fieldset legend {
  padding: 0;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.ws-fieldset:disabled {
  opacity: 0.55;
}
.ws-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 7px;
}
.ws-icon-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.ws-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ws-icon-choice {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.ws-icon-choice .ic {
  width: 19px;
  height: 19px;
}
.ws-icon-option:hover .ws-icon-choice {
  border-color: #cbd0d7;
  color: var(--ink);
}
.ws-icon-option input:checked + .ws-icon-choice {
  border-color: var(--red);
  background: var(--redpale);
  color: var(--red);
}
.ws-icon-option input:focus-visible + .ws-icon-choice {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .ws-settings-preview {
    grid-template-columns: 1fr;
  }
}

/* Alinhamento de ícones e textos. Nas notas com várias linhas, o ícone fica centralizado na primeira
   linha. No menu do perfil, "Sair da conta" tem espaçamento igual acima e abaixo do texto. */
.alert-note .ic {
  margin-top: calc((1.48em - 14px) / 2);
}
.user-menu-button.logout {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 3px;
}

/* Escala de tipografia: nenhum texto abaixo de 11px; os de 11 a 12,5px ganham cerca de 1px.
   O nome do espaço de trabalho fica em 12px, porque com 13px "Meu espaço de trabalho" não cabe
   no seletor do menu lateral. */
.workspace-switch-copy strong {
  font-size: 12px;
}

/* Avisos de sucesso e informativos sem a faixa colorida à esquerda; só os erros mantêm o destaque. */
.cozi-toast.info,
.cozi-toast.success,
html[data-theme='dark'] .cozi-toast.info,
html[data-theme='dark'] .cozi-toast.success {
  border-left: 1px solid var(--line);
}

/* Configurações: seções, foto de perfil e atalhos para as bibliotecas do espaço. */
.settings-section + .settings-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.settings-section-head {
  margin-bottom: 14px;
}
.settings-section-head h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.4;
}
.settings-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.user-avatar.profile-photo-preview {
  width: 64px;
  height: 64px;
  font-size: 19px;
}
.profile-photo-actions {
  min-width: 0;
}
.profile-photo-actions .field-hint {
  margin-top: 7px;
}
.avatar {
  overflow: hidden;
}
.avatar img,
.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-links {
  display: grid;
  gap: 8px;
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.settings-link:hover {
  border-color: #cbd0d7;
  background: var(--page);
}
.settings-link > .ic {
  color: var(--muted);
}
.settings-link > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-link strong {
  font-size: 13px;
}
.settings-link small {
  font-size: 12px;
  color: var(--muted);
}
.settings-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 22px;
}
.settings-note .ic {
  width: 15px;
  height: 15px;
  margin-top: calc((1.5em - 15px) / 2);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.photo-crop-stage {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #15181e;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.photo-crop-stage.is-dragging {
  cursor: grabbing;
}
.photo-crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
}
.photo-crop-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 999px rgba(15, 18, 24, 0.6);
  pointer-events: none;
}
.photo-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
}
.photo-crop-zoom input {
  flex: 1;
  accent-color: var(--red);
}

/* Notificações */
.notification-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}
.notification-day {
  margin: 0;
  padding: 12px 18px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--column);
  border-top: 1px solid var(--line);
}
.notification-day:first-child {
  border-top: 0;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.notification-day + .notification-item {
  border-top: 0;
}
.notification-item:hover {
  background: var(--page);
}
.notification-item.is-unread {
  background: color-mix(in srgb, var(--redpale) 55%, var(--paper));
}
.notification-item.is-unread:hover {
  background: var(--redpale);
}
.user-avatar.notification-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.user-avatar.notification-avatar.is-other {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.notification-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notification-text {
  font-size: 13px;
  line-height: 1.5;
}
.notification-detail {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.notification-meta > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-meta > span:last-child {
  flex: none;
}
.notification-meta .project-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.notification-meta .project-icon svg.ic {
  width: 12px !important;
  height: 12px !important;
}
.notification-meta .project-icon.is-removed {
  background: var(--soft);
  color: var(--muted);
}
.notification-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin: 13px -4px 0 -2px;
  border-radius: 50%;
  background: var(--red);
}
.notification-dot.is-read {
  visibility: hidden;
}
.notification-count {
  background: var(--red);
  color: #fff;
}
html[data-theme='dark'] .notification-item.is-unread {
  background: color-mix(in srgb, var(--redpale) 45%, var(--paper));
}
@media (max-width: 760px) {
  .notification-item {
    padding: 12px 14px;
  }
  .notification-detail {
    white-space: normal;
  }
}

/* Notificações em duas colunas: lista com linha de leitura confortável e painel de resumo e filtros. */
.notif-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  max-width: 1620px;
}
.notification-body {
  max-width: 78ch;
}
.notification-time {
  flex: none;
  margin-top: 1px;
  margin-left: auto;
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.notification-meta-time {
  display: none;
  flex: none;
}
.notif-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}
.notif-filters {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.notif-filters > summary {
  display: none;
}
.notif-filter-body {
  display: grid;
  gap: 16px;
  padding: 14px;
}
.notif-read-toggle {
  display: flex;
}
.notif-read-toggle button {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.notif-group h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--faint);
}
.notif-facets {
  display: grid;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.notif-facet {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}
.notif-facet:hover {
  background: var(--page);
}
.notif-facet.selected {
  background: var(--redpale);
  color: var(--red);
  font-weight: 700;
}
.notif-facet > .ic {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.notif-facet.selected > .ic {
  color: var(--red);
}
.notif-facet .project-icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.notif-facet .project-icon svg.ic {
  width: 13px !important;
  height: 13px !important;
}
.user-avatar.notif-facet-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.user-avatar.notif-facet-avatar.is-other {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.notif-facet-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-facet-count {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.notif-facet.selected .notif-facet-count {
  color: var(--red);
}
.notif-clear {
  justify-self: start;
}
@media (max-width: 1100px) {
  .notif-layout {
    grid-template-columns: 1fr;
  }
  .notif-panel {
    position: static;
    order: -1;
  }
  .notif-filter-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .notif-read-toggle,
  .notif-clear {
    grid-column: 1 / -1;
  }
  .notif-read-toggle {
    justify-self: start;
  }
  .notif-facets {
    max-height: 304px;
  }
}
@media (max-width: 760px) {
  .notif-filters > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .notif-filters > summary::-webkit-details-marker {
    display: none;
  }
  .notif-filters[open] > summary {
    border-bottom: 1px solid var(--line);
  }
  .notif-filter-body {
    grid-template-columns: 1fr;
  }
  .notification-time {
    display: none;
  }
  .notification-meta-time {
    display: inline;
  }
}

/* Cabeçalho das páginas sem a linha de identificação acima do título: mais baixo, com o título e o
   subtítulo centralizados em relação aos botões da direita. */
.topbar {
  min-height: 0;
  padding: 20px 30px;
}
@media (max-width: 1100px) {
  .topbar {
    padding: 18px 22px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 16px;
  }
}
/* Os Kanbans aproveitam a altura liberada pelo cabeçalho mais baixo. */
.board-scroller {
  min-height: calc(100dvh - 219px);
}
.kanban {
  min-height: calc(100dvh - 253px);
}
@media (max-width: 760px) {
  .kanban {
    min-height: calc(100dvh - 246px);
  }
}
/* Ícone dos estados vazios centralizado sobre o texto. */
.empty-state > svg.ic {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  color: var(--muted);
}

/* Movimento. Só opacidade e posição (transform), que o navegador anima sem recalcular o layout.
   Durações curtas (90 a 320ms) e nenhuma animação contínua. As entradas e saídas de janelas,
   páginas, itens novos e avisos ficam em js/core.js (MOTION). Quem pede menos movimento no sistema
   operacional recebe as mudanças instantâneas (regra no final). */
:root {
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes motion-fade-in {
  from {
    opacity: 0;
  }
}
@keyframes motion-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

/* Menus, seletores e calendário surgem a partir do botão que os abriu. */
.workspace-dropdown,
.cozi-select-menu,
.cozi-date-popup {
  animation: motion-pop 0.16s var(--ease-out);
}

/* Menu lateral: deslizar com desaceleração e fundo escuro com fade. */
.sidebar {
  transition:
    width 0.22s var(--ease-out),
    transform 0.24s var(--ease-out);
}
.workspace {
  transition: margin-left 0.22s var(--ease-out);
}
.side-backdrop.open {
  animation: motion-fade-in 0.2s ease-out;
}

/* Resposta ao clique: o elemento "afunda" levemente enquanto está pressionado. */
.btn,
.icon-btn,
.add-col-btn,
.view-toggle button,
.ov-period button,
.tag-color-choice,
.ws-icon-choice,
.notif-facet,
.nav-item,
.user-menu-button,
.settings-link,
.workspace-switch,
.workspace-menu-item,
.cozi-select-trigger,
.cozi-date-trigger,
.cozi-option,
.tag-option,
.notification-item {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.1s ease-out;
}
.btn:active:not(:disabled),
.icon-btn:active:not(:disabled),
.view-toggle button:active:not(:disabled),
.ov-period button:active,
.tag-color-choice:active,
.ws-icon-option:active .ws-icon-choice {
  transform: scale(0.96);
}
.add-col-btn:active,
.nav-item:active,
.user-menu-button:active,
.settings-link:active,
.workspace-switch:active,
.workspace-menu-item:active,
.cozi-select-trigger:active,
.cozi-date-trigger:active,
.cozi-option:active,
.tag-option:active,
.notif-facet:active,
.notification-item:active {
  transform: scale(0.985);
}
.kcard:active {
  transform: scale(0.99);
}
.collapse-btn {
  transition:
    background-color 0.15s,
    transform 0.1s ease-out;
}
.collapse-btn:active {
  transform: translateY(-50%) scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* O que está saindo da tela não recebe cliques, para não atrapalhar a próxima ação. */
.motion-ghost,
.motion-ghost * {
  pointer-events: none !important;
}

/* Adicionar pessoas ao espaço: busca no diretório de contas ativas. */
.invite-search {
  min-width: 0;
}
.field .invite-search input {
  min-height: 44px;
  padding-left: 38px;
}
.invite-search > .ic {
  top: 50%;
  transform: translateY(-50%);
}
.invite-results {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  max-height: 248px;
  overflow-y: auto;
}
.invite-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.invite-result:hover,
.invite-result:focus-visible {
  background: var(--page);
  outline: 0;
}
.invite-result > span:nth-child(2),
.invite-selected > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
}
.invite-result strong,
.invite-selected strong {
  font-size: 13px;
}
.invite-result small,
.invite-selected small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-result > .ic {
  color: var(--muted);
}
.invite-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--red);
  border-radius: 11px;
  background: var(--redpale);
}
.invite-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.member-state.is-warning {
  background: color-mix(in srgb, #efa443 18%, var(--paper));
  color: #8a5919;
}
html[data-theme='dark'] .member-state.is-warning {
  color: #ffd08a;
}

/* Pessoas: avatares, responsáveis e menções */
.user-avatar.person-avatar {
  width: 24px;
  height: 24px;
  font-size: 9.5px;
  letter-spacing: 0;
}
.user-avatar.person-avatar.is-other {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.user-avatar.is-system {
  background: color-mix(in srgb, #d97706 14%, var(--paper));
  border-color: color-mix(in srgb, #d97706 35%, var(--line));
  color: #a35a05;
}
html[data-theme='dark'] .user-avatar.is-system {
  color: #ffc46b;
}
.user-avatar.is-system svg.ic {
  width: 55%;
  height: 55%;
}
.assignee-stack {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.assignee-stack .person-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
  box-shadow: 0 0 0 2px var(--paper);
}
.assignee-stack .person-avatar + .person-avatar,
.assignee-stack .assignee-more {
  margin-left: -6px;
}
.assignee-more {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: var(--soft);
  box-shadow: 0 0 0 2px var(--paper);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
.card-foot-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
}
.card-foot-end:empty,
.card-foot-end:has(> .card-due:empty):not(:has(.assignee-stack)) {
  display: none;
}
.assignee-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  min-height: 27px;
}
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 4px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  max-width: 100%;
}
.assignee-chip.is-warning {
  border-color: color-mix(in srgb, #efa443 55%, var(--line));
  background: color-mix(in srgb, #efa443 10%, var(--paper));
}
.assignee-chip-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.assignee-chip-copy strong {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assignee-chip-copy small {
  font-size: 11px;
  color: #8a5919;
}
html[data-theme='dark'] .assignee-chip-copy small {
  color: #ffd08a;
}
.assignee-remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.assignee-remove:hover {
  background: var(--soft);
  color: var(--red);
}
.assignee-remove svg.ic {
  width: 13px;
  height: 13px;
}
.assignee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-option.assignee-option {
  gap: 10px;
}
.assignee-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  text-align: left;
}
.assignee-option-copy strong {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assignee-option-copy small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assignee-picker-hint {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}
.assignee-create-list .tag-create-check {
  gap: 10px;
}
.assignee-create-list .person-avatar {
  margin-left: 2px;
}
.chat-compose {
  position: relative;
}
.mention-menu {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: calc(100% - 6px);
  z-index: 5;
  display: grid;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 30px #2020201f;
}
.mention-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mention-option span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.mention-option strong {
  font-size: 13px;
}
.mention-option small {
  font-size: 11.5px;
  color: var(--muted);
}
.mention-option:hover,
.mention-option.active {
  background: var(--redpale);
}
.mention {
  padding: 0 3px;
  border-radius: 4px;
  background: color-mix(in srgb, #4c83e6 14%, transparent);
  color: #1f56b8;
  font-weight: 650;
}
html[data-theme='dark'] .mention {
  background: color-mix(in srgb, #4c83e6 28%, transparent);
  color: #a9c6ff;
}

/* Minhas demandas */
.my-tasks {
  display: grid;
  gap: 22px;
  max-width: 1180px;
}
.my-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
}
.my-group-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}
.my-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.my-list.is-done {
  margin-top: 10px;
}
.my-list.is-done .my-task-copy strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--faint);
}
.my-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.my-task:first-child {
  border-top: 0;
}
.my-task:hover {
  background: var(--page);
}
.my-task:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.my-task-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.my-task-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.my-task-copy strong {
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-task-copy small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-task-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.my-task-checks,
.my-task-due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.my-task-checks {
  min-width: 44px;
}
.my-task-meta .priority {
  min-width: 74px;
}
.my-task-due {
  min-width: 128px;
  justify-content: flex-end;
}
.my-task-checks svg.ic,
.my-task-due svg.ic {
  width: 14px;
  height: 14px;
}
.my-task-due.is-late {
  color: var(--red);
  font-weight: 700;
}
.my-done > .btn {
  justify-self: start;
}
@media (max-width: 760px) {
  .my-task {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .my-task-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 42px;
  }
  .my-task-due,
  .my-task-meta .priority,
  .my-task-checks {
    min-width: 0;
  }
  .my-task-checks:empty {
    display: none;
  }
}

/* Calendário */
.cal-toolbar .left-tools {
  align-items: center;
}
.cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-title {
  min-width: 170px;
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  text-align: center;
}
.cal-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}
.cal-weekday {
  padding: 9px 10px;
  background: var(--column);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--faint);
}
.cal-day {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 118px;
  padding: 7px;
  background: var(--paper);
  transition: background 0.15s;
}
.cal-day.is-outside {
  background: var(--page);
}
.cal-day.is-outside .cal-date {
  color: var(--faint);
}
.cal-day.is-open {
  background: color-mix(in srgb, var(--redpale) 60%, var(--paper));
}
.cal-day.drag-over {
  background: var(--redpale);
  box-shadow: inset 0 0 0 2px var(--red);
}
.cal-date {
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cal-day.is-today .cal-date {
  background: var(--red);
  color: #fff;
}
.cal-chips {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.cal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 30%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--chip-color) 10%, var(--paper));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: grab;
}
.cal-chip:hover {
  background: color-mix(in srgb, var(--chip-color) 18%, var(--paper));
}
.cal-chip:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.cal-chip.dragging {
  opacity: 0.45;
}
.cal-chip-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color);
}
.cal-chip-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-chip svg.ic {
  flex: none;
  width: 12px;
  height: 12px;
}
.cal-chip.is-done {
  opacity: 0.6;
}
.cal-chip.is-done .cal-chip-text {
  text-decoration: line-through;
}
.cal-chip.is-late {
  border-color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}
.cal-more {
  align-self: flex-start;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.cal-more:hover {
  background: var(--soft);
  color: var(--ink);
}
.cal-agenda {
  display: none;
}
.cal-side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.cal-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cal-side-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}
.cal-side-head p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.cal-side-list {
  display: grid;
  gap: 6px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.cal-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-align: left;
  cursor: grab;
}
.cal-side-item:hover {
  background: var(--page);
}
.cal-side-item > span:not(.project-icon):not(.assignee-stack) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.cal-side-item strong {
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-side-item small {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.cal-legend .cal-legend-late {
  border-color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}
.cal-legend .cal-legend-done {
  opacity: 0.55;
}
@media (max-width: 1200px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }
  .cal-side {
    position: static;
  }
}
@media (max-width: 720px) {
  .cal-grid {
    display: none;
  }
  .cal-agenda {
    display: grid;
    gap: 14px;
  }
  .cal-agenda-day {
    display: grid;
    gap: 6px;
  }
  .cal-agenda-day h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cal-agenda-day.is-today h3 {
    color: var(--red);
  }
  .cal-title {
    min-width: 0;
    font-size: 16px;
  }
}

/* Conversa: suas mensagens à direita, as de outras pessoas à esquerda */
.chat-msg.is-own {
  justify-content: flex-end;
}
.chat-msg .user-avatar.person-avatar {
  width: 27px;
  height: 27px;
  font-size: 10px;
}
.chat-msg .chat-content {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 82%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.chat-msg.is-own .chat-content {
  align-items: flex-end;
}
.chat-msg .chat-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px 6px;
  border-radius: 3px 12px 12px 12px;
  background: var(--paper);
  border-color: var(--line);
  white-space: normal;
}
.chat-msg.is-own .chat-bubble {
  border-radius: 12px 3px 12px 12px;
  background: color-mix(in srgb, var(--red) 9%, var(--paper));
  border-color: color-mix(in srgb, var(--red) 22%, var(--line));
}
html[data-theme='dark'] .chat-msg.is-own .chat-bubble {
  background: color-mix(in srgb, var(--red) 22%, var(--paper));
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
}
.chat-author {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #1f56b8;
}
html[data-theme='dark'] .chat-author {
  color: #a9c6ff;
}
.chat-text {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-time {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.chat-msg.is-own .chat-delete {
  align-self: flex-end;
}

/* Cabeçalho fixo: em telas maiores, só o conteúdo rola (plataforma e painel administrativo).
   No celular, a página inteira continua rolando, para não ocupar a tela com o cabeçalho. */
@media (min-width: 761px) {
  .workspace {
    --main-top: 24px;
    --main-x: 30px;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
  }
  .workspace > .topbar,
  .workspace > .admin-demo-bar {
    flex: none;
  }
  .workspace > .main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Busca e filtros ficam presos no topo da área de conteúdo. */
  .workspace > .main > .toolbar:first-child,
  .workspace > .main > .archived-toolbar:first-child {
    position: sticky;
    /* O ponto de fixação desconta o espaçamento interno da área de conteúdo. */
    top: calc(-1 * var(--main-top));
    z-index: 8;
    margin: calc(-1 * var(--main-top)) calc(-1 * var(--main-x)) 18px;
    padding: var(--main-top) var(--main-x) 14px;
    background: var(--page);
  }
  /* Kanban: sem rolagem vertical da página; cada coluna rola os seus cards. */
  .main[data-layout='board'] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 14px;
  }
  .main[data-layout='board'] > * {
    flex: none;
  }
  .main[data-layout='board'] > .board-scroller {
    flex: 1;
    min-height: 0;
    padding-bottom: 10px;
  }
  .main[data-layout='board'] .kanban {
    height: 100%;
    min-height: 0;
  }
  .main[data-layout='board'] .kcolumn {
    min-height: 0;
  }
  .main[data-layout='board'] .kcards {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: -3px;
    padding: 3px;
    scrollbar-width: thin;
  }
}
/* Notificações e calendário: a lista rola; o painel lateral fica parado e rola por seção. */
@media (min-width: 1101px) {
  .main[data-layout='notif'] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .main[data-layout='notif'] > .notif-layout {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }
  .notif-layout > .notif-main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -8px 0 -4px;
    padding: 0 8px 24px 4px;
  }
  /* O bloco de filtros ocupa a altura disponível sem rolar; quando falta espaço, cada seção
     encolhe e passa a rolar a sua lista. */
  .notif-layout > .notif-panel {
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 24px;
  }
  .main[data-layout='notif'] .notif-filters {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
  }
  .main[data-layout='notif'] .notif-filters::details-content {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
  }
  .main[data-layout='notif'] .notif-filter-body {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .main[data-layout='notif'] .notif-filter-body > * {
    flex: none;
  }
  .main[data-layout='notif'] .notif-group {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 92px;
  }
  .main[data-layout='notif'] .notif-facets {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    scrollbar-width: thin;
  }
}
@media (min-width: 1201px) {
  .main[data-layout='cal'] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .main[data-layout='cal'] > .cal-layout {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }
  .cal-layout > .cal-main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 24px;
    scrollbar-width: thin;
  }
  .main[data-layout='cal'] .cal-side {
    position: static;
    align-self: start;
    max-height: calc(100% - 24px);
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .main[data-layout='cal'] .cal-side-list {
    max-height: none;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .workspace {
    --main-top: 20px;
    --main-x: 22px;
  }
}
/* Navegadores sem ::details-content: o bloco de filtros rola por inteiro. */
@supports not selector(::details-content) {
  @media (min-width: 1101px) {
    .notif-layout > .notif-panel {
      overflow-y: auto;
      scrollbar-width: thin;
    }
  }
}

/* Calendário: seletor de mês, ano e dia */
.cal-nav {
  position: relative;
}
.cal-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.cal-title:hover,
.cal-title[aria-expanded='true'] {
  background: var(--soft);
}
.cal-title svg.ic {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.cal-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 14px;
  width: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 34px #2020201f;
}
.cal-picker-year {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-picker-year .cozi-select,
.cal-picker-year select {
  flex: 1;
  min-width: 0;
}
.cal-picker-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cal-picker-month {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.cal-picker-month:hover {
  background: var(--page);
}
.cal-picker-month.is-current {
  border-color: var(--red);
  color: var(--red);
}
.cal-picker-month.is-selected {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.cal-picker-day {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
button.cal-date {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cal-day:not(.is-today) button.cal-date:hover {
  background: var(--soft);
}
button.cal-date:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
/* O seletor fica dentro da barra de ferramentas: anula larguras próprias dos controles dela. */
.cal-toolbar .cal-picker button.cal-picker-month {
  width: auto;
  min-width: 0;
}
.cal-toolbar .cal-picker .cal-picker-year .cozi-select {
  width: auto;
  min-width: 0;
  flex: 1;
}
.cal-toolbar .cal-picker .cal-picker-day .cozi-date {
  width: 100%;
}

/* Avisos no canto inferior direito: no topo, cobriam os botões principais do cabeçalho
   (Nova demanda, Novo projeto, Adicionar usuário) durante os segundos em que ficam visíveis. */
@media (min-width: 761px) {
  .cozi-toast {
    top: auto;
    bottom: 22px;
    animation-name: cozi-notice-rise;
  }
}
/* O aviso não bloqueia o que estiver por baixo: só o botão Fechar recebe cliques. */
.cozi-toast {
  pointer-events: none;
}
.cozi-toast .cozi-toast-dismiss {
  pointer-events: auto;
}
@keyframes cozi-notice-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

/* Acessibilidade: tons de texto com contraste mínimo de 4,5:1 (WCAG AA). */
:root {
  --faint: #6b6f77;
  --prio-urgente: #db1526;
  --prio-alta: #a15f06;
  --prio-media: #2f66c4;
  --prio-baixa: #13753f;
  --prio-none: #6b6f77;
}
html[data-theme='dark'] {
  --faint: #9099a6;
  --prio-urgente: #ff7480;
  --prio-alta: #e39a3b;
  --prio-media: #82a9f2;
  --prio-baixa: #4fc48c;
  --prio-none: #a3aab6;
}
/* Tema escuro: vermelho de texto mais claro sobre os fundos rosados escuros dos itens ativos. */
html[data-theme='dark'] {
  --red-text: #ff8a96;
}
html[data-theme='dark'] .nav-item.active,
html[data-theme='dark'] .view-toggle button.active,
html[data-theme='dark'] .notif-facet.selected,
html[data-theme='dark'] .notif-facet.selected .notif-facet-count,
html[data-theme='dark'] .tag:not([style]),
html[data-theme='dark'] .ov-danger,
html[data-theme='dark'] .ov-period button.selected,
html[data-theme='dark'] .my-task-due.is-late,
html[data-theme='dark'] .btn.danger:not(.danger-solid),
html[data-theme='dark'] .ov-attention-reason.danger {
  color: var(--red-text);
}
/* Demandas concluídas no calendário: atenuadas pela cor, sem perder contraste do texto. */
.cal-chip.is-done {
  opacity: 1;
  background: var(--soft);
  border-color: var(--line);
  color: var(--muted);
}

/* Listas longas de demandas: "Mostrar mais" abaixo da tabela. */
.list-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
