/* ═══════════════════════════════════════════════════════════════════════════ */
/* WORKSPACE VIEWS                                                           */
/* ═══════════════════════════════════════════════════════════════════════════ */

.workspace-view {
  height: 100%;
  overflow: auto;
  padding: 22px 22px 28px;
}

.workspace-header {
  position: relative;
  border-radius: 16px;
  padding: 22px 20px 18px;
  margin-bottom: 16px;
  background: linear-gradient(130deg, rgba(16, 36, 58, 0.85), rgba(13, 28, 45, 0.65));
  box-shadow: inset 0 0 0 1px rgba(110, 185, 220, 0.18), 0 16px 34px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.workspace-header-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(48, 172, 209, 0.32), transparent 33%),
    radial-gradient(circle at 88% 78%, rgba(88, 201, 148, 0.16), transparent 36%);
}

.workspace-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.4rem;
  color: #ecf8ff;
}

.workspace-header p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.workspace-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.ws-card {
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(150deg, rgba(10, 21, 34, 0.86), rgba(8, 18, 30, 0.7));
  box-shadow: inset 0 0 0 1px rgba(140, 206, 236, 0.16), 0 12px 24px rgba(0, 0, 0, 0.22);
}

.ws-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #dbf3ff;
}

.ws-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.ws-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-form input,
.ws-form select,
.ws-form textarea {
  border: none;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(8, 15, 24, 0.78);
  box-shadow: inset 0 0 0 1px rgba(136, 194, 224, 0.14);
  outline: none;
}

.ws-form textarea {
  resize: vertical;
  min-height: 64px;
}

.ws-form input:focus,
.ws-form select:focus,
.ws-form textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(83, 195, 235, 0.5), 0 0 0 2px rgba(83, 195, 235, 0.16);
}

.ws-form button {
  font-weight: 600;
  color: #eaf8ff;
  background: linear-gradient(120deg, rgba(26, 143, 187, 0.84), rgba(34, 111, 176, 0.82));
  box-shadow: 0 10px 18px rgba(17, 70, 119, 0.24);
  transition: var(--transition);
}

.ws-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ws-form button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.ws-focus {
  box-shadow: inset 0 0 0 1px rgba(94, 214, 255, 0.42), 0 18px 30px rgba(13, 60, 96, 0.32);
}

.ws-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
}

.ws-item {
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(11, 20, 32, 0.74);
  box-shadow: inset 0 0 0 1px rgba(132, 188, 216, 0.14);
  color: #d9effd;
  font-size: 0.83rem;
}

.ws-item small {
  color: var(--text-dim);
}

.ws-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-tree ul {
  list-style: none;
  margin: 6px 0 0;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-tree li {
  border-radius: 9px;
  padding: 7px 9px;
  background: rgba(12, 23, 36, 0.7);
  color: #d8eefc;
  font-size: 0.82rem;
}

.ws-empty {
  color: var(--text-dim);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .workspace-view {
    padding: 16px;
  }

  .workspace-content {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PLANNING BUILDER                                                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

.plan-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 14px;
  grid-column: 1 / -1;
}

.plan-control-card,
.plan-tree-card {
  min-height: 220px;
}

.plan-divider {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0), rgba(85, 194, 232, 0.35), rgba(85, 194, 232, 0));
}

.ws-label {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.plan-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.plan-kpi {
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
  background: rgba(9, 18, 30, 0.82);
  box-shadow: inset 0 0 0 1px rgba(130, 203, 236, 0.17);
}

.plan-kpi strong {
  display: block;
  font-size: 1rem;
  color: #e9f8ff;
}

.plan-kpi span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ws-org-chart {
  overflow: auto;
  padding: 10px 6px 14px;
}

.ws-org-level {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.ws-org-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  transform: translateX(-50%);
  background: rgba(111, 180, 214, 0.4);
}

.ws-org-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
}

.ws-org-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  transform: translateX(-50%);
  background: rgba(111, 180, 214, 0.38);
}

.ws-org-single-root::before,
.ws-org-root-level::before {
  display: none;
}

.ws-org-item > .ws-org-level {
  margin-top: 30px;
  min-width: 100%;
}

.ws-org-item > .ws-org-level::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(111, 180, 214, 0.3);
}

.ws-org-node {
  position: relative;
  min-width: 180px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(125, 194, 226, 0.18), 0 14px 24px rgba(4, 19, 34, 0.24);
}

.ws-org-node span,
.ws-org-node small {
  display: block;
}

.ws-org-node small {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.ws-tree-add-btn,
.ws-tree-remove-btn {
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #eaf8ff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.ws-org-node .ws-tree-add-btn,
.ws-org-node .ws-tree-remove-btn {
  position: absolute;
  left: 50%;
}

.ws-org-node .ws-tree-add-btn {
  bottom: 0;
  transform: translate(-50%, 50%);
}

.ws-org-node .ws-tree-remove-btn {
  top: 0;
  transform: translate(-50%, -50%);
}

.ws-org-node .ws-tree-remove-btn .ws-action-icon {
  width: 14px;
  height: 14px;
}

.ws-tree-add-btn {
  background: linear-gradient(120deg, rgba(26, 143, 187, 0.92), rgba(34, 111, 176, 0.9));
  box-shadow: 0 8px 16px rgba(9, 53, 84, 0.22);
}

.ws-tree-add-btn:hover {
  filter: brightness(1.06);
}

.ws-tree-remove-btn {
  background: linear-gradient(120deg, rgba(176, 79, 90, 0.92), rgba(124, 47, 53, 0.9));
  box-shadow: 0 8px 16px rgba(66, 18, 23, 0.2);
}

.ws-tree-remove-btn:hover {
  filter: brightness(1.06);
}

.ws-tree-root-wrap {
  margin-top: 6px;
}

.ws-plan-tree-block {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(10, 20, 31, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 194, 226, 0.14);
}

.ws-tree-root-list {
  list-style: none;
  margin: 8px 0 0 8px;
  padding-left: 14px;
  border-left: 1px dashed rgba(111, 180, 214, 0.3);
}

.ws-tree-root-list ul {
  list-style: none;
  margin: 6px 0 0 6px;
  padding-left: 14px;
  border-left: 1px dashed rgba(111, 180, 214, 0.24);
}

.ws-tree-line {
  margin: 6px 0;
}

.ws-tree-node-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ws-tree-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  color: #d9f5ff;
  font-size: 0.95rem;
  line-height: 1;
  background: linear-gradient(145deg, rgba(20, 130, 178, 0.7), rgba(30, 90, 145, 0.75));
  box-shadow: 0 0 0 1px rgba(94, 194, 234, 0.25), 0 8px 16px rgba(6, 32, 56, 0.35);
  transition: var(--transition);
}

.ws-tree-toggle:hover {
  filter: brightness(1.06);
}

.ws-tree-pad {
  width: 22px;
}

.ws-tree-node {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 0.81rem;
}

.ws-tree-root {
  background: linear-gradient(135deg, rgba(23, 157, 205, 0.34), rgba(38, 116, 184, 0.25));
  color: #e8f8ff;
  box-shadow: inset 0 0 0 1px rgba(129, 220, 255, 0.36);
}

.ws-tree-project {
  background: rgba(16, 30, 48, 0.84);
  color: #def2ff;
}

.ws-tree-task {
  background: rgba(12, 26, 40, 0.78);
  color: #d8edf9;
}

.ws-tree-task.is-done {
  text-decoration: line-through;
  color: var(--text-dim);
  opacity: 0.95;
}

.ws-tree-process {
  background: rgba(11, 23, 36, 0.75);
  color: #d3e8f5;
}

.ws-project-board {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.ws-project-card {
  border-radius: 12px;
  padding: 10px;
  cursor: grab;
  user-select: none;
  background: linear-gradient(145deg, rgba(14, 31, 49, 0.86), rgba(9, 21, 35, 0.82));
  box-shadow: inset 0 0 0 1px rgba(136, 199, 228, 0.22), 0 12px 18px rgba(0, 0, 0, 0.24);
}

.ws-project-card.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.ws-project-card strong {
  display: block;
  margin-top: 3px;
  color: #e7f6ff;
  font-size: 0.86rem;
}

.ws-project-card small {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.ws-project-order {
  display: inline-block;
  border-radius: 7px;
  padding: 2px 6px;
  font-size: 0.68rem;
  color: #b8ebff;
  background: rgba(31, 154, 195, 0.25);
}

.ws-open-planning {
  margin-bottom: 12px;
  margin-top: 12px;
  font-weight: 600;
  color: #eaf8ff;
  background: linear-gradient(120deg, rgba(26, 143, 187, 0.84), rgba(34, 111, 176, 0.82));
  transition: var(--transition);
}

.ws-open-planning:not(.ws-open-icon):hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ws-open-planning:not(.ws-open-icon):active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.ws-item-mini-actions .ws-open-planning,
.ws-item-actions .ws-open-planning,
.ws-item-actions-col .ws-open-planning {
  margin-top: 0;
}

.ws-open-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ws-action-icon {
  display: block;
}

.ws-open-danger.ws-open-icon {
  color: var(--action-delete);
}

.ws-open-ghost.ws-open-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(136, 194, 224, 0.16);
}

.ws-open-ghost.ws-open-icon:hover {
  box-shadow: inset 0 0 0 1px rgba(83, 195, 235, 0.35);
  background: rgba(8, 15, 24, 0.45);
}

.ws-open-ghost.ws-open-icon:focus {
  box-shadow: inset 0 0 0 1px rgba(83, 195, 235, 0.5), 0 0 0 2px rgba(83, 195, 235, 0.16);
}

.ws-actions-divider {
  width: 1px;
  height: 22px;
  background: rgba(132, 188, 216, 0.22);
  align-self: center;
  margin: 0 4px;
}

.ws-dual-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 14px;
}

.ws-dual-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ws-dual-right {
  min-height: 260px;
}

.ws-list-wide {
  max-height: 520px;
}

.ws-item-entity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ws-item-entity > .ws-item-main,
.ws-item-entity > div:not(.ws-inline-form):not(.ws-item-mini-actions):not(.ws-item-actions):not(.ws-item-actions-col) {
  flex: 1 1 auto;
  min-width: 0;
}

.ws-task-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(136, 194, 224, 0.28);
  background: rgba(8, 15, 24, 0.55);
  flex: 0 0 auto;
  transition: var(--transition);
}

.ws-task-check:hover {
  border-color: rgba(94, 214, 255, 0.48);
}

.ws-task-check.checked {
  background: linear-gradient(120deg, rgba(26, 143, 187, 0.84), rgba(34, 111, 176, 0.82));
  border-color: rgba(94, 214, 255, 0.55);
}

.ws-task-check.checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #eaf8ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 2px 0 0 6px;
}

.ws-item-entity strong.is-done,
.ws-badge .is-done {
  text-decoration: line-through;
  color: var(--text-dim);
}

.ws-item-main {
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
}

.ws-item-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.ws-item-actions .ws-open-planning {
  margin-top: 0;
  min-height: var(--btn-height);
  padding: 10px 12px;
}

.ws-meetings-layout {
  align-items: start;
}

.ws-meetings-create-card,
.ws-meetings-list-card,
.ws-meetings-ata-card {
  border-radius: 18px;
}

.ws-meetings-list {
  gap: 10px;
}

.ws-meeting-item {
  align-items: center;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(114, 189, 224, 0.22);
}

.ws-meeting-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.ws-meeting-actions .ws-open-planning {
  min-width: 86px;
}

.ws-item-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.ws-item-mini-actions {
  display: flex;
  gap: 6px;
}

.ws-item-mini-actions .ws-open-planning {
  margin-top: 0;
  min-height: var(--btn-height);
  padding: 10px 12px;
  font-weight: 600;
}

/* Garante prioridade das cores padronizadas das ações dentro de formulários/listas */
.ws-inline-form .ws-open-planning.ws-open-edit,
.ws-item-actions .ws-open-planning.ws-open-edit,
.ws-item-mini-actions .ws-open-planning.ws-open-edit {
  background: var(--btn-edit-bg);
}

.ws-inline-form .ws-open-planning.ws-open-danger,
.ws-item-actions .ws-open-planning.ws-open-danger,
.ws-item-mini-actions .ws-open-planning.ws-open-danger {
  background: var(--btn-danger-bg);
}

.ws-item-selected {
  box-shadow: inset 0 0 0 1px rgba(94, 214, 255, 0.48), 0 10px 20px rgba(13, 60, 96, 0.26);
}

.ws-badge {
  display: inline-block;
  margin-top: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  color: #d3f2ff;
  background: rgba(31, 154, 195, 0.24);
}

.ws-inline-form {
  width: 260px;
  min-width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-item-mini-actions,
.ws-item-actions,
.ws-item-actions-col {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.ws-modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ws-modal-title-input,
.ws-modal-desc-input {
  width: 100%;
}

.ws-searchable-select {
  position: relative;
  width: 100%;
}

.ws-searchable-select.is-open {
  z-index: 20;
}

.ws-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ws-searchable-select .select-trigger {
  width: 220px;
  min-height: 40px;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 36px 10px 11px;
  border: none;
  border-radius: 10px;
  color: var(--text);
  background: rgba(8, 15, 24, 0.94);
  box-shadow: inset 0 0 0 1px rgba(136, 194, 224, 0.14);
}

.ws-searchable-select .select-trigger span {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-searchable-select .select-trigger:hover {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(83, 195, 235, 0.35);
}

.ws-searchable-select.is-open .select-trigger,
.ws-searchable-select .select-trigger:focus {
  box-shadow: inset 0 0 0 1px rgba(83, 195, 235, 0.5), 0 0 0 2px rgba(83, 195, 235, 0.16);
}

.ws-floating-select-dropdown {
  position: fixed;
  z-index: 2500;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(125, 194, 226, 0.22);
  border-radius: 12px;
  background: rgba(8, 16, 27, 0.985);
  box-shadow: 0 20px 36px rgba(2, 10, 18, 0.46), inset 0 0 0 1px rgba(136, 194, 224, 0.08);
  max-height: 280px;
  overflow: hidden;
}

.ws-floating-select-dropdown.open {
  display: flex;
  animation: wsSlideDown 0.15s ease;
}

.ws-floating-select-dropdown.open.open-up {
  animation: wsSlideUp 0.15s ease;
}

@keyframes wsSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wsSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ws-floating-select-dropdown .search-field {
  background: rgba(11, 21, 34, 0.98);
}

.ws-floating-select-dropdown .select-options-list {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
}

.ws-floating-select-dropdown .select-option {
  border: none;
  background: transparent;
  cursor: pointer;
}

.ws-floating-select-dropdown .select-option:hover {
  background: rgba(27, 38, 59, 0.72);
}

.ws-floating-select-dropdown .select-option.selected {
  color: var(--primary);
  background: rgba(25, 66, 98, 0.42);
}

.ws-inline-form select {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--text);
  background: rgba(8, 15, 24, 0.78);
  box-shadow: inset 0 0 0 1px rgba(136, 194, 224, 0.14);
}

.ws-inline-form button,
.ws-unlink-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #eaf8ff;
  background: linear-gradient(120deg, rgba(26, 143, 187, 0.84), rgba(34, 111, 176, 0.82));
  transition: var(--transition);
}

.ws-inline-form button:not(.ws-open-icon):hover,
.ws-unlink-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ws-inline-form button:not(.ws-open-icon):active,
.ws-unlink-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.ws-unlink-btn {
  margin-top: 8px;
  background: linear-gradient(120deg, rgba(176, 79, 90, 0.88), rgba(124, 47, 53, 0.84));
}

.ws-modal-create {
  width: min(560px, 100%);
}

.ws-modal-body {
  background: var(--card-bg);
  padding: 22px;
  border-radius: var(--radius-lg);
}

.ws-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ws-modal-header h3 {
  margin: 0;
  color: #e8f7ff;
  font-size: 1.05rem;
}

.ws-modal-close {
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #d6efff;
  font-size: 1.2rem;
  line-height: 1;
  background: rgba(24, 41, 61, 0.8);
  transition: var(--transition);
}

.ws-modal-close:hover {
  filter: brightness(1.08);
  background: rgba(24, 41, 61, 0.95);
}

.ws-ata-doc {
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(8, 18, 29, 0.88), rgba(10, 20, 33, 0.8));
  box-shadow: inset 0 0 0 1px rgba(145, 202, 230, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-ata-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(145, 202, 230, 0.2);
}

.ws-ata-head h4 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: #e9f8ff;
}

.ws-ata-code {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ws-ata-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.8rem;
  color: #dbf0fe;
}

.ws-ata-section {
  border-radius: 10px;
  padding: 10px;
  background: rgba(10, 21, 35, 0.74);
  box-shadow: inset 0 0 0 1px rgba(138, 193, 220, 0.16);
}

.ws-ata-section h5 {
  margin: 0 0 6px;
  font-size: 0.77rem;
  color: #bce9ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ws-ata-section p {
  margin: 0;
  font-size: 0.84rem;
  color: #d6ebf8;
  line-height: 1.45;
}

.ws-ata-footer {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HOME                                                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */

.home-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  grid-column: 1 / -1;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(138deg, rgba(13, 31, 51, 0.88), rgba(8, 22, 36, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(123, 203, 238, 0.22),
    0 18px 32px rgba(8, 40, 63, 0.32);
  grid-column: 1 / -1;
}

.home-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 20%, rgba(77, 192, 232, 0.36), transparent 36%),
    radial-gradient(circle at 84% 78%, rgba(96, 206, 158, 0.2), transparent 34%);
}

.home-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #96dfff;
}

.home-hero h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 8px;
  color: #edf9ff;
  font-size: 1.4rem;
}

.home-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home-actions {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-metrics {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.home-metric {
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(7, 18, 29, 0.72);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.2);
}

.home-metric span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.home-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  color: #eaf8ff;
}

.home-project-strip {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.home-project-strip h3 {
  margin: 0 0 10px;
}

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

.home-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(7, 18, 29, 0.72);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.18);
}

.home-project-item strong,
.home-project-item span {
  display: block;
}

.home-project-item span {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.home-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-project-actions .ws-open-planning,
.home-actions .ws-open-planning {
  margin: 0;
}

.home-card {
  min-height: 180px;
}

.home-kanban-card {
  grid-column: 1 / -1;
}

.home-kanban-card {
  min-height: 760px;
  padding: 22px;
}

.home-kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.home-kanban-summary {
  min-width: 140px;
  text-align: right;
}

.home-kanban-summary strong {
  display: block;
  color: #eefaff;
  font-size: 1.6rem;
}

.home-kanban-summary span {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.home-kanban-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  align-items: stretch;
}

.home-kanban-column {
  min-height: 610px;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(10, 20, 32, 0.94), rgba(13, 31, 49, 0.72));
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.14);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.home-kanban-column.is-touch-target {
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.14), 0 0 0 2px rgba(83, 195, 235, 0.34);
  transform: translateY(-2px);
}

.home-kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-kanban-column-head strong {
  color: #effbff;
  font-size: 0.86rem;
}

.home-kanban-column-head span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 91, 132, 0.42);
  color: #d9f3ff;
  font-size: 0.76rem;
}

.home-kanban-column-body {
  display: grid;
  gap: 12px;
  min-height: 540px;
  align-content: start;
}

.home-kanban-empty {
  min-height: 240px;
  border: 1px dashed rgba(129, 200, 233, 0.16);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.home-kanban-task {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(150deg, rgba(19, 40, 64, 0.92), rgba(10, 23, 38, 0.86));
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.18), 0 12px 22px rgba(3, 14, 25, 0.24);
  cursor: grab;
  min-height: 170px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.home-kanban-task.is-collapsed {
  min-height: 0;
  padding: 12px 14px;
}

.home-kanban-task.dragging,
.home-kanban-task.touch-dragging,
.ws-project-card.dragging {
  opacity: 0.56;
}

.home-kanban-touch-ghost {
  position: fixed;
  z-index: 9999;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(2deg);
  opacity: 0.94;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.home-kanban-task-head,
.home-kanban-task-foot,
.home-kanban-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-kanban-task-head {
  align-items: flex-start;
}

.home-kanban-task-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-kanban-task-head strong {
  color: #eefaff;
  font-size: 0.94rem;
}

.home-kanban-collapse-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #dff6ff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.16);
}

.home-kanban-task p {
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  min-height: 48px;
}

.home-kanban-task-meta {
  color: var(--text-dim);
  font-size: 0.74rem;
  align-items: flex-start;
}

.home-kanban-subtasks {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.home-kanban-subtask {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.08);
  color: #dff4ff;
  font-size: 0.78rem;
}

.home-kanban-subtask input {
  margin: 0;
}

.home-kanban-subtask.is-done span {
  text-decoration: line-through;
  color: var(--text-dim);
}

.home-kanban-task-foot {
  margin-top: 10px;
}

.home-kanban-task-foot small {
  color: var(--text-dim);
}

.home-kanban-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(31, 78, 114, 0.32);
  color: #dff6ff;
}

.home-kanban-chip.status-inicio {
  background: rgba(82, 121, 156, 0.28);
}

.home-kanban-chip.status-analise {
  background: rgba(42, 118, 190, 0.28);
}

.home-kanban-chip.status-execucao {
  background: rgba(19, 153, 172, 0.26);
}

.home-kanban-chip.status-validacao {
  background: rgba(30, 171, 109, 0.24);
}

.home-kanban-chip.status-concluido {
  background: rgba(28, 186, 125, 0.34);
}

.ws-progress-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.ws-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(63, 192, 238, 0.95), rgba(83, 224, 155, 0.9));
}

.ws-progress-bar-lg {
  height: 10px;
}

.ws-detail-summary {
  margin-bottom: 12px;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  background: linear-gradient(145deg, rgba(10, 22, 35, 0.96), rgba(14, 35, 54, 0.82));
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.16);
}

.ws-detail-summary strong {
  display: block;
  font-size: 1.5rem;
  color: #eefaff;
}

.ws-detail-summary span {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
}

.task-detail-panel h4 {
  margin: 0 0 6px;
  color: #eefaff;
  font-size: 1.08rem;
}

.task-detail-panel p {
  margin: 0;
}

.task-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.task-detail-stats {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-subtasks-card {
  margin: 16px 0;
  border-radius: 14px;
  padding: 14px;
  background: rgba(9, 19, 31, 0.82);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.14);
}

.task-subtasks-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.task-subtasks-head strong {
  color: #eefaff;
}

.task-subtasks-head small {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
}

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

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

.task-history-item {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(13, 27, 43, 0.88);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.1);
}

.task-history-item strong {
  display: block;
  color: #def3ff;
  font-size: 0.82rem;
}

.task-history-item span {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.74rem;
}

.task-subtask-item {
  display: grid;
  grid-template-columns: 18px 1fr 28px;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(13, 27, 43, 0.88);
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.1);
}

.task-subtask-item input {
  width: 16px;
  height: 16px;
}

.task-subtask-item span {
  color: #def3ff;
  font-size: 0.84rem;
}

.task-subtask-item.is-done span {
  color: var(--text-dim);
  text-decoration: line-through;
}

.task-subtask-remove {
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(239, 68, 68, 0.14);
  color: #ffc6c6;
}

.home-status-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-status {
  border-radius: 10px;
  padding: 10px;
  background: rgba(9, 18, 30, 0.82);
  box-shadow: inset 0 0 0 1px rgba(130, 203, 236, 0.17);
}

.home-status strong {
  display: block;
  color: #eaf8ff;
  font-size: 1rem;
}

.home-status span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.home-status.status-started {
  box-shadow: inset 0 0 0 1px rgba(73, 205, 157, 0.34);
}

.home-status.status-done {
  box-shadow: inset 0 0 0 1px rgba(118, 212, 255, 0.34);
}

.home-shortcuts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-shortcut-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  text-align: left;
  color: #eaf8ff;
  background: linear-gradient(120deg, rgba(18, 42, 67, 0.88), rgba(15, 34, 54, 0.82));
  box-shadow: inset 0 0 0 1px rgba(129, 200, 233, 0.2);
  transition: var(--transition);
}

.home-shortcut-btn span {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
}

.home-shortcut-btn small {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.home-shortcut-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(109, 218, 255, 0.42),
    0 10px 18px rgba(11, 57, 89, 0.28);
}

@media (max-width: 980px) {
  .plan-shell {
    grid-template-columns: 1fr;
  }

  .ws-modal-form-grid {
    grid-template-columns: 1fr;
  }

  .home-shell {
    grid-template-columns: 1fr;
  }

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

  .home-kanban-header,
  .task-subtasks-head,
  .task-detail-head {
    flex-direction: column;
  }

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

  .home-project-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-project-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ws-dual-layout {
    grid-template-columns: 1fr;
  }

  .ws-meeting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ws-meeting-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .home-kanban-board {
    grid-template-columns: 1fr;
  }
}
