@font-face {
  font-family: Workspace;
  src: local("Inter"), local("Segoe UI");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #303247;
  --muted: #9293a4;
  --line: #eeedf3;
  --purple: #7968d9;
  --purple-dark: #6857c7;
  --soft: #f1edf9;
  --sidebar: #f8f7fb;
  --danger: #d75468;
  --shadow: 0 12px 50px #30254816;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Workspace, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  background: var(--surface);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input,
textarea,
select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a899ed;
  box-shadow: 0 0 0 3px #7968d911;
}
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
input[type="color"] {
  width: 48px;
  padding: 4px;
  height: 37px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
svg.icon {
  height: 18px;
  width: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
  vertical-align: middle;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--soft);
  color: var(--purple);
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
  background: var(--surface);
  min-height: 36px;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--muted);
  background: var(--surface-soft);
}
.btn.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 3px 6px #7968d91a;
}
.btn.primary:hover {
  background: var(--purple-dark);
}
.btn.soft {
  background: var(--soft);
  border-color: transparent;
  color: var(--purple-dark);
}
.btn.danger {
  color: var(--danger);
  border-color: #f2dce1;
}
.btn.small {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hidden {
  display: none !important;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--muted);
}
.empty h3 {
  color: var(--muted);
  margin-bottom: 8px;
}
.empty p {
  line-height: 1.8;
}
.initial-loading {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
}
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c78df;
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
}
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 30px;
}
.brand-name {
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -1.3px;
  color: #444155;
}
.brand-name span {
  color: #9782e7;
}
.brand .brand-symbol {
  font-size: 37px;
}
.workspace-switch {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 10px;
}
.workspace-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #8370cf;
  font-weight: 700;
}
.workspace-switch strong {
  font-size: 13px;
}
.workspace-switch .small {
  font-size: 13px;
  margin-top: 3px;
}
.nav-button {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  position: relative;
  margin-bottom: 3px;
}
.nav-button svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.nav-button:hover {
  background: var(--surface-soft);
}
.nav-button.active {
  background: var(--surface-soft);
  color: #7963cb;
  font-weight: 600;
}
.nav-button.active svg {
  color: #7963cb;
}
.nav-button .count {
  margin-left: auto;
  font-size: 13px;
  background: var(--surface-soft);
  border-radius: 5px;
  padding: 2px 6px;
  color: #8a75ce;
}
.nav-section {
  margin: 26px 11px 11px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-section .icon-button {
  height: 20px;
  width: 20px;
}
.nav-board .board-dot {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  margin-left: 4px;
  margin-right: 5px;
  flex-shrink: 0;
}
.nav-board .nav-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-board.active:before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #947be0;
  border-radius: 0 3px 3px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.local-card {
  background: linear-gradient(120deg, #f0ebf8, #f6f1f8);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  margin: 0 3px 16px;
}
.local-card strong {
  font-size: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.local-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}
.local-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71b998;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 7px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px #00000004;
}
.avatar.large {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.avatar { position:relative; overflow:hidden; }
.avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
#profile-form > .flex .avatar { width:64px; height:64px; font-size:20px; }
.profile-avatar-editor { margin-bottom:22px; padding:14px; border:1px solid var(--line); border-radius:9px; }
.profile-avatar-editor p { margin:7px 0; }
.profile-avatar-editor [hidden] { display:none; }
.avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 5px;
}
.avatars .avatar {
  margin-left: -5px;
}
.avatar.unassigned {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: 15px;
}
.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.topbar {
  height: 67px;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.breadcrumb {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb .icon {
  width: 15px;
  height: 15px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--muted);
}
.global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 290px;
  padding: 8px 11px;
  color: var(--muted);
}
.global-search input {
  background: transparent;
  border: 0;
  padding: 0;
  width: 100%;
  font-size: 13px;
  box-shadow: none;
}
.shortcut {
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.notification-trigger {
  position: relative;
}
.notification-badge {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  border: 1px solid white;
  border-radius: 50%;
  background: #c594dc;
}
.content {
  overflow: auto;
  flex: 1;
  padding: 31px 34px 22px;
  scrollbar-color: #ded8e8 transparent;
  scrollbar-width: thin;
}
.board-kicker {
  font-size: 13px;
  letter-spacing: 1.15px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.board-kicker .icon {
  height: 12px;
  width: 12px;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.board-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-star {
  color: var(--muted);
}
.title-star.active {
  color: #d7ae57;
}
.board-description {
  color: var(--muted);
  margin-top: 9px;
  font-size: 13px;
}
.board-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-heading-actions .avatars {
  margin-right: 6px;
}
.board-top-info {
  margin-bottom: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 29px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 18px;
  position: relative;
  overflow: hidden;
  min-height: 105px;
  background: var(--surface);
}
.stat-card:first-child {
  background: var(--surface-soft);
  border-color: #eae2f6;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.8px;
}
.stat-bottom {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.stat-trend {
  color: var(--muted);
}
.stat-icon {
  position: absolute;
  right: 17px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #a792d9;
}
.stat-card:nth-child(2) .stat-icon {
  background: var(--surface-soft);
  color: #deae66;
}
.stat-card:nth-child(3) .stat-icon {
  background: var(--surface-soft);
  color: #71b397;
}
.stat-card:nth-child(4) .stat-icon {
  background: var(--surface-soft);
  color: #d493a3;
}
.stat-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #b6a3e4;
  opacity: 0.7;
}
.board-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 25px;
  margin-bottom: 19px;
}
.tab {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 0 13px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  white-space: nowrap;
}
.tab .icon {
  width: 15px;
  height: 15px;
}
.tab.active {
  color: #8168ca;
  font-weight: 600;
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  left: 0;
  right: 0;
  background: #8d76da;
  border-radius: 3px;
}
.tab-right {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 29px;
  min-height: 35px;
  flex-wrap: wrap;
}
.toolbar .btn.primary {
  font-size: 13px;
  padding: 8px 13px;
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 7px;
  color: var(--muted);
}
.toolbar-search input {
  width: 135px;
  border: 0;
  padding: 6px 0;
  font-size: 13px;
  box-shadow: none;
  background: transparent;
}
.toolbar-search .icon {
  width: 15px;
  height: 15px;
}
.tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.tool-btn:hover,
.tool-btn.on {
  background: var(--surface-soft);
  color: var(--purple);
}
.tool-btn svg {
  width: 15px;
  height: 15px;
}
.toolbar-end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.active-filters {
  display: flex;
  gap: 8px;
  margin: -14px 0 20px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-chip {
  background: var(--soft);
  color: var(--purple-dark);
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.group-section {
  margin-bottom: 27px;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
}
.group-header h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.group-header .group-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
}
.group-header .icon-button {
  width: 23px;
  height: 23px;
}
.group-header .icon {
  width: 16px;
  height: 16px;
}
.group-menu {
  opacity: 0;
}
.group-section:hover .group-menu {
  opacity: 1;
}
.board-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  border-left: 3px solid var(--group-color, #8b7be8);
  scrollbar-width: thin;
  scrollbar-color: #e6dfef transparent;
}
.board-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 1000px;
  font-size: 13px;
}
.board-table th {
  font-weight: 400;
  color: var(--muted);
  background: var(--surface);
  height: 35px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.board-table th:first-child {
  width: 35px;
}
.board-table th.title-column {
  width: 32%;
  text-align: left;
  padding-left: 16px;
}
.board-table th.owner-column {
  width: 90px;
}
.board-table th.status-column {
  width: 143px;
}
.board-table th.priority-column {
  width: 125px;
}
.board-table th.date-column {
  width: 118px;
}
.board-table th.client-column {
  width: 110px;
}
.board-table th.estimate-column {
  width: 82px;
}
.board-table th.custom-column {
  width: 130px;
}
.board-table td {
  border-bottom: 1px solid var(--line);
  height: 43px;
  text-align: center;
  color: var(--muted);
  padding: 0 8px;
  border-right: 1px solid var(--line);
}
.board-table td:first-child {
  padding: 0 4px;
  border-right: 0;
}
.board-table td:last-child {
  border-right: 0;
}
.board-table tbody tr:last-child td {
  border-bottom: 0;
}
.board-table tr.task-row:hover {
  background: var(--surface-soft);
}
.board-table tr.selected {
  background: var(--surface-soft);
}
.board-table td.title-cell {
  color: var(--muted);
  text-align: left;
  padding: 0 8px 0 10px;
}
.task-title-layout {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.column-drag-handle {
  cursor: grab;
  padding: 0 3px 0 0;
  color: var(--muted);
  vertical-align: middle;
}
.column-drag-handle .icon {
  width: 12px;
  height: 14px;
  pointer-events: none;
}
.column-drop-before {
  box-shadow: inset 3px 0 var(--purple);
}
.column-drop-after {
  box-shadow: inset -3px 0 var(--purple);
}
.column-setting {
  display: flex;
  align-items: center;
}
.column-setting label {
  flex: 1;
  min-width: 0;
}
.column-setting .icon-button {
  width: 25px;
  flex-shrink: 0;
}
.files-drag-over {
  outline: 2px dashed var(--purple);
  outline-offset: 3px;
  background: var(--surface-soft);
}
.file-upload-controls {
  margin-bottom: 20px;
}
.file-upload-controls select {
  width: 100%;
  margin: 8px 0 16px;
}
.file-drop-zone {
  text-align: center;
  border: 2px dashed var(--line);
  padding: 24px;
  border-radius: 12px;
}
.file-drop-zone:focus-visible {
  outline: 2px solid var(--purple);
}
.draft-attachments {
  padding: 10px 0;
}
.draft-files {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.draft-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  font-size: 13px;
}
.draft-file img {
  width: 52px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
}
.draft-file span {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-file button {
  padding: 4px;
}
.image-preview {
  width: 100%;
  padding: 0;
  background: var(--surface-soft);
  border-radius: 8px;
  overflow: hidden;
}
.image-preview img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: contain;
}
.comment-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.comment-attachments:empty {
  display: none;
}
.comment-attachments .file-card {
  padding: 12px;
  min-width: 0;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: auto;
  object-fit: contain;
}
.template-picker {
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.template-picker > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.template-picker select {
  width: 100%;
}
.config-code {
  font-family: Consolas, monospace;
  font-size: 13px;
  width: 100%;
  min-height: 180px;
  margin: 12px 0;
  white-space: pre;
  overflow: auto;
}
.task-drag-handle {
  display: grid;
  place-content: center;
  width: 20px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  color: var(--muted);
  cursor: grab;
  border-radius: 4px;
}
.task-drag-handle .icon {
  width: 14px;
  height: 16px;
  pointer-events: none;
}
.task-drag-handle:hover,
.task-drag-handle:focus-visible {
  color: var(--purple);
  background: var(--surface-soft);
}
.task-drag-handle[aria-disabled="true"] {
  cursor: default;
  opacity: 0.4;
}
.task-drag-handle:active,
.reordering-tasks {
  cursor: grabbing;
}
.reordering-tasks .task-dragging {
  opacity: 0.35;
}
.board-table .drop-before > td {
  box-shadow: inset 0 3px var(--purple);
}
.board-table .drop-after > td {
  box-shadow: inset 0 -3px var(--purple);
}
.group-section.drop-group-end {
  outline: 2px dashed var(--purple);
  outline-offset: 4px;
  border-radius: 8px;
}
.group-section.drop-group-end .group-header::after {
  content: "Soltar al final del grupo";
  color: var(--purple);
  font-size: 13px;
  margin-left: auto;
}
.reorder-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.reorder-hint > .icon {
  width: 14px;
  height: 16px;
}
.expand-btn {
  width: 20px;
  height: 24px;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  color: var(--muted);
}
.expand-btn svg {
  width: 13px;
  height: 13px;
}
.task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  padding: 8px 0;
  flex: 1;
  font-size: 13px;
}
.task-title:hover {
  color: var(--purple);
}
.sub-count {
  font-size: 13px;
  background: var(--surface-soft);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--muted);
}
.comment-count {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0 4px 5px;
}
.comment-count.has-comments {
  color: #a38ccf;
}
.comment-count .icon {
  width: 14px;
  height: 14px;
}
.row-add {
  opacity: 0;
  width: 20px;
  height: 22px;
}
.task-row:hover .row-add {
  opacity: 1;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--label-color) 18%, var(--surface));
  color: color-mix(in srgb, var(--label-color) 35%, var(--ink));
  border-radius: 5px;
  padding: 6px 9px;
  min-width: 112px;
  max-width: 100%;
  font-size: 13px;
  letter-spacing: 0.1px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.priority-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  max-width: 100%;
}
.priority-chip .dot {
  background: var(--label-color);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cell-button {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-button:hover {
  background: #7968d90a;
  border-radius: 5px;
}
.cell-button.overdue {
  color: #d08691;
}
.cell-button .icon {
  height: 12px;
  width: 12px;
}
.add-row td {
  height: 34px !important;
  background: var(--surface);
}
.add-task-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  padding: 7px !important;
}
.add-task-input::placeholder {
  color: var(--muted);
}
.group-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 8px 0;
  color: var(--muted);
  font-size: 13px;
  justify-content: flex-end;
}
.group-progress {
  display: flex;
  height: 5px;
  width: 120px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-soft);
}
.sub-row {
  background: var(--surface);
}
.sub-row .title-cell {
  padding-left: calc(25px + var(--depth) * 15px) !important;
}
.sub-row .task-title {
  font-size: 13px;
  color: var(--muted);
}
.add-group {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 4px;
}
.board-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.board-footnote .icon {
  width: 12px;
  height: 12px;
}
.board-footnote span:last-child {
  margin-left: auto;
}
.bulk-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-35%);
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 12;
}
.kanban {
  display: flex;
  gap: 17px;
  overflow: auto;
  padding-bottom: 20px;
}
.kanban-column {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 265px;
  width: 265px;
  padding: 14px;
  flex-shrink: 0;
}
.kanban-column.drag-over {
  background: var(--surface-soft);
  border-color: var(--purple);
}
.kanban-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.kanban-heading .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--label-color);
}
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 3px #52416304;
  padding: 15px 13px;
  margin-bottom: 10px;
  cursor: grab;
}
.kanban-card h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  margin: 7px 0 16px;
}
.kanban-card .small {
  font-size: 13px;
}
.kanban-card .flex {
  margin-top: 8px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.calendar-day-name {
  padding: 13px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-cell {
  min-height: 116px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-cell.outside {
  background: var(--surface);
  color: var(--muted);
}
.calendar-date {
  font-size: 13px;
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
}
.calendar-cell.today .calendar-date {
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
}
.calendar-task {
  display: block;
  width: 100%;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 6px;
  background: var(--surface-soft);
  color: #8b70bd;
  margin-top: 5px;
  border-radius: 4px;
  border-left: 2px solid var(--label-color);
}
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: #29233729;
  z-index: 29;
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(590px, 100%);
  background: var(--surface);
  box-shadow: -12px 0 60px #45345412;
  z-index: 30;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.2s ease;
}
.drawer-header {
  padding: 24px 28px 0;
}
.drawer-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.drawer-header h2 {
  line-height: 1.5;
  font-size: 23px;
  max-width: 95%;
  letter-spacing: -0.5px;
}
.drawer-metadata {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}
.drawer-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-tabs .tab {
  font-size: 13px;
}
.drawer-body {
  padding: 25px 28px;
  overflow: auto;
  flex: 1;
}
.comment-composer {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 24px;
}
.comment-composer textarea {
  width: 100%;
  border: 0;
  box-shadow: none;
  padding: 4px;
  min-height: 94px;
  font-size: 13px;
  line-height: 1.7;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 7px;
}
.comment-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 15px;
}
.comment-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.comment-header strong {
  font-size: 13px;
  font-weight: 600;
}
.comment-body {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-body .mention {
  color: var(--purple);
  background: var(--surface-soft);
  border-radius: 4px;
  padding: 2px 4px;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.reply-tag {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.activity-list {
  position: relative;
}
.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.activity-entry .activity-body {
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.activity-change {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}
.activity-value {
  padding: 3px 7px;
  background: var(--surface-soft);
  border-radius: 4px;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}
.activity-value.old {
  background: var(--surface-soft);
  color: var(--muted);
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.file-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.file-card .file-icon {
  color: #a18bcd;
  background: var(--surface-soft);
  padding: 15px;
  border-radius: 7px;
  text-align: center;
}
.file-card strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.file-card .small {
  line-height: 1.6;
}
.upload-zone {
  border: 1px dashed #cbbddd;
  border-radius: 9px;
  text-align: center;
  padding: 22px;
  background: var(--surface);
  margin-bottom: 22px;
  color: var(--muted);
  cursor: pointer;
}
.upload-zone .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 9px;
}
.upload-zone p {
  font-size: 13px;
  line-height: 1.9;
}
.notification-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 0;
}
.notification-card {
  display: flex;
  gap: 11px;
  padding: 17px 13px;
  border-radius: 9px;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  align-items: flex-start;
}
.notification-card.unread {
  background: var(--surface-soft);
}
.notification-card:hover {
  background: var(--surface-soft);
}
.notification-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
  min-width: 0;
}
.notification-text p {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}
.notification-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b09bd8;
  margin-top: 8px;
  flex-shrink: 0;
}
.modal-shade {
  position: fixed;
  inset: 0;
  background: #32283d45;
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 25px;
}
.modal {
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 30px 100px #2a183433;
  display: flex;
  flex-direction: column;
  animation: appear 0.17s ease;
}
.modal.wide {
  width: 790px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 20px;
}
.modal-body {
  padding: 23px 27px;
  overflow: auto;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form-field label {
  font-size: 13px;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 13px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-hint {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 5px 0;
  color: var(--muted);
}
.type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.type-option {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.type-option:has(input:checked) {
  border-color: #9e8bd3;
  background: var(--surface-soft);
  color: #7b63ac;
}
.type-option input {
  width: auto;
  margin: 0 4px 10px 0;
}
.type-option p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
  color: var(--muted);
}
.popover {
  position: fixed;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 10px 45px #3e264b25;
  padding: 9px;
  max-height: min(550px, 80vh);
  overflow: auto;
  min-width: 210px;
  animation: appear 0.1s ease;
}
.popover .menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
}
.popover .menu-item:hover {
  background: var(--surface-soft);
  color: var(--purple);
}
.popover hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}
.popover-search {
  width: 100%;
  margin-bottom: 9px;
  padding: 8px 10px;
  font-size: 13px;
}
.label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.label-choice {
  font-size: 13px;
  border-radius: 5px;
  padding: 9px 7px;
  background: var(--label-color);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-choice:hover {
  filter: brightness(1.08);
}
.label-editor-row {
  display: grid;
  grid-template-columns: 1fr 50px 70px 34px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.label-editor-row input {
  min-width: 0;
  font-size: 13px;
  padding: 8px;
}
.label-editor-row label {
  font-size: 13px;
  color: var(--muted);
}
.label-editor-row input[type="checkbox"] {
  width: 14px;
}
.member-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.member-row .name {
  font-size: 13px;
  flex: 1;
}
.member-row select {
  font-size: 13px;
  padding: 6px;
  width: 120px;
}
.notice {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice.warning {
  background: var(--surface-soft);
  border-color: #f5ead5;
  color: #b0915e;
}
.error-text {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 10px;
}
.preview-table {
  overflow: auto;
  max-height: 210px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0;
}
.preview-table table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}
.preview-table td,
.preview-table th {
  padding: 7px;
  border: 1px solid var(--line);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-table th {
  background: var(--surface-soft);
  font-weight: 500;
}
.integration-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.integration-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: var(--surface);
}
.integration-card:hover {
  background: var(--surface-soft);
  border-color: var(--muted);
}
.integration-card h3 {
  margin: 15px 0 8px;
  font-size: 14px;
}
.integration-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.integration-card .icon {
  color: var(--muted);
  width: 26px;
  height: 26px;
}
.monday-mark {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 26px;
}
.monday-mark i {
  width: 9px;
  height: 23px;
  transform: rotate(25deg);
  border-radius: 8px;
  background: #f37283;
}
.monday-mark i:nth-child(2) {
  background: #efbd59;
}
.monday-mark i:nth-child(3) {
  height: 9px;
  width: 9px;
  align-self: flex-end;
  background: #88ba89;
}
.toast {
  position: fixed;
  bottom: 26px;
  right: 28px;
  z-index: 100;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 11px;
  padding: 15px 20px;
  font-size: 13px;
  max-width: 460px;
  animation: appear 0.2s ease;
}
.toast.error {
  color: var(--danger);
  border-color: #f1d7de;
}
.toast .icon {
  color: #9b80c9;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-soft);
}
.auth-visual {
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 80% 30%, #e7e0f5, transparent),
    linear-gradient(145deg, #f2edf9, #e9e4f4);
  position: relative;
  overflow: hidden;
}
.auth-visual .brand {
  padding: 0;
}
.auth-message {
  max-width: 440px;
  margin: 80px 0;
}
.auth-message h1 {
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -2.5px;
  color: var(--muted);
  font-weight: 600;
}
.auth-message h1 em {
  font-style: normal;
  color: #9a83cb;
}
.auth-message p {
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.9;
  font-size: 14px;
  max-width: 360px;
}
.auth-mini-board {
  background: #ffffffb3;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 20px;
  transform: rotate(-3deg);
  box-shadow: 0 25px 50px #9983b41c;
  max-width: 420px;
}
.auth-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.auth-mini-row:last-child {
  border: 0;
}
.auth-form-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.auth-form {
  width: 350px;
}
.auth-form h2 {
  font-size: 29px;
  color: var(--muted);
  letter-spacing: -0.8px;
}
.auth-form > p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 32px;
  line-height: 1.8;
}
.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.auth-footer {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
}
.overview-hero {
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(115deg, #f3eef9, #faf6fc);
  border: 1px solid var(--line);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overview-hero h1 {
  font-size: 27px;
  margin-bottom: 10px;
  color: var(--muted);
}
.overview-hero p {
  font-size: 13px;
  color: var(--muted);
}
.overview-hero .hero-icon {
  font-size: 65px;
  color: var(--muted);
}
.board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.board-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 20px;
  position: relative;
  min-height: 125px;
}
.board-card:before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--group-color);
}
.board-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--muted);
}
.board-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.board-card p {
  font-size: 13px;
  color: var(--muted);
}
.my-task-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.my-task-row .title {
  flex: 1;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
}
.my-task-row .title small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.settings-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.settings-row h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.settings-row p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.badge {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}
.detail-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.details-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 15px;
}
.details-row > label {
  font-size: 13px;
  color: var(--muted);
}
.details-row input,
.details-row select {
  font-size: 13px;
  width: 100%;
}
.timer-button.running {
  color: #ad72bc;
  background: var(--surface-soft);
}
.time-entry {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-toggle {
  display: none;
}
@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .content {
    padding: 36px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stats {
    gap: 22px;
  }
  .stat-card {
    padding: 21px 23px;
  }
  .board-table td {
    height: 46px;
  }
  .board-table th.title-column {
    width: 36%;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .board-heading {
    align-items: flex-start;
  }
  .board-heading-actions {
    gap: 5px;
  }
  .board-heading-actions > .avatars {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .board-tabs {
    gap: 20px;
  }
  .toolbar {
    gap: 6px;
  }
  .global-search {
    width: 240px;
  }
}
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 25;
    box-shadow: var(--shadow);
  }
  .app-shell.sidebar-open .sidebar {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 0 15px;
    height: 57px;
    min-height: 57px;
    gap: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .global-search {
    width: 230px;
  }
  .content {
    padding: 22px 18px;
  }
  .board-heading {
    flex-wrap: wrap;
  }
  .board-heading-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
  }
  .board-description {
    line-height: 1.6;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    min-height: 90px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-bottom {
    font-size: 13px;
  }
  .board-tabs {
    overflow: auto;
    gap: 21px;
  }
  .tab-right {
    display: none;
  }
  .toolbar {
    margin-bottom: 18px;
    gap: 4px;
  }
  .toolbar-end {
    margin-left: 0;
  }
  .toolbar-search input {
    width: 110px;
  }
  .tool-btn {
    font-size: 13px;
  }
  .board-title-row h1 {
    font-size: 25px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-form-panel {
    min-height: 100vh;
  }
  .calendar-cell {
    min-height: 85px;
    padding: 4px;
  }
  .calendar-task {
    font-size: 13px;
    padding: 3px;
  }
  .calendar-date {
    font-size: 13px;
  }
  .calendar-day-name {
    padding: 8px 3px;
  }
  .board-footnote span:last-child {
    display: none;
  }
  .bulk-bar {
    left: 15px;
    right: 15px;
    bottom: 15px;
    transform: none;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .my-task-row {
    flex-wrap: wrap;
  }
  .my-task-row .title {
    min-width: 50%;
  }
  .modal-shade {
    padding: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .form-grid {
    gap: 13px;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-header {
    padding: 22px 20px 0;
  }
  .board-heading-actions .btn {
    font-size: 13px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Comfortable type and contrast for long working sessions. */
body {
  font-family: "Segoe UI", Arial, sans-serif;
}
.nav-button {
  font-size: 13px;
  color: var(--muted);
}
.board-table,
.task-title,
.cell-button {
  font-size: 13px;
}
.board-table td.title-cell {
  color: var(--muted);
}
.board-table th {
  font-size: 13px;
  color: var(--muted);
}
.status-chip {
  font-size: 13px;
  color: color-mix(in srgb, var(--label-color) 35%, var(--ink));
}
.priority-chip {
  font-size: 13px;
}
.sub-row .task-title {
  font-size: 13px;
  color: var(--muted);
}
.board-description {
  color: var(--muted);
}
.form-hint {
  color: var(--muted);
}
.board-table th.title-column {
  width: 32%;
}

@media (max-width: 820px) {
  .top-actions {
    flex: 1;
    min-width: 0;
    gap: 7px;
  }
  .global-search {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .global-search input {
    min-width: 0;
  }
  .top-actions .divider,
  .top-actions .shortcut,
  .top-actions [data-action="help"] {
    display: none;
  }
  .topbar > .mobile-toggle {
    flex-shrink: 0;
  }
  .board-table th.title-column {
    width: 250px;
  }
}

/* Theme, legibility and compact workspace layout. */
:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-soft: #f4f5fa;
  --ink: #292e40;
  --muted: #636c80;
  --line: #dce0ea;
  --sidebar: #f6f6fb;
  --scroll-thumb: #b8bfd1;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #202435;
  --surface-soft: #292e43;
  --ink: #ebedf7;
  --muted: #b3bbd0;
  --line: #3c435b;
  --sidebar: #191d2b;
  --purple: #afa0ff;
  --purple-dark: #8874ea;
  --soft: #38304f;
  --danger: #ff8a9d;
  --shadow: 0 12px 50px #0005;
  --scroll-thumb: #626d89;
}
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--surface); color: var(--ink); }
input, textarea, select { background-color: var(--surface); border-color: var(--line); color: var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--surface); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
.board-table-wrap { scrollbar-color: var(--scroll-thumb) transparent; border-radius: 6px; }
.sidebar { position: relative; padding: 18px 12px 12px; }
.sidebar-pin { position: absolute; top: 19px; right: 10px; }
.brand { padding: 0 8px 18px; }
.brand-name { color: var(--ink); }
.nav-button { font-size: 14px; color: var(--ink); min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.workspace-switch { padding: 10px; margin-bottom: 15px; }
.workspace-switch strong, .profile-button strong { font-size: 14px !important; }
.nav-section { padding-top: 18px; padding-bottom: 8px; }
.local-card { display: none; }
.topbar { height: 56px; min-height: 56px; padding: 0 22px; gap: 14px; }
.navigation-toggle { display: inline-flex; flex-shrink: 0; }
.content { padding: 22px 26px; }
.board-heading { margin-bottom: 14px; }
.board-heading h1 { font-size: 27px; }
.board-table, .task-title, .cell-button, .sub-row .task-title { font-size: 14px; color: var(--ink); }
.board-table th { height: 36px; font-size: 13px; color: var(--muted); }
.board-table td { height: 39px; color: var(--ink); }
.board-table td.title-cell { color: var(--ink); }
.task-title { padding: 6px 0; }
.status-chip { font-size: 12px; padding: 4px 7px; min-width: 112px; font-weight: 600; }
.priority-chip { font-size: 12px; }
.board-table th.status-column { width: 153px; }
.board-table th.priority-column { width: 135px; }
.group-section { margin-bottom: 22px; }
.group-header { padding-bottom: 8px; }
.group-header h3 { font-size: 16px; }
.group-count, .board-description, .form-hint, .breadcrumb, .comment-actions { color: var(--muted) !important; }
.comment-body, .comment-composer textarea { font-size: 15px; line-height: 1.65; color: var(--ink); }
.comment-header strong { font-size: 14px; }
.drawer-header { padding: 20px 22px 0; }
.drawer-body { padding: 18px 22px; scrollbar-gutter: stable; }
.drawer-tabs { gap: 16px; }
.comment-composer { margin-bottom: 18px; }
.comment-card { padding: 15px; }
.btn.primary { background: #7160cc; color: #fff; }
.btn.primary:hover { background: #6250bd; }
[data-theme="dark"] .local-card, [data-theme="dark"] .login-art, [data-theme="dark"] .welcome-banner { background: var(--surface-soft); }
[data-theme="dark"] .stat-card, [data-theme="dark"] .login-card, [data-theme="dark"] .calendar-day { background-color: var(--surface); }
[data-theme="dark"] .task-row:hover, [data-theme="dark"] .nav-button:hover { background: var(--surface-soft); }
[data-theme="dark"] .nav-button.active { background: var(--soft); color: var(--ink); }
[data-theme="dark"] .overdue { color: #ff9bac; }
[data-theme="dark"] .board-table th, [data-theme="dark"] .board-table td { border-color: var(--line); }
[data-theme="dark"] .avatar { border-color: var(--surface); }
.appearance-settings { display: grid; gap: 20px; }
.protection-controls { border-top: 1px solid var(--line); padding: 10px 0; }
.pin-create { display: grid; gap: 8px; margin-top: 12px; }
.pin-create[hidden] { display: none; }
.pin-create input, .pin-unlock input { width: 110px; letter-spacing: 5px; }
.protected-update { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 8px; padding: 14px; }
.protected-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.protected-heading .btn { margin-left: auto; }
.protected-update .comment-body { margin-top: 12px; }
.pin-unlock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pin-unlock .error-text { width: 100%; margin: 0; }
@media (min-width: 821px) {
  [data-navigation="compact"] .app-shell { grid-template-columns: 64px minmax(0, 1fr); }
  [data-navigation="compact"] .sidebar { padding: 12px 6px; }
  [data-navigation="compact"] .sidebar-pin { position: static; align-self: center; transform: rotate(180deg); }
  [data-navigation="compact"] .sidebar .brand { padding: 5px; justify-content: center; }
  [data-navigation="compact"] .sidebar .brand-name,
  [data-navigation="compact"] .workspace-switch,
  [data-navigation="compact"] .sidebar .nav-section,
  [data-navigation="compact"] .sidebar > .small,
  [data-navigation="compact"] .sidebar .nav-button span,
  [data-navigation="compact"] .sidebar .profile-button .grow,
  [data-navigation="compact"] .sidebar .profile-button > svg { display: none; }
  [data-navigation="compact"] .sidebar .nav-button { justify-content: center; padding: 10px; }
  [data-navigation="compact"] .sidebar .nav-board > svg { display: none; }
  [data-navigation="compact"] .sidebar .board-dot { width: 12px; height: 12px; }
  [data-navigation="compact"] .sidebar .profile-button { justify-content: center; padding: 12px 0; }
}
@media (max-width: 820px) {
  .sidebar { position: fixed; }
  .content { padding: 16px 12px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar > .navigation-toggle { display: inline-flex; }
  .top-actions { gap: 4px; }
  .drawer-header, .drawer-body { padding-left: 16px; padding-right: 16px; }
  .board-table th.title-column { width: 280px; }
}

[data-theme="dark"] .auth-visual, [data-theme="dark"] .welcome-card { background: var(--surface-soft); }
[data-theme="dark"] .auth-preview { background: var(--surface); border-color: var(--line); }
.nav-section { margin: 18px 11px 7px; padding: 0; letter-spacing: .8px; }
.board-top-info { margin-bottom: 16px; }
.board-heading { margin-bottom: 0; }
.stats { gap: 12px; margin-bottom: 16px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 58px; border-radius: 7px; }
.stat-label { margin: 0; }
.stat-value { font-size: 25px; margin-left: auto; }
.stat-card .stat-bottom, .stat-card .stat-icon { display: none; }
.toolbar { margin-bottom: 16px; }
.board-tabs { margin-bottom: 14px; }
.board-kicker { margin-bottom: 6px; }
@media (max-width: 600px) { .stat-card { padding: 10px; gap: 6px; } .stat-value { font-size: 22px; } }
.content, .drawer-body, .sidebar, .board-table-wrap, .modal-body { scrollbar-color: var(--scroll-thumb) transparent; }
[data-theme="dark"] .group-header h3 { color: color-mix(in srgb, var(--group-color) 70%, #fff); }
.board-tabs { overflow-y: hidden; }
[data-theme="dark"] .tab.active { color: var(--purple); }
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./InterVariable.woff2") format("woff2");
}
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-optical-sizing: auto; }
button[form="delete-user-form"] { background: #b4233d; color: #fff; }
button[form="delete-user-form"]:hover { background: #941b31; }
/* Board creation and direct column editing */
.entity-options { display:flex; flex-wrap:wrap; gap:12px 18px; padding:10px 0; }
.entity-options label { display:flex; align-items:center; gap:5px; font-size:14px; }
.custom-entity-label input { margin-top:8px; }
.column-name { padding:8px 3px; text-align:inherit; font:inherit; color:inherit; max-width:180px; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.column-name:hover { color:var(--accent); background:var(--hover); border-radius:5px; }
.column-rename-input { min-width:100px; width:100%; max-width:220px; font-size:14px; }
.board-table .add-column-cell { min-width:45px; width:45px; text-align:center; }
.board-table .subtable-container > td { padding:0; border:0; background:var(--surface); }
.subtable-inset { margin:12px 0 18px 34px; border-left:3px solid var(--group-color); border-radius:6px; overflow-x:auto; }
.subtable-inset .sub-row .title-cell { padding-left:0; }
.subtable-inset .board-table { margin:0; }
.ai-settings { max-width:800px; }
.ai-prompt { width:100%; min-height:150px; margin:12px 0; padding:16px; font:inherit; border-radius:10px; }
.ai-preview { max-height:350px; overflow:auto; padding:8px 20px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.ai-preview section { margin:12px 0 24px; }
.ai-preview li { margin:7px 0; }
.item-context-menu { max-height:calc(100vh - 24px); overflow-y:auto; padding:8px; z-index:1100; }
.item-context-menu .menu-item { min-height:35px; font-size:14px; text-decoration:none; }
.item-context-menu .menu-item:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; background:var(--surface-soft); }
.item-context-menu .danger-item { color:#cf3d56; }
#item-context-form textarea { width:100%; margin-top:10px; padding:12px; font:inherit; }
.modal:has(#item-context-form[data-command="delete"]) button[type="submit"] { background:#cf3d56; border-color:#cf3d56; color:white; }
.automation-modal { width:min(900px,96vw); max-width:900px; }
.automation-toolbar,.automation-card .flex,#row-format-form .flex { flex-wrap:wrap; gap:8px; }
.automation-list { display:grid; gap:12px; margin:18px 0 28px; }
.automation-card,.automation-step,.automation-action,.automation-run { border:1px solid var(--line); border-radius:12px; padding:16px; }
.automation-card h3,.automation-step h3 { margin:0 0 10px; }
.automation-step { margin:14px 0; }
.automation-action { margin:12px 0; background:var(--surface-soft); }
.automation-editor-row { display:grid; grid-template-columns:1.2fr 1fr 1.2fr auto; gap:12px; align-items:end; margin:14px 0; }
.automation-editor-row .form-field { margin:0; }
.automation-editor-row input[type="color"] { width:100%; min-height:39px; padding:3px; }
.automation-history { display:grid; gap:10px; max-height:350px; overflow:auto; }
.automation-run p { margin:8px 0; }
.automation-run .badge { float:right; }
.notification-people { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.task-row[style*="--row-color:"] > td,.kanban-card[style*="--row-color:"] { background:color-mix(in srgb,var(--row-color) 18%,var(--surface)); }
.task-row[style*="--row-color:"]:hover > td { background:color-mix(in srgb,var(--row-color) 27%,var(--surface)); }
.task-row.selected[style*="--row-color:"] > td { background:color-mix(in srgb,var(--row-color) 22%,var(--surface)); box-shadow:inset 0 1px var(--accent),inset 0 -1px var(--accent); }
.task-row[style*="--row-color:"] > td:first-child,.kanban-card[style*="--row-color:"] { border-left:3px solid var(--row-color); }
@media(max-width:650px){.automation-editor-row{grid-template-columns:1fr 1fr}.automation-toolbar{display:grid}.automation-run .badge{float:none}}
.monday-intro,.monday-selection,.monday-preview,.monday-history { margin:0 0 24px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.monday-intro p { max-width:900px; line-height:1.65; }
.monday-folder { position:relative; cursor:pointer; }
.monday-folder input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.monday-board-list { max-height:330px; overflow:auto; border:1px solid var(--line); border-radius:8px; margin:14px 0; }
.monday-board-option { display:flex; align-items:center; gap:12px; padding:11px 14px; border-bottom:1px solid var(--line); cursor:pointer; }
.monday-board-option[hidden] { display:none; }
.monday-board-option:hover { background:var(--surface-soft); }
.monday-board-option small,.monday-person small { display:block; color:var(--muted); margin-top:4px; font-size:12px; }
.monday-options { display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin:16px 0; }
.monday-options label { display:flex; gap:8px; align-items:center; }
.monday-progress:empty { display:none; }
.monday-progress { position:sticky; top:0; z-index:5; display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:16px; margin-bottom:16px; background:var(--surface-soft); border:1px solid var(--line); border-radius:10px; }
.monday-progress progress { width:100%; accent-color:var(--accent); }
.monday-person { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.monday-person-list { margin-bottom:24px; }
.monday-history-entry { padding:14px 0; border-bottom:1px solid var(--line); }
.monday-history-entry summary { cursor:pointer; }
.monday-receipt { background:var(--surface-soft); padding:16px; margin:12px 0; border-radius:8px; }
.monday-receipt a { color:var(--accent); }
@media(max-width:650px){.monday-person{grid-template-columns:1fr}.monday-intro,.monday-selection,.monday-preview,.monday-history{padding:12px}}

/* Persistent personal work cards; independent from board scrolling. */
#work-focus { position:fixed; right:20px; bottom:20px; z-index:85; width:310px; max-width:calc(100vw - 32px); pointer-events:none; }
.focus-toggle { position:relative; flex:none; }
.focus-toggle.active { color:var(--purple); background:color-mix(in srgb,var(--purple) 12%,var(--surface)); }
.focus-count { position:absolute; right:-5px; top:-5px; min-width:17px; padding:1px 4px; border-radius:12px; background:var(--purple); color:white; font-size:10px; font-weight:700; }
.focus-drag { flex:none; cursor:grab; touch-action:none; user-select:none; color:var(--muted); }
.focus-drag:active { cursor:grabbing; }
.focus-pip { background:var(--surface); color:var(--ink); padding:4px; }
.focus-pip .focus-stack { max-height:none; overflow:visible; }
.focus-stack { display:flex; flex-direction:column; gap:7px; max-height:55vh; overflow:auto; padding:4px; }
.focus-card { display:flex; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-left:4px solid var(--focus-color); border-radius:11px; box-shadow:0 4px 18px #0002; pointer-events:auto; cursor:pointer; }
.focus-card:focus-within,.focus-card:hover { box-shadow:0 4px 18px #0003; }
.focus-main { padding:8px; flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.focus-title-row { display:flex; align-items:center; gap:3px; min-width:0; }
.focus-open { text-align:left; padding:0; flex:1; min-width:0; color:inherit; }
.focus-open strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; font-size:14px; line-height:22px; }
.focus-status { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:650; padding:0; text-align:left; line-height:18px; }
.focus-status i { background:var(--focus-color); width:8px; height:8px; border-radius:50%; flex:none; }
.focus-footer { display:flex; align-items:center; gap:6px; min-width:0; }
.focus-clock { font-size:17px; font-variant-numeric:tabular-nums; letter-spacing:.2px; padding:0; text-align:left; min-width:0; }
.focus-total { display:inline-flex; gap:3px; align-items:center; font-size:11px; color:var(--muted); flex:none; }
.focus-total .icon { width:13px; height:13px; }
.focus-inline-tools { display:flex; gap:1px; margin-left:auto; flex:none; }
.focus-card .icon-button { width:24px; height:24px; min-width:24px; padding:3px; border-radius:5px; }
.focus-card .icon-button:hover { background:var(--soft); }
.focus-card .icon-button .icon { width:15px; height:15px; }
.focus-controls { display:flex; flex-direction:column; justify-content:space-between; padding:4px; border-left:1px solid var(--line); }
.focus-controls [data-focus="list"][aria-pressed="true"] { color:var(--purple); background:var(--soft); }
.focus-stop { color:var(--focus-color); }
.focus-stop .icon { fill:currentColor; }
.focus-pip.compact .focus-status { display:none; }
.focus-pip.compact .focus-main { gap:1px; padding:5px 7px; justify-content:space-between; }
.focus-pip.compact .focus-clock { font-size:15px; }
.focus-pip.compact .focus-controls { padding:2px; }
.focus-pip.compact .icon-button { width:22px; height:22px; min-width:22px; }
.focus-empty { display:flex; align-items:center; gap:8px; padding:6px; color:var(--muted); }
.focus-pip.docked { padding:3px; }
.focus-dock { position:relative; display:flex; align-items:center; min-height:34px; border:1px solid var(--line); border-left:3px solid var(--focus-color,var(--purple)); border-radius:6px; background:var(--surface); color:var(--ink); overflow:hidden; }
.focus-dock-info { display:flex; align-items:center; gap:6px; min-width:0; width:100%; padding:7px; text-align:left; }
.focus-dock-info strong { flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; font-weight:600; }
.focus-dock-dot { width:7px; height:7px; flex:none; border-radius:50%; background:var(--focus-color); }
.focus-dock-clock { flex:none; max-width:95px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; font-size:12px; }
.focus-dock-actions { position:absolute; inset:0 0 0 auto; display:flex; align-items:center; gap:2px; padding:2px 4px; background:var(--surface); border-left:1px solid var(--line); opacity:0; pointer-events:none; }
.focus-dock:hover .focus-dock-actions,.focus-dock:focus-within .focus-dock-actions,.focus-dock-empty .focus-dock-actions { opacity:1; pointer-events:auto; }
.focus-dock:hover .focus-dock-info,.focus-dock:focus-within .focus-dock-info { padding-right:90px; }
.focus-dock:hover .focus-dock-clock,.focus-dock:focus-within .focus-dock-clock { display:none; }
.focus-dock .icon-button { width:24px; height:26px; min-width:24px; padding:4px; }
.focus-dock .icon-button .icon { width:15px; height:15px; }
.focus-dock-empty { padding:7px 90px 7px 7px; font-size:12px; color:var(--muted); }
@media(hover:none) { .focus-dock .focus-dock-actions { opacity:1; pointer-events:auto; } .focus-dock-info { padding-right:90px; } .focus-dock-clock { display:none; } }
.focus-settings { max-width:850px; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.focus-settings p { line-height:1.6; margin:12px 0; color:var(--muted); }
.focus-settings hr { border:0; border-top:1px solid var(--line); margin:24px 0; }
.focus-settings-grid { display:grid; grid-template-columns:1fr 1.5fr 1fr; gap:16px; margin:18px 0; }
@media(max-width:600px) { #work-focus { right:12px; bottom:12px; width:280px; } .focus-stack {max-height:40vh;} .focus-settings-grid {grid-template-columns:1fr;} }
.board-loading { padding:60px 28px; max-width:900px; }
.board-loading .spinner { display:block; width:28px; height:28px; margin-bottom:20px; border-width:3px; }
.board-loading p { color:var(--muted); margin:15px 0 28px; }
.loading-lines i { display:block; height:38px; margin:10px 0; border-radius:7px; background:linear-gradient(100deg,var(--surface-soft),var(--line),var(--surface-soft)); background-size:220% 100%; animation:board-loading 1.4s infinite; }
@keyframes board-loading { to {background-position:-220% 0;} }
@media(prefers-reduced-motion:reduce){.loading-lines i{animation:none;}}
.task-row.is-current > td,.task-row.is-current:hover > td { background:color-mix(in srgb,#7870ef 17%,var(--surface)) !important; box-shadow:inset 0 1px #9387ef,inset 0 -1px #9387ef; }
.task-row.is-current > td:first-child { box-shadow:inset 4px 0 #8372ed,inset 0 1px #9387ef,inset 0 -1px #9387ef; }
[data-theme="dark"] .task-row.is-current > td { background:color-mix(in srgb,#a99dff 23%,var(--surface)) !important; }
body.task-detail-open .panel-backdrop { backdrop-filter:none; background:rgba(24,28,42,.08); }
body.task-detail-open[data-theme="dark"] .panel-backdrop { background:rgba(0,0,0,.12); }
.board-table th { position:relative; }
.board-table th .column-name { max-width:calc(100% - 72px); overflow:hidden; text-overflow:ellipsis; vertical-align:middle; white-space:nowrap; }
.column-sort,.column-rename { display:inline-flex; align-items:center; justify-content:center; padding:3px; width:22px; height:25px; vertical-align:middle; color:var(--muted); }
.column-sort .icon,.column-rename .icon { width:13px;height:13px; }
.column-sort.on { color:var(--accent); background:var(--surface-soft); border-radius:4px; }
.column-rename { opacity:0; }
.board-table th:hover .column-rename,.board-table th:focus-within .column-rename { opacity:1; }
.column-resize { position:absolute; z-index:4; right:-4px; top:0; bottom:0; width:9px; cursor:col-resize; touch-action:none; }
.column-resize:hover,.column-resize:focus { background:var(--accent); opacity:.65; outline:0; }
body.resizing-column,body.resizing-column * { cursor:col-resize !important; user-select:none !important; }
.last-update-cell { display:flex; align-items:center; gap:8px; padding:4px 9px; min-width:0; font-size:12px; }
.last-update-cell .avatar { flex:none; width:25px;height:25px;font-size:10px; }
.last-update-cell time { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.more-rows td { padding:12px;text-align:center;background:var(--surface-soft); }
.board-table th .column-name { max-width:calc(100% - 25px); }
.board-table th .column-sort { position:absolute; right:7px; top:6px; opacity:0; }
.board-table th .column-rename { position:absolute; right:27px; top:6px; }
.board-table th:hover .column-sort,.board-table th:focus-within .column-sort,.board-table th .column-sort.on { opacity:1; }
.board-table th:hover .column-name,.board-table th:focus-within .column-name { max-width:calc(100% - 60px); }
[data-theme="dark"] body.task-detail-open .panel-backdrop { background:rgba(0,0,0,.12); }

/* Delivery settings and accessible avatar drop target */
.communication-form{padding:20px 0 26px;border-bottom:1px solid var(--line);margin-bottom:22px;max-width:1100px}
.communication-form h3{margin:12px 0 18px}.communication-form .form-grid{margin:18px 0}.communication-form .check-row{margin:12px 0}
.activity-days{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.activity-days .check-row{white-space:nowrap}
.communication-status{min-height:20px;margin-top:12px}.profile-channels{grid-column:1/-1;border-top:1px solid var(--line);padding-top:18px}.profile-channels .check-row{margin:12px 0}
.profile-avatar-editor.is-dragging{outline:2px solid #8b7be8;background:color-mix(in srgb,#8b7be8 14%,transparent)}
.avatar-preview{width:72px;height:72px;object-fit:cover;border-radius:12px;margin-bottom:10px}

/* Board folders keep their expansion while switching boards; children inherit permissions. */
.board-folder-toggle { gap:6px; }
.board-folder-toggle .folder-chevron { display:flex; width:12px; flex-shrink:0; }
.board-folder-toggle .folder-chevron svg { width:12px; }
.board-folder-toggle[aria-expanded="true"] .folder-chevron { transform:rotate(90deg); }
.board-folder-children { margin-left:15px; padding-left:5px; border-left:1px solid var(--line); }
.board-folder-children[hidden] { display:none; }
.board-privacy { display:flex; margin-left:auto; flex-shrink:0; opacity:.75; }
.board-privacy svg { width:14px; height:14px; }

body:has(.modal-shade) #work-focus { z-index:45; }
