:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #323338;
  font-size: 14px;
  --blue: #0073ea;
  --border: #d0d4e4;
  --muted: #676879;
  --lavender: #f0f3ff;
  --sidebar: 255px;
  --top: 48px;
  --strip: 0px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
}
button {
  border: 0;
  background: none;
}
button svg,
span svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
button:hover {
  background: #dcdfec;
}
.primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 7px 13px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.primary:hover {
  background: #0060b9;
}
.secondary {
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  padding: 7px 13px;
  min-height: 32px;
}
.secondary:hover {
  background: #f0f3ff;
}
.danger {
  color: #d83a52;
}
.danger.primary {
  background: #d83a52;
  border-color: #d83a52;
  color: white;
}
.square {
  font-size: 25px;
  line-height: 1;
  padding: 0;
  width: 32px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #323338;
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
}
.brand:first-letter {
  color: #6161ff;
}
.brand b {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.brand > span {
  font-weight: 300;
  font-size: 17px;
  margin-left: 0;
}
.brand::first-letter {
  font-size: 29px;
}
.app-page {
  background: #edf1ff;
  overflow: hidden;
}
.topbar {
  position: fixed;
  top: var(--strip);
  left: 0;
  right: 0;
  height: var(--top);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
}
.top-spacer {
  flex: 1;
}
.top-separator {
  height: 24px;
  border-left: 1px solid #c3c6d4;
}
.avatar {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  color: white;
  letter-spacing: -0.3px;
  background: #ff158a;
  border: 2px solid white;
  flex-shrink: 0;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  background: #6161ff;
  font-size: 12px;
}
.demo-strip {
  height: 40px;
  background: #323338;
  color: white;
  text-align: center;
  padding: 11px 40px;
  font-size: 13px;
}
.demo-strip a {
  color: white;
  margin-left: 12px;
  text-underline-offset: 3px;
}
.demo-strip button {
  position: absolute;
  right: 12px;
  top: 5px;
  color: white;
  font-size: 23px;
}
.sidebar {
  position: fixed;
  top: calc(var(--top) + var(--strip));
  bottom: 0;
  left: 12px;
  width: var(--sidebar);
  background: linear-gradient(145deg, #fff, #f2f4ff);
  border-radius: 10px 0 0 0;
  padding: 6px 20px 48px 16px;
  overflow-y: auto;
  z-index: 10;
  scrollbar-width: thin;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: #676879;
  text-align: left;
}
.nav-item.active {
  background: #cce5ff;
  color: #323338;
}
.nav-item span {
  display: flex;
}
.nav-section {
  margin: 35px 0 24px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 8px;
}
.section-label span {
  color: #676879;
}
.workspace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 0 0 5px 8px;
}
.workspace-title .icon-button {
  width: 28px;
  height: 24px;
}
.workspace-switch {
  display: flex;
  gap: 4px;
  margin: 0 0 8px 4px;
}
.workspace-switch select {
  width: 174px;
  min-width: 0;
  height: 33px;
  background: #f7f9ff;
  border: 1px solid #c3c6d4;
  border-radius: 4px;
  font-weight: 600;
  color: #323338;
  padding: 0 5px;
}
.workspace-switch .square {
  flex-shrink: 0;
}
.board-link {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 9px 8px;
  border-radius: 4px;
  color: #676879;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.board-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-link.active {
  background: #cce5ff;
  color: #323338;
}
.board-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sidebar-foot {
  position: fixed;
  left: 30px;
  bottom: 12px;
  width: 211px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #676879;
  gap: 7px;
}
.sidebar-foot .icon-button {
  margin-left: auto;
}
.local-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c875;
}
.main {
  position: fixed;
  left: 267px;
  right: 0;
  top: calc(var(--top) + var(--strip));
  bottom: 0;
  background: #fff;
  border-radius: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.board-head {
  padding: 17px 32px 0 38px;
  flex-shrink: 0;
}
.board-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 6px;
}
.board-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 0;
  min-width: 0;
  border-radius: 4px;
  max-width: 60%;
}
.title-edit:hover {
  background: #f0f3ff;
}
.title-edit h1 {
  margin: 0;
}
.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.head-actions .secondary {
  display: flex;
  gap: 7px;
  align-items: center;
}
.star {
  color: #676879;
}
.star.on {
  color: #ffcb00;
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-right: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 44px;
}
.view-tab {
  padding: 11px 12px 12px;
  white-space: nowrap;
  height: 44px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-tab.active {
  border-bottom-color: var(--blue);
}
.view-tab svg {
  width: 15px;
  height: 15px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px 14px 38px;
  flex-shrink: 0;
  min-height: 66px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.toolbar > button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 4px;
  min-height: 32px;
  padding: 6px 9px;
}
.saved-view-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 32px 8px 38px;
  border-bottom: 1px solid #d8dcf2;
  background: #f5f5ff;
  font-size: 13px;
  flex-shrink: 0;
}
.saved-view-status[hidden] {
  display: none;
}
.saved-view-status > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.saved-view-controls .secondary {
  padding: 4px 8px;
  font-size: 12px;
}
.saved-view-manager-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.saved-view-list {
  margin-top: 18px;
}
.automation-list {
  margin: 18px 0;
}
.automation-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  background: #fff;
}
.automation-card-head,
.automation-run > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.automation-card-head strong,
.automation-run strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.automation-card > p {
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0;
}
.automation-badge {
  border-radius: 12px;
  padding: 3px 9px;
  background: #edeef3;
  color: #666879;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.automation-badge.enabled {
  color: #006b41;
  background: #d6f4e5;
}
.automation-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.automation-card-actions .icon-button {
  margin-left: auto;
}
.automation-history {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.automation-history h3 {
  font-size: 17px;
  margin: 16px 0 6px;
}
.automation-run {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.automation-run strong {
  font-size: 14px;
}
.automation-run p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
.automation-run small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.automation-recipe {
  border: 1px solid #d4d6ef;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fafaff;
}
.automation-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.automation-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 5px;
  font-size: 13px;
}
.automation-nav [aria-current="page"] {
  color: #4545cf;
  background: #efefff;
  font-weight: 600;
}
.reminder-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.reminder-list .automation-card > p {
  overflow-wrap: anywhere;
}
.reminder-service {
  border: 1px solid #e4c768;
  background: #fff9e9;
  border-radius: 7px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
}
.reminder-service.running {
  border-color: #a0d8bf;
  background: #edf9f3;
}
.reminder-service > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reminder-service p {
  margin: 7px 0;
}
.reminder-service small {
  color: #5d5d68;
}
.reminder-message {
  padding: 8px 12px;
  background: #f6f7fb;
  border-radius: 5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.modal:has(.reminder-editor) {
  overflow: hidden;
  max-height: min(90dvh, 900px);
}
.modal:has(.reminder-editor) #dialog-form {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 900px);
}
.modal:has(.reminder-editor, .reminder-manager) .modal-head {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 8;
}
.modal:has(.reminder-editor) .modal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}
.reminder-editor {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin-right: -12px;
  padding-right: 12px;
  scrollbar-gutter: stable;
}
.modal:has(.reminder-editor) .modal-body > .form-error {
  flex-shrink: 0;
  max-height: 96px;
  overflow: auto;
}
.modal:has(.reminder-editor) .modal-actions {
  position: static;
  flex-shrink: 0;
  background: white;
  border-top: 1px solid var(--border);
  margin: 12px -24px 0;
  padding: 12px 24px;
}
.reminder-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.reminder-fields > *,
.reminder-editor fieldset {
  min-width: 0;
}
.reminder-zone {
  grid-column: 1 / -1;
}
.modal-body .reminder-editor label {
  margin: 9px 0;
}
.modal-body .reminder-editor input:not([type="checkbox"]),
.modal-body .reminder-editor select,
.modal-body .reminder-editor textarea {
  margin-top: 4px;
  padding: 7px 9px;
  min-width: 0;
}
.reminder-explanation {
  border-left: 3px solid #b7b7fa;
  padding: 3px 10px;
  line-height: 1.5;
  margin: 7px 0 14px;
}
.reminder-editor fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px 8px;
  margin: 12px 0;
}
.reminder-editor legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 5px;
}
.reminder-person-list {
  max-height: 145px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding-top: 3px;
}
.modal-body .reminder-editor .checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.reminder-editor .checkbox-option input {
  flex-shrink: 0;
}
.reminder-help {
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.reminder-help summary {
  cursor: pointer;
  padding: 6px 0;
  color: #4545a5;
}
.reminder-conflict {
  border: 1px solid #e4c768;
  border-radius: 6px;
  background: #fff9e9;
  font-size: 13px;
  padding: 12px;
  margin: 12px 0;
  line-height: 1.5;
}
.reminder-conflict .secondary {
  white-space: normal;
}
.notification-system {
  flex: 0 0 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #efefff;
  color: #5555cc;
}
.notification-system svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 500px) {
  .automation-nav {
    gap: 4px;
  }
  .automation-nav button {
    flex: 1;
    font-size: 12px;
    padding: 8px 5px;
  }
  .automation-nav button svg {
    display: none;
  }
  .modal:has(.reminder-editor) {
    max-width: calc(100vw - 16px);
    max-height: 94dvh;
  }
  .modal:has(.reminder-editor) #dialog-form {
    max-height: 94dvh;
  }
  .modal:has(.reminder-editor) .modal-head {
    padding: 14px 16px 8px;
  }
  .modal:has(.reminder-editor) .modal-head h2 {
    font-size: 18px;
  }
  .modal:has(.reminder-editor) .modal-body {
    padding: 8px 16px 0;
  }
  .modal:has(.reminder-editor) .modal-actions {
    margin: 10px -16px 0;
    padding: 10px 16px;
    gap: 8px;
  }
  .modal:has(.reminder-editor) .modal-actions button {
    padding: 9px 12px;
  }
  .reminder-fields {
    gap: 0 10px;
  }
  .notification-tabs {
    overflow-x: auto;
  }
}
.automation-recipe > p {
  margin: 5px 0;
  color: #676879;
  font-size: 13px;
}
.modal-body .automation-recipe label {
  margin: 8px 0 14px;
}
@media (max-width: 500px) {
  .automation-card {
    padding: 12px;
  }
  .automation-card-head,
  .automation-run > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
.saved-view-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.saved-view-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-view-info strong {
  display: block;
  font-size: 15px;
}
.saved-view-info small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.saved-view-row-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.saved-view-issues {
  color: #9d341d;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}
@media (max-width: 700px) {
  .saved-view-status {
    padding: 8px 14px;
    flex-wrap: wrap;
  }
  .saved-view-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .saved-view-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .saved-view-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
.toolbar .primary {
  padding: 6px 9px;
}
.toolbar .new-menu {
  border-left: 1px solid #0060c2;
  margin-left: -8px;
  border-radius: 0 4px 4px 0;
  padding: 6px;
}
.toolbar .new-item {
  border-radius: 4px 0 0 4px;
}
.toolbar > button svg {
  color: #676879;
}
.toolbar > button.primary svg {
  color: white;
}
.toolbar .active-filter {
  background: #cce5ff;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #676879;
  min-width: 100px;
  max-width: 190px;
  flex: 0 1 150px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 4px;
}
.searchbox:focus-within {
  border-color: var(--blue);
  min-width: 160px;
}
.searchbox input {
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  width: 100%;
  color: #323338;
}
.searchbox input::placeholder {
  color: #323338;
}
.board-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #b9bdcf #f5f6fa;
  scrollbar-width: thin;
}
.table-scroll {
  padding: 8px 36px 36px 40px;
  min-width: 100%;
  width: max-content;
}
.group {
  margin-bottom: 33px;
  position: relative;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  position: sticky;
  left: 0;
  width: min(700px, calc(100vw - 320px));
  color: var(--group);
  padding-left: 5px;
}
.group-heading .group-name {
  font-size: 19px;
  font-weight: 500;
  border-radius: 4px;
  padding: 3px 4px;
  color: var(--group);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-heading .count {
  font-size: 12px;
  color: #676879;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.group-heading:hover .count {
  opacity: 1;
}
.group-heading .group-options {
  position: absolute;
  left: -32px;
}
.group-heading .group-options:hover {
  background: #f0f3ff;
}
.group-heading .collapse {
  width: 24px;
  height: 28px;
  color: var(--group);
}
.group-table {
  border-left: 6px solid var(--group);
  border-radius: 5px 0 0 5px;
  box-shadow: 0 2px 4px #d0d4e444;
}
.grid-row {
  display: grid;
  grid-template-columns: var(--grid);
  height: 36px;
  position: relative;
}
.cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 36px;
}
.grid-header .cell {
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.grid-header .cell button {
  width: 100%;
  height: 100%;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.grid-header .cell button:hover {
  background: #f0f3ff;
}
.column-heading {
  position: relative;
  overflow: visible;
}
.column-resizer {
  position: absolute;
  z-index: 5;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 9px;
  cursor: col-resize;
  touch-action: none;
}
.column-resizer:hover,
.column-resizer:focus-visible {
  background: #6161ff50;
  outline: 2px solid #6161ff;
  outline-offset: -2px;
}
body.resizing-column,
body.resizing-column * {
  cursor: col-resize !important;
  user-select: none;
}
.config-list {
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.config-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: white;
}
.config-list li.dragging {
  opacity: 0.5;
  border-color: #6161ff;
}
.config-grip {
  font-size: 25px;
  color: #8a8da0;
  cursor: grab;
  user-select: none;
}
.config-column-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.config-column-name small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.config-list .config-width {
  width: 88px;
  flex-shrink: 0;
  margin: 0;
  gap: 3px;
}
.config-list input {
  margin: 0;
  padding: 7px 8px;
}
.config-move {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}
.config-move .icon-button {
  font-size: 19px;
}
.config-list .label-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  gap: 3px;
}
.config-list .label-color {
  width: 45px;
  flex-shrink: 0;
  margin: 0;
  gap: 3px;
}
.label-color input[type="color"] {
  padding: 2px;
  height: 34px;
  width: 44px;
  cursor: pointer;
}
.label-editor li {
  gap: 7px;
}
@media (max-width: 500px) {
  .config-list li {
    gap: 5px;
    padding: 8px 5px;
  }
  .config-list .config-width {
    width: 72px;
  }
  .config-move .icon-button {
    width: 28px;
    min-width: 28px;
  }
  .config-grip {
    display: none;
  }
  .label-editor .label-name {
    flex-basis: 110px;
  }
  .label-editor li {
    flex-wrap: wrap;
  }
  .label-editor .config-move {
    margin-left: auto;
  }
}
.select-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  background: white;
}
.select-cell input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #c3c6d4;
  border-radius: 2px;
  background: white;
  cursor: pointer;
  display: grid;
  place-content: center;
  margin: 0;
}
.select-cell input:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.select-cell input:checked:after {
  content: "✓";
  color: white;
  font-size: 12px;
}
.name-cell {
  position: sticky;
  left: 32px;
  z-index: 2;
  justify-content: flex-start;
  padding: 0 8px;
  gap: 4px;
  background: white;
}
.grid-header .name-cell {
  justify-content: center;
  padding: 0;
}
.name-cell .name-button {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  flex: 1;
  height: 30px;
  padding: 0 5px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.name-cell .name-button:hover {
  background: transparent;
  border-color: #c3c6d4;
}
.name-cell .sub-toggle {
  width: 20px;
  height: 25px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.sub-count {
  background: #eceef2;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 3px;
  padding: 0 3px;
}
.name-cell .comment-button {
  height: 35px;
  width: 52px;
  border-left: 1px solid var(--border);
  margin-right: -8px;
  margin-left: auto;
  border-radius: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #676879;
}
.name-cell .comment-button svg {
  width: 19px;
  height: 19px;
}
.item-row:hover .cell {
  background: #f5f6fa;
}
.item-row.selected .cell {
  background: #cce5ff;
}
.item-row:hover .cell.status-cell,
.item-row.selected .cell.status-cell {
  background: var(--cell-color);
}
.cell-button {
  width: 100%;
  height: 100%;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.cell-button:hover {
  background: #e6e9ef77;
}
.status-cell {
  background: var(--cell-color) !important;
  color: var(--text-color, white);
}
.status-cell .cell-button:hover {
  background: #ffffff22;
}
.status-cell:has(.no-value) {
  background: #c4c4c4 !important;
}
.check-value {
  height: 18px;
  width: 18px;
  border: 1px solid #d0d4e4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.check-value.checked {
  background: #00c875;
  color: white;
  border: 0;
}
.cell-placeholder {
  color: #b6bac8;
}
.person-avatars {
  display: flex;
  align-items: center;
}
.person-avatars .avatar + .avatar {
  margin-left: -7px;
}
.progress-track {
  display: block;
  margin-inline: auto;
  height: 21px;
  width: calc(100% - 14px);
  border-radius: 2px;
  background: #e6e9ef;
  position: relative;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  background: #00854d;
  height: 100%;
}
.progress-track > b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 11px;
  color: #323338;
}
.progress-track.full > b {
  color: white;
}
.timeline-pill {
  border-radius: 20px;
  background: var(--group);
  color: white;
  display: block;
  padding: 2px 13px;
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-value {
  justify-content: flex-start;
}
.add-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  height: 36px;
  background: white;
}
.add-row .name-cell {
  position: static;
  padding-left: 25px;
}
.add-row input {
  border: 1px solid transparent;
  outline: 0;
  width: 100%;
  height: 28px;
  background: none;
  border-radius: 3px;
  padding: 0 8px;
  font-size: 13px;
}
.add-row input:focus {
  border-color: var(--blue);
  background: white;
}
.add-row .cell {
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: grid;
  grid-template-columns: var(--grid);
  height: 36px;
}
.summary-row .cell {
  height: 36px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row .empty-summary {
  border: 0;
  background: transparent;
}
.summary-row .summary-color {
  height: 24px;
  display: flex;
  width: calc(100% - 14px);
}
.summary-color {
  display: flex;
  width: calc(100% - 14px);
  height: 24px;
  overflow: hidden;
}
.summary-color span {
  display: block;
  min-width: 0;
}
.sub-row .name-cell {
  padding-left: 28px;
  background: #f5f6fa;
}
.sub-row .cell {
  background: #f5f6fa;
}
.sub-add {
  background: #f5f6fa;
}
.row-menu {
  position: absolute;
  left: -33px;
  top: 2px;
  opacity: 0;
  width: 25px;
  height: 30px;
  color: #676879;
  border-radius: 4px;
}
.item-row:hover .row-menu,
.row-menu:focus-visible {
  opacity: 1;
}
.add-group {
  color: #676879;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  margin-top: 2px;
}
.group.collapsed {
  margin-bottom: 10px;
}
.group.collapsed .group-heading {
  border-bottom: 1px solid var(--border);
  width: 600px;
}
.group.collapsed .count {
  opacity: 1;
}
.empty-state {
  padding: 55px 30px;
  text-align: center;
  color: #676879;
  max-width: 700px;
  margin: auto;
}
.empty-state h2 {
  font-size: 22px;
  color: #323338;
}
.empty-state .empty-icon {
  font-size: 42px;
  color: #6161ff;
  margin-bottom: 20px;
}
.empty-state .primary {
  margin-top: 12px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: #676879;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d0d4e4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: #323338;
  color: white;
  padding: 12px 22px;
  box-shadow: 0 4px 15px #32333833;
  border-radius: 6px;
  max-width: calc(100vw - 32px);
  font-size: 14px;
}
.toast.error {
  background: #b62740;
}
.modal,
.popover {
  border: 0;
  color: #323338;
  box-shadow: 0 8px 32px #32333844;
  border-radius: 8px;
  padding: 0;
  max-height: 85vh;
  max-width: calc(100vw - 32px);
}
.modal {
  width: 460px;
}
.modal.wide {
  width: 650px;
}
.modal::backdrop {
  background: #1f22404d;
}
.popover::backdrop {
  background: transparent;
}
.popover {
  width: 260px;
  position: fixed;
  margin: 0;
  overflow: auto;
  padding: 8px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 10px;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.modal-body {
  padding: 10px 24px 22px;
}
.modal-body label,
.auth-card label,
.task-form label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
}
.modal-body input:not([type="checkbox"]):not([type="color"]),
.modal-body select,
.modal-body textarea,
.auth-card input,
.task-form input,
.task-form select,
.task-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #c3c6d4;
  border-radius: 4px;
  padding: 9px 10px;
  margin-top: 7px;
  background: white;
  color: #323338;
}
.modal-body textarea {
  min-height: 90px;
  resize: vertical;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.modal:has(.config-list, .automation-recipe, .automation-list, .date-calendar) .modal-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: white;
}
.modal:has(.config-list, .automation-recipe, .date-calendar) .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  background: white;
  border-top: 1px solid var(--border);
  margin: 16px -24px -22px;
  padding: 14px 24px;
}
.modal .config-list li input:not([type="color"]) {
  margin-top: 3px;
  padding: 7px 8px;
}
.form-error {
  font-size: 13px;
  line-height: 1.5;
  color: #b62740;
  background: #ffedf0;
  border-radius: 4px;
  padding: 10px;
}
.modal-description {
  line-height: 1.6;
  color: #676879;
  font-size: 14px;
}
.small {
  font-size: 12px;
  color: #676879;
  line-height: 1.6;
}
.menu-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  text-align: left;
  min-height: 34px;
  font-size: 14px;
}
.menu-option svg {
  color: #676879;
}
.menu-divider {
  border-top: 1px solid var(--border);
  margin: 6px 0;
}
.popover h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 6px 8px 12px;
}
.popover:has(.parent-picker) {
  width: 300px;
}
.popover:has(.parent-picker) h3 {
  font-size: 14px;
  font-weight: 500;
}
.parent-search {
  display: block;
  position: relative;
}
.parent-search svg {
  position: absolute;
  left: 10px;
  top: 9px;
  color: var(--muted);
}
.parent-search input {
  width: 100%;
  margin-bottom: 8px;
  min-height: 34px;
  padding: 6px 10px 6px 32px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.parent-search input:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}
.parent-results {
  max-height: min(330px, 50vh);
  overflow: auto;
}
.parent-results h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 10px 8px 4px;
}
.parent-results .menu-option {
  overflow-wrap: anywhere;
  background: #f6f7fb;
  border: 1px solid var(--border);
  border-left: 6px solid var(--parent-group);
  border-radius: 3px;
  margin-bottom: 2px;
}
.label-option {
  width: 100%;
  display: block;
  height: 32px;
  color: white;
  border-radius: 3px;
  margin: 6px 0;
}
.label-option:hover {
  opacity: 0.85;
}
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}
.color-grid button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #c3c6d4;
}
.color-grid button.active {
  box-shadow: 0 0 0 2px var(--blue);
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}
.checkbox-option:hover {
  background: #f0f3ff;
}
.checkbox-option input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.popover .small {
  padding: 4px 8px;
}
.badge {
  background: #cce5ff;
  color: #0073ea;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 20px;
}
.selection-bar {
  position: fixed;
  bottom: 22px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 4px 25px #32333833;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 16;
}
.selection-bar b {
  color: var(--blue);
  white-space: nowrap;
}
.selection-bar button {
  border-radius: 4px;
  padding: 6px;
}
.kanban {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 38px 40px;
  min-width: max-content;
  height: 100%;
}
.kanban-lane {
  width: 270px;
  background: #f5f6f8;
  border-radius: 7px;
  min-height: 280px;
  padding-bottom: 10px;
  border-top: 5px solid var(--lane);
}
.kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
}
.kanban-title small {
  font-weight: 400;
  color: #676879;
}
.kanban-title button {
  margin-left: auto;
}
.kanban-card {
  margin: 0 10px 10px;
  padding: 14px 12px;
  background: white;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  box-shadow: 0 2px 3px #3233380d;
}
.kanban-card:hover {
  box-shadow: 0 3px 8px #32333822;
}
.kanban-card > button {
  padding: 0;
  text-align: left;
  line-height: 1.5;
  font-weight: 500;
  width: 100%;
  margin-bottom: 12px;
}
.kanban-card select {
  width: 100%;
  font-size: 12px;
  border: 1px solid #d0d4e4;
  border-radius: 4px;
  padding: 5px;
  background: white;
  margin-top: 8px;
}
.card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-tag {
  padding: 3px 8px;
  border-radius: 3px;
  color: white;
  font-size: 11px;
}
.gantt {
  padding: 12px 38px 40px;
  min-width: max-content;
}
.gantt-header,
.gantt-line {
  display: grid;
  grid-template-columns: 300px var(--days-width);
  min-height: 38px;
}
.gantt-name {
  padding: 11px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  text-align: left;
}
.gantt-days {
  display: flex;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: #676879;
}
.gantt-days span {
  width: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid #eceef4;
  padding: 5px 0;
}
.gantt-track {
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 33px,
    #eceef4 33px,
    #eceef4 34px
  );
  border-bottom: 1px solid var(--border);
}
.gantt-bar {
  position: absolute;
  top: 8px;
  height: 24px;
  min-width: 24px;
  border-radius: 16px;
  background: var(--group);
  color: white;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  padding: 3px 12px;
}
.gantt-group {
  padding: 16px 8px 8px;
  font-size: 16px;
  color: var(--group);
}
.task-form {
  max-width: 650px;
  margin: 15px auto 40px;
  padding: 25px 35px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px #3233380a;
}
.task-form h2 {
  font-size: 24px;
  margin-top: 0;
}
.task-form .primary {
  margin-top: 20px;
}
.timeline-inputs {
  display: flex;
  gap: 12px;
}
.timeline-inputs > * {
  flex: 1;
  min-width: 0;
}
.item-panel {
  position: fixed;
  right: 0;
  top: calc(var(--strip) + var(--top));
  bottom: 0;
  z-index: 35;
  width: 500px;
  max-width: 100vw;
  background: white;
  border-left: 1px solid var(--border);
  box-shadow: -5px 0 20px #3233381a;
  overflow: auto;
  padding: 22px 28px;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-panel h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 18px 0 14px;
}
.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.panel-tabs button {
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.panel-tabs button.active {
  border-bottom: 2px solid var(--blue);
}
.file-total {
  background: #eceff8;
  border-radius: 12px;
  padding: 1px 7px;
  margin-left: 4px;
  font-size: 12px;
}
.file-cell {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #9699a6;
}
.file-cell.has-files {
  color: #6161ff;
}
.file-cell svg {
  width: 23px;
  height: 23px;
}
.file-dropzone {
  border: 1px dashed #a4a8c5;
  border-radius: 8px;
  background: #fafaff;
  padding: 22px 12px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.file-dropzone.dragover {
  background: #eeefff;
  border-color: #6161ff;
}
.upload-symbol {
  color: #6161ff;
}
.upload-symbol svg {
  width: 32px;
  height: 32px;
}
.file-picker {
  color: var(--blue);
  cursor: pointer;
  position: relative;
  padding: 5px 12px;
  border-radius: 4px;
}
.file-picker:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-dropzone .small {
  font-size: 12px;
  margin: 4px 0 0;
}
.upload-button {
  margin: 12px 0 20px auto;
  display: flex;
}
#selected-files {
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.file-column-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.file-column-label select {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 4px;
}
.attachment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.attachment-icon {
  background: #f0efff;
  color: #6161ff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
}
.attachment-icon svg {
  width: 24px;
  height: 28px;
}
.attachment-info {
  flex: 1;
  min-width: 0;
}
.attachment-name {
  color: #323338;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.attachment-name:hover {
  color: var(--blue);
  text-decoration: underline;
}
.attachment-info p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
  line-height: 1.5;
}
.attachment-row .icon-button {
  flex-shrink: 0;
}
.file-delete:hover {
  color: #d83a52;
}
.empty-files {
  text-align: center;
  padding: 30px 12px;
  color: var(--muted);
}
.empty-files > svg {
  width: 38px;
  height: 38px;
  color: #a8aabd;
}
.empty-files h3 {
  font-size: 17px;
  color: #323338;
  margin: 12px 0 6px;
}
.empty-files p {
  font-size: 14px;
  line-height: 1.6;
}
.update-form textarea {
  width: 100%;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
  min-height: 100px;
}
.update-form button {
  display: block;
  margin: 10px 0 20px auto;
}
.comment {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 15px 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #eceef4;
}
.comment-header time {
  font-size: 11px;
  color: #676879;
  margin-left: auto;
}
.comment p {
  padding: 0 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.panel-fields {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
}
.panel-field {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}
.panel-field > span {
  width: 110px;
  color: #676879;
  font-size: 12px;
}
.panel-field > button {
  min-height: 32px;
  max-width: 260px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cell-color, white);
  color: var(--text-color, #323338);
}
.home-content {
  padding: 30px 40px;
  overflow: auto;
}
.home-content h1 {
  font-size: 28px;
}
.home-content p {
  color: #676879;
}
.board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.board-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
  padding: 0;
  background: white;
}
.board-card-art {
  height: 110px;
  background: #ebf0ff;
  padding: 22px 25px;
}
.board-card-art span {
  height: 12px;
  display: block;
  border-radius: 3px;
  margin-bottom: 7px;
  background: linear-gradient(
    to right,
    #00c875 0 7%,
    white 7% 65%,
    #fdab3d 65% 85%,
    white 85%
  );
}
.board-card > strong {
  display: block;
  padding: 18px 18px 8px;
  font-size: 16px;
}
.board-card > small {
  display: block;
  padding: 0 18px 18px;
  color: #676879;
}
.mobile-toggle {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.auth-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  padding: 40px;
}
.auth-card {
  width: 400px;
  max-width: 100%;
}
.auth-card > .brand {
  margin-bottom: 35px;
}
.auth-card h1 {
  font-size: 34px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  font-weight: 600;
}
.auth-card > p {
  color: #676879;
  line-height: 1.6;
}
.auth-card form {
  margin-top: 22px;
}
.auth-card label {
  margin: 16px 0;
}
.auth-card ul {
  font-size: 12px;
  color: #676879;
  line-height: 1.5;
  padding-left: 18px;
}
.auth-card .errorlist {
  color: #b62740;
}
.auth-card .helptext {
  font-size: 12px;
  color: #676879;
  display: block;
  margin-top: 6px;
}
.full {
  width: 100%;
  min-height: 40px;
}
.auth-divider {
  text-align: center;
  margin-top: 24px;
  color: #676879;
  font-size: 12px;
}
.auth-art {
  width: 430px;
  height: 450px;
  border-radius: 50%;
  background: #f0f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-board {
  width: 420px;
  background: white;
  box-shadow: 0 12px 40px #5559df22;
  border: 1px solid #d0d4e4;
  border-radius: 10px;
  padding: 30px 22px;
  transform: rotate(-4deg);
}
.art-title {
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 28px;
}
.art-group {
  height: 42px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eceef4;
}
.art-group i {
  width: 7px;
  height: 100%;
  background: #00c875;
}
.art-group span {
  width: 160px;
  height: 9px;
  background: #e6e9ef;
  border-radius: 4px;
}
.art-group b {
  width: 110px;
  color: white;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  line-height: 30px;
  background: #00c875;
}
.art-group.orange i,
.art-group.orange b {
  background: #fdab3d;
}
.art-group.purple i,
.art-group.purple b {
  background: #5559df;
}
.art-bottom {
  padding-top: 30px;
  color: #676879;
  font-size: 13px;
}
.art-bottom span {
  color: #00c875;
  margin-right: 7px;
  font-size: 20px;
}
body.compact .grid-row,
body.compact .cell,
body.compact .cell-button {
  height: 30px;
}
body.compact .name-button {
  height: 26px;
}
body.compact .grid-header {
  height: 36px;
}
body.compact .grid-header .cell {
  height: 36px;
}
body.compact .name-cell .comment-button {
  height: 29px;
}
@media (max-width: 1050px) {
  .head-actions .invite-label {
    display: none;
  }
  .head-actions .secondary {
    padding: 6px;
  }
  .view-tabs {
    gap: 0;
  }
  .view-tab {
    padding-left: 10px;
    padding-right: 10px;
  }
  .toolbar {
    gap: 4px;
  }
  .toolbar > button {
    padding-left: 7px;
    padding-right: 7px;
  }
  .toolbar .searchbox {
    min-width: 95px;
  }
  .head-actions .description-button {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --top: 52px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 0 10px;
    gap: 5px;
  }
  .topbar .brand span {
    display: none;
  }
  .topbar .brand b {
    font-size: 19px;
  }
  .sidebar {
    display: none;
    left: 0;
    top: calc(var(--top) + var(--strip));
    width: 255px;
    border-radius: 0;
    box-shadow: 5px 5px 25px #32333833;
    z-index: 40;
  }
  .sidebar.open {
    display: block;
  }
  .sidebar-foot {
    display: none;
  }
  .main {
    left: 0;
    border-radius: 0;
  }
  .board-head {
    padding: 14px 14px 0;
  }
  .board-title {
    font-size: 21px;
  }
  .title-edit {
    max-width: 70%;
  }
  .head-actions .secondary {
    display: none;
  }
  .head-actions {
    gap: 0;
  }
  .toolbar {
    padding: 12px 14px;
    min-height: 58px;
    gap: 5px;
  }
  .table-scroll {
    padding-left: 33px;
    padding-right: 20px;
  }
  .group-heading {
    width: calc(100vw - 55px);
  }
  .group-heading .group-name {
    font-size: 18px;
    max-width: 70%;
  }
  .group-heading .count {
    display: none;
  }
  .view-tab {
    font-size: 13px;
    padding: 10px 9px;
  }
  .view-tab svg {
    display: none;
  }
  .demo-strip {
    font-size: 11px;
    padding: 11px 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .demo-strip a {
    margin-left: 5px;
  }
  .demo-strip button {
    right: 0;
  }
  .selection-bar {
    left: 50%;
    padding: 10px;
    gap: 8px;
    max-width: 95vw;
  }
  .kanban {
    padding: 14px;
    gap: 12px;
  }
  .kanban-lane {
    width: 260px;
  }
  .gantt {
    padding: 12px 20px;
  }
  .gantt-header,
  .gantt-line {
    grid-template-columns: 190px var(--days-width);
  }
  .gantt-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .task-form {
    margin: 10px 14px 30px;
    padding: 22px;
  }
  .auth-page {
    padding: 35px 24px;
    display: block;
  }
  .auth-card {
    margin: auto;
  }
  .auth-art {
    display: none;
  }
  .home-content {
    padding: 22px;
  }
  .item-panel {
    padding: 18px 20px;
  }
  .group.collapsed .group-heading {
    width: calc(100vw - 55px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Medidas contrastadas con la captura de referencia a 1280 × 720. */
svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
.board-title-line {
  min-height: 35px;
  margin-bottom: 0;
}
.view-tabs,
.view-tab {
  height: 40px;
}
.view-tab {
  padding-top: 9px;
  padding-bottom: 10px;
}
.view-tab svg {
  display: none;
}
.view-tab:first-child {
  padding-left: 7px;
}
.toolbar .new-item {
  width: 102px;
  font-size: 13px;
}
.toolbar .new-menu {
  width: 28px;
  padding: 4px;
}
.searchbox {
  flex: 0 0 90px;
  min-width: 90px;
  margin-left: 12px;
}
.group-heading .group-options {
  opacity: 0;
}
.group-heading:hover .group-options,
.group-heading .group-options:focus-visible {
  opacity: 1;
}
@media (max-width: 700px) {
  .toolbar .searchbox {
    margin-left: 4px;
    flex-basis: 90px;
  }
  .view-tab {
    height: 40px;
  }
}
/* Mantener el ancho al perder foco evita que los botones se muevan entre mousedown y mouseup. */
.toolbar .searchbox,
.toolbar .searchbox:focus-within {
  flex: 0 0 110px;
  min-width: 110px;
  max-width: 110px;
}

@media (max-width: 700px) {
  .table-scroll {
    --name-width: 300px;
  }
  .name-cell {
    position: static;
    left: auto;
  }
}

/* Notification center, based on the current reference account. */
.notification-bell {
  position: relative;
}
.notification-bell > span:first-child {
  display: flex;
}
.notification-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 12px;
  background: #d83a52;
  color: white;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.notification-panel {
  position: fixed;
  top: calc(var(--top) + var(--strip));
  bottom: 0;
  right: 0;
  z-index: 45;
  width: min(600px, 100vw);
  background: #fff;
  box-shadow: -4px 0 18px #32333820;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.notification-panel[hidden] {
  display: none;
}
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px;
  gap: 8px;
  flex: none;
}
.notification-header h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.notification-header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 3px;
}
.notification-header .icon-button {
  width: 32px;
  height: 32px;
}
.notification-tabs {
  display: flex;
  padding: 0 12px;
  flex: none;
}
.notification-tabs button {
  position: relative;
  border: 0;
  border-bottom: 1px solid #d0d4e4;
  background: white;
  padding: 12px 17px;
  color: #323338;
  font-size: 14px;
}
.notification-tabs button[aria-selected="true"] {
  border-bottom: 2px solid #0073ea;
  color: #0073ea;
}
.notification-tabs::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d0d4e4;
}
.notification-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  flex: none;
}
.notification-search {
  border: 1px solid #c3c6d4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  padding: 0 8px;
  height: 32px;
  color: #676879;
}
.notification-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.notification-search input {
  border: 0;
  padding: 6px;
  height: 30px;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  background: transparent;
}
.notification-search:focus-within {
  outline: 2px solid #0073ea;
  outline-offset: 1px;
}
.notification-search input:focus {
  outline: none;
}
.notification-unread {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.notification-unread input {
  appearance: none;
  width: 28px;
  min-width: 28px;
  height: 16px;
  border-radius: 12px;
  padding: 0;
  background: #c3c6d4;
  border: 0;
  position: relative;
  cursor: pointer;
}
.notification-unread input::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.1s;
}
.notification-unread input:checked {
  background: #0073ea;
}
.notification-unread input:checked::after {
  transform: translateX(12px);
}
.notification-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 4px 8px 16px;
}
.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 8px;
  padding: 16px 12px;
  margin-bottom: 3px;
}
.notification-row.unread {
  background: #d3e6ff;
}
.notification-row.read {
  background: white;
  border-bottom: 1px solid #f0f1f5;
}
.notification-row:hover {
  box-shadow: inset 0 0 0 1px #c3c6d4;
}
.notification-row > .avatar {
  width: 40px;
  min-width: 40px;
  height: 40px;
  font-size: 16px;
  margin-top: 2px;
}
.notification-row-body {
  min-width: 0;
  flex: 1;
}
.notification-open {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #323338;
  line-height: 1.45;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notification-open:disabled {
  opacity: 0.75;
  cursor: default;
}
.notification-open strong {
  font-weight: 600;
}
.notification-task {
  font-weight: 500;
}
.notification-excerpt {
  color: #50515d;
  font-size: 13px;
  white-space: pre-wrap;
}
.notification-context,
.notification-open time {
  font-size: 12px;
  color: #676879;
}
.notification-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.notification-row-actions .icon-button {
  width: 28px;
  height: 28px;
}
.notification-panel mark {
  background: #fff0a6;
  color: inherit;
}
.notification-message {
  margin: 4px 12px;
  padding: 10px 12px;
  background: #ffedf0;
  border: 1px solid #e2445c;
  border-radius: 4px;
  color: #8e1530;
  flex: none;
  font-size: 13px;
}
.notification-new {
  margin: 4px 12px;
  padding: 8px;
  background: #e5f4ff;
  color: #0060b9;
  border: 1px solid #a7cafa;
  border-radius: 4px;
}
.notification-loading {
  text-align: center;
  color: #676879;
  padding: 20px 0;
}
.notification-empty {
  min-height: 380px;
  padding: 70px 20px 30px;
  text-align: center;
}
.notification-empty-art {
  width: 190px;
  height: 130px;
  margin: 0 auto 30px;
  position: relative;
}
.notification-empty-art span {
  display: block;
  position: absolute;
  left: 38px;
  top: 4px;
  width: 130px;
  height: 64px;
  border-radius: 40px;
  color: #6161ff;
  background: #ecedf8;
  font-size: 36px;
  line-height: 64px;
}
.notification-empty-art svg {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 110px;
  height: 54px;
  padding: 10px 30px;
  background: #cedfff;
  border-radius: 40px;
  color: #6161ff;
}
.notification-empty h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.notification-empty p {
  font-size: 13px;
  line-height: 1.5;
}
.notification-more,
.notification-retry {
  display: block;
  margin: 12px auto 0;
}
.notification-retry {
  font-size: 12px;
  color: #676879;
}
.notification-options {
  position: absolute;
  z-index: 3;
  right: 54px;
  top: 52px;
  width: 248px;
  padding: 8px;
  box-shadow: 0 5px 22px #32333833;
  background: white;
  border-radius: 8px;
}
.notification-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 10px 8px;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.notification-options button:hover:not(:disabled) {
  background: #dcdfec;
}
.notification-options svg {
  height: 17px;
  width: 17px;
}
.notification-options button:disabled {
  color: #aaa;
}
.notification-confirm {
  background: #fff5df;
  margin: 4px 12px;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
}
.notification-confirm button {
  margin-right: 8px;
}
.notification-settings {
  padding: 8px 20px 30px;
  overflow-y: auto;
}
.notification-settings h3 {
  margin-top: 28px;
  font-size: 16px;
}
.notification-settings .checkbox-option {
  padding: 10px 0;
}
.notification-muted-board span {
  display: flex;
  flex-direction: column;
}
.notification-muted-board small {
  font-size: 12px;
  color: #676879;
}
.notification-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.comment-mentions {
  margin: 4px 0 8px;
}
.mention-trigger {
  color: #0073ea;
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 5px 2px;
}
.mention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e5f4ff;
  color: #0060b9;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 12px;
}
.mention-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 3px;
}
.mention-picker {
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #c3c6d4;
  border-radius: 6px;
  box-shadow: 0 3px 12px #32333820;
}
.mention-picker label {
  font-size: 12px;
}
.mention-picker input {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.mention-results {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 6px;
}
.mention-results button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: white;
  border-radius: 4px;
  padding: 6px;
  text-align: left;
}
.mention-results button:hover {
  background: #e5f4ff;
}
.mention-cancel {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #676879;
  font-size: 12px;
}
@media (max-width: 600px) {
  .notification-header h2 {
    font-size: 21px;
  }
  .notification-header {
    padding: 8px 10px;
  }
  .notification-filters {
    gap: 8px;
    flex-wrap: wrap;
  }
  .notification-search {
    flex-basis: 100%;
  }
  .notification-tabs button {
    flex: 1 0 auto;
    padding: 10px 6px;
    min-height: 44px;
    font-size: 12px;
    white-space: nowrap;
  }
  .notification-empty {
    padding-top: 40px;
  }
}

/* Status descriptions and inactive labels keep their assigned values visible. */
.status-label-info {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  cursor: help;
}
.label-editor li {
  flex-wrap: wrap;
}
.label-editor li.is-inactive {
  background: #f0f1f4;
  border-color: #d0d3db;
}
.label-editor li.is-inactive .label-name input {
  color: #626675;
  background: #f0f1f4;
}
.label-row-actions,
.label-editor .label-description {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
}
.label-row-actions {
  padding: 4px;
  border-top: 1px solid var(--border);
}
.label-editor .label-description textarea {
  width: 100%;
  resize: vertical;
  min-height: 62px;
}
.inactive-label-note {
  color: #626675;
  font-size: 12px;
}

.subitems-table {
  margin: 8px 12px 12px 32px;
  width: max-content;
  border-left: 3px solid #c4c4c4;
}
.subitems-table .grid-header .cell {
  background: #f0f1f4;
}
.visibility-section {
  border: 0;
  border-top: 1px solid var(--border);
  padding: 10px 0 4px;
  margin: 4px 0;
}
.visibility-section legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}

.attachment-download-all {
  margin: 12px 0;
}
.attachment-download-all a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  padding: 8px 12px;
}
.attachment-download-all p {
  margin-top: 6px;
}

.attachment-thumbnail {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f0f0ff;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.attachment-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attachment-thumbnail svg {
  color: #6161ff;
}
button.attachment-name {
  padding: 0;
  border: 0;
  text-align: left;
  font-weight: 400;
}
.file-viewer {
  width: min(1680px, calc(100vw - 48px));
  height: calc(100dvh - 48px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  overflow: hidden;
}
.file-viewer::backdrop {
  background: #000c;
}
.file-viewer[open] {
  display: flex;
  flex-direction: column;
}
.file-viewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: white;
  min-height: 76px;
}
.file-viewer-header > div {
  min-width: 0;
  flex: 1;
}
.file-viewer-header h2 {
  font-size: 15px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.file-viewer-header p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.file-viewer-main {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.file-viewer-stage {
  position: relative;
  min-width: 0;
  flex: 1;
  display: grid;
  place-items: center;
  background: #f0f2f5;
  overflow: hidden;
  padding: 30px 48px 82px;
}
.file-viewer-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  min-height: 0;
  box-shadow: 0 2px 15px #20212412;
}
.file-viewer-loading,
.file-viewer-error {
  position: absolute;
  max-width: calc(100% - 100px);
  text-align: center;
}
.viewer-previous,
.viewer-next {
  position: absolute;
  top: 45%;
  font-size: 42px;
  padding: 5px 9px;
  color: #676879;
}
.viewer-previous {
  left: 5px;
}
.viewer-next {
  right: 5px;
}
.file-viewer-download {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 3px 15px #2222;
  border-radius: 8px;
  padding: 5px;
  white-space: nowrap;
}
.file-viewer-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
}
.file-viewer-tools {
  width: 82px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: white;
  padding-top: 16px;
}
.file-viewer-tools button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 2px;
  font-size: 11px;
}
.file-viewer-tools button[aria-pressed="true"] {
  background: #e9efff;
  color: #0073ea;
}
.file-viewer-tools svg {
  width: 24px;
  height: 24px;
}
.file-viewer-details {
  width: 250px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow: auto;
  background: white;
  padding: 16px;
}
.file-viewer-details h3 {
  margin-top: 0;
  font-size: 14px;
}
.file-viewer-details dt {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}
.file-viewer-details dd {
  margin: 4px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.file-viewer-gallery {
  display: grid;
  gap: 8px;
}
.file-viewer-gallery button {
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: left;
  padding: 6px;
  overflow-wrap: anywhere;
}
.file-viewer-gallery button[aria-pressed="true"] {
  border-color: #0073ea;
  background: #e9efff;
}
.file-viewer-gallery img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .file-viewer {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    border-radius: 8px;
  }
  .file-viewer-header {
    padding: 10px;
    gap: 6px;
  }
  .file-viewer-header .attachment-icon {
    display: none;
  }
  .file-viewer-tools {
    width: 60px;
  }
  .file-viewer-stage {
    padding: 12px 26px 82px;
  }
  .viewer-previous,
  .viewer-next {
    padding: 4px;
    font-size: 30px;
  }
  .file-viewer-details {
    position: absolute;
    right: 60px;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: min(240px, calc(100% - 60px));
    box-shadow: -4px 0 10px #0001;
  }
  .file-viewer-loading,
  .file-viewer-error {
    max-width: calc(100% - 52px);
    font-size: 13px;
  }
  .file-viewer-download a {
    padding: 7px;
    font-size: 12px;
  }
}

/* Progress tracking uses the status columns of the same table section. */
.modal-body .progress-settings .progress-source {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.progress-source span {
  overflow-wrap: anywhere;
}
.progress-source input[type="checkbox"],
.label-done input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.modal-body .progress-settings .progress-weight {
  width: 90px;
  margin: 0;
  flex-shrink: 0;
}
.progress-weight .small {
  display: block;
}
.progress-settings input:disabled {
  color: var(--muted);
  background: #f0f1f4;
}

/* Deadline indicators share a rendering in the table and the detail panel. */
[data-deadline-cell] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
.deadline-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}
.deadline-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deadline-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 19px;
  line-height: 1;
  color: #777985;
}
.deadline-today .deadline-indicator { color: #606581; }
.deadline-overdue .deadline-indicator {
  color: #c72645;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.deadline-done .deadline-indicator { color: #20864a; font-size: 17px; }
.deadline-done .deadline-date { text-decoration: line-through; }
.deadline-editor label { margin-block: 16px; }
.deadline-editor .checkbox-option { display: flex; align-items: center; gap: 9px; }
.deadline-editor input[type="checkbox"] { width: 18px; min-height: 18px; margin: 0; }
.deadline-conflict {
  padding: 12px;
  margin-block: 16px;
  border: 1px solid #b57a16;
  border-radius: 6px;
  background: #fff8e8;
}
.deadline-conflict button { white-space: normal; min-height: 44px; }
.modal:has(.deadline-editor) .modal-actions {
  position: sticky;
  bottom: 0;
  background: white;
  padding-block: 14px;
  z-index: 1;
}
@media (max-width: 600px) {
  .deadline-editor select { min-height: 44px; }
}
.modal-body .label-editor .label-done {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.modal .label-editor .label-done input[type="checkbox"] {
  margin: 0;
  padding: 0;
}

.date-fields {
  display: grid;
  gap: 10px;
}
.date-fields .date-zone {
  margin: 0;
}
.modal-body .date-fields > label {
  margin: 0;
}
.date-fields .date-time-toggle {
  justify-self: start;
}
.date-fields .date-time-field[hidden] {
  display: none;
}
.date-calendar {
  margin-top: 16px;
}
.date-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.date-calendar-nav strong {
  text-transform: capitalize;
}
.date-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.date-calendar-days > span {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 5px 0;
}
.date-calendar-days > button {
  border: 1px solid transparent;
  border-radius: 50%;
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.date-calendar-days > button:hover {
  background: #e5f4ff;
}
.date-calendar-days > button.other-month {
  color: #676879;
}
.date-calendar-days > button.today {
  border-color: var(--blue);
}
.date-calendar-days > button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
}
.date-calendar-days > button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.date-calendar-days > button:disabled {
  opacity: 0.3;
  cursor: default;
}
.date-calendar-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

/* Date column presentation and personal preferences. */
.date-display-value { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.date-decoration { display: inline-flex; flex: 0 0 16px; color: var(--muted); }
.date-decoration svg { width: 16px; height: 16px; }
.date-preview { margin-bottom: 0; overflow-wrap: anywhere; }
.date-preview output, .date-settings-preview output { font-weight: 600; }
.date-settings-editor .checkbox-option { display: flex; align-items: center; gap: 9px; margin-block: 16px; }
.date-settings-editor input[type="checkbox"] { width: 18px; min-height: 18px; margin: 0; }
.date-settings-editor select, .date-preferences-editor select { min-height: 44px; }
.date-settings-preview { padding: 12px; border-radius: 5px; background: #f3f6ff; overflow-wrap: anywhere; }
.date-setting-conflict { padding: 12px; margin-block: 16px; border: 1px solid #b57a16; border-radius: 6px; background: #fff8e8; }
.date-setting-conflict button { min-height: 44px; white-space: normal; }
.modal:has(.date-settings-editor, .date-preferences-editor) .modal-actions { position: sticky; bottom: 0; background: white; padding-block: 14px; z-index: 1; }
.date-calendar-days.with-week-numbers { grid-template-columns: 28px repeat(7, minmax(0, 1fr)); }
.date-calendar-days > .date-week-number { font-size: 11px; border-right: 1px solid #e6e9ef; }
.date-calendar-days > .date-week-heading { font-size: 10px; }

/* Shared board views keep long names and their menu usable in the scrolling tab bar. */
.shared-view-tab { display: inline-flex; align-items: center; flex-shrink: 0; height: 40px; border-bottom: 2px solid transparent; }
.shared-view-tab.active { border-bottom-color: var(--blue); }
.shared-view-tab.active .view-tab { color: var(--blue); font-weight: 600; }
.shared-view-tab .view-tab { height: 38px; border-bottom: 0; max-width: 240px; }
.shared-view-name { overflow: hidden; text-overflow: ellipsis; }
.shared-view-menu { flex-shrink: 0; width: 30px; min-width: 30px; height: 32px; }
.add-board-view { flex-shrink: 0; }
.board-view-review { border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-top: 12px; }
.board-view-review[hidden] { display: none; }
@media (min-width: 1100px) {
  body:has(#item-panel:not([hidden])) .view-tabs {
    max-width: calc(100vw - 267px - 500px - 70px);
  }
}

/* Configurable Kanban keeps its presentation separate from table filters. */
.kanban-controls { padding: 14px 38px 0; display: flex; gap: 12px; }
.kanban-controls button { display: inline-flex; align-items: center; gap: 7px; }
.kanban-settings-editor fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin: 16px 0; }
.kanban-settings-editor legend { padding: 0 5px; font-weight: 600; }
.kanban-settings-editor select { min-height: 44px; }
.kanban-setting-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.kanban-setting-choices label, .kanban-settings-editor .kanban-empty-choice { display: flex; align-items: center; gap: 9px; margin: 0; min-height: 35px; }
.kanban-setting-choices input[type=checkbox], .kanban-empty-choice input[type=checkbox] { width: 18px; min-height: 18px; margin: 0; flex-shrink: 0; }
.modal:has(.kanban-settings-editor) .modal-actions { position: sticky; bottom: 0; background: white; padding-block: 14px; z-index: 1; }
.kanban-settings-editor [hidden] { display: none; }
.kanban-swimlanes { width: max-content; min-width: 100%; padding-bottom: 24px; }
.kanban-swimlane > h2 { font-size: 16px; margin: 22px 38px 0; border-left: 4px solid var(--row-color); padding-left: 10px; }
.kanban-swimlane > h2 small { font-size: 12px; color: var(--muted); font-weight: normal; }
.kanban-swimlane .kanban { height: auto; padding-bottom: 10px; }
.configured-kanban-card > .kanban-cover { height: 150px; padding: 0; overflow: hidden; background: #f5f6f8; border-radius: 4px; display: block; }
.kanban-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kanban-cover.fit img { object-fit: contain; }
.configured-kanban-card > .kanban-cover[hidden] { display: none; }
.kanban-card-field { margin-block: 10px; min-width: 0; }
.kanban-field-label, .kanban-source-selector > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.kanban-card-field .cell { border: 0; min-height: 32px; height: auto; }
.kanban-card-field .cell-button { width: 100%; min-height: 32px; overflow-wrap: anywhere; }
.kanban-card-field .notes-value { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kanban-card-field .status-cell { border-radius: 3px; }
.kanban-source-selector { margin: 10px 0 0; }
.kanban-source-selector select { margin-top: 0; min-height: 35px; }
.configured-kanban-card > .kanban-cover-files { display: flex; align-items: center; gap: 5px; font-size: 12px; margin: 10px 0 0; color: var(--muted); }
.kanban-cover-files svg { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .kanban-controls { padding-inline: 14px; }
  .kanban-swimlane > h2 { margin-inline: 14px; }
  .kanban-setting-choices { grid-template-columns: 1fr; }
}

/* C22: Gantt sources and calendar scale; controls stay reachable while the grid scrolls. */
.gantt-settings-toolbar { padding: 12px 38px 0; }
.gantt-configured-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 38px; }
.gantt-configured-controls label { display: flex; align-items: center; gap: 8px; margin: 0; }
.gantt-configured-controls select { width: auto; min-width: 115px; }
.gantt-configured-controls p { flex-basis: 100%; margin: 0; }
.gantt-source-choices { margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; }
.gantt-source-choices label { display: flex; align-items: center; gap: 8px; padding: 8px 0; margin: 0; }
.gantt-source-choices input { width: auto; }
.gantt-source-choices small { color: var(--muted); }
.gantt-periods { position: relative; min-height: 44px; border-bottom: 1px solid var(--border); overflow: hidden; }
.gantt-periods > span { position: absolute; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); color: #676879; font-size: 11px; white-space: nowrap; overflow: hidden; }
.configured-gantt .gantt-line { min-height: 56px; }
.configured-gantt .gantt-name { min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.configured-gantt .gantt-name > span, .configured-gantt .gantt-name > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.configured-gantt .gantt-name > small { color: #676879; font-size: 11px; }
.configured-gantt-track { background: none; overflow: hidden; }
.configured-gantt .gantt-bar { top: 14px; min-width: 3px; padding: 3px 0; border-radius: 4px; }
.gantt-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: #eceef4; pointer-events: none; }
@media (max-width: 700px) {
  .gantt-settings-toolbar { padding: 12px 20px 0; }
  .gantt-configured-controls { padding: 12px 20px; }
  .configured-gantt .gantt-name { padding: 10px 7px; }
}

.gantt-periods > span { flex-direction: column; gap: 2px; }
.gantt-periods > span > b { font-size: 12px; font-weight: 600; }
.gantt-periods > span > small { font-size: 10px; }

/* Internal form builder; response fields retain the existing date and type editors. */
.form-config-toolbar { display:flex; gap:8px; padding:12px 38px 0; flex-wrap:wrap; }
.form-editor-texts { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-editor-texts label:nth-child(2), .form-editor-texts label:nth-child(4) { grid-column:1 / -1; }
.form-question-builder { border:1px solid var(--border); border-radius:6px; margin:16px 0; padding:14px; }
.form-question-list { display:flex; flex-direction:column; gap:12px; }
.form-question-editor { border:1px solid var(--border); border-radius:6px; background:white; padding:12px; }
.form-question-editor.dragging { opacity:.55; }
.form-question-editor.question-excluded { background:#f6f7fb; }
.form-question-editor-head { display:flex; gap:8px; align-items:center; }
.form-question-editor-head .form-question-inclusion { display:flex; gap:8px; align-items:center; flex:1; margin:0; }
.form-question-inclusion input, .form-question-required input { width:auto; margin:0; }
.question-drag-handle { cursor:grab; font-size:22px; padding:0 5px; min-width:30px; }
.form-question-editor-fields { display:grid; grid-template-columns:1fr; gap:8px; margin-top:10px; }
.form-question-editor-fields label { margin:0; }
.form-question-editor-fields .form-question-required { display:flex; gap:8px; align-items:center; }
.form-question-editor-fields textarea { margin-bottom:0; }
.form-editor-preview { border-top:1px solid var(--border); margin-top:16px; padding-top:12px; }
.form-preview fieldset { border:0; margin:0; padding:0; min-width:0; }
.form-preview { max-width:650px; margin:auto; }
.form-preview > h2, .configured-task-form > h2 { overflow-wrap:anywhere; }
.form-question-description { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--muted); }
.configured-form-question { margin:20px 0; }
.configured-form-question > label { margin-bottom:4px; }
.configured-form-question .timeline-inputs { margin-bottom:4px; }
.form-required-note { display:block; margin-top:4px; color:var(--muted); }
.form-policy-notice { background:#f5f5ff; border:1px solid var(--border); border-radius:4px; padding:10px; }
.form-submit-actions { display:flex; gap:8px; flex-wrap:wrap; }
.form-confirmation { text-align:center; }
.form-confirmation [role=status] { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:700px) {
  .form-config-toolbar { padding:12px 20px 0; }
  .form-editor-texts { grid-template-columns:1fr; }
  .form-question-builder { padding:8px; }
  .form-question-editor { padding:8px; }
  .form-question-editor-head { gap:3px; }
  .form-question-inclusion { min-width:0; overflow-wrap:anywhere; }
}

/* Avatares con foto y página Mi cuenta */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.avatar.xl { width: 96px; height: 96px; font-size: 34px; }
.profile-avatar { overflow: hidden; padding: 0; }
.profile-menu-head { display: flex; gap: 10px; align-items: center; padding: 4px 4px 8px; }
.profile-menu-head div { display: flex; flex-direction: column; min-width: 0; }
.profile-menu-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-page { max-width: 1040px; margin: 0 auto; padding: 28px 24px 56px; }
.account-hero { display: flex; gap: 24px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.account-hero h1 { margin: 0 0 4px; font-size: 26px; }
.account-hero p { margin: 0 0 10px; color: var(--muted); }
.account-photo-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; align-items: start; }
.account-side { display: grid; gap: 16px; }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: grid; gap: 12px; }
.account-card h2 { margin: 0; font-size: 16px; }
.account-card label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-actions { display: flex; justify-content: flex-end; }
@media (max-width: 800px) {
  .account-grid, .account-row { grid-template-columns: 1fr; }
  .account-hero { flex-direction: column; text-align: center; }
}

/* Columnas al estilo monday */
.status-cell { position: relative; font-weight: 400; }
.status-cell .cell-button { font-size: 13px; }
/* Esquina doblada al pasar el cursor, como las etiquetas de Estado de monday. */
.status-cell:not(:has(.no-value)):hover::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 10px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.55) rgba(0, 0, 0, 0.18) transparent;
}
.status-cell:has(.no-value) { background: #c4c4c4 !important; }
.number-cell .cell-button { justify-content: flex-end; font-variant-numeric: tabular-nums; padding-right: 14px; }
.number-cell .cell-button.no-value { justify-content: center; }
.summary-number { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }

.tag-list { display: inline-flex; gap: 4px; align-items: center; max-width: 100%; overflow: hidden; }
.tag-pill {
  display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 12px; font-size: 12px; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-more { font-size: 11px; color: var(--muted); background: #e6e9ef; border-radius: 10px; padding: 1px 6px; }
.tag-menu { display: grid; gap: 2px; min-width: 220px; max-height: 280px; overflow: auto; }
.tag-option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; text-align: left; }
.tag-option:hover { background: var(--lavender); }
.tag-check { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 3px; font-size: 12px; line-height: 14px; text-align: center; color: #fff; }
.tag-option.on .tag-check { background: var(--blue); border-color: var(--blue); }

.stars { display: inline-flex; gap: 1px; }
.star { font-size: 17px; line-height: 1; color: #c4c4c4; padding: 0 1px; }
.star.on { color: #ffcb00; }
.rating-input { display: flex; gap: 0; }
.rating-input .star:not(:disabled):hover, .rating-pop .star:hover { transform: scale(1.2); }
.rating-pop { display: flex; justify-content: center; gap: 4px; padding: 6px 4px; }
.rating-pop .star { font-size: 24px; }

.link-cell { display: flex; align-items: center; width: 100%; padding: 0 4px 0 8px; gap: 2px; min-width: 0; }
.link-cell a { color: var(--blue); text-decoration: underline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: center; font-size: 13px; }
.link-cell .cell-edit { width: 24px; height: 24px; opacity: 0; flex-shrink: 0; }
.item-row:hover .link-cell .cell-edit, .link-cell .cell-edit:focus-visible { opacity: 1; }
.inline-input {
  width: 100%; height: 100%; min-height: 34px; border: 2px solid var(--blue); border-radius: 0; padding: 0 8px;
  font: inherit; font-size: 13px; background: #fff; box-sizing: border-box; text-align: left;
}
.link-inputs { border: 1px solid var(--border); border-radius: 6px; display: grid; gap: 8px; padding: 8px 12px 12px; }

/* Paleta de colores de las etiquetas */
.swatch-picker { position: relative; }
.swatch-current { width: 44px; height: 34px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.15); cursor: pointer; }
.swatch-pop {
  position: absolute; z-index: 30; top: 38px; left: 0; width: 232px; padding: 10px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.swatch { width: 28px; height: 28px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: #323338; box-shadow: inset 0 0 0 2px #fff; }
.swatch-custom { background: conic-gradient(#e2445c, #fdab3d, #ffcb00, #00c875, #579bfc, #a25ddc, #e2445c); position: relative; display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.label-preview { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #f5f6f8; border-radius: 6px; margin-bottom: 8px; min-height: 22px; }
.config-list .label-color { width: 52px; }

/* Selector de tipo de columna */
.type-group h3 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.type-card { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 8px; text-align: left; background: #fff; }
.type-card:hover { border-color: var(--blue); background: var(--lavender); }
.type-card.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--lavender); }
.type-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.type-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: #e6e9ef; color: #323338; }
.type-icon svg { width: 20px; height: 20px; }
.type-card.on .type-icon { background: var(--blue); color: #fff; }
.type-search { margin-bottom: 4px; }

/* Mi trabajo */
.my-work { max-width: 1100px; margin: 0 auto; padding: 28px 24px 56px; }
.mw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mw-head h1 { margin: 0; font-size: 28px; }
.mw-head p { margin: 4px 0 0; color: var(--muted); }
.mw-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.mw-chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.mw-chip b { font-size: 20px; color: #323338; }
.mw-chip.overdue b { color: #e2445c; }
.mw-chip.today b { color: #00a35c; }
.mw-group { margin-top: 18px; }
.mw-group-head { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; padding: 4px 0; }
.mw-group-head small { color: var(--muted); font-size: 13px; font-weight: 400; }
.mw-chevron { display: inline-flex; width: 18px; transition: transform 0.15s; }
.mw-chevron.open { transform: rotate(90deg); }
.mw-table { border-left: 6px solid var(--mw); border-radius: 6px 0 0 6px; background: #fff; box-shadow: 0 0 0 1px var(--border); margin-top: 6px; }
.mw-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 150px 110px; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--border); min-height: 44px; }
button.mw-row:hover { background: #f5f6fa; }
.mw-row:last-child { border-bottom: 0; }
.mw-header { min-height: 32px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding-block: 4px; }
.mw-row small { display: block; color: var(--muted); font-size: 12px; }
.mw-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mw-name strong { font-weight: 500; overflow-wrap: anywhere; }
.mw-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mw-pill { display: block; text-align: center; padding: 5px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-pill.empty { background: #c4c4c4; color: #fff; }
.mw-date { font-size: 13px; }
.mw-date.late { color: #e2445c; font-weight: 600; }
@media (max-width: 800px) {
  .mw-row { grid-template-columns: 1fr auto; }
  .mw-row .mw-board, .mw-header { display: none; }
  .mw-status { display: none; }
}
.mw-head .searchbox { width: 280px; max-width: 100%; }
.mw-head .searchbox input { width: 100%; }

/* ===== Pulido visual (C28) ===== */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(50, 51, 56, 0.08), 0 2px 8px rgba(50, 51, 56, 0.06);
  --shadow-2: 0 8px 28px rgba(50, 51, 56, 0.18);
  --ring: 0 0 0 3px rgba(0, 115, 234, 0.22);
}
button, input, select, textarea { font-family: inherit; }
body { -webkit-font-smoothing: antialiased; }

/* Marca */
.brand { gap: 8px; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand:first-letter, .brand::first-letter { color: inherit; font-size: inherit; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.brand > span { font-weight: 400; font-size: 14px; color: var(--muted); }

/* Barra superior y lateral */
.topbar .icon-button { border-radius: 8px; }
.topbar .icon-button:hover { background: rgba(97, 97, 255, 0.1); color: #323338; }
.profile-avatar { box-shadow: 0 0 0 2px #fff; }
.sidebar { background: #fff; box-shadow: var(--shadow-1); border-radius: 12px 0 0 0; }
.nav-item, .board-link { border-radius: 8px; transition: background 0.12s, color 0.12s; }
.nav-item { font-weight: 500; }
.nav-item:hover, .board-link:hover { background: #f0f3ff; color: #323338; }
.nav-item.active, .board-link.active { background: #dfeaff; color: #0b4fc4; font-weight: 600; }
.nav-item.active svg, .board-link.active svg { color: #0073ea; }
.workspace-title { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--muted); font-weight: 600; }
.workspace-switch select { border-radius: 8px; background: #f5f6f8; border-color: transparent; font-weight: 600; }
.workspace-switch select:hover { border-color: #c3c6d4; }
.workspace-switch .square { border-radius: 8px; }
.sidebar-foot { font-size: 12px; }

/* Botones y campos */
.primary { border-radius: 8px; font-weight: 600; transition: background 0.12s, box-shadow 0.12s; }
.primary:hover { box-shadow: 0 2px 8px rgba(0, 115, 234, 0.35); }
.secondary { border-radius: 8px; font-weight: 500; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--ring); }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.toolbar button { border-radius: 8px; }
.toolbar button:hover:not(.primary) { background: #f0f3ff; }
.board-title { font-weight: 700; letter-spacing: -0.3px; }

/* Tabla: encabezados y filas más limpios */
.grid-header .cell { font-weight: 500; color: #323338; }
.item-row:hover .cell:not(.status-cell) { background: #f6f8ff; }
.group-table { border-radius: 4px; }

/* Diálogos, menús y avisos */
.modal { border-radius: 12px; box-shadow: var(--shadow-2); border: 0; }
.modal::backdrop { background: rgba(30, 32, 48, 0.45); backdrop-filter: blur(1.5px); }
#popover { border-radius: 10px; box-shadow: var(--shadow-2); border: 1px solid var(--border); }
.menu-option { border-radius: 6px; }
.menu-option:hover { background: #f0f3ff; }
.toast { border-radius: 10px; box-shadow: var(--shadow-2); }

/* Estados vacíos */
.empty-state { padding: 56px 24px; max-width: 520px; margin: 0 auto; text-align: center; }
.empty-state h2 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); }

/* Inicio */
.home-content { max-width: 1100px; margin: 0 auto; padding: 36px 40px 56px; }
.home-content h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.6px; margin: 4px 0 6px; }
.home-content h2 { font-size: 18px; margin: 34px 0 0; }
.home-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin: 0; }
.home-sub { margin: 0 0 20px; }
.home-summary { display: flex; flex-wrap: wrap; gap: 12px; min-height: 0; }
.home-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; min-width: 170px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-1); transition: transform 0.12s, box-shadow 0.12s; }
.home-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.home-tile b { font-size: 30px; line-height: 1.1; letter-spacing: -0.5px; }
.home-tile span { color: var(--muted); font-size: 13px; }
.home-tile.late b { color: #e2445c; }
.home-tile.today b { color: #00a35c; }
.board-cards { margin-top: 14px; }
.board-card { border-radius: 12px; box-shadow: var(--shadow-1); transition: transform 0.12s, box-shadow 0.12s; }
.board-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.board-card-art { background: linear-gradient(135deg, color-mix(in srgb, var(--a, #00c875) 14%, #fff), color-mix(in srgb, var(--c, #fdab3d) 14%, #fff)); }
.board-card-art span { background: linear-gradient(to right, var(--a, #00c875) 0 7%, #fff 7% 65%, var(--c, #fdab3d) 65% 85%, #fff 85%); }
.board-card-art.new { display: grid; place-items: center; background: #f0f3ff; }
.board-card-art.new b { font-size: 40px; font-weight: 300; color: #6161ff; }
.board-card-new { border-style: dashed; box-shadow: none; }
.home-content, .account-page, .my-work { width: 100%; }
/* Figtree es algo más ancha que Segoe UI: encabezados un punto menores para que no se corten. */
.grid-header .cell { font-size: 12.5px; }
.grid-header .column-heading button { font-size: 12.5px; letter-spacing: -0.1px; }
.grid-header .column-heading button { padding-inline: 2px; }

/* Espacios y tableros privados */
.board-lock { margin-left: auto; display: inline-flex; color: var(--muted); }
.board-lock svg { width: 13px; height: 13px; }
.private-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; background: #eceff8; color: #323338; font-size: 12px; font-weight: 600; }
.private-badge svg, .visibility-note svg, .choice svg, .board-card small svg { width: 13px; height: 13px; vertical-align: -2px; }
.visibility-note { margin: 0 0 8px; color: var(--muted); }
.visibility-choice { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px 10px; display: grid; gap: 6px; }
.visibility-choice legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; }
.choice:hover { background: #f0f3ff; }
.choice small { display: block; color: var(--muted); font-weight: 400; }
.workspace-tools { display: inline-flex; }
.modal-body .visibility-choice .choice { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.modal-body .visibility-choice .choice input { width: auto; margin-top: 3px; flex-shrink: 0; }
.modal-body .visibility-choice .choice span { display: block; }
