.sn-todo {--todo-border:#e4e9ef;--todo-muted:#64748b;margin:24px 0 40px;color:#243b35;font-size:14px;line-height:1.55}
.sn-todo *, .sn-todo *::before, .sn-todo *::after {box-sizing:border-box}
.sn-todo [hidden] {display:none!important}
.sn-todo h1 {font-size:30px;line-height:1.3;letter-spacing:-.6px;color:#153e30;margin:6px 0 8px}
.sn-todo h2 {font-size:19px;line-height:1.4;color:#173e31;margin:0}
.sn-todo h3 {font-size:14px;line-height:1.5;margin:0}
.sn-todo p {margin:0}
.sn-todo button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid transparent;border-radius:9px;background:#137250;color:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;box-shadow:none;transform:none;transition:background .15s}
.sn-todo button:hover {background:#0e5b3f;box-shadow:none;transform:none}
.sn-todo button i,.sn-todo button:hover i {color:inherit;font-size:14px}
.sn-todo button:disabled {opacity:.5;cursor:default}
.sn-todo button:focus-visible,.sn-todo summary:focus-visible {outline:3px solid #62b99b;outline-offset:2px}
.sn-todo input:not([type=checkbox]),.sn-todo select,.sn-todo textarea {width:100%;min-width:0;height:40px;font-size:14px;line-height:1.4;color:#243b35;border:1px solid #dbe3e9;box-shadow:none;border-radius:8px;background:#fff;padding:8px 10px}
.sn-todo textarea {height:auto;min-height:108px;resize:vertical}
.sn-todo label {display:grid;gap:6px;min-width:0;font-size:13px;font-weight:600}
.sn-todo input[type=checkbox] {width:19px;height:19px;flex-shrink:0;cursor:pointer;accent-color:#137250}
.sn-todo .todo-secondary,.sn-todo .todo-icon {color:#456458;background:#f4f7f6;border-color:#e0e8e4}
.sn-todo .todo-secondary:hover,.sn-todo .todo-icon:hover {background:#e6f1eb;color:#137250}
.sn-todo .todo-icon {padding:8px;min-width:38px}
.sn-todo .todo-danger {color:#b42338;background:#fff3f3;border-color:#f4d7dc}
.sn-todo .todo-danger:hover {background:#fee2e2}
.todo-heading {display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}
.todo-heading p,.todo-muted {color:var(--todo-muted)}
.todo-eyebrow {font-size:12px;font-weight:600;color:#6b8077;letter-spacing:.5px}
.todo-eyebrow span {color:#137250}
.todo-private {display:flex;align-items:center;gap:7px;border:1px solid #dce8df;background:#edf5ef;color:#427254;padding:7px 12px;border-radius:24px;white-space:nowrap;font-size:12px}
.todo-shell {display:flex;align-items:flex-start;gap:16px}
.todo-workspace {flex:1;min-width:0}
.todo-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.todo-stat {display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--todo-border);border-radius:12px;padding:15px 18px}
.todo-stat>i {display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#eef6f0;color:#137250;border-radius:11px;font-size:20px}
.todo-stat-overdue>i {color:#b66626;background:#fff4e8}
.todo-stat-completed>i {color:#5278b5;background:#eef3fb}
.todo-stat span {display:block;color:var(--todo-muted);font-size:12px}
.todo-stat strong {display:block;font-size:24px;line-height:1.25;color:#173e31;margin-top:3px}
.todo-board {display:flex;background:#fff;border:1px solid var(--todo-border);border-radius:14px;overflow:hidden;min-height:580px}
.todo-sidebar {width:210px;flex-shrink:0;padding:16px 10px;background:#fafcfb;border-right:1px solid var(--todo-border)}
.todo-sidebar nav {display:grid;gap:4px}
.sn-todo .todo-nav-button {width:100%;justify-content:flex-start;text-align:left;color:#64786e;background:transparent;padding:10px;font-weight:500}
.sn-todo .todo-nav-button:hover {background:#eef5f0}
.sn-todo .todo-nav-button.is-active {color:#137250;background:#e8f3ec;font-weight:700}
.todo-nav-button i {width:19px;text-align:center}
.todo-nav-button .todo-nav-name {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.todo-nav-count {font-size:11px;min-width:22px;text-align:center;border-radius:6px;background:#e8edea;padding:1px 4px}
.todo-lists-heading {display:flex;align-items:center;justify-content:space-between;margin:24px 0 6px;padding-left:10px}
.todo-lists-heading h2 {font-size:12px;color:#6a7c73;text-transform:uppercase;letter-spacing:.4px}
.todo-lists-heading .todo-icon {background:transparent;border:0;min-width:30px;min-height:30px;padding:5px}
.todo-color-dot {width:9px;height:9px;flex-shrink:0;border-radius:3px;margin:0 5px}
.todo-sidebar details {margin-top:20px}
.todo-sidebar summary {padding:8px 10px;font-size:12px;color:var(--todo-muted);cursor:pointer}
.todo-timezone {font-size:11px;color:#7d8b84;padding:24px 10px 4px}
.todo-main {flex:1;min-width:0;padding:22px}
.todo-section-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.todo-section-heading h2 {overflow-wrap:anywhere}
.todo-section-heading .todo-muted {font-size:12px}
.todo-actions {display:flex;align-items:center;gap:6px;flex-shrink:0}
.todo-quick {display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border:1px solid #bdd8cb;border-radius:10px;background:#f8fcf9;margin:0 0 18px}
.sn-todo .todo-quick input:not([type=checkbox]) {flex:1;background:transparent;border:0;box-shadow:none;padding:6px 0}
.todo-quick>i {color:#137250}
.todo-filters {display:flex;gap:9px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #eef1ef}
.todo-filters label {flex:1 1 110px;font-size:11px;color:var(--todo-muted)}
.todo-filters .todo-search {flex:1 1 100%}
.todo-filters select {font-size:12px}
.todo-group-title {font-size:12px;font-weight:700;color:#6e8077;margin:20px 0 7px}
.todo-group-title.overdue {color:#b96527}
.todo-row {display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0ee;padding:14px 2px}
.todo-row.is-selected {background:#f3f9f5}
.sn-todo .todo-row-main {display:block;min-width:0;flex:1;text-align:left;padding:0;background:transparent;color:#293f35;min-height:32px;border:0;font-weight:500}
.sn-todo .todo-row-main:hover {background:transparent;color:#137250}
.todo-row-title {display:block;font-size:14px;overflow-wrap:anywhere}
.todo-row.is-completed .todo-row-title {text-decoration:line-through;color:#87968c}
.todo-row-meta {display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;font-size:11px;font-weight:400;color:#819087;margin-top:5px}
.todo-row-meta span {display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.todo-row-meta .todo-overdue {color:#b75d27}
.todo-row-meta .todo-priority-2 {color:#bb4e47}
.todo-row-meta .todo-priority-0 {color:#6384a3}
.todo-row-list {max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block!important}
.todo-empty,.todo-welcome {padding:54px 20px;text-align:center;color:var(--todo-muted)}
.todo-empty i,.todo-welcome>i {display:block;font-size:32px;color:#81a58f;margin-bottom:16px}
.todo-empty strong {display:block;font-size:16px;color:#416350;margin-bottom:6px}
.todo-empty p {font-size:13px;max-width:360px;margin:auto}
.todo-welcome {background:white;border:1px solid var(--todo-border);border-radius:14px}
.todo-welcome p {margin:12px 0 22px}
.todo-pagination {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;font-size:12px;color:var(--todo-muted)}
.todo-mobile-nav {display:none}
.todo-detail {width:340px;flex-shrink:0;background:#fff;border:1px solid var(--todo-border);border-radius:14px;padding:18px;position:sticky;top:70px;max-height:calc(100vh - 86px);overflow:auto;overscroll-behavior:contain}
.todo-detail-top {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.todo-detail-top h2 {font-size:17px}
.todo-detail fieldset {border:0;margin:0;padding:0;min-width:0;display:grid;gap:15px}
.todo-field-row {display:flex;gap:10px}
.todo-field-row>label {flex:1;min-width:0}
.todo-date-shortcuts {display:flex;flex-wrap:wrap;gap:6px}
.todo-date-shortcuts button {font-size:12px;min-height:30px;padding:5px 9px}
.todo-check-heading {display:flex;justify-content:space-between;font-size:12px;color:var(--todo-muted)}
.todo-check-row {display:flex;align-items:center;gap:8px;margin-bottom:8px}
.todo-check-row input[type=text] {flex:1;height:35px;font-size:13px}
.todo-check-row input:checked+input {text-decoration:line-through;color:#839087}
.todo-check-row .todo-icon {padding:5px;min-width:28px;min-height:32px;background:transparent;border:0}
.todo-check-add {display:flex;gap:6px}
.todo-save-bar {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 16px}
.todo-save-bar span {font-size:11px}
.todo-detail-actions {display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--todo-border);padding-top:16px;margin-top:16px}
.todo-detail-actions button {font-size:12px}
#todo-detail-meta {font-size:11px}
.todo-archive-note {padding:10px 12px;background:#fff6e8;color:#8b642e;font-size:12px;border-radius:8px;margin-bottom:14px!important}
.todo-message {padding:12px 16px;margin-bottom:16px;border:1px solid #cee3d5;border-radius:10px;background:#f0f9f3;color:#27623f;overflow-wrap:anywhere}
.todo-message.is-error {background:#fff3f3;color:#a82c3c;border-color:#f2d1d6}
.todo-dialog {width:min(460px,calc(100vw - 32px));padding:24px;margin:auto;border:1px solid var(--todo-border);border-radius:14px;box-shadow:0 18px 70px #123a2426}
.todo-dialog::backdrop {background:#13291f66}
.todo-dialog form {display:grid;gap:18px}
.todo-dialog-actions {display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(min-width:901px) and (max-width:1250px) {
    .todo-shell.has-detail .todo-sidebar {width:165px}
    .todo-shell.has-detail .todo-main {padding:16px}
    .todo-shell.has-detail .todo-stat {padding:12px;gap:8px}
    .todo-shell.has-detail .todo-stat>i {display:none}
}
@media(max-width:900px) {
    .sn-todo {margin:16px 0 28px}
    .todo-heading {align-items:flex-start;margin-bottom:18px}
    .sn-todo h1 {font-size:26px}
    .todo-heading p {font-size:13px}
    .todo-private {font-size:11px;padding:6px 9px}
    .todo-sidebar {display:none}
    .todo-mobile-nav {display:block;margin-bottom:18px}
    .todo-mobile-nav>label {font-size:11px;color:var(--todo-muted);margin-bottom:6px}
    .todo-mobile-nav>div {display:flex;gap:8px}
    .todo-mobile-nav select {flex:1}
    .todo-detail {position:fixed;inset:0;width:100%;max-height:none;z-index:1500;border:0;border-radius:0;padding:20px max(16px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom));padding-top:max(18px,env(safe-area-inset-top))}
    body.todo-detail-open {overflow:hidden}
    .todo-detail-top {position:sticky;top:-20px;background:#fff;z-index:1;padding:8px 0}
    .todo-board {min-height:480px}
}
@media(max-width:520px) {
    .todo-heading {display:block}
    .todo-private {display:inline-flex;margin-top:12px}
    .todo-stats {gap:7px;margin-bottom:12px}
    .todo-stat {padding:12px 9px;display:block}
    .todo-stat>i {display:none}
    .todo-stat span {font-size:10px}
    .todo-stat strong {font-size:24px;margin-top:7px}
    .todo-main {padding:15px 12px}
    .todo-section-heading h2 {font-size:18px}
    .todo-actions button {font-size:12px;padding:7px 9px}
    .todo-filters {gap:8px}
    .todo-filters label {flex-basis:calc(50% - 8px)}
    .todo-quick {gap:7px;padding-left:10px}
    .todo-quick button {padding:8px 11px}
    .todo-quick input {font-size:13px!important}
    .todo-row {gap:9px}
    .todo-row-list {max-width:120px}
}
