/**
 * Project Melgab Project ToDo Board - Admin Styles
 * @version 1.1.4
 */

.mm-todo-dashboard-wrap {
    max-width: 1480px;
}

.mm-todo-dashboard-wrap h1 {
    margin-bottom: 6px;
    font-size: 30px;
    line-height: 1.1;
    color: #1f2937;
}

.mm-todo-dashboard-wrap .mm-todo-intro {
    margin: 0 0 22px;
    color: #667085;
    font-size: 15px;
}

.mm-todo-dashboard-wrap .mm-todo-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    gap: 24px;
    margin-top: 20px;
    align-items: start;
}

.mm-todo-dashboard-wrap .mm-todo-card {
    background: #fbfcff;
    border: 1px solid #d8dee8;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mm-todo-dashboard-wrap .mm-todo-card--accent {
    background: #fffdf5;
    border-color: #eadca6;
}

.mm-todo-dashboard-wrap .mm-todo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
}

.mm-todo-dashboard-wrap .mm-todo-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    color: #1f2937;
}

.mm-todo-dashboard-wrap .mm-todo-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff1bf;
    color: #7a5a00;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mm-todo-dashboard-wrap .mm-todo-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.mm-todo-dashboard-wrap .mm-todo-stat {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.mm-todo-dashboard-wrap .mm-todo-stat.mm-todo-stat--active {
    background: #effaf2;
}

.mm-todo-dashboard-wrap .mm-todo-stat.mm-todo-stat--hold {
    background: #fff7e8;
}

.mm-todo-dashboard-wrap .mm-todo-stat.mm-todo-stat--closed {
    background: #eef4ff;
}

.mm-todo-dashboard-wrap .mm-todo-stat.mm-todo-stat--archived {
    background: #f8fafc;
}

.mm-todo-dashboard-wrap .mm-todo-stat.mm-todo-stat--total {
    background: #faf5ff;
}

.mm-todo-dashboard-wrap .mm-todo-stat-number {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.mm-todo-dashboard-wrap .mm-todo-stat-label {
    display: block;
    color: #667085;
    font-size: 13px;
}

.mm-todo-dashboard-wrap .mm-todo-field {
    margin-bottom: 16px;
}

.mm-todo-dashboard-wrap .mm-todo-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
}

.mm-todo-dashboard-wrap .mm-todo-field input[type="text"],
.mm-todo-dashboard-wrap .mm-todo-field textarea,
.mm-todo-dashboard-wrap .mm-todo-field select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cfd7e3;
    background: #fff;
    box-shadow: none;
}

.mm-todo-dashboard-wrap .mm-todo-field input[type="text"]:focus,
.mm-todo-dashboard-wrap .mm-todo-field textarea:focus,
.mm-todo-dashboard-wrap .mm-todo-field select:focus {
    border-color: #7c98ff;
    box-shadow: 0 0 0 3px rgba(88, 115, 255, 0.12);
    outline: none;
}

.mm-todo-dashboard-wrap .mm-todo-field textarea {
    min-height: 140px;
    resize: vertical;
}

.mm-todo-dashboard-wrap .mm-todo-form-actions {
    margin: 18px 0 0;
}

.mm-todo-dashboard-wrap .button {
    border-radius: 12px;
}

.mm-todo-dashboard-wrap .button.button-primary {
    min-height: 42px;
    padding: 0 16px;
    border-color: #2f6fed;
    background: #2f6fed;
    box-shadow: none;
}

.mm-todo-dashboard-wrap .button.button-primary:hover,
.mm-todo-dashboard-wrap .button.button-primary:focus {
    background: #245fda;
    border-color: #245fda;
}

.mm-todo-dashboard-wrap .mm-todo-table-wrap {
    overflow-x: auto;
}

.mm-todo-dashboard-wrap .mm-todo-project-table {
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
}

.mm-todo-dashboard-wrap .mm-todo-project-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e0e6ef;
    color: #475467;
    font-weight: 700;
}

.mm-todo-dashboard-wrap .mm-todo-project-table td,
.mm-todo-dashboard-wrap .mm-todo-project-table th {
    vertical-align: top;
    padding-top: 14px;
    padding-bottom: 14px;
}

.mm-todo-dashboard-wrap .mm-todo-project-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
    color: #1f2937;
}

.mm-todo-dashboard-wrap .mm-todo-project-desc {
    color: #667085;
}

.mm-todo-dashboard-wrap .mm-todo-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    background: #f0f0f1;
}

.mm-todo-dashboard-wrap .mm-todo-pill.status-active {
    background: #e7f6ea;
    color: #0f5132;
}

.mm-todo-dashboard-wrap .mm-todo-pill.status-on_hold {
    background: #fff4db;
    color: #7a4b00;
}

.mm-todo-dashboard-wrap .mm-todo-pill.status-closed {
    background: #e8f0fe;
    color: #1a3d7c;
}

.mm-todo-dashboard-wrap .mm-todo-pill.status-archived {
    background: #f3f4f6;
    color: #4b5563;
}

@media (max-width: 1100px) {
    .mm-todo-dashboard-wrap .mm-todo-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mm-todo-dashboard-wrap .mm-todo-stats {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 640px) {
    .mm-todo-dashboard-wrap .mm-todo-stats {
        grid-template-columns: 1fr;
    }

    .mm-todo-dashboard-wrap .mm-todo-card-head {
        display: block;
    }

    .mm-todo-dashboard-wrap .mm-todo-card-head .button,
    .mm-todo-dashboard-wrap .mm-todo-card-head .mm-todo-kicker {
        margin-top: 10px;
    }
}


/* Projects board */
.mm-todo-project-board-wrap {
    max-width: 1480px;
}

.mm-todo-project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin: 12px 0 0;
    align-items: flex-end;
}

.mm-todo-project-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-bottom-width: 0;
    border-radius: 8px 8px 0 0;
    background: #f7f7f7;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.mm-todo-project-tab:hover {
    background: #f4f78d;
    color: #1d2327;
}
.mm-todo-project-tab:focus,
.mm-todo-project-tab:active {
    outline: none;
    box-shadow: none;
}

.mm-todo-project-tab.is-active {
    background: #edf36a;
    border-color: #ccc;
    transform: none;
    top: 5px;
}

.mm-todo-project-tab--add {
    justify-content: center;
    min-width: 48px;
    padding: 10px 14px;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
}

.mm-todo-project-tab--add:hover {
    background: #dff4df;
    color: #1d2327;
}

.mm-todo-project-tab-count {
    display: inline-block;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    font-size: 12px;
    text-align: center;
}

.mm-todo-project-colour-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    flex: 0 0 10px;
}

.mm-todo-project-board {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.mm-todo-project-board-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
}

.mm-todo-project-board-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}

.mm-todo-project-board-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-todo-project-board-description {
    margin: 8px 0 0;
    color: #50575e;
    max-width: 900px;
}

.mm-todo-project-board-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.mm-todo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f1;
}

.mm-todo-chip--status-active,
.mm-todo-chip--status-open,
.mm-todo-chip--status-in_progress {
    background: #e7f5ea;
}

.mm-todo-chip--status-waiting {
    background: #fff5d6;
}

.mm-todo-chip--status-blocked,
.mm-todo-chip--priority-urgent,
.mm-todo-chip--priority-high {
    background: #ffe2e0;
}

.mm-todo-chip--done {
    background: #f0f0f1;
}

.mm-todo-chip--deadline {
    background: #eef3ff;
    color: #284b8f;
}

.mm-todo-project-board-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-todo-project-quick-add {
    border-top: 1px solid #e2e4e7;
    border-bottom: 1px solid #e2e4e7;
    background: #fcfcfc;
    padding: 0 22px;
}

.mm-todo-project-quick-add details {
    padding: 14px 0;
}

.mm-todo-project-quick-add details,
.mm-todo-project-settings details,
.mm-todo-collapsible-panel details {
    margin: 0;
}

.mm-todo-project-quick-add summary,
.mm-todo-project-settings summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 600;
    color: #1d2327;
}

.mm-todo-project-quick-add summary {
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: background .2s ease, border-color .2s ease;
}

.mm-todo-project-quick-add summary:hover {
    background: #edf3fa;
    border-color: #d4dde8;
}

.mm-todo-project-quick-add summary::-webkit-details-marker,
.mm-todo-project-settings summary::-webkit-details-marker,
.mm-todo-collapsible-summary::-webkit-details-marker {
    display: none;
}

.mm-todo-project-quick-add summary::before {
    content: '+';
    display: inline-block;
    width: 18px;
    margin-right: 6px;
    font-weight: 700;
}

.mm-todo-project-quick-add details[open] summary::before {
    content: '–';
}

.mm-todo-collapsible-summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 600;
    color: #1d2327;
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .2s ease, border-color .2s ease;
}

.mm-todo-collapsible-summary:hover {
    background: #edf3fa;
    border-color: #d4dde8;
}

.mm-todo-collapsible-summary .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #64748b;
    transition: transform .18s ease;
}

.mm-todo-collapsible-panel details[open] > .mm-todo-collapsible-summary .dashicons,
.mm-todo-project-settings details[open] > .mm-todo-collapsible-summary .dashicons {
    transform: rotate(90deg);
}

.mm-todo-collapsible-summary-text {
    flex: 1;
}

.mm-todo-project-settings-icon {
    margin-left: 12px;
}

.mm-todo-project-settings-summary-text {
    margin-left: 2px;
}

.mm-todo-quick-add-form,
.mm-todo-project-settings-form {
    padding: 14px 0 0;
}

.mm-todo-quick-add-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(220px, 1.4fr) 150px 150px 170px auto;
    gap: 10px;
    align-items: end;
}

.mm-todo-project-settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) 140px 170px 170px 120px 120px;
    gap: 12px;
    align-items: end;
}

.mm-todo-quick-add-field label,
.mm-todo-project-settings-field label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
}

.mm-todo-quick-add-field input[type="text"],
.mm-todo-quick-add-field input[type="date"],
.mm-todo-quick-add-field select,
.mm-todo-project-settings-field input[type="text"],
.mm-todo-project-settings-field input[type="date"],
.mm-todo-project-settings-field input[type="number"],
.mm-todo-project-settings-field input[type="color"],
.mm-todo-project-settings-field select,
.mm-todo-project-settings-field textarea {
    width: 100%;
    max-width: 100%;
}

.mm-todo-project-settings-field textarea {
    min-height: 120px;
    resize: vertical;
}

.mm-todo-quick-add-actions,
.mm-todo-project-settings-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mm-todo-quick-add-actions {
    padding-top: 21px;
}

.mm-todo-project-settings-actions {
    padding-top: 20px;
}

.mm-todo-project-settings-field--description {
    margin-top: 12px;
}

.mm-todo-task-list {
    padding: 8px 0 0;
}

.mm-todo-task-row {
    border-top: 1px solid #f0f0f1;
    padding: 0 18px;
    position: relative;
}

.mm-todo-task-row:first-child {
    border-top: 0;
}

.mm-todo-task-main {
    display: grid;
    grid-template-columns: 24px 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 4px;
}

.mm-todo-task-toggle-form {
    margin: 0;
}

.mm-todo-task-toggle {
    width: 26px;
    height: 26px;
    border: 2px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.mm-todo-task-toggle.is-complete {
    background: #ffe58f;
    border-color: #c9a227;
}

.mm-todo-task-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

.mm-todo-task-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.mm-todo-task-title a {
    color: #1d2327;
    text-decoration: none;
}

.mm-todo-task-title a:hover {
    color: #2271b1;
}

.mm-todo-task-summary {
    margin: 0;
    color: #50575e;
    line-height: 1.45;
}

.mm-todo-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.mm-todo-task-type-icon {
    color: var(--mm-todo-task-type-colour, #6b7280);
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mm-todo-task-extra {
    margin: 0 0 14px 54px;
    border-left: 3px solid #f0f0f1;
    padding: 0 0 0 14px;
}

.mm-todo-task-extra details summary {
    cursor: pointer;
    font-weight: 600;
}

.mm-todo-task-extra-content {
    padding-top: 10px;
    color: #2c3338;
}

.mm-todo-task-row.is-complete {
    background: linear-gradient(90deg, rgba(255, 105, 180, 0.13) 0%, rgba(255, 255, 255, 0.85) 65%);
}

.mm-todo-task-row.is-complete .mm-todo-task-title,
.mm-todo-task-row.is-complete .mm-todo-task-summary {
    opacity: .82;
}

.mm-todo-empty-state {
    padding: 22px;
    color: #50575e;
}

.mm-todo-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 18px 20px;
}

.mm-todo-panel--subtle {
    border-width: 1px 0 0;
    padding-top: 14px;
}

.mm-todo-completed-tasks {
    padding-top: 14px;
}

.mm-todo-completed-empty {
    margin: 14px 0 0;
}

.mm-todo-completed-tasks .mm-todo-task-main {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.mm-todo-completed-tasks .mm-todo-task-extra {
    margin-left: 0;
    border-left: 0;
    padding-left: 0;
}

.mm-todo-project-settings {
    border-top: 1px solid #e2e4e7;
    background: #fcfcfc;
    padding: 0 22px 16px;
}

.mm-todo-project-settings-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 14px;
}

.mm-todo-project-settings-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mm-todo-project-settings-meta p {
    margin: 0;
    white-space: nowrap;
}

.mm-todo-project-settings-meta p:last-child {
    margin-bottom: 0;
}

.mm-todo-project-settings-main {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    padding: 16px;
}

.mm-todo-task-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-height: 26px;
    margin-top: 1px;
    color: #8c8f94;
    cursor: move;
    user-select: none;
    font-size: 16px;
    line-height: 1;
}

.mm-todo-task-drag-handle:hover {
    color: #1d2327;
}

.mm-todo-sort-placeholder {
    height: 54px;
    margin: 0 18px;
    border: 2px dashed #c3c4c7;
    background: #f6f7f7;
}

.ui-sortable-helper {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    background: #fff;
}

@media (max-width: 1180px) {
    .mm-todo-project-settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mm-todo-project-settings-actions {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

@media (max-width: 1100px) {
    .mm-todo-quick-add-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mm-todo-quick-add-actions {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .mm-todo-project-settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .mm-todo-task-main,
    .mm-todo-completed-tasks .mm-todo-task-main {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .mm-todo-task-tags {
        grid-column: 2;
        justify-content: flex-start;
    }

    .mm-todo-task-extra,
    .mm-todo-completed-tasks .mm-todo-task-extra {
        margin-left: 0;
        border-left: 0;
        padding-left: 0;
    }

    .mm-todo-quick-add-grid,
    .mm-todo-project-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.0.3 - Task pages + Task Types + Task Detail */
.mm-todo-page-subtitle {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.2;
    color: #1f2937;
}

.mm-todo-page-intro {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.mm-todo-empty-state {
    margin: 0;
    color: #667085;
}

.mm-todo-label-strong {
    font-weight: 700;
    color: #1f2937;
}

.mm-todo-inline-form {
    margin: 0;
}

.mm-todo-inline-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.mm-todo-inline-pill--default {
    background: #e7f5ea;
    color: #216e39;
}

.mm-todo-spacing-top-sm {
    margin-top: 14px;
}

.mm-todo-spacing-top-md {
    margin-top: 18px;
}

.mm-todo-spacing-bottom-md {
    margin-bottom: 20px;
}

.mm-todo-table {
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    overflow: hidden;
}

.mm-todo-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e4e8ef;
    color: #475467;
    font-weight: 700;
}

.mm-todo-table td,
.mm-todo-table th {
    vertical-align: middle;
}

.mm-todo-tasks-wrap,
.mm-todo-task-types-wrap,
.mm-todo-task-detail-wrap {
    max-width: 1240px;
}

.mm-todo-tasks-wrap h1,
.mm-todo-task-types-wrap h1,
.mm-todo-task-detail-wrap h1 {
    margin-bottom: 12px;
    color: #1f2937;
}

.mm-todo-task-add-card,
.mm-todo-task-type-card,
.mm-todo-task-detail-wrap .mm-todo-card {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mm-todo-task-add-card {
    padding: 24px;
    margin: 20px 0 24px;
    max-width: 980px;
}

.mm-todo-task-add-header {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f6f8fc;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
}

.mm-todo-task-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.mm-todo-task-add-field label,
.mm-todo-task-type-field label,
.mm-todo-task-detail-wrap .mm-todo-field label {
    display: block;
    margin: 0 0 7px;
    font-weight: 700;
    font-size: 14px;
    color: #344054;
}

.mm-todo-task-add-field input[type="text"],
.mm-todo-task-add-field select,
.mm-todo-task-add-field textarea,
.mm-todo-task-type-field input[type="text"],
.mm-todo-task-type-field input[type="color"],
.mm-todo-task-detail-wrap .mm-todo-field input[type="text"],
.mm-todo-task-detail-wrap .mm-todo-field input[type="date"],
.mm-todo-task-detail-wrap .mm-todo-field select,
.mm-todo-task-detail-wrap .mm-todo-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cfd7e3;
    background: #fff;
    box-shadow: none;
}

.mm-todo-task-add-field input[type="text"]:focus,
.mm-todo-task-add-field select:focus,
.mm-todo-task-add-field textarea:focus,
.mm-todo-task-type-field input[type="text"]:focus,
.mm-todo-task-type-field input[type="color"]:focus,
.mm-todo-task-detail-wrap .mm-todo-field input[type="text"]:focus,
.mm-todo-task-detail-wrap .mm-todo-field input[type="date"]:focus,
.mm-todo-task-detail-wrap .mm-todo-field select:focus,
.mm-todo-task-detail-wrap .mm-todo-field textarea:focus {
    border-color: #7c98ff;
    box-shadow: 0 0 0 3px rgba(88, 115, 255, 0.12);
    outline: none;
}

.mm-todo-task-add-field textarea,
.mm-todo-task-detail-wrap .mm-todo-field textarea {
    resize: vertical;
}

.mm-todo-task-add-field--full,
.mm-todo-task-detail-wrap .mm-todo-field--wide {
    grid-column: 1 / -1;
}

.mm-todo-form-actions {
    margin: 18px 0 0;
}

.mm-todo-tasks-wrap .button,
.mm-todo-task-types-wrap .button,
.mm-todo-task-detail-wrap .button,
.mm-todo-task-detail-wrap .button-link-delete {
    border-radius: 12px;
}

.mm-todo-tasks-wrap .button.button-primary,
.mm-todo-task-types-wrap .button.button-primary,
.mm-todo-task-detail-wrap .button.button-primary {
    min-height: 42px;
    padding: 0 16px;
    border-color: #2f6fed;
    background: #2f6fed;
    box-shadow: none;
}

.mm-todo-tasks-wrap .button.button-primary:hover,
.mm-todo-tasks-wrap .button.button-primary:focus,
.mm-todo-task-types-wrap .button.button-primary:hover,
.mm-todo-task-types-wrap .button.button-primary:focus,
.mm-todo-task-detail-wrap .button.button-primary:hover,
.mm-todo-task-detail-wrap .button.button-primary:focus {
    background: #245fda;
    border-color: #245fda;
}

.mm-todo-task-types-wrap .mm-todo-task-type-card {
    padding: 22px;
    margin: 20px 0 24px;
    max-width: 1100px;
}

.mm-todo-task-types-wrap .mm-todo-task-type-card--wide {
    max-width: 1200px;
}

.mm-todo-task-type-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) 120px auto;
    gap: 12px;
    align-items: end;
}

.mm-todo-task-type-actions,
.mm-todo-task-type-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mm-todo-task-type-actions {
    padding-top: 24px;
}

.mm-todo-task-type-note {
    color: #646970;
    font-size: 12px;
    margin: 8px 0 0;
}

.mm-todo-icon-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-todo-icon-picker-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    flex: 0 0 34px;
}

.mm-todo-icon-picker-preview .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.mm-todo-icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
    gap: 10px;
    margin-top: 10px;
}

.mm-todo-icon-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: all .15s ease;
}

.mm-todo-icon-picker-button:hover {
    border-color: #2271b1;
    transform: translateY(-1px);
}

.mm-todo-icon-picker-button.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, .15);
    background: #f6fbff;
}

.mm-todo-icon-picker-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.mm-todo-toggle-button {
    border-width: 1px;
}

.mm-todo-toggle-button.is-active {
    background: #e7f5ea;
    border-color: #7abf86;
    color: #216e39;
}

.mm-todo-toggle-button.is-inactive {
    background: #fff4e5;
    border-color: #e0a96d;
    color: #9a5a00;
}

.mm-todo-toggle-button[disabled] {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #646970;
}

.mm-todo-task-detail-wrap .mm-todo-card {
    padding: 24px 24px 22px;
    margin: 18px 0;
}

.mm-todo-task-detail-wrap .mm-todo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.mm-todo-task-detail-wrap .mm-todo-main-column,
.mm-todo-task-detail-wrap .mm-todo-side-column {
    min-width: 0;
}

.mm-todo-task-detail-wrap .mm-todo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.mm-todo-task-detail-wrap .mm-todo-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mm-todo-task-detail-wrap .mm-todo-project-line {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 15px;
}

.mm-todo-task-detail-wrap .mm-todo-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #667085;
    margin-left: 4px;
}

.mm-todo-task-detail-wrap .mm-todo-header-meta strong {
    color: #475467;
    font-weight: 600;
}

.mm-todo-task-detail-wrap .mm-todo-header-meta-divider {
    color: #98a2b3;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill,
.mm-todo-note-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-open {
    background: #e8f1ff;
    color: #1d4ed8;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-in_progress {
    background: #ede9fe;
    color: #6d28d9;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-waiting {
    background: #eef2f7;
    color: #475569;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-blocked {
    background: #fff1f2;
    color: #be123c;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-done {
    background: #ecfdf5;
    color: #047857;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-closed {
    background: #f1f5f9;
    color: #334155;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-cancelled {
    background: #fff7ed;
    color: #c2410c;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill.status-archived,
.mm-todo-note-pill {
    background: #f1f5f9;
    color: #475569;
}

.mm-todo-task-detail-wrap .mm-todo-status-pill--pinned {
    background: #fff5d6;
    color: #9a6700;
}

.mm-todo-note-pill--progress {
    background: #e8f1ff;
    color: #1d4ed8;
}

.mm-todo-note-pill--error,
.mm-todo-note-pill--blocker {
    background: #fff1f2;
    color: #be123c;
}

.mm-todo-note-pill--idea,
.mm-todo-note-pill--link,
.mm-todo-note-pill--test_result {
    background: #f3f0ff;
    color: #6d28d9;
}

.mm-todo-task-detail-wrap .mm-todo-meta-grid,
.mm-todo-task-detail-wrap .mm-todo-update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: end;
}

.mm-todo-task-detail-wrap .mm-todo-field--title {
    max-width: 720px;
}

.mm-todo-task-detail-wrap .mm-todo-textarea-large {
    min-height: 190px;
}

.mm-todo-task-detail-wrap .mm-todo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mm-todo-task-detail-wrap .mm-todo-section-title {
    margin: 0 0 16px;
    font-size: 20px;
    color: #1f2937;
}

.mm-todo-task-detail-wrap .mm-todo-inline-action {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.mm-todo-task-detail-wrap .mm-todo-inline-action .mm-todo-field {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

.mm-todo-task-detail-wrap .mm-todo-side-column .mm-todo-card {
    margin-top: 18px;
}

.mm-todo-task-detail-wrap .mm-todo-side-column .mm-todo-section-title {
    font-size: 18px;
}

.mm-todo-task-detail-wrap .mm-todo-card--timeline {
    margin-top: 20px;
}

.mm-todo-timeline-list {
    display: grid;
    gap: 14px;
}

.mm-todo-timeline-item {
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fbfcfe;
}

.mm-todo-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mm-todo-timeline-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
    color: #1f2937;
}

.mm-todo-timeline-date {
    color: #667085;
    font-size: 12px;
}

.mm-todo-timeline-content {
    color: #344054;
}

.mm-todo-timeline-content > :first-child {
    margin-top: 0;
}

.mm-todo-timeline-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .mm-todo-task-detail-wrap .mm-todo-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .mm-todo-task-type-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mm-todo-task-type-actions {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

@media (max-width: 900px) {
    .mm-todo-task-add-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .mm-todo-task-type-grid,
    .mm-todo-task-detail-wrap .mm-todo-meta-grid,
    .mm-todo-task-detail-wrap .mm-todo-update-grid {
        grid-template-columns: 1fr;
    }

    .mm-todo-task-detail-wrap .mm-todo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mm-todo-task-detail-wrap .mm-todo-inline-action {
        display: block;
    }

    .mm-todo-task-detail-wrap .mm-todo-inline-action .mm-todo-field {
        margin-bottom: 10px;
    }
}


/* Task Types page polish */
.mm-todo-task-types-wrap .mm-todo-table td {
    vertical-align: middle;
}

.mm-todo-task-type-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.mm-todo-task-type-actions-row .mm-todo-inline-form {
    margin: 0;
}

.mm-todo-task-type-actions-row .button,
.mm-todo-task-types-wrap .mm-todo-edit-action,
.mm-todo-task-types-wrap .mm-todo-secondary-action,
.mm-todo-task-types-wrap .mm-todo-toggle-button {
    min-height: 38px;
    height: 38px;
    padding: 0 18px;
    line-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-sizing: border-box;
}

.mm-todo-task-types-wrap .mm-todo-edit-action {
    min-width: 94px;
    margin-left: auto;
}

.mm-todo-task-types-wrap .mm-todo-secondary-action.is-default,
.mm-todo-task-types-wrap .mm-todo-secondary-action.is-default[disabled] {
    background: #e8f1fb;
    border-color: #b8d0ef;
    color: #4f79a8;
    opacity: 1;
    box-shadow: none;
    cursor: default;
}

        .mm-todo-project-board-wrap {
            max-width: 1480px;
        }
        .mm-todo-project-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 1px;
            margin: 12px 0 0;
            align-items: flex-end;
        }
        .mm-todo-project-tab {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border: 1px solid #ccc;
            border-bottom-width: 0;
            border-radius: 8px 8px 0 0;
            background: #f7f7f7;
            color: #666;
            text-decoration: none;
            font-weight: 600;
            position: relative;
        }
        .mm-todo-project-tab:hover {
            background: #f4f78d;
            color: #1d2327;
        }
        .mm-todo-project-tab.is-active {
            background: #edf36a;
            border-color: #ccc;
            transform: none;
            top: 5px;
        }
        .mm-todo-project-tab--add {
            justify-content: center;
            min-width: 48px;
            padding: 10px 14px;
            font-size: 22px;
            line-height: 1;
            font-weight: 500;
        }
        .mm-todo-project-tab--add:hover {
            background: #dff4df;
            color: #1d2327;
        }
        .mm-todo-project-tab-count {
            display: inline-block;
            min-width: 24px;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(0,0,0,.08);
            font-size: 12px;
            text-align: center;
        }
        .mm-todo-project-colour-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
            flex: 0 0 10px;
        }
        .mm-todo-project-board {
            background: #fff;
            border: 1px solid #dcdcde;
            padding: 0;
            margin-bottom: 24px;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }
        .mm-todo-project-board-header {
            padding: 18px 22px;
            border-bottom: 1px solid #e2e4e7;
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            justify-content: space-between;
            align-items: flex-start;
        }
        .mm-todo-project-board-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            margin: 0 0 6px;
        }
        .mm-todo-project-board-title {
            margin: 0;
            font-size: 22px;
            line-height: 1.2;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .mm-todo-project-board-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 10px 0 0;
        }
        .mm-todo-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 12px;
            font-weight: 600;
            background: #f0f0f1;
        }
        .mm-todo-chip--status-active,
        .mm-todo-chip--status-open,
        .mm-todo-chip--status-in_progress {
            background: #e7f5ea;
        }
        .mm-todo-chip--status-waiting {
            background: #fff5d6;
        }
        .mm-todo-chip--status-blocked,
        .mm-todo-chip--priority-urgent,
        .mm-todo-chip--priority-high {
            background: #ffe2e0;
        }
        .mm-todo-chip--done {
            background: #f0f0f1;
        }
        .mm-todo-chip--deadline {
            background: #eef3ff;
            color: #284b8f;
        }
        .mm-todo-project-board-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .mm-todo-project-quick-add {
            border-top: 1px solid #e2e4e7;
            border-bottom: 1px solid #e2e4e7;
            background: #fcfcfc;
            padding: 0 22px;
        }
        .mm-todo-project-quick-add details {
            padding: 14px 0;
        }
        .mm-todo-project-quick-add details,
        .mm-todo-project-settings details,
        .mm-todo-collapsible-panel details {
            margin: 0;
        }
        .mm-todo-project-quick-add summary,
        .mm-todo-project-settings summary {
            cursor: pointer;
            list-style: none;
            padding: 12px 14px;
            font-weight: 600;
            color: #1d2327;
        }
        .mm-todo-project-quick-add summary {
            background: #f4f7fb;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            transition: background .2s ease, border-color .2s ease;
        }
        .mm-todo-project-quick-add summary:hover {
            background: #edf3fa;
            border-color: #d4dde8;
        }
        .mm-todo-project-quick-add summary::-webkit-details-marker,
        .mm-todo-project-settings summary::-webkit-details-marker,
        .mm-todo-collapsible-summary::-webkit-details-marker {
            display: none;
        }
        .mm-todo-project-quick-add summary::before
        {
            content: '+';
            display: inline-block;
            width: 18px;
            margin-right: 6px;
            font-weight: 700;
        }
        .mm-todo-project-quick-add details[open] summary::before
         {
            content: '–';
        }
        .mm-todo-collapsible-summary {
            cursor: pointer;
            list-style: none;
            padding: 12px 14px;
            font-weight: 600;
            color: #1d2327;
            background: #f4f7fb;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background .2s ease, border-color .2s ease;
        }
        .mm-todo-collapsible-summary:hover {
            background: #edf3fa;
            border-color: #d4dde8;
        }
        .mm-todo-collapsible-summary .dashicons {
            width: 16px;
            height: 16px;
            font-size: 16px;
            color: #64748b;
            transition: transform .18s ease;
        }
        .mm-todo-collapsible-panel details[open] > .mm-todo-collapsible-summary .dashicons,
        .mm-todo-project-settings details[open] > .mm-todo-collapsible-summary .dashicons {
            transform: rotate(90deg);
        }
        .mm-todo-collapsible-summary-text {
            flex: 1;
        }
        .mm-todo-quick-add-form,
        .mm-todo-project-settings-form {
           padding: 14px 0 0;
        }
        .mm-todo-quick-add-grid {
            display: grid;
            grid-template-columns: minmax(240px, 2fr) minmax(220px, 1.4fr) 150px 150px 170px auto;
            gap: 10px;
            align-items: end;
        }
        .mm-todo-project-settings-grid {
            display: grid;
            grid-template-columns: minmax(260px, 2fr) 140px 170px 170px 120px 120px;
            gap: 12px;
            align-items: end;
        }
        .mm-todo-quick-add-field label,
        .mm-todo-project-settings-field label {
            display: block;
            margin: 0 0 4px;
            font-size: 12px;
            font-weight: 600;
            color: #50575e;
        }
        .mm-todo-quick-add-field input[type="text"],
        .mm-todo-quick-add-field select,
        .mm-todo-project-settings-field input[type="text"],
        .mm-todo-project-settings-field input[type="date"],
        .mm-todo-project-settings-field input[type="number"],
        .mm-todo-project-settings-field input[type="color"],
        .mm-todo-project-settings-field select,
        .mm-todo-project-settings-field textarea {
            width: 100%;
            max-width: 100%;
        }
        .mm-todo-project-settings-field textarea {
            min-height: 120px;
            resize: vertical;
        }
        .mm-todo-quick-add-actions,
        .mm-todo-project-settings-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .mm-todo-quick-add-actions {
            padding-top: 21px;
        }
        .mm-todo-project-settings-actions {
            padding-top: 20px;
        }
        .mm-todo-task-list {
            padding: 8px 0 0;
        }
        .mm-todo-task-row {
            border-top: 1px solid #f0f0f1;
            padding: 0 18px;
            position: relative;
        }
        .mm-todo-task-row:first-child {
            border-top: 0;
        }
        .mm-todo-task-main {
            display: grid;
            grid-template-columns: 24px 42px minmax(0,1fr) auto;
            gap: 12px;
            align-items: start;
            padding: 14px 4px;
        }
        .mm-todo-task-toggle-form {
            margin: 0;
        }
        .mm-todo-task-toggle {
            width: 26px;
            height: 26px;
            border: 2px solid #8c8f94;
            border-radius: 4px;
            background: #fff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
            padding: 0;
        }
        .mm-todo-task-toggle.is-complete {
            background: #ffe58f;
            border-color: #c9a227;
        }
        .mm-todo-task-title-line {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            margin-bottom: 4px;
        }
        .mm-todo-task-title {
            font-size: 15px;
            font-weight: 600;
            line-height: 1.35;
            margin: 0;
        }
        .mm-todo-task-title a {
            color: #1d2327;
            text-decoration: none;
        }
        .mm-todo-task-title a:hover {
            color: #2271b1;
        }
        .mm-todo-task-summary {
            margin: 0;
            color: #50575e;
            line-height: 1.45;
        }
        .mm-todo-task-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: flex-end;
        }
        .mm-todo-task-extra {
            margin: 0 0 14px 54px;
            border-left: 3px solid #f0f0f1;
            padding: 0 0 0 14px;
        }
        .mm-todo-task-extra details summary {
            cursor: pointer;
            font-weight: 600;
        }
        .mm-todo-task-extra-content {
            padding-top: 10px;
            color: #2c3338;
        }
        .mm-todo-task-row.is-complete {
            background: linear-gradient(90deg, rgba(255, 105, 180, 0.13) 0%, rgba(255, 255, 255, 0.85) 65%);
        }
        .mm-todo-task-row.is-complete .mm-todo-task-title,
        .mm-todo-task-row.is-complete .mm-todo-task-summary {
            opacity: .82;
        }
        .mm-todo-empty-state {
            padding: 22px;
            color: #50575e;
        }
        .mm-todo-panel {
            background: #fff;
            border: 1px solid #dcdcde;
            padding: 18px 20px;
        }
        .mm-todo-panel--subtle {
            border-width: 1px 0 0;
            padding-top: 14px;
        }
        .mm-todo-completed-tasks {
            padding-top: 14px;
        }
        .mm-todo-completed-tasks .mm-todo-task-main {
            grid-template-columns: 42px minmax(0,1fr) auto;
        }
        .mm-todo-completed-tasks .mm-todo-task-extra {
            margin-left: 0;
            border-left: 0;
            padding-left: 0;
        }
        .mm-todo-project-settings {
            border-top: 1px solid #e2e4e7;
            background: #fcfcfc;
            padding: 0 22px 16px;
        }
        .mm-todo-project-settings-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            padding-top: 14px;
        }
        .mm-todo-project-settings-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
        }
        .mm-todo-project-settings-meta p {
            margin: 0;
            white-space: nowrap;
        }
        .mm-todo-project-settings-meta p:last-child {
            margin-bottom: 0;
        }
        .mm-todo-project-settings-main {
            background: #fff;
            border: 1px solid #e2e4e7;
            border-radius: 12px;
            padding: 16px;
        }
        .mm-todo-task-drag-handle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            min-height: 26px;
            margin-top: 1px;
            color: #8c8f94;
            cursor: move;
            user-select: none;
            font-size: 16px;
            line-height: 1;
        }
        .mm-todo-task-drag-handle:hover {
            color: #1d2327;
        }
        .mm-todo-sort-placeholder {
            height: 54px;
            margin: 0 18px;
            border: 2px dashed #c3c4c7;
            background: #f6f7f7;
        }
        .ui-sortable-helper {
            box-shadow: 0 8px 18px rgba(0,0,0,.12);
            background: #fff;
        }
        @media (max-width: 1180px) {
            .mm-todo-project-settings-grid {
                grid-template-columns: 1fr 1fr;
            }
            .mm-todo-project-settings-actions {
                grid-column: 1 / -1;
                padding-top: 0;
            }
        }
        @media (max-width: 1100px) {
            .mm-todo-quick-add-grid {
                grid-template-columns: 1fr 1fr;
            }
            .mm-todo-quick-add-actions {
                grid-column: 1 / -1;
                padding-top: 0;
            }
            .mm-todo-project-settings-layout {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 960px) {
            .mm-todo-task-main,
            .mm-todo-completed-tasks .mm-todo-task-main {
                grid-template-columns: 34px minmax(0,1fr);
            }
            .mm-todo-task-tags {
                grid-column: 2;
                justify-content: flex-start;
            }
            .mm-todo-task-extra,
            .mm-todo-completed-tasks .mm-todo-task-extra {
                margin-left: 0;
                border-left: 0;
                padding-left: 0;
            }
            .mm-todo-quick-add-grid,
            .mm-todo-project-settings-grid {
                grid-template-columns: 1fr;
            }
        }


/* v1.0.8 - Mobile task row fix */
@media (max-width: 960px) {
    .mm-todo-task-main,
    .mm-todo-completed-tasks .mm-todo-task-main {
        grid-template-columns: 18px 34px minmax(0, 1fr);
        gap: 10px;
    }

    .mm-todo-task-main > div:nth-child(3),
    .mm-todo-completed-tasks .mm-todo-task-main > div:nth-child(2) {
        min-width: 0;
    }

    .mm-todo-task-title-line {
        display: block;
    }

    .mm-todo-task-title,
    .mm-todo-task-summary {
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .mm-todo-task-tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 62px;
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .mm-todo-task-row {
        padding: 0 12px;
    }

    .mm-todo-task-main,
    .mm-todo-completed-tasks .mm-todo-task-main {
        grid-template-columns: 18px 34px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 0;
    }

    .mm-todo-task-tags {
        padding-left: 62px;
    }
}


/* v1.0.9 - Mobile project tabs horizontal scroll */
@media (max-width: 960px) {
    .mm-todo-project-tabs,
    .mm-todo-project-tab-wrap,
    .mm-todo-projects-tabs,
    .mm-todo-projects-tab-wrap {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 8px;
        padding-bottom: 6px;
    }

    .mm-todo-project-tabs::-webkit-scrollbar,
    .mm-todo-project-tab-wrap::-webkit-scrollbar,
    .mm-todo-projects-tabs::-webkit-scrollbar,
    .mm-todo-projects-tab-wrap::-webkit-scrollbar {
        height: 6px;
    }

    .mm-todo-project-tabs::-webkit-scrollbar-thumb,
    .mm-todo-project-tab-wrap::-webkit-scrollbar-thumb,
    .mm-todo-projects-tabs::-webkit-scrollbar-thumb,
    .mm-todo-projects-tab-wrap::-webkit-scrollbar-thumb {
        background: rgba(31, 58, 95, 0.22);
        border-radius: 999px;
    }

    .mm-todo-project-tab,
    .mm-todo-projects-tab,
    .mm-todo-project-tabs a,
    .mm-todo-project-tab-wrap a,
    .mm-todo-projects-tabs a,
    .mm-todo-projects-tab-wrap a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .mm-todo-project-tabs,
    .mm-todo-project-tab-wrap,
    .mm-todo-projects-tabs,
    .mm-todo-projects-tab-wrap {
        gap: 6px;
        padding-bottom: 4px;
        margin-bottom: 0px;
    }
}


/* v1.1.0 - Mobile dashboard width + project overview fixes */
@media (max-width: 782px) {
    .mm-todo-dashboard-wrap {
        max-width: 100%;
        margin-right: 0;
        overflow-x: hidden;
    }

    .mm-todo-dashboard-wrap .mm-todo-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mm-todo-dashboard-wrap .mm-todo-dashboard-column,
    .mm-todo-dashboard-wrap .mm-todo-dashboard-grid > .mm-todo-card,
    .mm-todo-dashboard-wrap .mm-todo-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mm-todo-dashboard-wrap .mm-todo-card {
        padding: 18px 16px;
    }

    .mm-todo-dashboard-wrap .mm-todo-card-head {
        display: block;
    }

    .mm-todo-dashboard-wrap .mm-todo-card-head .button,
    .mm-todo-dashboard-wrap .mm-todo-card-head .mm-todo-kicker {
        margin-top: 10px;
    }

    .mm-todo-dashboard-wrap .mm-todo-export-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mm-todo-dashboard-wrap .mm-todo-export-list .button,
    .mm-todo-dashboard-wrap .mm-todo-card-head .button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
    }

    .mm-todo-dashboard-wrap .mm-todo-table-wrap {
        overflow: visible;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table,
    .mm-todo-dashboard-wrap .mm-todo-project-table tbody {
        display: block;
        width: 100%;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table thead {
        display: none;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
        padding: 16px 0;
        border-top: 1px solid #e0e6ef;
        width: 100%;
        box-sizing: border-box;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table tbody tr:first-child {
        border-top: 0;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:first-child,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:last-child {
        grid-column: 1 / -1;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(2)::before,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(3)::before,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(4)::before,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(5)::before {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #667085;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(2)::before {
        content: 'Code';
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(3)::before {
        content: 'Status';
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(4)::before {
        content: 'Total tasks';
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(5)::before {
        content: 'Open tasks';
    }

    .mm-todo-dashboard-wrap .mm-todo-project-title,
    .mm-todo-dashboard-wrap .mm-todo-project-desc {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:last-child .button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* v1.1.1 - Mobile project overview compact meta row */
@media (max-width: 782px) {
    .mm-todo-dashboard-wrap .mm-todo-project-table thead {
        display: none;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table,
    .mm-todo-dashboard-wrap .mm-todo-project-table tbody,
    .mm-todo-dashboard-wrap .mm-todo-project-table tr,
    .mm-todo-dashboard-wrap .mm-todo-project-table td {
        width: 100%;
        box-sizing: border-box;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table tr {
        display: block;
        padding: 16px 0;
        border-top: 1px solid #e0e6ef;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table tbody tr:first-child {
        border-top: 0;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td {
        display: none;
        padding: 0;
        border: 0;
        min-width: 0;
    }

    /* title + description */
    .mm-todo-dashboard-wrap .mm-todo-project-table td:first-child {
        display: block;
        margin-bottom: 12px;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-title,
    .mm-todo-dashboard-wrap .mm-todo-project-desc {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* status / totals / open all on one line */
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(2),
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(3),
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(4) {
        display: inline-flex;
        align-items: center;
        margin: 0 14px 12px 0;
        width: auto;
        vertical-align: middle;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(2)::before,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(3)::before,
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(4)::before {
        display: none !important;
        content: none !important;
    }

    /* open board full width below */
    .mm-todo-dashboard-wrap .mm-todo-project-table td:last-child {
        display: block;
        margin-top: 2px;
    }

    .mm-todo-dashboard-wrap .mm-todo-project-table td:last-child .button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* make totals smaller inline values */
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(3),
    .mm-todo-dashboard-wrap .mm-todo-project-table td:nth-child(4) {
        font-size: 18px;
        line-height: 1;
        color: #667085;
        font-weight: 600;
    }
}


/* v1.1.3 - Keep dashboard summary stats on a single row on mobile */
@media (max-width: 640px) {
    .mm-todo-dashboard-wrap .mm-todo-stats {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        margin-bottom: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .mm-todo-dashboard-wrap .mm-todo-stats::-webkit-scrollbar {
        height: 6px;
    }

    .mm-todo-dashboard-wrap .mm-todo-stats::-webkit-scrollbar-thumb {
        background: rgba(31, 58, 95, 0.18);
        border-radius: 999px;
    }

    .mm-todo-dashboard-wrap .mm-todo-stat {
        flex: 0 0 132px;
        min-width: 132px;
        padding: 14px 10px;
        margin: 0;
    }

    .mm-todo-dashboard-wrap .mm-todo-stat-number {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .mm-todo-dashboard-wrap .mm-todo-stat-label {
        font-size: 12px;
        white-space: nowrap;
    }
}



/* Task types page */
.mm-todo-icon-picker-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    flex: 0 0 34px;
}
.mm-todo-icon-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mm-todo-task-type-card {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 20px;
    margin: 20px 0 24px 0;
    max-width: 1100px;
}
.mm-todo-task-type-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) 120px auto;
    gap: 12px;
    align-items: end;
}
.mm-todo-task-type-field label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}
.mm-todo-task-type-field input[type="text"],
.mm-todo-task-type-field input[type="number"],
.mm-todo-task-type-field input[type="color"] {
    width: 100%;
}
.mm-todo-task-type-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.mm-todo-icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 10px;
    max-width: 760px;
}
.mm-todo-icon-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mm-todo-icon-picker-button:hover,
.mm-todo-icon-picker-button:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
.mm-todo-icon-picker-button.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
    background: #f0f6fc;
}
.mm-todo-icon-picker-button .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}
.mm-todo-task-type-note {
    margin: 14px 0 0;
    color: #646970;
}
.mm-todo-task-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.mm-todo-task-type-actions-row form {
    margin: 0;
}
.mm-todo-toggle-button.is-active {
    background: #e7f5ea;
    border-color: #9fd0aa;
    color: #216e39;
}
.mm-todo-toggle-button.is-inactive {
    background: #fff4e5;
    border-color: #e5c48f;
    color: #8a4b08;
}
.mm-todo-secondary-action.is-default,
.mm-todo-secondary-action.is-default[disabled] {
    background: #f6f7f7;
    color: #50575e;
    border-color: #dcdcde;
}


/* v1.1.4 - Task update edit/delete tidy-up */
.mm-todo-task-detail-wrap .mm-todo-timeline-item details {
    margin-top: 8px;
}

.mm-todo-task-detail-wrap .mm-todo-timeline-item details > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #475467;
    font-weight: 600;
    list-style: none;
}

.mm-todo-task-detail-wrap .mm-todo-timeline-item details > summary::-webkit-details-marker {
    display: none;
}

.mm-todo-task-detail-wrap .button-link-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #f2b8b5;
    border-radius: 999px;
    background: #fff5f5;
    color: #b42318;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

.mm-todo-task-detail-wrap .button-link-delete:hover,
.mm-todo-task-detail-wrap .button-link-delete:focus {
    border-color: #e59b96;
    background: #fdecec;
    color: #912018;
    box-shadow: none;
}

.mm-todo-task-detail-wrap .mm-todo-timeline-item input[type="text"],
.mm-todo-task-detail-wrap .mm-todo-timeline-item textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mm-todo-task-detail-wrap .mm-todo-timeline-item .button.button-small.button-primary {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
}
