:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f5f6f8;
  --line: #d0d4e4;
  --text: #323338;
  --muted: #667085;
  --accent: #0073ea;
  --accent-strong: #005cc8;
  --blue: #2776d2;
  --red: #ce3b45;
  --amber: #bd7a15;
  --green: #16805b;
  --shadow: 0 18px 45px rgba(22, 33, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.auth-screen {
  align-items: center;
  background: #f6f7fb;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(22, 33, 55, 0.12);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 520px;
  padding: 28px;
  width: min(100%, 520px);
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-top: 4px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
}

.auth-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.auth-divider {
  background: #e6e9f2;
  height: 1px;
}

.form-message {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 20px;
}

.form-message[data-type="error"] {
  color: #e2445c;
}

.form-message[data-type="success"] {
  color: #00854d;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 58px 224px minmax(0, 1fr) 0;
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 58px 0 minmax(0, 1fr) 0;
}

.app-shell.sidebar-collapsed .sidebar {
  border-right: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.icon-rail {
  background: #f6f7fb;
  border-right: 1px solid #e6e9f2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 8px;
}

.rail-logo {
  align-items: center;
  color: var(--accent);
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
}

.rail-item {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #4f5666;
  min-height: 36px;
}

.rail-item.active,
.rail-item:hover {
  background: #eaf3ff;
  color: var(--accent);
}

.rail-bottom {
  margin-top: auto;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #e6e9f2;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  font-weight: 800;
  height: 38px;
  place-items: center;
  width: 38px;
}

.brand span,
.workspace-card span,
.workspace-card small,
.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.brand span {
  color: var(--muted);
}

.compact {
  min-height: 30px;
  width: 30px;
}

.workspace-picker {
  display: flex;
  gap: 6px;
}

.workspace-picker button:first-child {
  background: #f5f6f8;
  border: 1px solid #d9dfec;
  border-radius: 6px;
  color: var(--text);
  flex: 1;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list {
  display: grid;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 180ms ease;
}

.project-list.is-open {
  max-height: 180px;
  overflow-y: auto;
}

.project-list-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #4f5666;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 10px;
  text-align: left;
}

.project-list-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-item small {
  color: var(--accent);
  font-weight: 800;
}

.project-list-item.active,
.project-list-item:hover {
  background: #eaf3ff;
  color: var(--accent-strong);
}

.sidebar-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 4px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #4f5666;
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
}

.nav-item span {
  border: 1px solid #8791a5;
  border-radius: 2px;
  display: inline-block;
  height: 12px;
  min-width: 12px;
  width: 12px;
}

.nav-item.active,
.nav-item:hover {
  background: #cce5ff;
  color: #172b4d;
}

.workspace-card {
  background: #f5f6f8;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  margin-top: auto;
  padding: 14px;
}

.workspace-card span,
.workspace-card small {
  color: var(--muted);
}

.main {
  background: #ffffff;
  min-width: 0;
  padding: 0 24px 28px;
}

.global-topbar {
  align-items: center;
  background: #f6f7fb;
  border-bottom: 1px solid #e6e9f2;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 0 -24px 18px;
  min-height: 48px;
  padding: 0 24px;
}

.global-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e6ef;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  max-width: 420px;
  min-height: 32px;
  padding: 0 12px;
  width: min(42vw, 420px);
}

.global-search input {
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.global-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.current-user {
  color: #4f5666;
  font-size: 0.9rem;
  white-space: nowrap;
}

.topbar,
.board-toolbar,
.details-header,
.form-row,
menu {
  align-items: center;
  display: flex;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.board-title-area {
  min-width: 0;
  position: relative;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.1;
}

.board-title-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  gap: 6px;
  max-width: min(560px, 80vw);
  min-height: 34px;
  padding: 0 4px;
  text-align: left;
}

.board-title-button:hover,
.board-title-button[aria-expanded="true"] {
  background: #eaf3ff;
}

.board-title-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-title-button small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
}

.board-title-button.is-static {
  cursor: default;
}

.board-title-button.is-static small {
  display: none;
}

.board-info-panel,
.add-view-menu {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(22, 33, 55, 0.16);
  color: var(--text);
  display: grid;
  gap: 12px;
  left: 0;
  padding: 16px;
  position: absolute;
  top: 48px;
  width: min(360px, calc(100vw - 32px));
  z-index: 70;
}

.board-info-panel label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
}

.board-info-panel input,
.board-info-panel textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 34px;
  padding: 8px 10px;
}

.board-info-panel textarea {
  resize: vertical;
}

.board-name-field input {
  font-size: 1rem;
  font-weight: 800;
}

.board-panel-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.board-panel-actions .active {
  border-color: var(--accent);
  color: var(--accent);
}

.board-info-meta {
  border-top: 1px solid #e6e9f2;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.board-info-meta div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.board-info-meta span {
  color: var(--muted);
  font-size: 0.76rem;
}

.board-info-meta strong {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  font-size: 1.15rem;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.primary-button,
.ghost-button,
.icon-button {
  border-radius: 8px;
  min-height: 38px;
}

.primary-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  font-weight: 700;
  min-width: 116px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 14px;
}

.icon-button {
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.05rem;
  width: 38px;
}

.board-toolbar {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 8px 0;
}

.mobile-controls {
  display: none;
}

.board-tabs {
  align-items: center;
  border-bottom: 1px solid #dfe3ee;
  display: flex;
  gap: 6px;
  margin-top: 14px;
  max-width: min(760px, calc(100vw - 360px));
  overflow-x: auto;
  scrollbar-width: thin;
}

.board-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text);
  min-height: 32px;
  padding: 0 4px;
  white-space: nowrap;
}

.board-tab-wrap {
  align-items: center;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  min-height: 32px;
}

.board-tab-wrap .board-tab {
  border-bottom: 0;
}

.board-tab-wrap.active {
  border-color: var(--accent);
}

.board-tab-wrap.active .board-tab,
.board-tabs button.active {
  color: var(--accent);
  font-weight: 700;
}

.add-view-button {
  background: #eaf3ff !important;
  border-radius: 6px 6px 0 0;
  color: var(--accent) !important;
  min-width: 34px;
}

.add-view-menu {
  top: 86px;
  width: min(260px, calc(100vw - 32px));
}

.add-view-menu p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.add-view-menu div {
  display: grid;
  gap: 4px;
}

.add-view-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 7px 10px;
  text-align: left;
}

.add-view-menu button:hover {
  background: #eef4ff;
}

.add-view-menu span {
  font-weight: 800;
}

.add-view-menu small {
  color: var(--muted);
  font-size: 0.72rem;
}

.search-field {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  flex: 0 1 220px;
  gap: 8px;
  min-width: 180px;
  padding: 0 11px;
}

.search-field input,
.board-toolbar select,
.toolbar-button,
.task-form input,
.task-form select,
.task-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 38px;
}

.search-field input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.board-toolbar select {
  background: #ffffff;
  padding: 0 34px 0 10px;
}

.toolbar-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #4f5666;
  min-height: 34px;
  padding: 0 9px;
}

.toolbar-button:hover {
  background: #f5f6f8;
  border-color: #e6e9f2;
}

.toolbar-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.toolbar-popover {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(22, 33, 55, 0.18);
  display: grid;
  gap: 10px;
  min-width: 250px;
  padding: 12px;
  position: fixed;
  z-index: 75;
}

.toolbar-popover p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.toolbar-menu-list {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 300px;
  overflow-y: auto;
}

.toolbar-menu-list.single {
  grid-template-columns: 1fr;
}

.toolbar-menu-list button,
.toolbar-menu-reset {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 2px;
  min-height: 34px;
  padding: 7px 9px;
  text-align: left;
}

.toolbar-menu-list button:hover,
.toolbar-menu-list button.active,
.toolbar-menu-reset:hover {
  background: #eef4ff;
  color: var(--accent);
}

.toolbar-menu-list small {
  color: var(--muted);
  font-size: 0.7rem;
}

.toolbar-check-list {
  display: grid;
  gap: 4px;
  max-height: 310px;
  overflow-y: auto;
}

.toolbar-check-list label {
  align-items: center;
  border-radius: 6px;
  color: var(--text);
  display: flex;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
}

.toolbar-check-list label:hover {
  background: #eef4ff;
}

.toolbar-check-list .is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.toolbar-menu-reset {
  border-top: 1px solid #e6e9f2;
  color: var(--muted);
  font-weight: 800;
  margin-top: 2px;
}

.view-picker {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
}

.view-picker span {
  font-size: 0.78rem;
  font-weight: 800;
}

.view-picker select {
  border: 0;
  color: var(--text);
  min-height: 34px;
  min-width: 150px;
  outline: 0;
  padding: 0 24px 0 0;
}

.summary-grid {
  display: none;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.is-hidden {
  display: none !important;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.summary-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.summary-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.summary-grid strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 4px;
}

.board {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.group {
  background: transparent;
  border-left: 5px solid var(--group-color, var(--accent));
  border-radius: 4px 0 0 4px;
  box-shadow: none;
  overflow-x: auto;
  padding-left: 0;
}

.group-header {
  align-items: center;
  border-bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 8px 0 8px 10px;
}

.group-title {
  align-items: center;
  display: flex;
  gap: 8px;
  font-weight: 800;
  color: var(--group-color, var(--accent));
  font-size: 1.05rem;
}

.group-dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.task-table {
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1500px;
  width: 100%;
}

.task-table th,
.task-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #e6e9f2;
  height: 36px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.task-table th {
  background: #ffffff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0 8px;
  text-transform: none;
}

.column-title {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  flex: 1;
  gap: 6px;
  height: 100%;
  justify-content: center;
  min-height: 35px;
  min-width: 0;
  width: 100%;
}

.column-header-content {
  align-items: center;
  display: flex;
  gap: 2px;
  height: 35px;
}

.check-column .column-header-content {
  display: block;
}

.column-move,
.column-options-button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: transparent;
  font-weight: 800;
  height: 24px;
  min-width: 20px;
  padding: 0;
}

.task-table th:hover .column-move,
.task-table th:hover .column-options-button {
  color: #8791a5;
}

.column-move:hover,
.column-options-button:hover {
  background: #edf3ff;
  color: var(--accent) !important;
}

.column-title:hover {
  color: var(--accent);
}

.column-sort {
  color: var(--accent);
  font-weight: 900;
  min-width: 10px;
}

.task-table th.is-movable {
  cursor: grab;
}

.task-table th.is-dragging {
  opacity: 0.45;
}

.task-table th.is-drop-target {
  box-shadow: inset 3px 0 0 var(--accent);
}

.task-table tr:last-child td {
  border-bottom: 0;
}

.task-table tbody tr:hover {
  background: #f5f6f8;
}

.check-column {
  width: 30px;
}

.check-column input {
  accent-color: var(--accent);
}

.task-title {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
  text-align: left;
}

.task-cell {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 28px;
  padding: 0 8px;
}

.cell-input,
.cell-select {
  background: transparent;
  border: 0;
  color: var(--text);
  height: 35px;
  outline: 0;
  padding: 0 8px;
  text-align: center;
  width: 100%;
}

.task-name-input {
  font-weight: 600;
  text-align: left;
}

.owner-input {
  min-width: 0;
  padding-left: 0;
  text-align: left;
}

.cell-input:focus,
.cell-select:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.notes-cell {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  padding-right: 6px;
}

.emoji-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #667085;
  display: grid;
  min-height: 26px;
  padding: 0;
  place-items: center;
}

.emoji-button:hover {
  background: #eef4ff;
  color: var(--accent);
}

.mini-action {
  align-items: center;
  background: transparent;
  border: 1px solid #aab3c4;
  border-radius: 999px;
  color: #4f5666;
  display: grid;
  height: 22px;
  min-height: 22px;
  padding: 0;
  place-items: center;
  width: 22px;
}

.mini-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.person {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0 8px;
}

.avatar {
  align-items: center;
  background: #e7f7f4;
  border-radius: 999px;
  color: var(--accent-strong);
  display: grid;
  flex: 0 0 28px;
  font-size: 0.74rem;
  font-weight: 800;
  height: 28px;
  place-items: center;
  width: 28px;
}

.avatar.small {
  flex-basis: 24px;
  font-size: 0.68rem;
  height: 24px;
  width: 24px;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-width: 112px;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-por-fazer {
  background: #c4c4c4;
  color: #ffffff;
}

.status-em-progresso {
  background: #fdab3d;
  color: #ffffff;
}

.status-nao-iniciado {
  background: #c4c4c4;
  color: #ffffff;
}

.status-em-andamento {
  background: #fdab3d;
  color: #ffffff;
}

.status-bloqueado {
  background: #e2445c;
  color: #ffffff;
}

.status-concluido {
  background: #00c875;
  color: #ffffff;
}

.priority-baixa {
  background: #579bfc;
  color: #ffffff;
}

.priority-media {
  background: #5559df;
  color: #ffffff;
}

.priority-alta {
  background: #401694;
  color: #ffffff;
}

.priority-urgente,
.priority-critico {
  background: #333333;
  color: #ffffff;
}

.label-cell {
  border: 0;
  border-radius: 0;
  color: #ffffff;
  display: inline-flex;
  gap: 5px;
  height: 35px;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  min-height: 35px;
  padding: 0 8px;
  width: 100%;
}

.priority-alert {
  color: #ffd84d;
  font-size: 0.9em;
  line-height: 1;
}

.label-cell:hover {
  filter: brightness(0.96);
}

.label-cell.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.label-menu {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(22, 33, 55, 0.18);
  display: grid;
  gap: 8px;
  min-width: 172px;
  padding: 10px;
  position: fixed;
  z-index: 50;
}

.label-menu button {
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
}

.label-menu .label-menu-edit {
  background: #ffffff;
  border-top: 1px solid #e6e9f2;
  color: var(--text);
  font-weight: 700;
  margin-top: 4px;
}

.file-cell,
.timeline-cell {
  background: #c4c4c4;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 24px;
  padding: 0 10px;
  width: calc(100% - 16px);
}

.file-cell {
  background: #edf3ff;
  color: #2776d2;
}

.timeline-cell.is-disabled,
.file-cell.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.file-menu,
.timeline-menu,
.emoji-menu,
.column-menu {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(22, 33, 55, 0.18);
  display: grid;
  gap: 8px;
  padding: 10px;
  position: fixed;
  z-index: 60;
}

.file-menu,
.column-menu {
  min-width: 210px;
}

.file-menu button,
.column-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  min-height: 32px;
  padding: 0 10px;
  text-align: left;
}

.file-menu button:hover,
.column-menu button:hover {
  background: #eef4ff;
  color: var(--accent);
}

.timeline-menu {
  min-width: 260px;
}

.timeline-menu label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 5px;
}

.timeline-menu input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 10px;
}

.timeline-menu div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.emoji-menu {
  grid-template-columns: repeat(6, 30px);
}

.emoji-menu button {
  background: #f6f7fb;
  border: 0;
  border-radius: 6px;
  min-height: 30px;
  padding: 0;
}

.money-input,
.file-input,
.timeline-input {
  color: #4f5666;
}

.last-update {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 8px;
}

.last-update span:last-child {
  color: #4f5666;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-task-row td {
  background: #ffffff;
  color: var(--muted);
}

.add-task-row button {
  background: transparent;
  border: 0;
  color: #667085;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.add-task-row button:hover {
  color: var(--accent);
}

.progress-track {
  background: #e8edf5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
}

.details-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  min-width: 0;
  padding: 20px;
}

.app-shell.details-open {
  grid-template-columns: 58px 224px minmax(0, 1fr) minmax(320px, 390px);
}

.app-shell.sidebar-collapsed.details-open {
  grid-template-columns: 58px 0 minmax(0, 1fr) minmax(320px, 390px);
}

.app-shell.details-open .details-panel {
  display: block;
}

.details-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.details-body {
  display: grid;
  gap: 16px;
}

.detail-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-edit-field {
  background: var(--surface-strong);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
  padding: 10px;
}

.detail-edit-field-wide {
  grid-column: 1 / -1;
}

.detail-edit-field input,
.detail-edit-field select,
.detail-notes-editor textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.detail-notes-editor {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 32px;
}

.detail-notes-editor textarea {
  resize: vertical;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-item {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 8px;
}

.attachment-item strong,
.attachment-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item small {
  color: var(--muted);
  font-size: 0.76rem;
}

.compact-empty {
  padding: 6px 0;
}

.detail-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-field {
  background: var(--surface-strong);
  border-radius: 8px;
  padding: 10px;
}

.detail-field span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.detail-field .priority-baixa,
.detail-field .priority-media,
.detail-field .priority-alta,
.detail-field .priority-critico {
  border-radius: 999px;
  display: inline-flex;
  padding: 5px 10px;
}

dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 580px;
  padding: 0;
  width: calc(100% - 28px);
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.44);
}

.task-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.task-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
}

.task-form input,
.task-form select,
.task-form textarea {
  background: #ffffff;
  color: var(--text);
  font-weight: 500;
  padding: 9px 10px;
  width: 100%;
}

.label-editor-rows {
  display: grid;
  gap: 10px;
}

.label-editor-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.label-editor-row input[type="color"] {
  min-height: 38px;
  padding: 3px;
}

.form-row {
  gap: 12px;
}

.form-row label {
  flex: 1;
}

menu {
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.empty-state {
  color: var(--muted);
  padding: 18px;
}

.kanban-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  overflow-x: auto;
}

.kanban-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 360px;
  padding: 12px;
}

.kanban-header,
.kanban-card-footer,
.timeline-meta {
  align-items: center;
  display: flex;
  gap: 8px;
}

.kanban-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.kanban-list {
  display: grid;
  gap: 10px;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(19, 30, 48, 0.06);
  color: var(--text);
  display: grid;
  gap: 10px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.kanban-card:hover {
  border-color: var(--accent);
}

.kanban-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.kanban-card-footer {
  justify-content: space-between;
}

.assistant-view {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
}

.assistant-panel,
.assistant-output,
.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.assistant-panel {
  display: grid;
  gap: 14px;
}

.assistant-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-metrics span {
  background: var(--surface-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
}

.assistant-metrics strong {
  color: var(--text);
  display: block;
  font-size: 1.4rem;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.assistant-list button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.assistant-list button:hover {
  border-color: var(--accent);
}

.agents-view {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.agent-card {
  display: grid;
  gap: 10px;
}

.agent-card > span {
  align-items: center;
  background: #eaf3ff;
  border-radius: 8px;
  color: var(--accent);
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 34px;
}

.agent-card p {
  color: var(--muted);
  min-height: 42px;
}

.timeline-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  padding: 6px 0;
}

.timeline-item {
  display: grid;
  gap: 16px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 14px 18px;
  position: relative;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.timeline-date {
  color: var(--muted);
  font-weight: 800;
}

.timeline-content {
  display: grid;
  gap: 8px;
}

.timeline-meta {
  flex-wrap: wrap;
}

.calendar-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.calendar-month,
.calendar-agenda,
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-month {
  padding: 16px;
}

.calendar-heading,
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-heading span,
.calendar-weekdays {
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-weekdays {
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-days {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.calendar-day {
  aspect-ratio: 1.1;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-rows: auto 1fr;
  min-height: 86px;
  padding: 9px;
}

.calendar-day.is-empty {
  background: #f9fbff;
}

.calendar-task-list {
  align-content: start;
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.calendar-task-item {
  background: #f5f8ff;
  border: 0;
  border-left: 3px solid var(--task-color, var(--accent));
  border-radius: 4px;
  color: var(--text);
  display: grid;
  font-size: 0.68rem;
  gap: 1px;
  min-height: 28px;
  min-width: 0;
  overflow: hidden;
  padding: 3px 5px;
  text-align: left;
}

.calendar-task-item span,
.calendar-task-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task-item small,
.calendar-more {
  color: var(--muted);
  font-size: 0.64rem;
}

.calendar-agenda {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.agenda-item {
  background: var(--surface-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.agenda-item:hover {
  border-color: var(--accent);
}

.agenda-item span,
.agenda-item small {
  color: var(--muted);
}

.view-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gantt-view,
.files-view,
.doc-view,
.form-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 18px;
}

.gantt-board {
  --gantt-day-width: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

.gantt-table {
  min-width: calc(280px + (var(--gantt-days) * 42px));
}

.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: 280px minmax(calc(var(--gantt-days) * 42px), 1fr);
}

.gantt-header {
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.gantt-task-header,
.gantt-task-info {
  background: #ffffff;
  border-right: 1px solid var(--line);
  left: 0;
  position: sticky;
}

.gantt-task-header {
  align-content: center;
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px 14px;
  z-index: 5;
}

.gantt-task-header span,
.gantt-task-title {
  font-weight: 800;
}

.gantt-task-header small,
.gantt-task-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.gantt-scale {
  display: grid;
  grid-template-rows: 30px 40px;
}

.gantt-months-header,
.gantt-days-header,
.gantt-row-grid {
  display: grid;
  grid-template-columns: repeat(var(--gantt-days), minmax(42px, 1fr));
}

.gantt-months-header {
  border-bottom: 1px solid #e6e9f2;
}

.gantt-months-header span {
  align-items: center;
  border-right: 1px solid #e6e9f2;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.gantt-day {
  align-items: center;
  border-right: 1px solid #e6e9f2;
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  justify-items: center;
  min-width: 42px;
}

.gantt-day strong {
  color: var(--text);
  font-size: 0.78rem;
}

.gantt-day.is-weekend,
.gantt-grid-cell.is-weekend {
  background: #f2f4f8;
}

.gantt-day.is-today {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.gantt-day.is-today strong,
.gantt-day.is-today small {
  color: var(--accent);
}

.gantt-body {
  display: grid;
}

.gantt-row {
  min-height: 56px;
}

.gantt-row + .gantt-row {
  border-top: 1px solid #edf0f7;
}

.gantt-task-info {
  border-bottom: 0;
  border-left: 0;
  border-top: 0;
  color: var(--text);
  display: grid;
  gap: 5px;
  min-height: 56px;
  padding: 9px 14px;
  text-align: left;
  z-index: 3;
}

.gantt-task-info:hover {
  background: #f8f9fc;
}

.gantt-task-meta {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.gantt-task-meta i {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.gantt-row-grid {
  min-height: 56px;
  position: relative;
}

.gantt-grid-cell {
  border-right: 1px solid #edf0f7;
  grid-row: 1;
  min-width: 42px;
}

.gantt-grid-cell.is-today {
  box-shadow: inset 2px 0 0 var(--accent);
}

.gantt-bar {
  align-items: center;
  align-self: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  gap: 8px;
  grid-row: 1;
  justify-content: space-between;
  margin: 0 4px;
  min-height: 30px;
  min-width: 34px;
  overflow: hidden;
  padding: 0 10px;
  position: relative;
  text-align: left;
  z-index: 1;
}

.gantt-bar span,
.gantt-bar strong {
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar strong {
  flex: 0 1 auto;
}

.gantt-bar.is-unscheduled {
  background: #8c93a3;
  opacity: 0.78;
}

.gantt-bar:hover {
  filter: brightness(0.96);
}

.gantt-empty {
  border-top: 0;
  margin: 0;
}

.chart-view,
.dashboard-view {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-card,
.dashboard-view article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.bar-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(0, 1fr) 34px;
}

.bar-track {
  background: #edf0f7;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.bar-track div {
  height: 100%;
}

.files-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.file-card {
  background: var(--surface-strong);
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.file-icon {
  align-items: center;
  background: #eaf3ff;
  border-radius: 6px;
  color: var(--accent);
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  height: 36px;
  place-items: center;
  width: 46px;
}

.file-card small,
.form-view p {
  color: var(--muted);
}

.form-view {
  display: block;
}

.doc-view {
  display: grid;
  gap: 14px;
}

.doc-view textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 360px;
  padding: 16px;
  resize: vertical;
  width: 100%;
}

.doc-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.doc-actions span {
  color: var(--muted);
  font-size: 0.82rem;
}

.shopping-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.shopping-add {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 110px auto;
}

.shopping-add input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 38px;
  padding: 0 10px;
}

.shopping-list {
  display: grid;
  gap: 8px;
}

.shopping-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) auto;
  padding: 10px;
}

.shopping-item label {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.shopping-item label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-item small {
  color: var(--muted);
}

.shopping-item.is-done {
  background: #f7faf8;
  color: var(--muted);
}

.shopping-item.is-done label span {
  text-decoration: line-through;
}

.detail-shopping-add {
  grid-template-columns: minmax(0, 1fr) 82px auto;
  margin-bottom: 10px;
}

.board-form-page {
  background: #f5f6fb;
  border-color: transparent;
  min-height: 520px;
  padding: 44px 18px;
}

.board-form-card {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(22, 33, 55, 0.1);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 560px;
  padding: 36px;
}

.board-form-card label {
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.board-form-card input,
.board-form-card select,
.board-form-card textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
}

.board-form-card small,
.board-form-footer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.board-form-card small {
  justify-self: end;
}

.board-form-footer {
  align-items: center;
  border-top: 1px solid #e6e9f2;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 8px -36px -36px;
  padding: 14px 36px;
}

.dashboard-view {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-view span {
  color: var(--muted);
  display: block;
}

.dashboard-view strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}

.settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settings-panel.wide {
  grid-column: 1 / -1;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-list div {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.settings-list span {
  color: var(--muted);
}

.admin-list,
.user-table {
  display: grid;
  gap: 10px;
}

.admin-item,
.user-row {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-item span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  margin-top: 3px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.user-row {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) 130px auto;
}

.admin-create-user {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.2fr) minmax(150px, 0.9fr) 130px auto;
}

.admin-create-user label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
}

.admin-create-user input,
.admin-create-user select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 38px;
  padding: 0 10px;
}

.user-role-select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.compact-action {
  min-height: 34px;
  min-width: auto;
  padding: 0 12px;
}

.compact-action:disabled,
.cell-input:disabled,
.cell-select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.toast {
  background: #323338;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-weight: 700;
  max-width: min(340px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app-shell,
  .app-shell.details-open {
    grid-template-columns: 1fr;
  }

  .icon-rail,
  .sidebar {
    display: none;
  }

  .details-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .app-shell.details-open .details-panel {
    display: block;
  }

  .mobile-controls {
    background: #f6f7fb;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    margin-bottom: 14px;
    padding: 10px;
  }

  .mobile-controls label {
    color: var(--muted);
    display: grid;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 5px;
  }

  .mobile-controls select {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 38px;
    min-width: 0;
    padding: 0 10px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .auth-screen {
    padding: 12px;
  }

  .auth-card {
    gap: 16px;
    padding: 18px;
  }

  .auth-card h1 {
    font-size: 1.45rem;
  }

  .main {
    padding: 12px;
    width: 100%;
  }

  .topbar,
  .board-toolbar,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .global-topbar {
    align-items: stretch;
    margin: 0 -12px 12px;
    min-height: auto;
    padding: 10px 12px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  .topbar h1 {
    font-size: 1.45rem;
  }

  .board-tabs {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .board-title-button {
    max-width: 100%;
  }

  .board-info-panel,
  .add-view-menu {
    left: 0;
    max-width: 100%;
    width: calc(100vw - 24px);
  }

  .mobile-controls {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .search-field {
    flex: 0 0 auto;
    min-height: 42px;
    width: 100%;
  }

  .board-toolbar select {
    width: 100%;
  }

  .board-toolbar {
    background: #f8f9fc;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
  }

  .board-toolbar > .primary-button,
  .board-toolbar > .toolbar-button {
    width: 100%;
  }

  .toolbar-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .toolbar-popover {
    left: 12px !important;
    max-width: calc(100vw - 24px);
    min-width: 0;
    width: calc(100vw - 24px);
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group {
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-left: 5px solid var(--group-color, var(--accent));
    border-radius: 8px;
    overflow-x: visible;
    padding: 8px;
  }

  .task-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
    width: 100%;
  }

  .task-table thead {
    display: none;
  }

  .task-table,
  .task-table tbody,
  .task-table tr,
  .task-table td {
    display: block;
  }

  .task-table tbody {
    display: grid;
    gap: 10px;
  }

  .task-table tbody tr {
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(19, 30, 48, 0.06);
    overflow: hidden;
  }

  .task-table td {
    align-items: center;
    border-bottom: 1px solid #eef1f6;
    border-right: 0;
    display: grid;
    grid-template-columns: minmax(84px, 0.36fr) minmax(0, 1fr);
    min-height: 44px;
    padding: 6px 8px;
    text-align: left;
  }

  .task-table td::before {
    color: var(--muted);
    content: attr(data-cell-label);
    font-size: 0.74rem;
    font-weight: 800;
    padding-right: 8px;
  }

  .task-table tr td:last-child {
    border-bottom: 0;
  }

  .task-table .title-column {
    background: #f8f9fc;
  }

  .task-cell,
  .person,
  .notes-cell,
  .last-update {
    padding: 0;
  }

  .cell-input,
  .cell-select {
    background: #ffffff;
    border: 1px solid transparent;
    min-height: 34px;
    text-align: left;
  }

  .label-cell,
  .file-cell,
  .timeline-cell {
    width: 100%;
  }

  .add-task-row {
    box-shadow: none !important;
  }

  .add-task-row td {
    display: block;
    padding: 0;
  }

  .add-task-row td::before {
    content: "";
  }

  .global-search {
    width: 100%;
  }

  .global-actions {
    display: none;
  }

  .view-picker {
    justify-content: space-between;
    width: 100%;
  }

  .view-picker select {
    flex: 1;
    min-width: 0;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .kanban-column {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .calendar-layout,
  .settings-grid,
  .chart-view,
  .dashboard-view,
  .assistant-view,
  .agents-view {
    grid-template-columns: 1fr;
  }

  .gantt-table {
    min-width: calc(220px + (var(--gantt-days) * 38px));
  }

  .gantt-board {
    --gantt-day-width: 38px;
  }

  .gantt-header,
  .gantt-row {
    grid-template-columns: 220px minmax(calc(var(--gantt-days) * 38px), 1fr);
  }

  .gantt-months-header,
  .gantt-days-header,
  .gantt-row-grid {
    grid-template-columns: repeat(var(--gantt-days), minmax(38px, 1fr));
  }

  .gantt-day,
  .gantt-grid-cell {
    min-width: 38px;
  }

  .gantt-task-header,
  .gantt-task-info {
    padding-left: 10px;
    padding-right: 10px;
  }

  .form-view {
    padding: 18px 10px;
  }

  .board-form-card {
    gap: 16px;
    padding: 20px;
  }

  .board-form-footer {
    align-items: stretch;
    flex-direction: column;
    margin: 4px -20px -20px;
    padding: 14px 20px;
  }

  .doc-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shopping-add,
  .detail-shopping-add,
  .shopping-item {
    grid-template-columns: 1fr;
  }

  .admin-item,
  .user-row,
  .admin-create-user,
  .detail-edit-grid,
  .attachment-item {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-wrap: wrap;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .calendar-day {
    min-height: 76px;
    padding: 6px;
  }

  .calendar-month {
    overflow-x: auto;
  }

  .calendar-weekdays,
  .calendar-days {
    min-width: 680px;
  }

  .details-panel {
    border: 0;
    inset: 0;
    overflow-y: auto;
    padding: 16px;
    position: fixed;
    z-index: 90;
  }

  .app-shell.details-open .details-panel {
    display: block;
  }

  dialog {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    width: calc(100% - 20px);
  }
}
