/* Generated from styles.css; edit the source, then prepare-frontend.py. */


.kanban-page {
  display: grid;
  gap: 12px;
}

.kanban-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.5fr) minmax(180px, 0.8fr) auto;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.kanban-create-form input,
.kanban-create-form select,
.kanban-create-form textarea {
  width: 100%;
  border: 1px solid rgba(117, 111, 134, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  outline: none;
}

.kanban-create-form input,
.kanban-create-form select,
.kanban-create-form textarea {
  min-height: 48px;
  padding: 12px 13px;
  font-size: 14px;
  font-weight: 650;
}

.kanban-create-form textarea {
  resize: none;
}

.kanban-create-form input:focus,
.kanban-create-form select:focus,
.kanban-create-form textarea:focus {
  border-color: rgba(117, 66, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

.kanban-create-form .button {
  min-height: 48px;
  border-radius: 8px;
}

.kanban-save-status {
  display: inline-flex;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kanban-save-status.online {
  background: var(--green-soft);
  color: var(--green-dark);
}

.kanban-save-status.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.kanban-search-empty {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(117, 111, 134, 0.26);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  align-items: start;
}

.kanban-auth-gate {
  grid-column: 1 / -1;
  min-height: min(520px, calc(100vh - 190px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #333;
  padding: 40px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.kanban-auth-gate span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kanban-auth-gate h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
}

.kanban-auth-gate p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 650;
}

.kanban-auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.kanban-auth-gate-actions .button {
  min-width: 132px;
}

/* codex-kanban-six-columns-desktop-20260521 */
@media (min-width: 1360px) {
  .kanban-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }}

.kanban-column-title-button[draggable="true"] {
  cursor: grab;
}

.kanban-column-title-button[draggable="true"]:active,
.kanban-column.is-column-dragging .kanban-column-title-button {
  cursor: grabbing;
}

.kanban-column.is-column-drop-before::before,
.kanban-column.is-column-drop-after::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 22;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(184, 250, 24, 0.16), 0 12px 28px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.kanban-column.is-column-drop-before::before {
  left: 6px;
}

.kanban-column.is-column-drop-after::after {
  right: 6px;
}

.kanban-column.has-dark-background .kanban-column-head h3,
.kanban-column.has-dark-background .kanban-column-title-button,
.kanban-column.has-dark-background .kanban-column-secondary-title {
  color: #fff;
}

.kanban-column.has-dark-background .kanban-column-head strong {
  color: rgba(255, 255, 255, 0.72);
}

.kanban-column.has-dark-background .kanban-column-title-button:hover,
.kanban-column.has-dark-background .kanban-column-title-button:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.kanban-column.has-custom-text .kanban-column-head h3,
.kanban-column.has-custom-text .kanban-column-title-button,
.kanban-column.has-custom-text .kanban-column-secondary-title,
.kanban-column.has-custom-text .kanban-column-head strong,
.kanban-column.has-custom-text .kanban-quick-add {
  color: var(--kanban-column-text);
}

.kanban-column.has-custom-text .kanban-column-title-button:hover,
.kanban-column.has-custom-text .kanban-column-title-button:focus-visible {
  color: var(--kanban-column-text);
  text-decoration: underline;
}

.kanban-column.has-custom-text .kanban-quick-add:hover,
.kanban-column.has-custom-text .kanban-quick-add:focus-visible {
  color: var(--kanban-column-text);
}

.kanban-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.kanban-column-head h3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.kanban-column-head:not(:has(.kanban-column-secondary-title)) h3 {
  grid-column: 1 / 3;
}

.kanban-column-title-button {
  appearance: none;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 0 0 6px;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.kanban-column-add-card {
  appearance: none;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(117, 66, 217, 0.1);
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  align-items: center;
  justify-content: center;
  justify-self: end;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-column-add-card {
    display: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-head h3 {
    grid-template-columns: minmax(0, 1fr);
  }}

.kanban-column-title-button:hover,
.kanban-column-title-button:focus-visible,
.kanban-column-add-card:hover,
.kanban-column-add-card:focus-visible {
  color: var(--purple);
  outline: none;
}

.kanban-column-add-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.16);
}

.kanban-column-secondary-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-column-head strong {
  color: var(--muted);
  font-size: 14px;
}

.kanban-column-head-actions {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.kanban-column-action {
  display: inline-flex;
  width: 32px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.kanban-column.has-custom-text .kanban-column-action {
  color: var(--kanban-column-text);
}

.kanban-column-action:hover,
.kanban-column-action:focus-visible,
.kanban-column-action[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  outline: none;
}

.kanban-column.has-custom-text .kanban-column-action:hover,
.kanban-column.has-custom-text .kanban-column-action:focus-visible,
.kanban-column.has-custom-text .kanban-column-action[aria-expanded="true"] {
  color: var(--kanban-column-text);
}

.kanban-column-action svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.kanban-column-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 7px;
  width: min(240px, calc(100vw - 48px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(9, 8, 18, 0.88);
  box-shadow: 0 20px 48px rgba(9, 8, 18, 0.34);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.kanban-column-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 440px;
  overflow: visible;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-archive-month {
    grid-column: 1 / -1;
    margin: 24px 0 20px;
    color: #b3ff00;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    text-align: right;
  }}

.kanban-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 120px;
  overflow: visible;
  border: 1px solid rgba(117, 111, 134, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  padding: 12px;
  cursor: grab;
}

.kanban-card-member-list,
.kanban-card-member-avatar {
  display: none;
}

.kanban-card-column-text {
  display: none;
}

.kanban-card.has-action-menu {
  z-index: 40;
}

.kanban-card.is-dragging {
  opacity: 0.52;
  cursor: grabbing;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-card.is-drag-source {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--kanban-drag-width);
    opacity: 0;
    pointer-events: none;
  }

  body:has(.kanban-card.is-drag-source) .kanban-column-body {
    overflow-anchor: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card.kanban-drag-placeholder {
    height: var(--kanban-drag-height);
    min-height: var(--kanban-drag-height);
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0.4;
    border: 1px dashed var(--purple);
    box-shadow: none;
    pointer-events: none;
  }}

.kanban-card.is-drop-before::after,
.kanban-card.is-drop-after::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  z-index: 5;
  height: 2px;
  border-radius: 999px;
  background: #b8fa18;
  box-shadow: 0 0 0 1px rgba(184, 250, 24, 0.24);
  pointer-events: none;
}

.kanban-card.is-drop-before::after {
  top: -6px;
}

.kanban-card.is-drop-after::after {
  bottom: -6px;
}

.kanban-card-head {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-right: 26px;
}

.kanban-card-head strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
}

.kanban-card-head.is-title-empty {
  margin-bottom: -4px;
}

.kanban-card-title-placeholder {
  min-width: 0;
}

.kanban-card > .kanban-card-action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #090811;
  color: #fff;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(9, 8, 17, 0.18);
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.kanban-card:not(.has-image) .kanban-card-action {
  transform: none;
}

.kanban-card-action:hover,
.kanban-card-action:focus-visible,
.kanban-card-action[aria-expanded="true"] {
  color: #fff;
  opacity: 0.9;
  outline: none;
}

.kanban-card-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(9, 8, 17, 0.18), 0 8px 18px rgba(9, 8, 17, 0.18);
}

.kanban-card-action svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.kanban-card-action svg path {
  fill: none;
  stroke: currentColor;
}

.kanban-card > .kanban-card-action-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: 80;
  display: grid;
  gap: 7px;
  width: min(240px, calc(100vw - 48px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(9, 8, 18, 0.88);
  box-shadow: 0 20px 48px rgba(9, 8, 18, 0.34);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.kanban-card > .kanban-card-action-menu.is-member-menu {
  top: calc(100% - 40px);
  right: auto;
  bottom: auto;
  left: calc(100% + 8px);
}

.kanban-card-action-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  align-items: center;
  text-align: left;
}

.kanban-card-action-item:hover,
.kanban-card-action-item:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: none;
}

.kanban-card-action-item.is-danger {
  border-color: rgba(255, 99, 99, 0.32);
  background: rgba(255, 99, 99, 0.12);
  color: #ffd0d0;
}

.kanban-card-action-item.is-danger:hover,
.kanban-card-action-item.is-danger:focus-visible {
  background: rgba(255, 99, 99, 0.2);
  color: #fff;
}

.kanban-card-title-form {
  display: grid;
  gap: 9px;
}

.kanban-card-title-form label {
  color: rgba(255, 255, 255, 0.72);
}

.kanban-card-title-form input {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  padding: 9px 10px;
}

.kanban-card-title-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.kanban-card-title-actions .button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.kanban-card-title-actions .button:hover {
  transform: none;
}

.kanban-card-details {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
  max-height: 6lh;
}

.kanban-card-details.is-primary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  max-height: 8lh;
}

/* codex-milio-board-card-rich-text-20260810 */
.kanban-card-details.is-rich-text {
  overflow-wrap: anywhere;
}

.kanban-card-details.is-rich-text > div,
.kanban-card-details.is-rich-text > p {
  margin: 0;
}

.kanban-card-details.is-rich-text ul,
.kanban-card-details.is-rich-text ol {
  margin: 6px 0 0 18px;
  padding: 0;
}

.kanban-card-details.is-rich-text li {
  margin: 2px 0;
}

.kanban-card-details.is-rich-text code,
.kanban-rich-text-editor code {
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.kanban-card-details.is-rich-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.kanban-modal-open,
body.kanban-column-filter-modal-open{
  overflow: hidden;
}

.kanban-card-comments-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.kanban-card-comment {
  display: grid;
  position: relative;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid rgba(117, 111, 134, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 38px 26px 11px;
}

.kanban-card-comment.is-system {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 14px;
}

.kanban-card-comment.has-author-card-background {
  border-color: color-mix(in srgb, var(--kanban-comment-bg) 72%, #ffffff);
  background: var(--kanban-comment-bg);
}

.kanban-card-comment-avatar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(117, 111, 134, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(117, 66, 217, 0.96), rgba(88, 48, 176, 0.96));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(8, 7, 16, 0.12);
}

.kanban-card-comment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kanban-card-comment-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.kanban-card-comment-head {
  display: block;
  align-items: baseline;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.kanban-card-comment-author {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card-comment.has-author-card-background .kanban-card-comment-author,
.kanban-card-comment.has-author-card-background .kanban-card-comment-text {
  color: var(--kanban-comment-text);
}

.kanban-card-comment.has-author-card-background .kanban-card-comment-time {
  color: color-mix(in srgb, var(--kanban-comment-text) 68%, transparent);
}

.kanban-card-comment.has-author-card-background .kanban-card-comment-delete {
  color: color-mix(in srgb, var(--kanban-comment-text) 72%, transparent);
}

.kanban-card-comment-time {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

.kanban-card-comment-delete {
  display: inline-flex;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, background-color 0.16s ease;
}

.kanban-card-comment-delete svg {
  display: block;
  width: 15px;
  height: 15px;
}

.kanban-card-comment:hover .kanban-card-comment-delete,
.kanban-card-comment:focus-within .kanban-card-comment-delete {
  opacity: 1;
  pointer-events: auto;
}

.kanban-card-comment-delete:hover,
.kanban-card-comment-delete:focus-visible {
  background: rgba(9, 8, 18, 0.06);
  outline: none;
}

.kanban-card-comment-text {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}

.kanban-card-comment.is-system .kanban-card-comment-body {
  gap: 0;
}

.kanban-card-comment.is-system .kanban-card-comment-text {
  font-size: 14px;
}

.kanban-card-comments-empty {
  margin: 0;
  border: 1px dashed rgba(117, 111, 134, 0.24);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px;
}

.kanban-card-comment-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(117, 111, 134, 0.14);
  padding-top: 10px;
}

.kanban-card-comment-input-shell {
  position: relative;
  width: 100%;
  min-height: 104px;
  border: 1px solid rgba(117, 111, 134, 0.22);
  border-radius: 8px;
  background: #fff;
}

.kanban-card-comment-form-avatar {
  display: inline-flex;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(117, 111, 134, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(117, 66, 217, 0.96), rgba(88, 48, 176, 0.96));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 7, 16, 0.14);
}

.kanban-card-comment-form-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kanban-card-comment-textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  outline: none;
}

.kanban-card-comment-textarea {
  min-height: 102px;
  max-height: 160px;
  padding: 14px 10px 10px 62px;
  resize: vertical;
}

.kanban-card-comment-textarea:focus {
  box-shadow: none;
}

.kanban-card-comment-input-shell:focus-within {
  border-color: rgba(117, 66, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

.kanban-card-comment-submit {
  justify-self: end;
  min-height: 34px;
  padding: 8px 14px;
}

.kanban-sync-conflict {
  width: min(560px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.kanban-sync-conflict h2 {
  margin: 0;
  font-size: 20px;
}

.kanban-sync-conflict-body {
  padding: 16px;
  overflow-wrap: anywhere;
}

.kanban-sync-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.kanban-card-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.kanban-card-checklist-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(117, 111, 134, 0.2);
  border-radius: 8px;
  background: rgba(117, 66, 217, 0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 12px;
  white-space: nowrap;
  cursor: pointer;
}

.kanban-card-checklist-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.kanban-card-checklist-button:hover,
.kanban-card-checklist-button:focus-visible {
  border-color: rgba(117, 66, 217, 0.34);
  background: rgba(117, 66, 217, 0.14);
}

.kanban-card-comments-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  flex: 0 0 40px;
  gap: 0;
  border: 1px solid rgba(117, 111, 134, 0.18);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
  cursor: pointer;
}

.kanban-card-comments-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #7542d9;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 0 4px;
}

.kanban-card-comments-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  .kanban-card-repeat-toggle { color: #bbb; }
  .kanban-card-repeat-toggle.is-active { color: #bd9af9; }
  .kanban-card-repeat-panel {
    flex: 0 0 auto;
    width: min(100%, 420px);
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #505050;
    border-radius: 8px;
    background: #303030;
  }
  .kanban-card-repeat-panel > p { margin: 12px 0 0; color: #bbb; font-size: 12px; }}

.kanban-card-comments-toggle:hover,
.kanban-card-comments-toggle:focus-visible {
  border-color: rgba(117, 66, 217, 0.42);
  color: var(--purple);
  outline: none;
}

.kanban-card-checklist {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 2px;
}

.kanban-card-checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  height: auto;
  min-height: 34px;
  border: 1px solid rgba(117, 111, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0 12px 0 10px;
}

.kanban-card-checklist-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 8px 0 0;
  flex: 0 0 auto;
  accent-color: #7542d9;
}

.kanban-card-checklist-row textarea {
  min-width: 0;
  flex: 1 1 auto;
  height: 30px;
  min-height: 30px;
  resize: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  padding: 4px 0;
  outline: none;
  box-shadow: none;
}

.kanban-card-checklist-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b8795;
  font: inherit;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 2px;
  cursor: pointer;
}

.kanban-card-checklist-delete:hover,
.kanban-card-checklist-delete:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ff6245;
  outline: none;
}

.kanban-card-checklist-text {
  white-space: pre-wrap;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kanban-card-board-checklist .kanban-card-checklist-row {
  height: auto;
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  cursor: default;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.kanban-card .kanban-card-board-checklist {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.kanban-card .kanban-card-board-checklist .kanban-card-checklist-text {
  flex: 1 1 0;
  max-width: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kanban-card-checklist-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 170px;
  overflow: hidden;
}

.kanban-card-checklist-link {
  display: inline-flex;
  align-items: center;
  height: 24px;
  max-width: 82px;
  padding: 0 8px;
  border: 1px solid rgba(117, 66, 217, 0.24);
  border-radius: 6px;
  background: rgba(117, 66, 217, 0.08);
  color: #4e249f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-checklist-link:hover,
.kanban-card-checklist-link:focus-visible {
  border-color: rgba(117, 66, 217, 0.48);
  background: rgba(117, 66, 217, 0.14);
  color: #35137d;
  outline: none;
}

.kanban-text-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}

.kanban-text-link:hover,
.kanban-text-link:focus-visible {
  color: var(--green);
  outline: none;
}

.kanban-card-checklist-row:focus-within {
  border-color: rgba(117, 66, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

/* codex-milio-rich-text-editor-20260810 */
.kanban-rich-text-field {
  display: grid;
  grid-template-rows: minmax(300px, 1fr);
  gap: 0;
  min-height: 0;
}

.kanban-rich-text-editor ul,
.kanban-rich-text-editor ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.kanban-rich-text-editor li {
  margin: 3px 0;
}

.kanban-rich-text-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #292929;
}

.kanban-rich-text-toolbar button,
.kanban-rich-text-toolbar select,
.kanban-rich-text-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #333;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.kanban-rich-text-toolbar select {
  width: 62px;
  padding: 0 5px;
}

.kanban-rich-text-toolbar button:hover,
.kanban-rich-text-toolbar button:focus-visible,
.kanban-rich-text-toolbar select:hover,
.kanban-rich-text-toolbar select:focus-visible,
.kanban-rich-text-color:hover,
.kanban-rich-text-color:focus-within {
  border-color: rgba(156, 111, 255, 0.8);
  background: #3a3150;
  outline: none;
}

.kanban-rich-text-color {
  position: relative;
  overflow: hidden;
  font-weight: 700;
}

.kanban-rich-text-color span {
  border-bottom: 3px solid currentColor;
  line-height: 18px;
}

.kanban-rich-text-color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.kanban-rich-text-editor {
  min-height: 300px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  outline: none;
}

.kanban-rich-text-editor:focus {
  border-color: rgba(156, 111, 255, 0.8);
}

.kanban-rich-text-editor a {
  color: #bda4ff;
  text-decoration: underline;
}

.kanban-card-attachments-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.kanban-card-attachments-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.kanban-image-lightbox-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kanban-image-lightbox-nav:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.kanban-image-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #71717a;
  border-radius: 4px;
  background: #18181b;
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  touch-action: manipulation;
}

.kanban-image-lightbox-nav svg { transform: rotate(-90deg); }
.kanban-image-lightbox-nav.is-prev { left: 8px; }
.kanban-image-lightbox-nav.is-next { right: 8px; }

@media (max-width: 900px) {

  .kanban-image-lightbox-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.88);
  }

  .kanban-image-lightbox {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: calc(100dvh - 32px);
    max-height: 900px;
    min-width: 0;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #18181b;
    color: #fff;
  }

  .kanban-image-lightbox img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
  }

  .kanban-image-lightbox figcaption {
    padding: 12px 16px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .kanban-image-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #71717a;
    border-radius: 4px;
    background: #18181b;
    color: #fff;
    font-size: 28px;
    line-height: 1;
  }}

.kanban-image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
}

@media (min-width: 901px) {

  .kanban-card-checklist-button {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
  }

  .kanban-card-checklist-button:hover,
  .kanban-card-checklist-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
  }

  .kanban-card-checklist-row {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
  }

  .kanban-card-checklist-row textarea {
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .kanban-card-checklist-row textarea::placeholder {
    color: rgba(232, 229, 240, 0.46);
  }

  .kanban-card-checklist-link {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .kanban-card-checklist-link:hover,
  .kanban-card-checklist-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .kanban-card-checklist-row:focus-within {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  }
  .kanban-card-comment-input-shell {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #333;
    color: #fff;
    box-shadow: none;
    color-scheme: dark;
  }
  .kanban-card-comment-textarea::placeholder {
    color: rgba(232, 229, 240, 0.62);
  }
  .kanban-card-comment-input-shell:focus-within {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  }

  .kanban-card-comment-textarea {
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .kanban-card-comments-title {
    color: rgba(232, 229, 240, 0.74);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .kanban-card-comments-empty {
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: rgba(232, 229, 240, 0.72);
  }

  .kanban-card-comment-form {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .kanban-card-comment-actions {
    color: #e4e4e7;
  }

  .kanban-card-comment-submit {
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
  }

  .kanban-card-comment-submit:hover,
  .kanban-card-comment-submit:focus-visible {
    border-color: rgba(117, 66, 217, 0.42);
    background: rgba(117, 66, 217, 0.22);
    box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
  }

  .kanban-card-comment {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(34, 34, 34, 0.72);
  }

  .kanban-card-comment-delete:hover,
  .kanban-card-comment-delete:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .kanban-card-comment-author,
  .kanban-card-comment-text {
    color: #fff;
  }

  .kanban-card-comment-time {
    color: rgba(232, 229, 240, 0.66);
  }

  .kanban-card-attachments-head {
    color: #e4e4e7;
  }

  .kanban-image-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 8, 18, 0.72);
    padding: 42px;
  }

  .kanban-image-lightbox {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #0f0e18;
    box-shadow: 0 32px 110px rgba(9, 8, 18, 0.46);
  }

  .kanban-image-lightbox img {
    display: block;
    width: min(88vw, 1700px);
    height: min(78vh, 900px);
    object-fit: contain;
    background: #111019;
  }

  .kanban-image-lightbox figcaption {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 10px 14px;
    text-transform: uppercase;
  }

  .kanban-image-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f0e18;
    font-size: 28px;
    line-height: 1;
  }

  .kanban-image-lightbox-close:hover,
  .kanban-image-lightbox-close:focus-visible {
    background: #fff;
    outline: none;
  }}

/* codex-settings-site-exchange-modal-20260531 */
@media (min-width: 901px) {

  .settings-modal .kanban-column-color-tile {
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }}

@media (max-width: 900px) {

  .kanban-card-checklist-button {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
  }}

.kanban-card-image {
  margin: 2px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(117, 111, 134, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.kanban-card-image img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.kanban-card-extra-images {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 6px 2px;
  margin: 0 -6px 2px;
}

.kanban-card-extra-image-button {
  display: block;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.kanban-card-extra-image-button.is-active {
  border-color: rgba(255, 255, 255, 0.72);
}

.kanban-card-extra-image-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.kanban-card-extra-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 50px;
  border: 1px solid rgba(117, 111, 134, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background .kanban-card {
    background: var(--kanban-card-bg);
    border-color: rgba(89, 71, 132, 0.16);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-text .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-text .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-text .kanban-card-details.is-primary,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-text .kanban-card-column-text {
    color: var(--kanban-card-text);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-column-text {
    display: block;
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .kanban-card > .kanban-card-action {
    display: none;
  }

  .kanban-card-head {
    padding-right: 0;
  }

  .kanban-card.has-image,
  .kanban-card.has-extra-images {
    --kanban-card-photo-inset: 12px;
    position: relative;
    height: max-content;
    min-height: max-content;
    grid-auto-rows: max-content;
  }

  .kanban-card.has-image .kanban-card-image {
    order: 1;
    aspect-ratio: var(--kanban-card-image-ratio, 16 / 10);
    margin: -12px -12px 0;
    border-width: 0 0 1px;
    border-radius: 8px 8px 0 0;
    background: transparent;
  }

  /* codex-kanban-card-image-full-width-no-crop-20260703 */
  .kanban-card.has-image .kanban-card-image img {
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .kanban-card.has-image .kanban-card-head {
    order: 2;
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  /* Keep the photo gallery above the card title and description. */
  .kanban-card.has-extra-images .kanban-card-extra-images {
    order: 1;
    align-items: flex-start;
    margin: calc(-1 * var(--kanban-card-photo-inset)) calc(-1 * var(--kanban-card-photo-inset)) 2px;
    padding: 0;
    border-radius: 8px 8px 0 0;
  }

  .kanban-card.has-extra-images .kanban-card-extra-image-button {
    border-radius: 0;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    border: 0;
  }

  .kanban-card.has-extra-images .kanban-card-extra-image {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
  }

  .kanban-card.has-extra-images .kanban-card-head {
    order: 2;
  }

  .kanban-card.has-image > .kanban-card-board-checklist {
    order: 4;
  }

  .kanban-card.has-extra-images > .kanban-card-board-checklist {
    order: 4;
  }

  .kanban-card.has-image .kanban-card-head.is-title-empty {
    margin-bottom: 0;
  }

  .kanban-card.has-image > .kanban-card-details {
    order: 4;
  }

  .kanban-card.has-extra-images > .kanban-card-details {
    order: 4;
  }

  /* codex-milio-x3-column-full-card-text-20260704 */
  /* codex-milio-x3-card-padding-x2-20260810 */
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card {
    --kanban-card-photo-inset: 24px;
    gap: 20px;
    padding: 24px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card.has-image .kanban-card-image {
    margin: -24px -24px 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-details.is-primary {
    display: block;
    overflow: visible;
    max-height: none;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  /* codex-milio-x3-no-photo-full-text-leading-title-20260725 */
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-column-body {
    grid-auto-rows: max-content;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-primary-title {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-details.is-primary.has-leading-title {
    font-size: 14px;
  }

  .kanban-card.has-image .kanban-card-files-badge {
    order: 5;
    align-self: end;
  }

  .kanban-card.has-extra-images .kanban-card-files-badge {
    order: 6;
  }

  .kanban-card.has-image .kanban-card-column-text {
    order: 3;
    margin-top: -4px;
  }

  .kanban-card.has-extra-images .kanban-card-column-text {
    order: 3;
  }

  .kanban-card.has-image .kanban-card-action {
    top: 8px;
    right: 8px;
  }

  .kanban-card.has-image .kanban-card-action-menu {
    top: 8px;
  }}

.kanban-quick-add {
  display: flex;
  min-height: 66px;
  width: 100%;
  border: 1px dashed rgba(117, 111, 134, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  cursor: pointer;
}

.kanban-quick-add:hover,
.kanban-quick-add:focus-visible,
.kanban-quick-add.is-file-over {
  color: color-mix(in srgb, var(--muted) 64%, #ffffff);
  outline: none;
}

.kanban-quick-form {
  display: grid;
  gap: 6px;
}

.kanban-quick-form textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(117, 111, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  resize: none;
  outline: none;
}

.kanban-quick-form textarea:focus {
  border-color: rgba(117, 66, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

.kanban-quick-voice-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-right: 8px;
}

.kanban-quick-file,
.kanban-quick-voice {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 8, 18, 0.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(9, 8, 17, 0.18);
}

.kanban-quick-file {
  position: relative;
  overflow: hidden;
}

.kanban-quick-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kanban-quick-file svg,
.kanban-quick-voice svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kanban-quick-file:hover,
.kanban-quick-file:focus-within,
.kanban-quick-voice:hover,
.kanban-quick-voice:focus-visible,
.kanban-quick-voice.is-listening {
  background: var(--purple);
  outline: none;
}

.kanban-quick-voice:disabled {
  cursor: default;
  opacity: 0.38;
}

.kanban-quick-attachment {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(117, 111, 134, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.kanban-quick-attachment img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.kanban-quick-attachment.is-file-list {
  padding: 10px;
}

.kanban-quick-file-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.kanban-file-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #f7f3ff;
  font-size: 12px;
  font-weight: 700;
}

.kanban-file-chip-icon {
  display: inline-flex;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.kanban-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-file-chip-size {
  color: rgba(247, 243, 255, 0.62);
  font-size: 11px;
  white-space: nowrap;
}

.kanban-quick-attachment-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(9, 8, 18, 0.82);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.kanban-card-files-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--green);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  cursor: pointer;
}

.kanban-card-files-badge:hover,
.kanban-card-files-badge:focus-visible {
  color: var(--ink);
  outline: none;
  filter: brightness(1.05);
}

.kanban-card-files-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.kanban-column-color-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
}

.kanban-column-color-reset {
  appearance: none;
  height: 30px;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  min-width: 88px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.kanban-column-color-native {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.kanban-column-color-native input[type="color"] {
  appearance: none;
  width: 38px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.kanban-column-color-native input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.kanban-column-color-native input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.kanban-column-color-native input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 5px;
}

.kanban-column-color-reset:hover,
.kanban-column-color-reset:focus-visible,
.kanban-column-color-native input[type="color"]:hover,
.kanban-column-color-native input[type="color"]:focus-visible {
  border-color: var(--purple);
  outline: none;
}

.kanban-column-color-reset.is-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(117, 66, 217, 0.2);
}

.kanban-column-color-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: var(--kanban-color-tile-bg, #fff);
  box-shadow: 0 0 0 1px rgba(89, 71, 132, 0.14);
  overflow: hidden;
}

/* codex-milio-column-color-clear-20260810 */
.kanban-column-color-tile-wrap {
  position: relative;
  min-width: 0;
}

.kanban-column-color-tile-wrap .kanban-column-color-tile {
  width: 100%;
  height: 100%;
}

.kanban-column-color-tile.is-empty {
  --kanban-color-tile-text: rgba(255, 255, 255, 0.72);
  background-color: #202020;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.055) 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.kanban-column-color-clear {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.kanban-column-color-clear:hover,
.kanban-column-color-clear:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.72);
  outline: none;
}

.kanban-column-color-clear[hidden] {
  display: none;
}

.settings-kanban-column-grid .kanban-column-color-tile > span {
  position: relative;
  z-index: 1;
  color: var(--kanban-color-tile-text, var(--ink));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.kanban-column-color-tile input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  opacity: 0;
  cursor: pointer;
}

.kanban-column-color-tile:hover,
.kanban-column-color-tile:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(117, 66, 217, 0.2);
}

@media (max-width: 1100px) {

  .kanban-create-form {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.45fr) minmax(0, 1fr) auto;
  }

  .kanban-board {
    overflow-x: auto;
    padding-bottom: 6px;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
  }}

/* codex-trello-hide-topbar-controls-desktop-20260522 */
@media (min-width: 901px) { .automation-rule .kanban-card-action-item {
    border: 1px solid #606060; border-radius: 8px; background: #303030;
    color: #f4f5f7; box-shadow: none; padding: 10px 16px; cursor: pointer;
  }
  .automation-rule .kanban-repeat-form { margin-top: 18px; border-top: 1px solid #505050; padding-top: 18px; }}

/* codex-trello-compact-transparent-quick-add-desktop-20260522 */
@media (max-width: 900px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add {
    display: none;
  }}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add {
    min-height: 33px;
    border: 0;
    background: transparent;
    font-weight: 500;
    gap: 0.5em;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add-plus {
    display: inline-block;
    font-size: 1.4em;
    line-height: 1;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add.is-file-over {
    color: rgba(255, 255, 255, 0.84);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add {
    color: var(--kanban-column-text);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add.is-file-over {
    color: color-mix(in srgb, var(--kanban-column-text) 72%, #ffffff);
  }}

/* codex-kanban-board-design-system-222-333-desktop-20260522 */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .kanban-board {
    gap: 14px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-text) .kanban-column-head h3,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-text) .kanban-column-title-button {
    color: rgba(255, 255, 255, 0.92);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-text) .kanban-column-title-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-text) .kanban-column-title-button:focus-visible {
    color: var(--purple-soft);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-text) .kanban-column-head strong {
    color: rgba(255, 255, 255, 0.62);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-background) .kanban-card {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #222;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background .kanban-card {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background:not(.has-custom-card-text) .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background:not(.has-custom-card-text) .kanban-card-details.is-primary {
    color: #090811;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background:not(.has-custom-card-text) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background:not(.has-custom-card-text) .kanban-card-column-text {
    color: rgba(9, 8, 17, 0.68);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-background {
    background: var(--kanban-card-bg);
    border-color: rgba(255, 255, 255, 0.12);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-background:not(.has-custom-card-text) .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-background:not(.has-custom-card-text) .kanban-card-details.is-primary {
    color: #090811;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-background:not(.has-custom-card-text) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-background:not(.has-custom-card-text) .kanban-card-column-text {
    color: rgba(9, 8, 17, 0.68);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card {
    isolation: isolate;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card.has-action-menu {
    z-index: 220;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0);
    pointer-events: none;
    transition: background-color 0.16s ease;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
    pointer-events: none;
    transition: box-shadow 0.16s ease;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > * {
    position: relative;
    z-index: 1;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu {
    position: absolute;
    top: 38px;
    right: auto;
    bottom: auto;
    left: 8px;
    z-index: 220;
    width: min(240px, calc(100% - 16px));
    max-height: min(320px, calc(100vh - 220px));
    overflow-y: auto;
  }

  /* Match the owning column, including when the menu is in the top layer. */
  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu {
    --kanban-menu-text: #f4f5f7;
    --kanban-menu-danger: #ffd0d0;
    background: var(--kanban-column-bg, #151515);
    color: var(--kanban-menu-text);
    backdrop-filter: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-background:not(.has-dark-background) .kanban-card > .kanban-card-action-menu {
    --kanban-menu-text: #090811;
    --kanban-menu-danger: #a41515;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu :is(.kanban-card-action-item, .kanban-card-title-form label, .kanban-repeat-form, .kanban-repeat-form label) {
    color: var(--kanban-menu-text);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu .kanban-card-action-item.is-danger {
    color: var(--kanban-menu-danger);
  }

  /* Keep the menu in the card's event tree, above all column scroll clipping. */
  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu[popover] {
    position: fixed;
    inset: auto;
    margin: 0;
    width: min(280px, calc(100vw - 16px));
    height: max-content;
    min-height: 0;
    align-content: start;
    box-sizing: border-box;
    overscroll-behavior: contain;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu[popover]:not(:popover-open) {
    display: none;
  }

  .kanban-repeat-form,
  .kanban-repeat-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .kanban-repeat-form {
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 400;
  }

  .kanban-repeat-form label {
    color: #ddd;
  }

  .kanban-repeat-form input,
  .kanban-repeat-form select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color-scheme: dark;
    box-shadow: none;
    color: #f4f5f7;
    background: #282828;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px;
  }

  .kanban-repeat-form p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card > .kanban-card-action-menu.is-member-menu {
    top: 38px;
    right: auto;
    bottom: auto;
    left: 8px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card.is-keyboard-active {
    outline: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card:hover::before,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card:focus-visible::before,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card.is-keyboard-active::before {
    background: transparent;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card:hover::after,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card:focus-visible::after,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card.is-keyboard-active::after {
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-background .kanban-card:hover::before,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-background .kanban-card:focus-visible::before,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-background .kanban-card.is-keyboard-active::before {
    background: var(--kanban-card-hover-bg);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-border .kanban-card:hover::after,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-border .kanban-card:focus-visible::after,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-hover-border .kanban-card.is-keyboard-active::after {
    box-shadow: inset 0 0 0 1px var(--kanban-card-hover-border);
  }

  body:has(#kanbanView:not(.is-hidden)) #kanbanBoard.is-keyboard-navigating .kanban-card:hover:not(.is-keyboard-active)::before {
    background: rgba(255, 255, 255, 0);
  }

  body:has(#kanbanView:not(.is-hidden)) #kanbanBoard.is-keyboard-navigating .kanban-card:hover:not(.is-keyboard-active)::after {
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card.has-member {
    padding-bottom: 44px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    max-width: calc(100% - 20px);
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list .kanban-card-member-avatar {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(117, 66, 217, 0.96), rgba(88, 48, 176, 0.96));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(8, 7, 16, 0.22);
    cursor: pointer;
    pointer-events: auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list .kanban-card-member-avatar:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list .kanban-card-member-avatar:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list .kanban-card-member-avatar[aria-expanded="true"] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.28), 0 8px 18px rgba(8, 7, 16, 0.22);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-list .kanban-card-member-avatar + .kanban-card-member-avatar {
    margin-left: -7px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-member-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-text) .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-text) .kanban-card-details.is-primary {
    color: rgba(255, 255, 255, 0.92);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-text) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-text) .kanban-card-column-text {
    color: rgba(255, 255, 255, 0.62);
  }

  /* codex-milio-card-title-excerpt-balance-20260816 */
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-head strong {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.28;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-details.is-primary {
    max-height: 6lh;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-details.is-primary {
    max-height: 8lh;
  }

  /* codex-milio-x3-content-style-unified-20260725 */
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-checklist-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3:not(.has-custom-card-text):not(.has-custom-card-background) .kanban-card:not(.has-custom-card-background):not(.keeps-source-colors) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3:not(.has-custom-card-text):not(.has-custom-card-background) .kanban-card:not(.has-custom-card-background) .kanban-card-checklist-text {
    color: rgba(255, 255, 255, 0.92);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3.has-custom-card-background:not(.has-custom-card-text) .kanban-card:not(.keeps-source-colors) .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card.has-custom-card-background:not(.has-custom-card-text):not(.keeps-source-colors) .kanban-card-details {
    color: #090811;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-width-3 .kanban-card-primary-title {
    font-size: 16px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-text .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-text .kanban-card-details,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-text .kanban-card-details.is-primary,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-text .kanban-card-column-text,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.has-custom-card-text .kanban-card-checklist-text {
    color: var(--kanban-card-text);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-board-checklist {
    margin: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-board-checklist .kanban-card-checklist-row {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-right: 0;
    padding-left: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-text) .kanban-card-board-checklist .kanban-card-checklist-text {
    color: rgba(255, 255, 255, 0.92);
  }

  /* codex-milio-board-checklist-white-text-20260808 */
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card .kanban-card-board-checklist .kanban-card-checklist-text {
    color: rgba(255, 255, 255, 0.92);
  }

  /* Keep the first member's palette (or a completed card's source palette) in every column. */
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.keeps-source-colors {
    background: var(--kanban-card-bg);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.keeps-source-colors .kanban-card-head strong,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.keeps-source-colors .kanban-card-details.is-primary {
    color: var(--kanban-source-title);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.keeps-source-colors .kanban-card-details:not(.is-primary),
  body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card.keeps-source-colors .kanban-card-column-text {
    color: var(--kanban-source-details);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card.has-image .kanban-card-image {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-action {
    background: #090811;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-action:focus-visible {
    box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.34), 0 10px 22px rgba(0, 0, 0, 0.26);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-background .kanban-card-action {
    background: var(--kanban-column-bg);
    color: #090811;
    opacity: 1;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-background.has-dark-background .kanban-card-action {
    color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-action {
    color: rgba(255, 255, 255, 0.72);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-action:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column-action:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column-action[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.18);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-action-menu,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column-action-menu {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(34, 34, 34, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-title-form input,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form textarea {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #222;
    color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.54);
    font-weight: 400;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form textarea:focus {
    border-color: rgba(117, 66, 217, 0.58);
    box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.16);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add {
    color: rgba(255, 255, 255, 0.58);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add.is-file-over {
    color: rgba(255, 255, 255, 0.84);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body {
    padding-bottom: 62px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add {
    color: var(--kanban-column-text);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-text .kanban-quick-add.is-file-over {
    color: color-mix(in srgb, var(--kanban-column-text) 72%, #ffffff);
  }}

/* codex-kanban-quick-image-description-bottom-desktop-20260523 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) {
    gap: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment):focus-within {
    border-radius: 16px;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) .kanban-quick-attachment {
    order: 1;
    border-color: var(--kanban-card-bg, #222);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #222;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) .kanban-quick-attachment img {
    max-height: 220px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) textarea {
    order: 2;
    min-height: 76px;
    border-color: var(--kanban-quick-input-border, rgba(255, 255, 255, 0.1));
    border-radius: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) .kanban-quick-voice-row {
    order: 3;
    padding-top: 6px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) textarea:focus {
    box-shadow: none;
  }}

/* Inline input follows the column background and the ordinary card border. */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form textarea {
    border-color: var(--kanban-quick-input-border, rgba(255, 255, 255, 0.1));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 400;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form textarea:focus {
    border-color: var(--kanban-quick-input-border, rgba(255, 255, 255, 0.1));
    box-shadow: none;
  }}

/* codex-kanban-quick-add-voice-input-desktop-20260523 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-voice-row {
    min-height: 0;
    align-items: center;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:has([data-kanban-quick-form]) .kanban-column-body {
    min-height: 0;
    padding-bottom: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-voice {
    background: #090811;
    color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-voice:hover,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-voice:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-voice.is-listening {
    background: var(--purple);
  }}

/* codex-kanban-column-bottom-gap-shorter-desktop-20260523 */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body {
    min-height: auto;
    padding-bottom: 0;
  }}

/* codex-kanban-column-filter-modal-20260523 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-board {
    grid-template-columns: none;
    grid-auto-flow: column;
    /* codex-milio-six-columns-desktop-20260612 */
    grid-auto-columns: clamp(276px, 15.3525vw, 313.95px);
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    padding-bottom: 10px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board:has(.kanban-card.has-action-menu) {
    overflow-x: auto;
    overflow-y: visible;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board::-webkit-scrollbar {
    height: 6px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board::-webkit-scrollbar-track {
    background: transparent;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
  }

  .kanban-column-filter-modal {
    width: min(520px, calc(100vw - 96px));
    height: auto;
    max-height: calc(100vh - 128px);
    grid-template-rows: auto minmax(0, 1fr);
    background: #222;
  }

  #kanbanColumnFilterModalRoot .kanban-column-filter-modal {
    width: min(1380px, calc(100vw - 64px));
  }

  .kanban-display-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .kanban-display-filter-section { min-width: 0; }
  .kanban-display-filter-section h3 { margin: 0 0 14px; font-size: 18px; }
  .kanban-display-filter-section .kanban-column-filter-row { gap: 12px; padding: 12px; border-radius: 6px; }
  .kanban-display-filter-section .kanban-column-filter-name { font-size: 16px; font-weight: 500; }
  .kanban-display-filter-section .kanban-column-filter-switch { width: 52px; height: 30px; }
  .kanban-display-filter-section .kanban-column-filter-switch-thumb { width: 22px; height: 22px; top: 3px; left: 3px; box-shadow: none; }
  .kanban-display-filter-section .kanban-column-filter-switch-track { box-shadow: none; }
  .kanban-display-filter-section .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track { background: var(--purple); }
  .kanban-display-filter-section .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track .kanban-column-filter-switch-thumb { transform: translateX(22px); }
  .kanban-member-filter-list { display: grid; gap: 10px; }
  .kanban-member-filter-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid #555; border-radius: 6px; cursor: pointer; }
  .kanban-member-filter-row:has(input:checked) { border-color: var(--purple); background: rgba(117, 66, 217, .16); }
  .kanban-member-filter-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--purple); flex: 0 0 auto; }
  .kanban-member-filter-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 50%; background: #444; color: #fff; }
  .kanban-member-filter-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .kanban-member-filter-name { min-width: 0; overflow-wrap: anywhere; }
  .kanban-member-filter-reset { margin: 0 0 12px; padding: 8px 12px; border: 1px solid #666; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
  .kanban-member-filter-reset:disabled { opacity: .5; cursor: default; }
  .kanban-filter-local-note { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: #bbb; }
  body.kanban-column-totals-hidden .kanban-monthly-done { display: none; }

  .kanban-column-filter-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .kanban-column-filter-modal-head h2 {
    margin: 0;
  }

  .kanban-column-filter-modal-body {
    overflow: auto;
    padding: 18px;
  }

  .kanban-preference-status {
    margin: 0 0 16px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
  }

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

  .kanban-column-filter-row {
    display: flex;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #333;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 16px 0 20px;
  }

  #kanbanColumnFilterModalRoot .kanban-column-filter-list {
    gap: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) #kanbanColumnFilterModalRoot .kanban-column-filter-row {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) #kanbanColumnFilterModalRoot .kanban-column-filter-row + .kanban-column-filter-row {
    border-top: 1px solid color-mix(in srgb, var(--page-overlay-border, #49395f) 50%, transparent);
  }

  .kanban-column-filter-name {
    min-width: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .kanban-column-filter-switch {
    position: relative;
    display: inline-flex;
    width: 74px;
    height: 40px;
    flex: 0 0 auto;
  }

  .kanban-column-filter-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .kanban-column-filter-switch-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: #444;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  }

  .kanban-column-filter-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease;
  }

  .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track {
    border-color: rgba(117, 66, 217, 0.86);
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  }

  .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track .kanban-column-filter-switch-thumb {
    transform: translateX(34px);
  }

  .kanban-column-filter-switch input:focus-visible + .kanban-column-filter-switch-track {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 3px;
  }

  .kanban-column-filter-switch input:disabled {
    cursor: not-allowed;
  }

  .kanban-column-filter-switch input:disabled + .kanban-column-filter-switch-track {
    opacity: 0.62;
  }}

/* codex-kanban-column-scroll-desktop-20260611 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-page {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board {
    height: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-head {
    flex: 0 0 auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 8px;
    overscroll-behavior: contain;
    margin-right: 4px;
    padding-right: 0;
    padding-bottom: 0;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    scrollbar-width: thin;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body::-webkit-scrollbar {
    width: 8px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body::-webkit-scrollbar-track {
    background: transparent;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    background-clip: padding-box;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
    background-clip: padding-box;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-add,
  body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form {
    flex: 0 0 auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-board:has(.kanban-archive-panel) {
    margin-right: calc(var(--kanban-archive-width) + 14px - 24px);
  }}

/* codex-milio-travel-ordinary-column-height-desktop-20260703 */
@media (min-width: 901px) {
  body.is-kanban-board-travel:has(#kanbanView:not(.is-hidden)) .kanban-board {
    align-items: stretch;
  }}

@media (max-width: 900px) {
  .kanban-create-form,
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .kanban-column-body {
    min-height: 120px;
  }}

/* codex-milio-comments-toggle-20260810 */
@media (min-width: 901px) {

  .kanban-card-comments-panel {
    display: grid;
    grid-template-rows: auto minmax(120px, 1fr) auto;
    gap: 12px;
    min-height: 0;
  }}

@media (max-width: 900px) {

  .kanban-card-comments-toggle {
    display: none;
  }}

/* codex-milio-rich-text-plain-surface-20260810 */
.kanban-card-detail-modal .kanban-rich-text-editor,
.kanban-card-detail-modal .kanban-rich-text-editor:focus {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* codex-milio-editor-color-inheritance-h1-20260810 */
.kanban-card-detail-modal .kanban-rich-text-editor span {
  color: inherit;
}

.kanban-card-detail-modal .kanban-rich-text-editor h1 {
  margin: 0 0 0.65em;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.kanban-card-detail-modal .kanban-rich-text-editor h1 span,
.kanban-card-details.is-rich-text h1 span {
  font-size: inherit !important;
}

.kanban-card-details.is-rich-text h1 {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.kanban-rich-text-toolbar .kanban-rich-text-heading-button {
  width: 38px;
  flex: 0 0 38px;
  font-size: 12px;
  font-weight: 800;
}

.kanban-rich-text-toolbar .kanban-rich-text-clear-button {
  width: 38px;
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 800;
}

/* codex-milio-rich-text-templates-20260810 */
.kanban-rich-text-toolbar.kanban-rich-text-templates {
  gap: 8px;
}

.kanban-rich-text-toolbar .kanban-rich-text-template {
  width: auto;
  min-width: 104px;
  padding: 0 12px;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.kanban-rich-text-template svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.kanban-rich-text-template.is-date {
  color: #fff200;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kanban-rich-text-template.is-time {
  color: #55d98b;
}

.kanban-rich-text-template.is-place {
  color: #00cfff;
}

/* codex-milio-time-place-icons-only-20260811 */
.kanban-rich-text-toolbar .kanban-rich-text-template.is-time,
.kanban-rich-text-toolbar .kanban-rich-text-template.is-place {
  width: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  padding: 0;
  justify-content: center;
}

.kanban-rich-text-toolbar .kanban-rich-text-template.is-alert {
  width: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: #ff4fa3;
  font-size: 18px;
  line-height: 1;
}

/* codex-milio-bottom-inner-space-5px-20260810 */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .kanban-board {
    padding-bottom: 0;
  }}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-comment,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-comments-empty,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-comment-input-shell,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-comment-textarea,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-checklist-row,
body:has(#kanbanView:not(.is-hidden)) .kanban-column-filter-row,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-action-menu,
body:has(#kanbanView:not(.is-hidden)) .kanban-column-action-menu,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-action-item,
body:has(#kanbanView:not(.is-hidden)) .kanban-rich-text-editor{
  border-radius: 4px;
}

body:has(#kanbanView:not(.is-hidden)) .kanban-card,
body:has(#kanbanView:not(.is-hidden)) .kanban-column:not(.has-custom-card-background) .kanban-card,
body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background .kanban-card,
body:has(#kanbanView:not(.is-hidden)) .kanban-card.has-image .kanban-card-image,
body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment),
body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) .kanban-quick-attachment {
  border-radius: 8px;
}

body:has(#kanbanView:not(.is-hidden)) .kanban-card.has-image .kanban-card-image,
body:has(#kanbanView:not(.is-hidden)) .kanban-quick-form:has(.kanban-quick-attachment) .kanban-quick-attachment {
  border-radius: 8px 8px 0 0;
}

@media (max-width: 900px) {

  .kanban-card-detail-modal .kanban-card-checklist-button {
    grid-column: 2;
    grid-row: 2;
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .kanban-card-detail-modal .kanban-card-checklist-button span {
    display: none;
  }}

/* Keep the existing mobile gallery layout; the desktop strip is below the image. */
.kanban-image-lightbox-stage { min-height: 0; }
.kanban-image-lightbox-thumbnails { display: none; }

.kanban-card-image-item { display: contents; }
.kanban-card-image-open { display: none; }

/* Milio: image-only desktop viewer, sized like the main large dialogs. */
@media (min-width: 901px) {
  .kanban-image-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.88);
    padding: 48px;
  }

  .kanban-image-lightbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .kanban-image-lightbox-stage {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .kanban-image-lightbox-stage > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
  }

  .kanban-image-lightbox-thumbnails {
    display: flex;
    flex: none;
    align-self: flex-start;
    margin-left: var(--kanban-lightbox-image-left, 0px);
    gap: 10px;
    max-width: calc(100% - var(--kanban-lightbox-image-left, 0px));
    min-height: 0;
    padding: 3px 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .kanban-image-lightbox-thumbnail {
    flex: 0 0 182.4px;
    width: 182.4px;
    height: 139.2px;
    padding: 3px;
    border: 2px solid #71717a;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .kanban-image-lightbox-thumbnail[aria-pressed="true"] {
    border-color: var(--purple);
  }

  .kanban-image-lightbox-thumbnail:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
  }

  .kanban-image-lightbox-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    opacity: 0.65;
  }

  .kanban-image-lightbox-thumbnail[aria-pressed="true"] img,
  .kanban-image-lightbox-thumbnail:hover img,
  .kanban-image-lightbox-thumbnail:focus-visible img {
    opacity: 1;
  }

  .kanban-image-lightbox figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .kanban-image-lightbox-close,
  .kanban-image-lightbox-nav {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    box-shadow: none;
  }

  .kanban-image-lightbox-close:hover,
  .kanban-image-lightbox-close:focus-visible {
    background: #222;
    color: #fff;
  }

  .kanban-image-lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .kanban-card-extra-image-button { cursor: pointer; }

  .kanban-card-image-item {
    display: block;
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
  }

  .kanban-card-image-open {
    display: grid;
    place-items: center;
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 20%;
    min-width: 44px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    box-shadow: none;
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
  }

  .kanban-card-image-open svg {
    width: 60%;
    height: 60%;
    pointer-events: none;
  }

  .kanban-card-image-item:hover .kanban-card-image-open,
  .kanban-card-image-item:focus-within .kanban-card-image-open {
    opacity: 0.1;
    pointer-events: auto;
  }

  .kanban-card-image-open:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
  }}

@media (min-width: 901px) and (hover: none) {
  .kanban-card-image-open { opacity: 0.1; pointer-events: auto; }}
@media (min-width: 901px) {
  #milioScheduleVisibilityDialog .kanban-column-filter-modal-head { padding: 40px 48px 36px; }
  #milioScheduleVisibilityDialog .kanban-column-filter-modal-body { min-height: 0; padding: 40px 48px 48px; }
  #milioScheduleVisibilityDialog .kanban-column-filter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 12px; }
  #milioScheduleVisibilityDialog .kanban-column-filter-name { flex: 1; font-size: 16px; font-weight: 400; line-height: 1.35; }
  #milioScheduleVisibilityDialog .kanban-column-filter-row { min-width: 0; min-height: 76px; padding: 12px; gap: 12px; border-radius: 8px; box-shadow: none; cursor: pointer; }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border-radius: 50%; color: #171717; font-size: 14px; font-weight: 500; }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-avatar img[hidden] { display: none; }
  #milioScheduleVisibilityDialog .kanban-column-filter-switch-track,
  #milioScheduleVisibilityDialog .kanban-column-filter-switch-thumb { box-shadow: none; }
  #milioScheduleVisibilityDialog input:checked + .kanban-column-filter-switch-track { background: var(--purple); }}

/* The schedule belongs to Trello; CRM keeps its existing state and styles. */
@media (min-width: 901px) {
  body.is-milio-schedule-active .milio-schedule-month-panel,
  body.is-milio-schedule-active .milio-schedule-mark-options,
  body.is-milio-schedule-active .milio-schedule-picker-panel {
    background: var(--milio-schedule-surface);
  }
  body.is-milio-schedule-active #kanbanView {
    padding: 0;
  }
  .is-milio-schedule-active .milio-schedule-filter select {
    background: var(--milio-schedule-surface);
  }
  .is-milio-schedule-active .milio-schedule-day:not(.milio-schedule-day--empty) {
    background: #1b324d;
    color: #f1f1f1;
  }
  .is-milio-schedule-active .milio-schedule-day.is-past:not(.milio-schedule-day--empty) {
    background: #070e1c;
  }
  .is-milio-schedule-active .milio-schedule-day.is-today:not(.milio-schedule-day--empty) {
    background: #294d70;
    border-color: transparent;
  }
  .is-milio-schedule-active .milio-schedule-day-head {
    margin-bottom: 10.4px;
  }
  .is-milio-schedule-active .milio-schedule-day.is-past .milio-schedule-workers {
    opacity: .3;
  }
  .is-milio-schedule-active .milio-schedule-worker-avatar {
    border-width: 3px;
  }
  .is-milio-schedule-active .milio-schedule-worker.is-unset .milio-schedule-worker-avatar {
    border-color: #999999;
    line-height: 0;
  }
  .is-milio-schedule-active .milio-schedule-worker.is-work .milio-schedule-worker-avatar,
  .is-milio-schedule-active .milio-schedule-worker.is-home .milio-schedule-worker-avatar,
  .is-milio-schedule-active .milio-schedule-legend .is-work,
  .is-milio-schedule-active .milio-schedule-legend .is-home {
    border-color: #b6ff00;
  }
  .is-milio-schedule-active .milio-schedule-worker.is-vacation .milio-schedule-worker-avatar,
  .is-milio-schedule-active .milio-schedule-legend .is-vacation {
    border-color: var(--purple);
  }
  .is-milio-schedule-active .milio-schedule-worker.is-off .milio-schedule-worker-avatar,
  .is-milio-schedule-active .milio-schedule-legend .is-off {
    border-color: #ff5c6c;
  }
  .is-milio-schedule-active .milio-schedule-toolbar {
    margin-right: 80px;
  }
  .is-milio-schedule-active .milio-schedule-nav-button:hover {
    background: #284a6b;
    border-color: #829bad;
  }}
.is-milio-schedule-active #kanbanView > .kanban-page,
.is-milio-schedule-active #kanbanAddColumnButton,
.is-milio-schedule-active #kanbanColumnFilterButton,
.is-milio-schedule-active #kanbanArchiveToggleButton{ display: none !important; }
.milio-schedule-shell { padding: 22px 24px 30px; }
.milio-schedule-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.milio-schedule-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.milio-schedule-toolbar[hidden] { display: none; }
.milio-schedule-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid #45464b; }
.milio-schedule-toolbar h2 { color: #f4f5f7; font-size: 16px; font-weight: 500; margin: 0; white-space: nowrap; }
.milio-schedule-month-controls, .milio-schedule-mode-group { display: flex; flex-wrap: wrap; gap: 6px; }
.milio-schedule-nav-button, .milio-schedule-mode-button, .milio-schedule-filter select { min-height: 38px; padding: 8px 12px; border: 1px solid #55565b; border-radius: 6px; background: transparent; color: #f4f5f7; font: inherit; cursor: pointer; box-shadow: none; }
.milio-schedule-filter select { background: #252626; }
.milio-schedule-nav-button:hover, .milio-schedule-mode-button:hover, .milio-schedule-mode-button.is-active { background: #3c304e; border-color: #a881e8; }
.milio-schedule-filter { display: flex; align-items: center; gap: 10px; }
.milio-schedule-filter-note, .milio-schedule-save-note { color: #bbbcc5; font-size: 13px; }
.milio-schedule-save-note { margin: 12px 0 18px; }
.milio-schedule-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #d0d1d6; }
.milio-schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.milio-schedule-legend i { width: 10px; height: 10px; border: 2px solid #92949d; border-radius: 50%; }
.milio-schedule-legend .is-work, .milio-schedule-legend .is-home { border-color: #84bb01; }
.milio-schedule-legend .is-off { border-color: #eb5757; }
.milio-schedule-legend .is-vacation { border-color: #2f80ed; }
.milio-schedule-legend .is-sickday { border-color: #f2c94c; }
.milio-schedule-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; min-width: 770px; }
.milio-schedule-weekday { padding: 10px 0; text-align: left; font-weight: 600; }
.milio-schedule-day { min-height: 154px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: #f6f6f6; color: #222; }
.milio-schedule-day.is-past { background: #454948; color: #f1f1f1; }
.milio-schedule-day.is-past .milio-schedule-workers { opacity: .55; }
.milio-schedule-day.is-today { border-color: #b8fa18; }
.milio-schedule-day--empty { background: transparent; border: 0; }
.milio-schedule-day-head { margin-bottom: 8px; }
.milio-schedule-day-number { font-size: 16px; font-weight: 600; }
.milio-schedule-workers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; max-width: 214px; margin: 0 auto; }
.milio-schedule-worker { min-width: 0; }
.milio-schedule-worker-avatar { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; max-width: 42px; aspect-ratio: 1; padding: 0; border: 2px solid #92949d; border-radius: 50%; background-color: var(--milio-schedule-worker-color, #ddd); background-position: center; background-size: cover; color: #171717; font-size: 12px; cursor: pointer; box-shadow: none; }
.milio-schedule-worker.is-work .milio-schedule-worker-avatar, .milio-schedule-worker.is-home .milio-schedule-worker-avatar { border-color: #84bb01; }
.milio-schedule-worker.is-home .milio-schedule-worker-avatar::after { content: "⌂"; position: absolute; right: -3px; bottom: -5px; color: #84bb01; font-size: 14px; }
.milio-schedule-worker.is-off .milio-schedule-worker-avatar { border-color: #eb5757; }
.milio-schedule-worker.is-vacation .milio-schedule-worker-avatar { border-color: #2f80ed; }
.milio-schedule-worker.is-sickday .milio-schedule-worker-avatar { border-color: #f2c94c; }
.milio-schedule-worker-avatar:focus-visible { outline: 2px solid var(--crm-palette-purple, #7542d9); outline-offset: 2px; }
.milio-schedule-worker-meta { display: none; }
@media (max-width: 900px) {
  .milio-schedule-shell { padding: 16px 12px; }
  .milio-schedule-toolbar { flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .milio-schedule-filter-note { flex-basis: 100%; }}

/* Employee picker: matches the quiet, rounded Milio search field. */
.milio-schedule-mark-menu { display: none; }
@media (min-width: 901px) {
  .is-milio-schedule-active .milio-schedule-mark-menu { display: block; position: relative; flex: 0 0 auto; }
  .milio-schedule-mark-toggle { display: flex; align-items: center; justify-content: center; gap: 2px; width: 44px; height: 38px; padding: 6px 2px; border: 0; border-radius: 6px; background: transparent; color: #f4f5f7; cursor: pointer; box-shadow: none; }
  .milio-schedule-mark-toggle > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .milio-schedule-mark-toggle:hover, .milio-schedule-mark-toggle[aria-expanded="true"] { background: rgba(255,255,255,.08); }
  .milio-schedule-mark-toggle:focus-visible, .milio-schedule-mark-options button:focus-visible { outline: 2px solid #a5bbd4; outline-offset: 2px; }
  .milio-schedule-mark-options { position: absolute; z-index: 300; top: calc(100% + 8px); right: 0; width: 210px; padding: 6px; border: 1px solid #4d5b70; border-radius: 10px; background: #192438; color: #f4f5f7; box-shadow: none; }
  .milio-schedule-mark-options[hidden] { display: none; }
  .milio-schedule-mark-options button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; box-shadow: none; }
  .milio-schedule-mark-options button:hover, .milio-schedule-mark-options button:focus-visible { background: #2b3b54; }
  .milio-schedule-mark-options button[aria-checked="true"] { background: #304563; }
  .milio-schedule-mark-options button > span { visibility: hidden; }
  .milio-schedule-mark-options button[aria-checked="true"] > span { visibility: visible; }
  .milio-schedule-footer { margin-top: 0; padding-top: 0; border-top: 0; }
  .milio-schedule-footer > .milio-schedule-controls { display: none; }}

.milio-schedule-picker { display: none; }
.is-milio-schedule-active .milio-schedule-picker { display: block; position: relative; flex: 0 1 360px; min-width: 160px; margin-left: auto; }
.milio-schedule-picker-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: #f4f5f7; font: inherit; font-size: 14px; font-weight: 400; box-shadow: none; cursor: pointer; }
.milio-schedule-picker-toggle > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.milio-schedule-picker-toggle svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; }
.milio-schedule-picker-toggle:hover, .milio-schedule-picker-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.04); }
.milio-schedule-picker-toggle:focus-visible, .milio-schedule-picker-option:focus-visible { outline: 2px solid #a5c5b7; outline-offset: 2px; }
.milio-schedule-picker-panel { position: absolute; z-index: 300; top: calc(100% + 8px); left: 0; width: 100%; min-width: 240px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid #4d6158; border-radius: 14px; background: #192a23; color: #f4f5f7; box-shadow: none; }
.milio-schedule-picker-panel[hidden] { display: none; }
.milio-schedule-picker-search { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 0; border-bottom: 1px solid #3b4e44; border-radius: 0; background: transparent; color: #f4f5f7; font: inherit; font-size: 14px; box-shadow: none; outline: none; }
.milio-schedule-picker-search::placeholder { color: #a6b5ad; }
.milio-schedule-picker-search:focus { border-color: #a5c5b7; box-shadow: none; }
.milio-schedule-picker-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; box-shadow: none; }
.milio-schedule-picker-option > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.milio-schedule-picker-option:hover, .milio-schedule-picker-option:focus-visible { background: #2b4035; }
.milio-schedule-picker-option[aria-selected="true"] { background: #30483a; }
.milio-schedule-picker-avatar { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #3b5145 center/cover; color: #dce7e0; font-size: 10px; }
.milio-schedule-picker-check { margin-left: auto; color: #b5d2c1; }
.milio-schedule-picker-empty { padding: 12px 10px; margin: 0; color: #a6b5ad; font-size: 13px; }
.is-milio-schedule-active .milio-schedule-toolbar { margin-left: 12px; }
.milio-schedule-controls { justify-content: center; margin-bottom: 0; }
.milio-schedule-worker-avatar:disabled { cursor: wait; }
@media (min-width: 901px) {
  .milio-schedule-picker-toggle:focus-visible, .milio-schedule-picker-option:focus-visible { outline-color: #a5bbd4; }
  .milio-schedule-picker-panel { border-color: #4d5b70; background: #192438; }
  .milio-schedule-picker-search { border-bottom-color: #3b4a60; }
  .milio-schedule-picker-search::placeholder, .milio-schedule-picker-empty { color: #a6b1c2; }
  .milio-schedule-picker-search:focus { border-color: #a5bbd4; }
  .milio-schedule-picker-option:hover, .milio-schedule-picker-option:focus-visible { background: #2b3b54; }
  .milio-schedule-picker-option[aria-selected="true"] { background: #304563; }
  .milio-schedule-picker-avatar { background-color: #3b4d69; color: #dce4ef; }
  .milio-schedule-picker-check { color: #b5c8e2; }}
@media (min-width: 901px) and (max-width: 1180px) {
  .is-milio-schedule-active .milio-schedule-picker { flex-basis: 240px; }
  .milio-schedule-picker-toggle { min-height: 40px; }}
@media (max-width: 900px) {
  .is-milio-schedule-active .milio-schedule-picker { flex: 1 1 180px; }
  .is-milio-schedule-active .milio-schedule-toolbar { margin-left: 0; }}

/* Schedule header: month beside the logo, employee filter at the page center. */
.milio-schedule-month-toggle { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; white-space: nowrap; box-shadow: none; }
.milio-schedule-month-panel[hidden] { display: none; }
@media (min-width: 901px) {
  .is-milio-schedule-active .milio-schedule-picker { display: none; }
  .is-milio-schedule-active .milio-schedule-toolbar { position: relative; margin: 0 auto 0 16px; flex: 0 0 auto; }
  .is-milio-schedule-active .milio-schedule-month-controls { display: none; }
  .milio-schedule-month-toggle { cursor: pointer; min-height: 44px; }
  .milio-schedule-month-toggle:hover { color: #c1d7f1; }
  .milio-schedule-month-toggle:focus-visible { outline: 2px solid #a5bbd4; outline-offset: 4px; border-radius: 4px; }
  .milio-schedule-month-panel { position: absolute; z-index: 301; top: calc(100% + 8px); left: 0; width: 280px; padding: 12px; border: 1px solid #4d5b70; border-radius: 14px; background: #192438; color: #f4f5f7; box-shadow: none; }
  .milio-schedule-year-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: 14px; }
  .milio-schedule-month-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .milio-schedule-month-options button { min-height: 38px; padding: 6px 2px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; box-shadow: none; }
  .milio-schedule-month-options button:hover, .milio-schedule-month-options button[aria-pressed="true"] { background: #304563; }
  .milio-schedule-month-options button:focus-visible{ outline: 2px solid #a5bbd4; outline-offset: 1px; }}

/* Align schedule controls with the center of the icon logo. */
@media (min-width: 901px) {
  /* Use one size for the logo and action icons. */
  body.is-milio-schedule-active .milio-schedule-mark-toggle > svg{
    width: var(--milio-schedule-icon-size);
    height: var(--milio-schedule-icon-size);
    flex: 0 0 auto;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.is-milio-schedule-active .milio-schedule-mark-toggle { padding: 0; width: 44px; height: 44px; }
  body.is-milio-schedule-active .milio-schedule-toolbar {
    transform: translateY(var(--milio-schedule-header-center));
  }
  body.is-milio-schedule-active .milio-schedule-mark-menu {
    position: absolute;
    left: calc(50% + 172px);
    top: calc(50% + var(--milio-schedule-header-center));
    transform: translateY(-50%);
  }}

/* Keep the calendar beside the filter when it moves to its own row. */
@media (min-width: 901px) and (max-width: 1180px) {
  body.is-milio-schedule-active .milio-schedule-mark-menu {
    top: auto;
    bottom: 10px;
    transform: none;
  }}

/* Weekday labels share the calendar columns and sit at the desktop page bottom. */
.milio-schedule-weekdays-top { display: contents; }
.milio-schedule-weekdays-bottom { display: none; }
@media (min-width: 901px) {
  .is-milio-schedule-active .milio-schedule-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 20px;
  }
  .is-milio-schedule-active .milio-schedule-calendar { flex-shrink: 0; }
  .is-milio-schedule-active .milio-schedule-weekdays-top { display: none; }
  .is-milio-schedule-active .milio-schedule-weekdays-bottom {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    min-width: 770px;
    margin-top: auto;
    padding-top: 24px;
    color: #7e9bb8;
  }
  .milio-schedule-weekdays-bottom .milio-schedule-weekday {
    padding: 4px 0;
    text-align: center;
  }}

/* Desktop overlays inherit the current page surface, with tonal interaction states. */
@media (min-width: 901px) {

  body[data-page-overlay-tone] .kanban-card-action-menu {
    --kanban-menu-text: var(--page-overlay-ink) !important;
  }
  body[data-page-overlay-tone="dark"] .kanban-card-action-menu { --kanban-menu-danger: #ffd0d0 !important; }
  body[data-page-overlay-tone="light"] .kanban-card-action-menu { --kanban-menu-danger: #a41515 !important; }
  body[data-page-overlay-tone] #milioScheduleVisibilityDialog input:checked + .kanban-column-filter-switch-track {
    background: var(--page-overlay-active);
  }}

/* Monthly completion totals belong only to the desktop Project board. */
.kanban-monthly-done { display: none; }
@media (min-width: 901px) {
  .kanban-monthly-done {
    display: block;
    border-top: none;
    padding: 9px 6px 0;
    color: var(--kanban-column-text, rgba(255, 255, 255, 0.92));
    font-size: 13px;
    line-height: 1.4;
  }}

/* Trello card surfaces share the purple board palette. */
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal {
  --card-panel: #241c35;
  --card-control: #302541;
  --card-inset: #1c1629;
  --card-hover: #403055;
  --card-border: #49375f;
}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-modal-images-inline, .kanban-card-comments-panel, .kanban-rich-text-toolbar
) {
  background: var(--card-panel);
  border-color: var(--card-border);
}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-rich-text-toolbar button, .kanban-rich-text-toolbar select,
  .kanban-rich-text-color, .kanban-card-comment-submit
) {
  background: var(--card-control);
  border-color: var(--card-border);
}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment:not(.has-author-card-background), .kanban-card-comments-empty,
  .kanban-card-comment-input-shell, .kanban-card-comment-textarea
) {
  background: var(--card-inset);
  border-color: var(--card-border);
  color: #eee8f7;
}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comment-form {
  border-color: var(--card-border);
}
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-rich-text-toolbar button, .kanban-rich-text-toolbar select,
  .kanban-rich-text-color, .kanban-card-comment-submit
):is(:hover, :focus-visible, :focus-within) {
  background: var(--card-hover);
  border-color: #9c6fff;
}

/* Desktop schedule: quick selection in the users filter header. */
@media (min-width: 901px) {
  #milioScheduleVisibilityDialog .kanban-column-filter-modal-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-presets {
    display: flex;
    flex: 1;
    gap: 24px;
    margin-left: clamp(16px, 6vw, 120px);
  }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-presets button {
    width: clamp(140px, 17vw, 290px);
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid #54617a;
    border-radius: 8px;
    background: #182337;
    color: #f4f5f7;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
  }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-presets button:hover {
    background: #294d70;
  }
  #milioScheduleVisibilityDialog .milio-schedule-visibility-presets button:focus-visible {
    outline: 2px solid #b9a0e8;
    outline-offset: 3px;
  }}

/* Schedule: luminous glass surfaces inspired by the installed CleanMyMac.
   Scoped to desktop schedule; state colours and calendar geometry stay intact. */
@media (min-width: 901px) {
  body.is-milio-schedule-active .milio-schedule-day:not(.milio-schedule-day--empty) {
    border: 1px solid var(--schedule-glass-edge);
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(76 146 211 / 24%), rgb(20 40 65 / 82%));
    color: #f4f9ff;
    box-shadow: inset 0 1px rgb(255 255 255 / 7%), 0 5px 14px rgb(2 8 18 / 12%);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }
  body.is-milio-schedule-active .milio-schedule-day.is-past:not(.milio-schedule-day--empty) {
    background: linear-gradient(145deg, #101f34, #0b1424);
    border-color: rgb(166 198 232 / 8%);
    color: #aabed3;
  }
  body.is-milio-schedule-active .milio-schedule-day.is-past .milio-schedule-workers { opacity: .55; }
  body.is-milio-schedule-active .milio-schedule-day.is-today:not(.milio-schedule-day--empty) {
    background: linear-gradient(145deg, #246cab, #1b4b79 62%, #193650);
    border-color: #9dceff;
    box-shadow: inset 0 1px rgb(255 255 255 / 25%), 0 0 24px rgb(58 154 255 / 20%);
  }
  body.is-milio-schedule-active .milio-schedule-day.is-today .milio-schedule-day-number {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, #a8e1ff, #77b9ff);
    color: #0b2945;
    box-shadow: 0 0 12px rgb(108 191 255 / 25%);
    animation: schedule-soft-glow 4s ease-in-out infinite;
  }}
@media (prefers-reduced-motion: reduce) {
  body.is-milio-schedule-active .milio-schedule-day.is-today .milio-schedule-day-number { animation: none; }}

/* White silhouette of the current installed Schedule Dock icon. */
body.is-milio-schedule-active .topbar-logo--text .milio-schedule-brand-mark {
  display: block; width: 36px; height: 36px; max-width: none; object-fit: contain;
}
@media (min-width: 901px) {
  body.is-milio-schedule-active .topbar-logo--text .milio-schedule-brand-mark {
    width: var(--milio-schedule-icon-size); height: var(--milio-schedule-icon-size);
  }}

/* The date occupies the first avatar-sized slot, without a separate heading. */
.is-milio-schedule-active .milio-schedule-day { min-height:0; }
.is-milio-schedule-active .milio-schedule-workers { grid-template-columns:repeat(5, minmax(0, 1fr)); max-width:266px; }
.is-milio-schedule-active .milio-schedule-workers > .milio-schedule-day-number {
  display:grid; place-items:center; align-self:start; width:100%; max-width:42px;
  min-width:0; height:auto; aspect-ratio:1; box-sizing:border-box; padding:0;
  border:1px solid rgba(157,206,255,.4); border-radius:50%;
  background:rgba(119,185,255,.12); color:inherit; font-size:clamp(11px,1vw,16px); font-weight:600;
}
.is-milio-schedule-active .milio-schedule-day.is-today .milio-schedule-day-number {
  min-width:0; height:auto; border-radius:50%; background:linear-gradient(135deg,#a8e1ff,#77b9ff); color:#0b2945;
}

/* Trello: gradients only; existing geometry, controls and branding are preserved. */
@media (min-width: 901px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .kanban-card {
    background-image: linear-gradient(145deg, rgb(255 255 255 / 5%), transparent 65%);
  }}

/* Trello header follows the schedule control scale. Board content is unchanged. */
@media (min-width: 901px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) #kanbanColumnFilterButton {
    position: absolute; left: calc(50% + 172px); top: 50%;
    transform: translateY(-50%); margin: 0;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) #kanbanColumnFilterButton > svg { width: 24px; height: 24px; stroke-width: 2; }}
@media (min-width: 901px) and (max-width: 1180px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) #kanbanColumnFilterButton { top: auto; bottom: 10px; transform: none; }}

/* Preserve description line clamps while preventing grid rows from squeezing text. */
body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-column-body {
  grid-auto-rows: max-content;
}
body:has(#kanbanView:not(.is-hidden)) .kanban-column .kanban-card:not(.kanban-drag-placeholder) {
  height: max-content;
}
.crm-schedule-page .milio-schedule-day:not(.milio-schedule-day--empty) { background: var(--crm-palette-workspace, #202124); color: var(--crm-palette-text, #f4f5f7); border-color: var(--crm-palette-divider, #414246); }
.crm-schedule-page .milio-schedule-day.is-today { background: var(--crm-palette-workspace, #252924); }
.crm-schedule-page .milio-schedule-day.is-today .milio-schedule-day-number { background: #84bb01; color: #111; }
.crm-schedule-page .milio-schedule-workers > .milio-schedule-day-number { background: var(--crm-palette-workspace, #303134); border-color: var(--crm-palette-divider, #48494c); }
@media (min-width: 901px) {
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-column-filter-modal-head {
    padding: 24px;
    border-bottom: 1px solid var(--crm-palette-divider, #414246);
    background: var(--crm-palette-workspace, #202124);
    color: var(--crm-palette-text, #f4f5f7);
  }
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-column-filter-modal-body { padding: 24px; overflow: visible; }
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-preference-status { color: var(--crm-palette-muted, #b5b7bc); }
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-column-filter-row { background: var(--crm-palette-workspace, #303134); border: 1px solid var(--crm-palette-divider, #48494c); color: var(--crm-palette-text, #f4f5f7); }
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-column-filter-name { color: inherit; }
  #milioScheduleVisibilityDialog.is-crm-users-page .kanban-column-filter-switch-track { background: var(--crm-palette-workspace, #48494c); border-color: var(--crm-palette-divider, #6b6d73); }
  #milioScheduleVisibilityDialog.is-crm-users-page input:checked + .kanban-column-filter-switch-track { background: #84bb01; border-color: #84bb01; }}
/* CRM calendar uses the existing graphite page palette in every day state. */
.crm-schedule-page.is-milio-schedule-active .milio-schedule-day:not(.milio-schedule-day--empty) {
  background: var(--crm-palette-workspace, #202124);
}
.crm-schedule-page.is-milio-schedule-active .milio-schedule-day.is-past:not(.milio-schedule-day--empty) {
  background: var(--crm-palette-workspace, #242527);
}
.crm-schedule-page.is-milio-schedule-active .milio-schedule-day.is-today:not(.milio-schedule-day--empty) {
  background: var(--crm-palette-workspace, #252924);
}
.crm-schedule-page.is-milio-schedule-active .milio-schedule-day.is-today .milio-schedule-day-number {
  background: #84bb01;
  color: #111;
}

@media (min-width: 901px) {
  .crm-schedule-page.is-milio-schedule-active .milio-schedule-shell {
    padding-bottom: 0;
  }
  .crm-schedule-page.is-milio-schedule-active .milio-schedule-weekdays-bottom {
    flex-shrink: 0;
    box-sizing: border-box;
    align-items: center;
    min-height: var(--crm-list-row-height);
    height: var(--crm-list-row-height);
    margin-inline: -24px;
    padding: 0 24px;
    color: var(--crm-palette-text, #fff);
    background: var(--crm-footer-background);
    border-top: var(--crm-panel-divider);
  }}
@media (min-width: 901px) {
  body.is-crm-tasks-board #kanbanView .kanban-board {
    grid-template-rows: minmax(0, 1fr);
    /* Fit the six working columns to the embedded viewport, not the outer window. */
    grid-auto-columns: clamp(260px, calc((100% - 70px) / 6), 313.95px);
    padding-bottom: 6px;
  }}
body.is-crm-tasks-board #kanbanView:not(.is-hidden) .kanban-column .kanban-card {
  border-color: transparent;
  background: var(--kanban-card-bg) !important;
  color: var(--kanban-card-text);
  box-shadow: none;
}
body.is-crm-tasks-board #kanbanView .kanban-column .kanban-card:hover {
  background: var(--kanban-card-hover-bg) !important;
}
body.is-crm-tasks-board #kanbanView .kanban-column .kanban-card:hover:not(:focus-visible, .is-keyboard-active)::after {
  box-shadow: none;
}
body.is-crm-tasks-board .kanban-card-detail-modal {
  --card-panel: #262729;
  --card-control: #303134;
  --card-inset: #202123;
  --card-hover: #38393c;
  --card-border: var(--crm-palette-divider, #48494c);
  background: var(--card-panel);
  color: var(--crm-palette-text, #f4f5f7);
}

/* Task details use the shared neutral CRM surfaces and typography. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal {
  --card-panel: var(--crm-palette-panel, #1c1d20);
  --card-control: var(--crm-palette-panel, #1c1d20);
  --card-inset: var(--crm-palette-workspace, #18191c);
  --card-hover: var(--crm-palette-selection, #383a3d);
  --card-border: var(--crm-palette-divider, #383a3d);
  --page-overlay-background: var(--card-inset);
  --page-overlay-ink: var(--crm-palette-text, #cdcdcd);
  --page-overlay-hover: var(--card-hover);
  --page-overlay-border: var(--card-border);
  --ink: var(--page-overlay-ink);
  --muted: var(--crm-palette-muted, #afafaf);
  background: var(--card-inset) !important;
  background-image: none !important;
  color: var(--ink);
  border: 1px solid var(--card-border);
  box-shadow: none;
  font-family: system-ui, sans-serif;
  font-weight: 400;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-modal-head, .kanban-card-modal-main, .kanban-card-modal-side,
  .kanban-card-modal-images-inline, .kanban-card-comments-panel, .kanban-rich-text-toolbar,
  .kanban-card-comment, .kanban-card-comment-form, .kanban-card-comment-input-shell,
  .kanban-card-comment-textarea, .kanban-rich-text-editor, .kanban-card-modal-title,
  .kanban-card-checklist-row, button, select, input
) { background-image: none !important; box-shadow: none; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-modal-images-inline, .kanban-card-comments-panel
) { background: var(--card-panel); border: 1px solid var(--card-border); }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-rich-text-toolbar {
  background: transparent;
  border: 0;
  padding: 0;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-rich-text-toolbar button, .kanban-rich-text-toolbar select, .kanban-rich-text-color,
  .kanban-card-checklist-button, .kanban-card-comments-toggle, .kanban-card-repeat-toggle,
  .kanban-card-modal-delete, .kanban-card-comment-submit
) {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-rich-text-toolbar button, .kanban-rich-text-toolbar select, .kanban-rich-text-color,
  .kanban-card-checklist-button, .kanban-card-comments-toggle, .kanban-card-repeat-toggle,
  .kanban-card-modal-delete, .kanban-card-comment-submit
):is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--card-hover); }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment, .kanban-card-comments-empty, .kanban-card-checklist-row
) { background: transparent; border: 0; border-bottom: 1px solid var(--card-border); color: var(--ink); }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment-input-shell, .kanban-card-comment-textarea, .kanban-rich-text-editor
) { background: transparent; color: var(--ink); border: 0; border-radius: 0; box-shadow: none; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comment-input-shell:focus-within {
  background: var(--card-hover);
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment-textarea, .kanban-card-checklist-row textarea
)::placeholder { color: var(--muted); }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment-textarea, .kanban-card-checklist-row textarea
):focus::placeholder { color: transparent; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comments-panel h3 {
  color: var(--ink); font-size: 14px; font-weight: 500; text-transform: none;
}

body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(
  .kanban-card-comment-author, .kanban-card-comment-text, .kanban-card-checklist-row textarea
) { color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 400; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comment-time {
  color: var(--muted); font-size: 12px; font-weight: 400;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comments-title {
  color: var(--ink); font-size: 14px; font-weight: 500; text-transform: none;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comments-count {
  background: var(--card-hover); color: var(--ink);
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal :is(button, select):focus-visible {
  outline: 2px solid var(--crm-palette-secondary, #cdcdcd); outline-offset: 2px;
}

/* Task comments reuse the retail order comment components. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comments-panel.crm-order-comments-column {
  display: block;
  padding: 16px 20px;
  border: 0;
  border-left: 1px solid var(--comment-line);
  border-radius: 0;
  background: var(--card-inset);
  overflow-y: auto;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .crm-comments-heading h3 {
  margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.3px;
}

/* Compact formatting and viewport-sized card dialog. */
.kanban-card-detail-modal .kanban-format-menu { position: relative; grid-column: 1; grid-row: 1; justify-self: stretch; min-width: 0; }
.kanban-format-menu > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; list-style: none; border: 1px solid var(--crm-palette-divider, #48494c); border-radius: 8px; color: inherit; }
.kanban-format-menu > summary::-webkit-details-marker { display: none; }
.kanban-format-menu:not([open]) > .kanban-rich-text-toolbar { display: none; }
.kanban-format-menu[open] > .kanban-rich-text-toolbar { position: absolute; top: 0; left: 56px; z-index: 10; width: max-content; max-width: calc(100% - 56px); min-height: 40px; box-sizing: border-box; flex-wrap: nowrap; overflow-x: auto; background: var(--crm-palette-workspace, #303134); }
body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal { width: 76vw; max-width: 76vw; height: 82vh; max-height: 82vh; }
@media (max-width: 760px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal { width: 96vw; max-width: 96vw; height: 94dvh; max-height: 94dvh; }}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal{
  background: var(--crm-palette-workspace, #18191c) !important;
  background-image: none !important;
  border: 1px solid var(--crm-palette-divider, #383a3d);
  border-radius: 12px;
  box-shadow: none;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal-backdrop{ background: rgb(0 0 0 / 55%); backdrop-filter: none; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal-head {
  background: var(--crm-palette-panel, #1c1d20);
  border-bottom: 1px solid var(--crm-palette-divider, #383a3d);
  padding: 16px 24px;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot h2 { font-size: 20px; font-weight: 500; color: var(--ink); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot h3 { margin: 0 0 16px; font-size: 16px; font-weight: 500; color: var(--ink); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal-body { padding: 24px; background: transparent; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-display-filter-grid { gap: 24px; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot :is(.kanban-preference-status, .kanban-filter-local-note) {
  color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot :is(.kanban-column-filter-row, .kanban-member-filter-row) {
  min-height: 55px; padding: 8px 12px; gap: 12px; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--crm-palette-divider, #383a3d);
  background: transparent; color: var(--ink); box-shadow: none;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-row + .kanban-column-filter-row { border-top: 0; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot :is(.kanban-column-filter-name, .kanban-member-filter-name) {
  padding: 0; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.4;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot :is(.kanban-column-filter-list, .kanban-member-filter-list) { gap: 0; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-member-filter-row:has(input:checked) { background: var(--crm-palette-selection, #383a3d); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-member-filter-row:hover { background: var(--page-overlay-hover); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-member-filter-row input { accent-color: var(--crm-palette-secondary, #cdcdcd); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-member-filter-avatar { width: 32px; height: 32px; flex-basis: 32px; background: var(--crm-palette-selection, #383a3d); }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-member-filter-reset {
  border: 0; background: transparent; box-shadow: none; padding: 8px 0; color: var(--ink); font: inherit; font-size: 14px;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch { width: 38px; height: 22px; }
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch-track {
  box-sizing: border-box; border-color: var(--crm-palette-switch-off-border, #777777);
  background: var(--crm-palette-switch-off-track, #303236); box-shadow: none;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch-thumb {
  top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--crm-palette-switch-off-thumb, #afafaf); box-shadow: none;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track {
  background: var(--crm-palette-switch-on-track, #4b4e53); border-color: var(--crm-palette-switch-on-border, #777c84);
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch input:checked + .kanban-column-filter-switch-track .kanban-column-filter-switch-thumb {
  transform: translateX(16px); background: var(--crm-palette-switch-on-thumb, #e1e2e5);
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-switch input:focus-visible + .kanban-column-filter-switch-track {
  outline: 2px solid var(--crm-palette-secondary, #cdcdcd); outline-offset: 3px;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal-close {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; color: var(--ink); font: 400 28px/1 system-ui;
}
body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-column-filter-modal-close:is(:hover, :focus-visible) { background: var(--page-overlay-hover); }
@media (max-width: 1100px) {
  body.is-crm-tasks-board #kanbanColumnFilterModalRoot .kanban-display-filter-grid { grid-template-columns: 1fr; }}
/* One outlined icon family throughout the task dialog. */
body.is-crm-tasks-board .kanban-card-detail-modal svg {
  width: 21px; height: 21px; flex-shrink: 0; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.is-crm-tasks-board .kanban-card-detail-modal :is(.kanban-card-modal-head button, .kanban-format-menu > summary, .kanban-card-image-upload, .crm-comment-date-actions button) { color: var(--crm-text, #cdcdcd); }
body.is-crm-tasks-board .kanban-card-detail-modal :is(.kanban-card-checklist-button, .kanban-card-modal-close, .kanban-card-modal-actions > button, .kanban-format-menu > summary) {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; min-width: 40px; height: 40px; padding: 0; gap: 0;
}
body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-checklist-delete { color: var(--crm-text, #cdcdcd); }

/* Formatting uses the same plain 21px icon as the other dialog actions. */
body.is-crm-tasks-board .kanban-card-detail-modal .kanban-format-menu > summary {
  background: transparent;
  border: 0;
  box-shadow: none;
}
@media (min-width: 901px) {
  body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
    .kanban-card-comments-panel.crm-order-comments-column {
    align-self: stretch;
    border-left: 1px solid var(--crm-palette-divider, #383a3d);
  }}

/* Match the task search typography for the empty comment message. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-comments-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--crm-palette-muted, #cdcdcd);
  font: 400 14px/1.4 system-ui, sans-serif;
  text-align: center;
}

/* The comments heading uses the same quiet type as its empty message. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .crm-comments-heading h3 {
  color: var(--crm-palette-muted, #cdcdcd);
  font: 400 14px/1.4 system-ui, sans-serif;
  letter-spacing: normal;
}

/* Keep task comments equally wide with and without attachments. */
@media (min-width: 901px) {
  body.is-crm-tasks-board .kanban-card-detail-modal {
    --crm-task-comments-width: 420px;
  }}

/* Keep the archive flush with the toolbar; retain the board columns' top inset. */
@media (min-width: 901px) {
  body.is-crm-tasks-board #kanbanView .kanban-board {
    padding-top: 15px;
  }}

/* Keep the formatting controls beside their trigger, including narrow dialogs. */
.kanban-format-menu .kanban-rich-text-toolbar > * { flex-shrink: 0; }
body.is-crm-tasks-board .kanban-card-detail-modal .kanban-format-menu[open] > summary {
  background: var(--crm-palette-selection, #383a3d);
}
@media (max-width: 900px) {
  .kanban-card-detail-modal .kanban-format-menu { grid-column: 1 / -1; }}

/* Text palette: compact, visible color choices without inserting template text. */
.kanban-rich-text-toolbar .kanban-rich-text-swatch { flex: 0 0 34px; }
.kanban-rich-text-swatch > span { display: block; width: 16px; height: 16px; border-radius: 50%; }
.kanban-rich-text-swatch:hover > span,
.kanban-rich-text-swatch:focus-visible > span { outline: 2px solid currentColor; outline-offset: 3px; }
/* The most recent pointer or keyboard movement owns the single task highlight. */
body:has(#kanbanView:not(.is-hidden)) #kanbanBoard .kanban-card:not(.is-keyboard-active)::before {
  background: transparent;
}
body:has(#kanbanView:not(.is-hidden)) #kanbanBoard .kanban-card:not(.is-keyboard-active)::after {
  box-shadow: none;
}
body.is-crm-tasks-board #kanbanView:not(.is-hidden) #kanbanBoard .kanban-column .kanban-card:not(.is-keyboard-active) {
  background: var(--kanban-card-bg) !important;
}
body.is-crm-tasks-board #kanbanView:not(.is-hidden) #kanbanBoard .kanban-column .kanban-card.is-keyboard-active {
  background: var(--kanban-card-hover-bg) !important;
}
#kanbanBoard .kanban-column > :not(.kanban-column-back) { visibility: visible; }
#kanbanBoard .kanban-column.is-column-flipped > :not(.kanban-column-back) { visibility: hidden; }
#kanbanBoard .kanban-column-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: var(--kanban-column-bg);
  color: inherit;
  opacity: 1;
  box-shadow: none;
  transform: none;
  z-index: 1;
  visibility: hidden;
  cursor: pointer;
}
#kanbanBoard .kanban-column.is-column-flipped > .kanban-column-back { visibility: visible; }
#kanbanBoard .kanban-column-back:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }
#kanbanBoard .kanban-done-bell {
  position: relative;
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--kanban-column-text, currentColor);
}
/* Original Iconsax notification Linear/Bold; preserve both original geometries. */
#kanbanBoard .kanban-done-bell { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
#kanbanBoard .kanban-done-bell > svg { width: 20px; height: 20px; }
#kanbanBoard .kanban-done-bell > .kanban-bell-bold { display: none; }
#kanbanBoard .kanban-done-bell:is(:hover, :focus-visible, [aria-pressed="true"]) > .kanban-bell-linear { display: none; }
#kanbanBoard .kanban-done-bell:is(:hover, :focus-visible, [aria-pressed="true"]) > .kanban-bell-bold { display: block; }
#kanbanBoard .kanban-done-bell:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
#kanbanBoard .kanban-column-back { display: flex; align-items: flex-start; justify-content: flex-start; text-align: left; }
#kanbanBoard .kanban-column-summary { display: block; padding: 16px; font: 500 20px/1.4 system-ui; }
#kanbanBoard .kanban-done-bell-count {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--kanban-column-bg, #262729);
  color: inherit;
  font: 400 12px/16px system-ui;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  #kanbanBoard .kanban-column > :not(.kanban-column-back),
  #kanbanBoard .kanban-column-back { transition: none; }}

/* Task description: formatting at the lower left, creation date at the right. */
.kanban-card-detail-modal .kanban-card-description-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  flex: 0 0 auto;
}
.kanban-card-detail-modal .kanban-card-description-footer .kanban-format-menu {
  position: static;
  flex: 0 0 40px;
}
.kanban-card-detail-modal .kanban-card-created-date {
  margin-left: auto;
  color: var(--crm-palette-muted, #afafaf);
  font: 400 12px/1.4 system-ui, sans-serif;
  text-align: right;
}
/* Anchor the controls to the footer so they share the trigger's baseline. */
.kanban-card-detail-modal .kanban-card-description-footer .kanban-format-menu[open] > .kanban-rich-text-toolbar {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 56px;
  right: 148px;
  width: auto;
  max-width: none;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.kanban-card-description-footer .kanban-format-menu > summary {
  flex: 0 0 40px;
}
.kanban-card-detail-modal .kanban-card-created-date {
  flex: 0 0 auto;
}

/* Native ContentDS handoff: use the same task text and surface roles. */
.kanban-card-primary-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; grid-column: 1; grid-row: 1; }
.kanban-codex-handoff { display: flex; align-items: center; min-width: 0; margin-left: auto; }
@media (max-width: 900px) {
  .kanban-card-primary-actions { grid-column: 1 / -1; }
  .kanban-codex-handoff button { overflow-wrap: anywhere; }}
.kanban-codex-handoff button { font: inherit; font-size: 14px; color: var(--crm-palette-text); background: transparent; border: 0; border-radius: 0; padding: 8px 0; cursor: pointer; text-align: left; }
.kanban-codex-handoff button:hover { text-decoration: underline; }
.kanban-codex-handoff button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.kanban-codex-handoff button:disabled { opacity: .5; cursor: wait; }
.kanban-codex-status { color: var(--crm-palette-muted); font-size: 12px; }
.kanban-codex-status:empty { display: none; }