:root{color-scheme:light;--canvas:#eeedf3;--surface:#fff;--card:#fff;--text:#24222e;--muted:#8c879a;--line:#dedbe6;--soft:#f1eff6;--accent:#7950ed;--accent-text:#7756d0;--accent-soft:#eee8fc;--danger:#c45f4c;--success:#719450;--shadow:0 18px 75px #31244922;--radius:12px;font-family:'Segoe UI',Arial,sans-serif;font-synthesis:none}
:root[data-theme=dark]{color-scheme:dark;--canvas:#1a1922;--surface:#25232e;--card:#2c2937;--text:#eeeaf5;--muted:#aaa3bb;--line:#484152;--soft:#363140;--accent:#b09af5;--accent-text:#bba4fb;--accent-soft:#3c3052;--danger:#efa48f;--success:#a3bf88;--shadow:0 18px 75px #0005}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}input,textarea,select{outline:none}button,input,select,textarea,a{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus,textarea:focus,select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--accent-soft)}button,input,select{transition:background .15s,border-color .15s,color .15s}button:hover{filter:brightness(.98)}[data-theme^=dark] button:hover{filter:brightness(1.1)}button .icon{pointer-events:none}.icon{width:18px;height:18px;flex-shrink:0;display:inline-block;vertical-align:middle;pointer-events:none}.app-shell{display:grid;grid-template-columns:70px minmax(0,1fr);min-height:100vh;min-height:100dvh}.rail{display:flex;align-items:center;flex-direction:column;padding:25px 8px 18px;gap:22px;position:sticky;top:0;height:100vh;height:100dvh}.app-symbol{width:46px;height:46px;background:#a59ae8;color:white;border-radius:50%;display:grid;place-items:center}.app-symbol .icon{width:25px;height:25px;stroke-width:2}.rail-capsule{width:48px;background:var(--surface);padding:10px 4px;border-radius:26px;display:flex;flex-direction:column;gap:6px}.rail-item{width:40px;height:43px;display:grid;place-items:center;color:#a79cda;border-radius:13px}.rail-item .icon{width:22px;height:22px}.rail-item:hover{background:var(--soft)}.rail-item.selected{background:var(--accent-soft);color:var(--accent)}.rail-divider{height:1px;background:var(--line);margin:2px 8px}.rail-bottom{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:15px}.avatar{height:34px;width:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;font-size:12px;font-weight:650}main{padding:0 28px 0 0;min-width:0;display:flex;flex-direction:column;height:100vh;height:100dvh}.topbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 5px;gap:20px}.brand{font-size:22px;font-weight:700;letter-spacing:-.8px;display:flex;align-items:center;gap:16px}.brand span{font-size:11px;letter-spacing:.2px;font-weight:400;color:var(--muted);padding-left:16px;border-left:1px solid var(--line)}.top-right{display:flex;align-items:center;gap:21px;color:var(--muted);font-size:12px}.language{color:var(--text);display:flex;align-items:center;gap:4px;font-size:12px;padding:6px 0}.language .icon{width:13px}.icon-button{height:34px;width:34px;border-radius:9px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--text)}.board-heading{min-height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 5px;gap:20px}.heading-left{display:flex;align-items:center;gap:18px;min-width:0}.heading-left h1{font-size:27px;letter-spacing:-1px;font-weight:650;margin:0;white-space:nowrap;display:flex;align-items:center;gap:10px}.heading-left h1 .icon{color:var(--muted);width:18px}.board-stat{color:var(--muted);font-size:12px;white-space:nowrap}.board-stat em{padding:0 5px;font-style:normal;opacity:.5}.board-tabs{display:flex;gap:5px;align-items:center;white-space:nowrap}.board-tabs button{padding:10px 16px;border-radius:9px;font-size:12px;color:var(--muted)}.board-tabs button .icon{height:15px;width:15px;margin-right:7px}.board-tabs .selected{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.toolbar{min-height:73px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:3px 5px 16px;flex-wrap:wrap}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:8px;min-width:0}.view-switch{display:flex;background:var(--soft);padding:3px;border-radius:8px;gap:2px;flex-shrink:0}.view-switch button{display:flex;align-items:center;gap:6px;padding:8px 11px;font-size:12px;color:var(--muted);border-radius:6px}.view-switch button.selected{color:var(--text);background:var(--surface);box-shadow:0 1px 3px #0000000b}.view-switch .icon{width:15px;height:15px}.toolbar-divider{height:22px;width:1px;background:var(--line);margin:0 3px;flex-shrink:0}.filter-select{appearance:none;max-width:159px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23948ba3' stroke-width='1.5'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;border:1px solid var(--line);border-radius:8px;padding:0 28px 0 11px;height:35px;font-size:12px;cursor:pointer;text-overflow:ellipsis}.filter-select.active{color:var(--accent-text);border-color:var(--accent)}.sort-control{position:relative;display:flex;align-items:center}.sort-control>.icon{position:absolute;left:9px;width:15px;height:15px;color:var(--muted);pointer-events:none}.sort-control select{padding-left:30px;max-width:177px}.more-button{position:relative}.more-button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text)}.filter-popover{position:absolute;left:0;top:43px;width:240px;z-index:30;padding:16px;border:1px solid var(--line);background:var(--surface);border-radius:12px;box-shadow:var(--shadow)}.filter-popover label{font-size:12px}.filter-popover>label:not(.check-label){display:block}.filter-popover .check-label{margin:14px 0;display:flex;gap:9px;align-items:center}.filter-popover select{width:100%;margin:8px 0}.more-wrap{position:relative}.search-field{height:36px;width:214px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:0 10px;color:var(--muted)}.search-field .icon{width:16px;height:16px}.search-field input{border:0;background:transparent;min-width:0;width:100%;font-size:12px;outline:none}.search-field:focus-within{border-color:var(--accent)}.search-field input:focus{box-shadow:none}.search-field kbd{font:11px 'Segoe UI',sans-serif;margin-left:auto;border:1px solid var(--line);border-radius:4px;min-width:18px;height:19px;text-align:center;color:var(--muted)}.primary-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:8px 15px;background:var(--accent);color:white;font-size:12px;font-weight:600;white-space:nowrap}.primary-button .icon{height:17px;width:17px}[data-theme^=dark] .primary-button{color:#21172e}.secondary-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:8px 13px;background:var(--surface);border:1px solid var(--line);font-size:12px}.text-button{padding:5px;color:var(--accent-text);font-size:12px}.reset-button{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--accent-text);padding:4px 0}.reset-button .icon{width:13px;height:13px}.filter-summary{display:flex;align-items:center;gap:12px;padding:0 5px 13px;font-size:11px;color:var(--muted)}.filter-summary span{background:var(--accent-soft);color:var(--accent-text);padding:4px 8px;border-radius:5px}.workspace{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.kanban{height:100%;min-height:380px;display:grid;grid-template-columns:repeat(5,minmax(250px,1fr));gap:10px;padding-bottom:2px}.column{background:var(--surface);border-radius:18px;border-top:5px solid var(--column-color);overflow:hidden;display:flex;flex-direction:column;min-width:0}.column-heading{height:54px;padding:0 15px;display:flex;align-items:center;gap:8px;flex-shrink:0}.column-heading h2{font-size:11px;letter-spacing:.2px;text-transform:uppercase;margin:0;font-weight:700;white-space:nowrap}.column-count{margin-left:auto;font-size:10px;color:var(--muted);background:var(--soft);border-radius:5px;padding:3px 6px;min-width:21px;text-align:center}.column-heading>button{color:var(--muted);display:grid;place-items:center;width:22px;height:25px;border-radius:5px;padding:0}.column-heading>button .icon{width:15px}.column-heading>button:hover{background:var(--soft)}.column-body{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;min-height:0;flex:1;padding-bottom:12px}.card-list{padding:0 9px;display:flex;flex-direction:column;gap:9px;min-height:50px}.task-card{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:14px;min-width:0;cursor:pointer;position:relative;transition:border-color .15s,box-shadow .15s,transform .15s;flex-shrink:0}.task-card:hover{border-color:#b4a4d3;box-shadow:0 3px 12px #3124490a}.task-card:focus-visible{outline-offset:-2px}.task-card.is-pinned{border-color:#d0c5e7}[data-theme^=dark] .task-card.is-pinned{border-color:#67537c}.card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);line-height:16px;margin-bottom:10px;gap:4px}.card-marks{display:flex;align-items:center;gap:2px}.card-marks button{color:var(--muted);width:21px;height:21px;display:grid;place-items:center;padding:0;border-radius:4px}.card-marks button:hover{background:var(--soft)}.card-marks .icon{width:13px;height:13px}.card-marks .is-important{color:#d8a12d}.card-marks .is-important .icon{fill:#eec56422}.card-marks .is-pinned{color:var(--accent-text)}.card-title{font-size:14px;line-height:1.45;font-weight:600;letter-spacing:-.17px;margin:0 0 9px;overflow-wrap:anywhere}.card-title .done-icon{color:var(--success);height:14px;width:14px;margin-right:5px;vertical-align:-2px}.card-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:13px}.tag{background:var(--soft);padding:3px 6px;border-radius:5px;font-size:10px;line-height:14px;color:var(--muted);border:1px solid transparent}.tag:hover{background:var(--accent-soft);color:var(--accent-text)}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}.priority{display:inline-flex;align-items:center;gap:4px;background:var(--soft);font-size:10px;line-height:16px;padding:4px 6px;border-radius:5px;white-space:nowrap}.priority i{width:5px;height:5px;border-radius:50%;background:#b1aebd}.priority.high i{background:#ec8067}.priority.medium i{background:#b29a51}.priority.low i{background:#96909f}.priority.high{background:#fdf0eb;color:#af6853}[data-theme^=dark] .priority.high{background:#49332e;color:#e8ae99}.card-date{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted);white-space:nowrap}.card-date .icon{width:12px;height:12px}.card-date.today{color:var(--accent-text)}.card-date.overdue{color:var(--danger)}.card-date.done{color:var(--success)}.aging{border-top:1px solid var(--line);margin-top:11px;padding-top:9px;display:flex;align-items:center;gap:5px;color:#af894a;font-size:10px}[data-theme^=dark] .aging{color:#d0b481}.aging .icon{width:12px;height:12px}.check-progress{display:flex;align-items:center;gap:9px;margin:0 0 12px}.check-progress>span{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted)}.check-progress .icon{height:13px;width:13px}.progress-track{height:4px;border-radius:5px;background:var(--soft);flex:1;max-width:100px;overflow:hidden}.progress-track i{height:100%;background:#ae9bec;display:block}.task-card.compact{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 12px;min-height:58px}.task-card.compact .card-title{font-size:12px;line-height:1.45;margin:0}.task-card.compact .priority{font-size:9px;padding:3px 5px}.column-add{margin:11px 13px 0;padding:3px;color:var(--muted);font-size:11px;display:flex;align-items:center;gap:6px}.column-add .icon{width:14px;height:14px}.column-add:hover{color:var(--accent-text)}.column-empty{margin:15px 13px 7px;border:1px dashed var(--line);border-radius:10px;padding:24px 15px;text-align:center;color:var(--muted);font-size:11px;line-height:1.6}.column-empty .icon{display:block;margin:0 auto 8px;color:#b9add6}.archive-fold{margin:10px 13px 12px;border-top:1px solid var(--line);padding-top:10px;flex-shrink:0}.archive-fold>button{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;width:100%;padding:5px 0}.archive-fold .icon{width:14px;height:14px}.archive-fold .count{margin-left:auto;background:var(--soft);padding:2px 6px;border-radius:4px;font-size:10px}.archive-fold .card-list{padding:10px 0 0;max-height:220px;overflow:auto}.archive-fold .task-card{opacity:.8}.board-footer{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 5px;color:var(--muted);font-size:10px;gap:10px}.board-footer>span{display:flex;align-items:center;gap:5px;white-space:nowrap}.board-footer .icon{height:12px;width:12px}.footer-dot{margin:0 7px;opacity:.5}.density-switch{display:flex;align-items:center;gap:2px;background:var(--soft);border-radius:7px;padding:3px}.density-switch button{height:25px;width:28px;display:grid;place-items:center;border-radius:5px;color:var(--muted)}.density-switch button.selected{background:var(--surface);color:var(--accent-text);box-shadow:0 1px 3px #0001}.density-switch .icon{height:14px;width:14px}.footer-right{display:flex;gap:14px!important}.save-state{display:flex;align-items:center;gap:4px;color:var(--success)}.sort-ghost{opacity:.25;background:var(--accent-soft)}.sort-chosen{border-color:var(--accent)!important}.sort-drag{box-shadow:var(--shadow);cursor:grabbing}.section-note{padding:0 6px 18px;font-size:12px;color:var(--muted);line-height:1.6}.collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));align-content:start;gap:12px;padding:0 2px 20px}.collection .task-card{align-self:start}.collection .board-label{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);margin-bottom:10px}.collection .board-label .icon{height:12px;width:12px}.empty-state{padding:80px 20px;text-align:center;color:var(--muted);width:100%;grid-column:1/-1}.empty-state>.icon{height:37px;width:37px;color:#b9abd8;margin-bottom:14px}.empty-state h2{font-size:18px;font-weight:550;color:var(--text);margin:0 0 10px}.empty-state p{font-size:12px}.empty-state button{margin-top:14px}.task-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border-radius:14px;overflow:hidden;font-size:12px}.task-table th{text-align:left;font-size:10px;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);font-weight:500;padding:16px;border-bottom:1px solid var(--line)}.task-table td{padding:15px 16px;border-bottom:1px solid var(--line)}.task-table tr:last-child td{border-bottom:0}.task-table .table-title{font-size:13px;text-align:left;line-height:1.5;font-weight:550}.task-table .table-title:hover{color:var(--accent-text)}.task-table .filter-select{height:30px;font-size:11px;max-width:165px}
dialog{padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);max-height:90vh;max-height:90dvh;overflow:hidden}dialog::backdrop{background:#20192d66;backdrop-filter:blur(4px)}.task-dialog{width:930px;max-width:calc(100vw - 36px)}.dialog-header{padding:20px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.dialog-header .eyebrow{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.dialog-header .eyebrow .icon{width:15px;height:15px}.dialog-header .icon-button{border:0;background:var(--soft);width:30px;height:30px}.dialog-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;overflow:auto;max-height:calc(90dvh - 148px)}.editor-main{padding:25px 27px;min-width:0}.editor-title{border:0!important;background:transparent;width:100%;font-size:23px;font-weight:600;letter-spacing:-.6px;line-height:1.5;resize:none;padding:0 0 6px;min-height:70px;box-shadow:none!important;outline:none}.editor-label{font-size:11px;font-weight:600;display:flex;align-items:center;gap:7px;color:var(--muted);margin-bottom:9px}.editor-label .icon{height:15px;width:15px}.description-bar{display:flex;align-items:center;justify-content:space-between;margin-top:17px;margin-bottom:8px}.description-bar .editor-label{margin:0}.mini-tabs{background:var(--soft);padding:3px;border-radius:6px;display:flex}.mini-tabs button{font-size:10px;padding:4px 8px;border-radius:4px;color:var(--muted)}.mini-tabs button.selected{background:var(--surface);color:var(--text)}.description-input{width:100%;min-height:160px;resize:vertical;background:var(--canvas);border:1px solid var(--line);border-radius:10px;padding:12px;line-height:1.7;font-size:12px}.description-preview{background:var(--canvas);border:1px solid var(--line);border-radius:10px;padding:12px 16px;min-height:160px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.description-preview p{margin:0 0 10px}.description-preview a{color:var(--accent-text)}.description-preview ul{margin:0 0 10px;padding-left:20px}.description-preview code{background:var(--soft);border-radius:3px;padding:2px 4px}.description-preview h3{font-size:15px}.editor-aside{background:var(--canvas);border-left:1px solid var(--line);padding:25px 20px;min-width:0}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label,.field-label{font-size:11px;color:var(--muted)}.field input,.field select{width:100%;height:35px;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px 9px;min-width:0;font-size:12px}.field input[readonly]{background:transparent;border-color:transparent;color:var(--muted);padding-left:0;font-size:11px}.field .input-hint{font-size:10px;color:var(--muted)}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}.check-label input{width:14px;height:14px;accent-color:var(--accent);flex-shrink:0}.aside-checks{display:flex;flex-direction:column;gap:13px;margin:20px 0 23px}.aside-checks .icon{height:15px;width:15px;color:var(--muted)}.checklist-section{margin-top:24px}.checklist-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.checklist-heading .editor-label{margin:0}.checklist-heading .fraction{font-size:10px;color:var(--muted)}.checklist-items{display:flex;flex-direction:column;gap:8px}.checklist-item{display:flex;align-items:center;gap:9px}.checklist-item>input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent);flex-shrink:0}.checklist-item .check-text{flex:1;min-width:0;border:0;background:transparent;font-size:12px;padding:5px 0}.checklist-item .check-text.checked{text-decoration:line-through;color:var(--muted)}.checklist-item button{color:var(--muted);padding:4px}.checklist-item button .icon{width:13px;height:13px}.checklist-add{display:flex;gap:7px;margin-top:12px}.checklist-add input{height:33px;min-width:0;flex:1;border:1px dashed var(--line);border-radius:6px;background:transparent;padding:7px 10px;font-size:12px}.checklist-add button{font-size:11px;color:var(--accent-text);display:flex;align-items:center;gap:4px}.checklist-add .icon{width:14px;height:14px}.history-section{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.history-item{display:flex;gap:10px;font-size:11px;color:var(--muted);padding:7px 0;align-items:flex-start;line-height:1.5}.history-item .icon{width:13px;height:13px;margin-top:2px;color:#ad9bc8}.history-item time{display:block;font-size:10px;opacity:.7;margin-top:2px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 25px;border-top:1px solid var(--line);background:var(--surface)}.dialog-footer .footer-actions{display:flex;gap:9px;align-items:center}.danger-button{color:var(--danger);font-size:11px;display:inline-flex;align-items:center;gap:5px;padding:7px 0}.danger-button .icon{width:14px;height:14px}.form-error{color:var(--danger);font-size:11px;margin:10px 0 0}.settings-dialog{width:520px;max-width:calc(100vw - 28px)}.settings-dialog h2{font-size:18px;margin:0}.settings-content{padding:24px 26px;max-height:calc(85dvh - 80px);overflow:auto}.settings-content>p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 24px}.settings-block{padding:18px 0;border-top:1px solid var(--line)}.settings-block h3{font-size:13px;margin:0 0 8px;font-weight:600}.settings-block p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 13px}.settings-block .danger-button{padding:7px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:var(--text);color:var(--surface);font-size:12px;padding:12px 20px;border-radius:10px;box-shadow:var(--shadow);z-index:100;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1650px){.card-title{font-size:15px}.card-meta{font-size:11px}.task-card{padding:15px}.kanban{gap:12px}.card-list{gap:11px}.column-heading{height:58px}.column-heading h2{font-size:12px}.topbar{min-height:84px}.board-heading{min-height:69px}.toolbar{min-height:77px}}
@media(max-width:1350px){.toolbar{row-gap:12px}.toolbar-right{margin-left:auto}.search-field{width:190px}.toolbar-left{flex-wrap:wrap}.filter-select{max-width:145px}.topbar{min-height:68px}.board-heading{min-height:64px}.toolbar{min-height:70px}.kanban{grid-template-columns:repeat(5,minmax(245px,1fr))}.board-stat{font-size:11px}}
@media(max-width:1050px){.toolbar{align-items:flex-start}.toolbar-right{width:100%;justify-content:space-between}.search-field{flex:1;max-width:340px}.heading-left{gap:12px}.board-tabs button{padding:9px 11px}.brand span{display:none}.today-date{display:none}.board-footer .local-label{display:none}.workspace{padding-bottom:5px}.task-table th,.task-table td{padding:13px 10px}}
@media(max-width:650px){.app-shell{grid-template-columns:57px minmax(0,1fr)}.rail{padding:17px 4px 14px;gap:19px}.app-symbol{width:38px;height:38px}.app-symbol .icon{width:22px;height:22px}.rail-capsule{width:42px;padding:7px 3px;gap:7px}.rail-item{width:36px;height:39px;border-radius:12px}.rail-item .icon{width:20px;height:20px}.avatar{width:30px;height:30px}main{padding-right:13px}.topbar{min-height:65px;padding:0 2px}.brand{font-size:20px}.top-right{gap:14px}.board-heading{align-items:flex-start;flex-direction:column;gap:13px;padding:4px 2px 15px}.heading-left{flex-wrap:wrap;gap:5px 12px}.heading-left h1{font-size:23px}.board-stat{font-size:10px}.board-tabs{gap:3px}.board-tabs button{padding:8px 10px;font-size:11px}.board-tabs button .icon{height:13px;width:13px;margin-right:4px}.toolbar{padding:0 2px 13px;gap:11px}.toolbar-left{width:100%;gap:6px}.view-switch button{font-size:11px;padding:7px 9px}.filter-select{font-size:11px;height:33px;padding-left:8px;max-width:128px}.sort-control select{padding-left:28px;max-width:145px}.toolbar-divider{display:none}.toolbar-right{gap:7px}.search-field{height:35px;width:100px;max-width:none;min-width:80px}.search-field input{font-size:11px}.search-field kbd{display:none}.primary-button{font-size:11px;padding:8px 11px}.primary-button .icon{height:15px;width:15px}.kanban{grid-template-columns:repeat(5,270px);gap:9px;min-height:280px}.column{border-radius:15px}.column-heading{height:49px}.column-heading h2{font-size:11px}.task-card{padding:13px}.card-title{font-size:13px}.workspace{min-height:220px}.board-footer{min-height:48px;font-size:9px;padding:0 2px}.board-footer>.footer-left{gap:3px}.board-footer .footer-dot{margin:0 3px}.board-footer .save-state{display:none}.footer-right{gap:7px!important}.density-switch button{width:26px;height:24px}.filter-summary{font-size:10px;flex-wrap:wrap;gap:7px}.collection{grid-template-columns:1fr}.section-note{font-size:11px}.task-table th:nth-child(4),.task-table td:nth-child(4){display:none}.task-table th,.task-table td{padding:13px 9px}.task-table .filter-select{max-width:110px}.task-table .table-title{font-size:12px}.filter-popover{left:auto;right:0;width:225px}.task-dialog{max-width:calc(100vw - 16px);width:auto;border-radius:15px;max-height:94dvh}.dialog-header{padding:14px 16px}.dialog-content{grid-template-columns:1fr;max-height:calc(94dvh - 136px)}.editor-main{padding:20px 17px}.editor-title{font-size:20px;min-height:65px}.editor-aside{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 15px;padding:19px 17px}.editor-aside .field:last-child{grid-column:1/-1}.aside-checks{grid-column:1/-1;margin:0 0 18px;flex-direction:row;justify-content:space-between}.dialog-footer{padding:12px 16px;flex-wrap:wrap}.dialog-footer .footer-actions{gap:6px}.dialog-footer .secondary-button{padding:8px 9px;font-size:11px}.dialog-footer .primary-button{padding:8px 10px}.description-input{min-height:140px}.settings-content{padding:20px}.settings-dialog .dialog-header{padding:16px 20px}.history-section{margin-top:23px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.wordmark-image{display:block;width:176px;height:45px;object-fit:contain;object-position:left center}
.app-symbol{background:transparent;border-radius:16px}
.app-symbol img{display:block;width:100%;height:100%}
@media(max-width:650px){.wordmark-image{width:137px;height:35px}}

/* Page scrolling and naturally sized columns. Only horizontal board overflow is contained. */
main{height:auto;min-height:100vh;min-height:100dvh}
.workspace{flex:none;min-height:0;overflow-x:auto;overflow-y:visible}
.kanban{height:auto;min-height:0;align-items:start;grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:6px}
.column{height:auto}
.column-body{overflow:visible;flex:none;min-height:0;padding-bottom:10px}
.card-list{min-height:0;gap:7px;padding:0 8px}
[data-density=standard] .column-body>.card-list:not(:empty){padding-top:8px}
.column .column-body>.card-list:empty{min-height:14px}
.archive-fold{margin:9px 13px 12px}
.archive-fold .card-list{max-height:none;overflow:visible}
.board-footer{margin-top:auto}

/* Density belongs next to board/list navigation, not at the bottom of a long board. */
.toolbar-left{flex-wrap:wrap}
.toolbar-density{flex-shrink:0}
.toolbar-density button{width:auto;min-width:30px;height:28px;padding:0 8px;display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}

/* Standard cards retain useful context without dedicating a row to every property. */
.task-card{padding:10px 11px;border-radius:10px}
.card-meta{margin-bottom:5px;font-size:9px;line-height:15px}
.card-marks{gap:2px}
.card-marks button{height:17px;width:17px}
.card-marks .icon{height:11px;width:11px}
.card-title{font-size:13px;line-height:1.4;margin-bottom:6px}
.card-taxonomy{display:flex;align-items:center;flex-wrap:wrap;gap:3px 4px;margin-bottom:8px}
.card-taxonomy .card-tags{display:contents}
.card-tags{gap:3px;margin:0}
.tag{font-size:9px;line-height:13px;padding:1px 5px;border:0;border-radius:5px}
.card-date{font-size:9px}
.card-date .icon{width:11px;height:11px}
.check-progress{margin-bottom:8px}
.check-progress>span{font-size:9px}
.aging{margin-top:7px;padding-top:6px;font-size:9px}
.priority{padding:0;width:22px;min-width:22px;height:20px;justify-content:center;border-radius:4px;font-size:11px;font-weight:700;line-height:20px;flex-shrink:0}
.priority.level-1{background:#425161;color:#fffc}
.priority.level-2{background:#7d96ad;color:#fffc}
.priority.level-3{background:#659cac;color:#fffc}
.priority.level-4{background:#4f9691;color:#fffc}
.priority.level-5{background:#8ea018;color:#fffc}
.priority.level-6{background:#c0a018;color:#fffc}
.priority.level-7{background:#c08418;color:#fffc}
.priority.level-8{background:#c06318;color:#fffc}
.priority.level-9{background:#c04718;color:#fffc}
.priority.level-10{background:#b72218;color:#fffc}
.card-title-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:7px}
.card-title-row .card-title{flex:1;min-width:0;margin-bottom:0}
.card-title-row .priority{margin-top:0}
.card-bottom{justify-content:flex-end}
.tag.tone-0{background:#e6effa;color:#4d709b}
.tag.tone-1{background:#e6efdf;color:#5c7b45}
.tag.tone-2{background:#fcf0d4;color:#9c772d}
.tag.tone-3{background:#ede7f6;color:#80629e}
.tag.tone-4{background:#e0f0ee;color:#4a807a}
.tag.tone-5{background:#f7e6ec;color:#a06c80}
[data-theme^=dark] .tag.tone-0{background:#2c3c52;color:#b2cbed}
[data-theme^=dark] .tag.tone-1{background:#354333;color:#bbd1a3}
[data-theme^=dark] .tag.tone-2{background:#4a3d28;color:#e5c78c}
[data-theme^=dark] .tag.tone-3{background:#42334f;color:#cfb7e5}
[data-theme^=dark] .tag.tone-4{background:#294441;color:#a6d7ce}
[data-theme^=dark] .tag.tone-5{background:#4a303e;color:#e3b3c5}

/* Compact board: title + tightly set tags + a single colored priority square. */
.task-card.compact{align-items:flex-start;min-height:0;padding:9px 11px;gap:9px}
.compact-copy{min-width:0;flex:1}
.task-card.compact .card-title{font-size:12px;line-height:1.4;font-weight:500;margin:0}
.task-card.compact .card-tags{display:flex;gap:3px;margin-top:4px}
.task-card.compact .tag{font-size:8px;line-height:12px;padding:0 5px}
.task-card.compact .priority{padding:0;font-size:11px;flex-shrink:0;margin-top:1px}
[data-density=compact] .column .card-list{gap:0;padding:0}
[data-density=compact] .column .task-card{border:0;border-bottom:1px solid var(--soft);border-radius:0;padding:9px 14px}
[data-density=compact] .column .task-card.is-pinned{border-left:2px solid #b3a0dc;padding-left:12px}
[data-density=compact] .column .task-card:last-child{border-bottom:0}
[data-density=compact] .column-heading{height:47px}
[data-density=compact] .column-add{margin-top:9px}

@media(min-width:1650px){.card-title{font-size:14px}.task-card{padding:11px 12px}.card-meta{font-size:10px}.card-list{gap:8px}}
@media(max-width:1350px){.kanban{grid-template-columns:repeat(5,minmax(245px,1fr))}}
@media(max-width:650px){.kanban{grid-template-columns:repeat(5,270px);min-height:0}.workspace{min-height:0}.toolbar-density button{font-size:10px;padding:0 6px}.toolbar-left{gap:7px 6px}.card-title{font-size:13px}.task-card{padding:10px 11px}.card-list{gap:7px}.board-footer{margin-top:auto}.filter-popover{left:0;right:auto}}

/* Gray graphite alternative: shared dark controls, distinct neutral surfaces. */
:root[data-theme=dark-alt]{color-scheme:dark;--canvas:#20272e;--surface:#2b343d;--card:#303a43;--text:#d5e1eb;--muted:#9caebb;--line:#47545f;--soft:#39454f;--accent:#b7a2e6;--accent-text:#c6b5ee;--accent-soft:#494255;--danger:#efa48f;--success:#a8c797;--shadow:0 18px 75px #10171d66}
[data-theme=dark-alt] .tag.tone-0{background:#43576b;color:#c7ddf0}
[data-theme=dark-alt] .tag.tone-1{background:#465647;color:#c9dbb9}
[data-theme=dark-alt] .tag.tone-2{background:#5b5340;color:#ead7a8}
[data-theme=dark-alt] .tag.tone-3{background:#53485f;color:#dfcdee}
[data-theme=dark-alt] .tag.tone-4{background:#3e5955;color:#bce0d8}
[data-theme=dark-alt] .tag.tone-5{background:#604853;color:#edc6d3}

/* Task titles use regular weight in every presentation; other typography is unchanged. */
.card-title,.task-card.compact .card-title,.task-table .table-title,.editor-title{font-weight:400}

/* Two-row desktop header: product and project above compact icon controls. */
.topbar{min-height:72px;padding:0 5px;gap:20px}
.header-identity{display:flex;align-items:center;gap:24px;min-width:0}
.header-identity .brand{padding-right:24px;border-right:1px solid var(--line);flex-shrink:0}
.heading-left{gap:16px;flex-wrap:wrap}
.project-switch{position:relative;flex-shrink:0}
.project-switch summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;border-radius:7px;padding:5px 0}
.project-switch summary::-webkit-details-marker{display:none}
.project-switch summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.heading-left h1{font-size:20px;letter-spacing:-.5px;font-weight:550;gap:10px}
.project-chevron{width:15px;height:15px;color:var(--muted)}
.project-switch[open] .project-chevron{transform:rotate(180deg)}
.project-menu{position:absolute;top:calc(100% + 9px);left:-10px;z-index:45;min-width:218px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:3px}
.project-menu button{display:flex;align-items:center;gap:10px;text-align:left;padding:11px 12px;border-radius:7px;font-size:12px;color:var(--muted)}
.project-menu button:hover{background:var(--soft)}
.project-menu button.selected{background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.project-menu .icon{width:16px;height:16px}
.project-menu .project-check{margin-left:auto;width:14px;height:14px}
.board-stat{font-size:11px}
.section-context{font-size:11px;color:var(--accent-text)}
.toolbar{min-height:66px;padding:4px 5px 15px}
.toolbar-left{gap:9px}
.view-switch,.toolbar-density{display:flex;align-items:center;gap:2px;padding:3px;background:var(--soft);border-radius:8px;height:36px}
.view-switch button,.toolbar-density button{display:grid;place-items:center;width:32px;min-width:32px;height:30px;padding:0;border-radius:6px}
.view-switch button .icon,.toolbar-density button .icon{width:17px;height:17px}
.toolbar-density .selected{background:var(--surface);color:var(--accent-text)}
.toolbar-divider{margin:0 4px}
.rail{padding-top:20px;gap:17px}

/* Light theme controls get a restrained lavender backing and a clear selected tile. */
[data-theme=light] .view-switch,[data-theme=light] .toolbar-density{background:#ded9e9;box-shadow:inset 0 0 0 1px #d4cede}
[data-theme=light] .view-switch .selected,[data-theme=light] .toolbar-density .selected{background:#fff;color:#6949bf;box-shadow:0 1px 3px #37254b18}
[data-theme=light] .project-menu button.selected{background:#e2d8f6;color:#6544af}
[data-theme=light] .project-menu button:hover{background:#ece6f5}
[data-theme=light] .project-menu button.selected:hover{background:#ddd1f2}

@media(max-width:1050px){.header-identity{gap:16px}.header-identity .brand{padding-right:16px}.heading-left{gap:5px 12px}.board-stat{font-size:10px}}
@media(max-width:650px){
 .topbar{min-height:0;padding:12px 2px 13px;gap:9px 12px;flex-wrap:wrap}
 .header-identity{display:contents}
 .header-identity .brand{order:0;padding-right:0;border-right:0}
 .top-right{order:1;margin-left:auto;gap:14px}
 .heading-left{order:2;width:100%;gap:5px 12px}
 .heading-left h1{font-size:19px;letter-spacing:-.4px}
 .project-menu{left:0;min-width:210px}
 .toolbar{min-height:0;padding:0 2px 13px;gap:11px}
 .toolbar-left{gap:7px 6px}
 .rail{padding-top:17px;gap:19px}
}

/* Collection section title follows filters; description sits beside it or below on mobile. */
.task-group+.task-group{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.section-heading{display:flex;align-items:baseline;gap:14px;margin:0 5px 20px}
.section-heading h2{margin:0;font-size:22px;font-weight:600;line-height:1.3;letter-spacing:-.4px;flex-shrink:0}
.section-heading .section-note{margin:0;padding:0 0 0 14px;border-left:1px solid var(--line);font-size:12px;line-height:1.65;color:var(--muted);min-width:0}
@media(max-width:650px){.section-heading{flex-direction:column;align-items:flex-start;gap:6px;margin:2px 2px 16px}.section-heading h2{font-size:20px}.section-heading .section-note{border-left:0;padding:0;font-size:11px}}

/* Fast priority selection shares the same badges on board, list, and task editor. */
.priority{cursor:pointer;border:0}
.priority:hover{box-shadow:0 0 0 2px var(--accent-soft)}
.priority.level-0{background:#566472;color:#fffc;border-radius:50%}
.priority.level-0 .icon{width:14px;height:14px;stroke-width:2.6}
.priority-picker{position:fixed;inset:auto;margin:0;width:218px;max-width:calc(100vw - 16px);padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.priority-picker-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:8px;line-height:18px}
.priority-picker kbd{font:10px 'Segoe UI',sans-serif;color:var(--muted)}
.pause-option{display:flex;align-items:center;gap:10px;width:100%;padding:6px;border-radius:7px;margin-bottom:10px;font-size:12px;text-align:left}
.pause-option .priority{font-size:15px;font-weight:600}
.pause-option:hover,.pause-option.selected{background:var(--soft)}
.priority-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px 6px;justify-items:center}
.priority-grid .priority-choice{width:28px;min-width:28px;height:28px;border-radius:50%;font-size:12px;line-height:28px}
.priority-choice[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}
.editor-title-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 16px}
.task-header-identity{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.task-number-marks{display:flex;align-items:center;gap:4px;flex-shrink:0}
.task-dialog .editor-title{min-height:0;field-sizing:content;overflow:hidden}
.task-dialog .editor-title-row{margin-bottom:10px}
.editor-title-row .editor-title{flex:1;min-width:0}
.editor-priority{flex-shrink:0;padding-top:6px}
.editor-priority .priority{width:34px;min-width:34px;height:34px;font-size:17px;line-height:34px;border-radius:7px}
.editor-priority .level-0{border-radius:50%}
.editor-priority .level-0 .icon{width:20px;height:20px}
.card-marks .is-favorite .icon,.task-mark.is-favorite{fill:currentColor;color:#c69c35}
.card-marks .is-important .icon,.task-mark.is-important{fill:currentColor;color:#e47a4c}
.card-marks .is-pinned .icon,.task-mark.is-pinned{fill:currentColor;color:var(--accent-text);transform:rotate(-90deg)}
.task-mark{width:12px;height:12px;margin-right:4px;vertical-align:-1px}
.aside-checks input:checked + .icon{fill:currentColor}
.aside-checks input[name=favorite]:checked + .icon{color:#c69c35}
.aside-checks input[name=important]:checked + .icon{color:#e47a4c}
.aside-checks input[name=pinned]:checked + .icon{color:var(--accent-text);transform:rotate(-90deg)}
@media(max-width:650px){.aside-checks{flex-wrap:wrap;justify-content:flex-start;gap:12px 16px}.editor-title-row{gap:10px}.editor-priority .priority{width:30px;min-width:30px;height:30px;font-size:15px}}

/* Task totals in the project selector. */
.project-menu{width:330px;min-width:0;max-width:calc(100vw - 100px)}
.project-info{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.project-name{overflow-wrap:anywhere}
.project-stats{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:10px;line-height:1.5;font-weight:400;color:var(--muted)}
.project-stats>span{white-space:nowrap}
.project-stats>span+span::before{content:'·';margin-right:8px}

/* Responsive surfaces reuse the desktop controls; native dialogs provide focus trapping. */
.toolbar-options{display:contents}
.mobile-app-symbol,.mobile-header-controls,.global-bottomnav{display:none}
@media(max-width:760px){
 .app-shell>main{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .app-shell>main>.topbar{gap:7px;padding:10px 0;min-height:65px;flex-wrap:nowrap}
 .topbar .header-identity{order:1;gap:10px}
 .topbar .header-identity>.brand{display:none}
 .topbar .mobile-app-symbol{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:none;border:0;padding:0}
 .topbar .mobile-app-symbol img{display:block;width:34px;height:34px}
 .topbar .heading-left{flex:1;min-width:0;overflow:hidden}
 .topbar .heading-left h1{font-size:17px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .topbar .heading-left h1.all-projects-title{white-space:normal;text-overflow:clip}
 .topbar .project-switch{width:100%;min-width:0}
 .topbar .project-switch summary{min-width:0}
 .topbar .board-stat{display:none}
 .topbar .mobile-header-controls{display:flex;order:2;gap:4px;flex-shrink:0}
 .topbar .mobile-header-controls>.icon-button,.topbar>.mobile-menu-button{width:40px;height:44px;min-height:44px;border-radius:9px;padding:0}
 .topbar>.mobile-menu-button{order:3;background:var(--accent-soft);color:var(--accent-text)}
 .topbar .mobile-header-controls .icon{width:18px;height:18px}
 .app-shell>main>.toolbar,.app-shell>main>.column-navigation,.app-shell>main>.board-footer{display:none}
 .global-bottomnav{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--line)}
 .global-bottomnav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:54px;padding:8px 3px;background:transparent;border:0;border-radius:12px;color:var(--muted);font-size:11px;line-height:1.2}
 .global-bottomnav button>.icon{width:20px;height:20px}
 .global-bottomnav button.selected{background:var(--accent-soft);color:var(--accent-text);font-weight:600}
 .global-bottomnav button[data-action=account-panel]{color:var(--muted)}
 body:has(.global-bottomnav) .cookie-notice{bottom:calc(84px + env(safe-area-inset-bottom))}
 body:has(.global-bottomnav)>.legal-footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 body:has(.global-bottomnav) .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
 body:has(.global-bottomnav) .habit-network-status{bottom:calc(92px + env(safe-area-inset-bottom))}
 .panel-content .board-stat{display:block}
 .panel-navigation .board-footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px 0 0;font-size:11px}
}
.section-menu-actions{display:grid;gap:8px}
.section-menu-actions button{min-height:44px;justify-content:flex-start}
.mobile-menu-divider{border:0;border-top:1px solid var(--line);margin:18px 0}
.mobile-menu-sections{display:grid;gap:5px}
.mobile-menu-sections button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:none;color:var(--text);font-size:14px;text-align:left;line-height:1.4;overflow-wrap:anywhere}
.mobile-menu-sections button.selected{background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.mobile-menu-sections button>.icon{width:19px;height:19px;flex-shrink:0}
.mobile-menu-subsections{display:grid;margin:4px 0 8px 25px;padding-left:12px;border-left:1px solid var(--line)}
.mobile-menu-subsections button{min-height:40px;padding:8px 10px;font-size:13px;color:var(--muted)}
.mobile-menu-subsections button[aria-current=page]{color:var(--accent-text);font-weight:600}
.panel-navigation .user-account{display:block;width:100%}
.panel-navigation .user-account>.user-avatar{display:none}
.panel-navigation .user-account .user-menu{display:block;position:static;width:100%;max-width:none;padding:0;border:0;box-shadow:none;background:none}
.panel-navigation .user-menu button{min-height:44px}
.panel-navigation .mobile-menu-footer .top-right{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;border:0}
.panel-navigation .mobile-menu-footer .top-right>.icon-button{order:1}
.panel-navigation .mobile-menu-footer .language{order:2;margin-left:auto}
.panel-navigation .mobile-menu-footer .today-date{display:block;order:3;flex-basis:100%;margin-top:8px;font-size:12px;line-height:1.6;color:var(--muted);white-space:normal}
.panel-filter .board-footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px 0 0;font-size:11px}
.panel-display .panel-content{display:flex;flex-direction:column;gap:18px}
.panel-display .view-switch{align-self:flex-start}
.panel-display .column-navigation{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.panel-display .column-navigation select{max-width:100%;min-height:44px}
.panel-filter .toolbar-density,.panel-filter .toolbar-divider{display:none}
.panel-filter .search-field{display:flex;width:100%;max-width:none;margin-top:18px;min-height:44px}
.panel-account .user-account{display:block;width:100%}
.panel-account .user-account>.user-avatar{display:none}
.panel-account .user-menu{display:block;position:static;width:100%;max-width:none;border:0;padding:0;box-shadow:none;background:none}
.panel-account .user-menu button{min-height:44px}
.panel-navigation .board-stat{display:block;margin-top:15px}
.panel-navigation .panel-content>.primary-button{display:flex;width:100%;min-height:44px}
.mobile-menu-button,.mobile-search-button,.board-options-button,.column-navigation,.rail-label{display:none}
.task-actions-button{display:grid;place-items:center;color:var(--muted);border-radius:6px;padding:0;width:24px;height:24px;flex-shrink:0}
.task-card.compact .task-actions-button{display:none}
.editor-details>summary{display:none}
.history-section>summary{list-style:none;cursor:pointer}
.history-section>summary::-webkit-details-marker{display:none}
.history-section>summary>.icon:last-child{display:none}
.panel-open{overflow:hidden}
.adaptive-dialog{padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-shadow:var(--shadow);overflow:hidden}
.adaptive-dialog[open]{display:flex;flex-direction:column}
.adaptive-dialog::backdrop{background:#17102266;backdrop-filter:blur(3px)}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);flex-shrink:0}
.panel-header h2{font-size:17px;margin:0;font-weight:600}
.panel-header .icon-button{width:44px;height:44px}
.panel-content{padding:18px;overflow:auto;overscroll-behavior:contain;min-height:0}
.panel-content .toolbar-options{display:flex;flex-direction:column;gap:15px}
.panel-content .toolbar-divider,.panel-content .more-button{display:none}
.panel-content .toolbar-density{align-self:flex-start}
.panel-content .toolbar-density button{width:44px;height:40px}
.panel-content .toolbar-density{height:46px}
.panel-content .filter-select,.panel-content .sort-control,.panel-content .sort-control select{width:100%;max-width:none;min-height:44px;font-size:15px}
.panel-content .filter-popover{display:block!important;position:static;width:auto;padding:0;border:0;box-shadow:none;border-radius:0;background:none}
.panel-content .filter-popover .check-label{min-height:36px;margin:8px 0;font-size:14px}
.panel-content input[type=checkbox]{width:20px;height:20px}
.panel-content .reset-button{min-height:44px;font-size:13px}
.panel-content .rail{position:static;height:auto;width:auto;padding:0;gap:0;align-items:stretch}
.panel-content .app-symbol,.panel-content .avatar,.panel-content .today-date{display:none}
.panel-content .rail-capsule{width:100%;padding:0;gap:3px;border-radius:0;background:transparent}
.panel-content .rail-item{display:flex;justify-content:flex-start;gap:14px;width:100%;height:48px;padding:0 14px;font-size:15px;color:var(--text);border-radius:10px}
.panel-content .rail-item.selected{color:var(--accent-text)}
.panel-content .rail-label{display:inline}
.panel-content .rail-bottom{margin:8px 0 0;display:block;border-top:1px solid var(--line);padding-top:8px}
.panel-content .top-right{display:flex;justify-content:space-between;margin:16px 0 0;border-top:1px solid var(--line);padding:16px 8px 0}
.panel-content .language{font-size:15px;min-height:44px;padding:0 8px}
.panel-content .top-right .icon-button{width:44px;height:44px}
.panel-content .search-field{display:flex;width:100%;max-width:none;min-height:48px}
.panel-content .search-field input{font-size:16px}
.panel-content .search-field kbd{display:none}
.panel-actions .panel-content{display:flex;flex-direction:column;gap:14px}
.action-task-title{margin:0 0 6px;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.panel-actions .field{margin:0}
.panel-actions .field select{height:48px;font-size:16px}
.panel-actions .primary-button,.panel-actions .secondary-button{min-height:48px;font-size:14px}
@media(max-width:1100px){
 .toolbar-options{display:none}
 .board-options-button{display:inline-flex;gap:7px}
 .toolbar{align-items:center;flex-wrap:nowrap;min-height:66px}
 .toolbar-left{width:auto;flex-shrink:0;flex-wrap:nowrap}
 .toolbar-right{width:auto;flex:1;justify-content:flex-end;margin-left:auto}
 .search-field{flex:1;max-width:260px}
 .filter-count{background:var(--accent-soft);color:var(--accent-text);border-radius:12px;min-width:19px;padding:2px 5px;font-size:11px;text-align:center}
}
@media(max-width:760px){
 .app-shell{display:block;min-height:100dvh}
 .app-shell>.rail,.topbar>.top-right{display:none}
 main{padding:0 12px;min-height:100dvh;width:100%}
 .mobile-menu-button,.mobile-search-button{display:grid;width:44px;height:44px;flex-shrink:0}
 .topbar{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:13px 0 14px;min-height:0}
 .header-identity{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
 .header-identity .brand{border:0;padding:0;flex-shrink:0}
 .wordmark-image{width:105px;height:auto}
 .heading-left{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:auto;min-width:0}
 .heading-left h1{font-size:17px;letter-spacing:-.4px;white-space:normal;overflow-wrap:anywhere}
 .project-switch{max-width:100%}
 .project-switch summary{gap:4px;min-height:28px}
 .project-chevron{width:14px}
 .project-menu{position:fixed;top:78px;left:12px;width:330px;max-width:calc(100vw - 24px);max-height:65dvh;overflow:auto;z-index:40}
 .project-menu button{min-height:58px}
 .board-stat{font-size:10px;white-space:nowrap}
 .section-context{display:none}
 .toolbar{position:sticky;top:0;z-index:20;background:var(--canvas);padding:8px 0 10px;min-height:0;gap:7px;flex-wrap:nowrap}
 .toolbar-left{width:auto;gap:0}
 .view-switch{height:44px;padding:3px}
 .view-switch button{width:36px;min-width:36px;height:38px}
 .board-options-button{width:44px;height:44px;padding:0;flex-shrink:0;position:relative}
 .options-label{display:none}
 .filter-count{position:absolute;right:-3px;top:-5px;border:2px solid var(--canvas);font-size:10px}
 .toolbar-right{gap:7px;min-width:0}
 .toolbar-right>.search-field{display:none}
 .toolbar-right>.primary-button{min-height:44px;padding:8px 12px;font-size:12px}
 .toolbar-right>.primary-button .icon{width:18px;height:18px}
 .column-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px;font-size:12px;color:var(--muted)}
 .column-navigation select{height:40px;min-width:0;max-width:75%;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 10px;color:var(--text);font-size:14px}
 .workspace{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:6px;min-height:0}
 .workspace::-webkit-scrollbar{display:none}
 .kanban{grid-template-columns:repeat(5,calc(100vw - 52px));gap:10px;min-height:0;padding-bottom:0;align-items:start}
 .column{scroll-snap-align:start;border-radius:14px}
 .column-heading{height:56px;padding:0 12px}
 .column-heading h2{font-size:12px}
 .column-heading>button{width:40px;height:44px}
 .column-heading>button .icon{width:19px;height:19px}
 .column-add{min-height:44px;font-size:13px;margin:8px 12px}
 .card-list{padding:0 8px;gap:9px}
 .task-card{padding:12px}
 .card-title{font-size:14px;line-height:1.5}
 .card-meta{font-size:11px;margin-bottom:7px}
 .card-marks{gap:0}
 .card-marks button{width:36px;height:40px}
 .card-marks .icon{width:16px;height:16px}
 .task-card.compact .task-actions-button{display:grid;width:36px;height:40px;margin-top:-4px}
 .task-card.compact{padding:12px!important;align-items:flex-start;gap:8px}
 .task-card.compact .card-title{font-size:14px}
 .task-card.compact .tag{font-size:10px;line-height:17px}
 .task-card .priority{min-width:32px;height:32px;font-size:14px;line-height:32px}
 .card-taxonomy{row-gap:6px}
 .tag{font-size:11px;min-height:24px;padding:4px 7px}
 .board-footer{flex-wrap:wrap;gap:5px;padding:12px 2px;min-height:48px;font-size:10px}
 .board-footer .save-state{display:flex}
 .board-footer .local-label{display:none}
 .footer-left{flex-wrap:wrap;white-space:normal!important}
 .filter-summary{padding:0 0 10px;gap:8px;font-size:11px;flex-wrap:wrap}
 .filter-summary .reset-button{min-height:36px}
 .adaptive-dialog{max-width:100%;width:100%;max-height:90dvh;margin:auto 0 0;border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 .panel-navigation{height:100dvh;max-height:100dvh;width:310px;max-width:calc(100vw - 36px);margin:0 auto 0 0;border:0;border-right:1px solid var(--line);border-radius:0 18px 18px 0}
 .panel-search{margin:0;width:100%;max-height:100dvh;border:0;border-bottom:1px solid var(--line);border-radius:0 0 18px 18px}
 .task-dialog{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0}
 .task-dialog>form{height:100%;display:flex;flex-direction:column;min-height:0}
 .task-dialog .dialog-header{flex-shrink:0;padding:10px 16px;min-height:64px}
 .dialog-header .icon-button{width:44px;height:44px}
 .task-dialog .dialog-content{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
 .editor-main{padding:18px 16px}
 .editor-title{font-size:22px;min-height:65px}
 .editor-status{margin:12px 0 20px}
 .editor-status select{height:46px;font-size:16px}
 .editor-aside{display:block;padding:0 16px 20px;background:transparent;border:0}
 .editor-details{border:1px solid var(--line);background:var(--canvas);border-radius:10px;padding:0 14px}
 .editor-details>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:50px;font-size:14px}
 .editor-details>summary::-webkit-details-marker{display:none}
 .editor-details[open]>summary{margin-bottom:12px}
 .editor-details .field:last-child{margin-bottom:16px}
 .history-section>summary{min-height:44px;font-size:13px}
 .history-section>summary>.icon:last-child{display:block;margin-left:auto}
 .field input,.field select,.description-input,.checklist-add input,.checklist-item .check-text{font-size:16px;min-height:44px}
 .description-input{min-height:130px}
 .field label,.field-label{font-size:12px}
 .mini-tabs button{min-height:36px;font-size:12px}
 .checklist-item button{min-width:40px;min-height:40px}
 .check-label{min-height:36px}
 .check-label input,.checklist-item>input[type=checkbox]{width:20px;height:20px}
 .checklist-add{flex-wrap:wrap}
 .checklist-add button{min-height:40px;font-size:12px}
 .dialog-footer{flex-shrink:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:6px;flex-wrap:wrap}
 .dialog-footer .footer-actions{margin-left:auto;gap:6px}
 .dialog-footer .primary-button,.dialog-footer .secondary-button,.dialog-footer .danger-button{min-height:44px;font-size:12px;padding:8px 10px}
 .settings-dialog{max-width:calc(100vw - 24px);max-height:92dvh}
 .settings-content{max-height:calc(92dvh - 80px)}
 .task-table,.task-table tbody{display:block;width:100%;min-width:0}
 .task-table thead{display:none}
 .task-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px;margin-bottom:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
 .task-table td,.task-table td:nth-child(4){display:block;border:0;padding:0;min-width:0;font-size:12px}
 .task-table td:first-child{grid-column:1/-1}
 .task-table .table-title{font-size:15px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:36px}
 .task-table td:nth-child(2){grid-column:1;grid-row:2}
 .task-table td:nth-child(3){grid-column:2;grid-row:2;align-self:center}
 .task-table td:nth-child(4){text-align:right}
 .task-table .filter-select{height:44px;width:100%;max-width:100%;font-size:14px}
 .task-table .card-date{justify-content:flex-end;font-size:11px;white-space:normal}
 .collection{grid-template-columns:1fr}
 .section-heading{flex-direction:column;align-items:flex-start;gap:6px;margin:4px 2px 16px}
 .section-heading .section-note{border:0;padding:0;font-size:12px}
 .toast{bottom:calc(18px + env(safe-area-inset-bottom));font-size:13px}
}
@media(max-width:360px){
 .wordmark-image{width:85px}
 .heading-left h1{font-size:15px}
 .header-identity{gap:7px}
 .board-stat{font-size:9px}
 .toolbar{gap:5px}
 .toolbar-right{gap:5px}
 .toolbar-right>.primary-button{font-size:11px;padding:8px 7px;gap:4px}
 .board-options-button,.mobile-search-button{width:40px}
 .view-switch button{min-width:30px;width:30px}
 .card-marks button{width:32px}
}
@media(min-width:761px) and (max-width:1100px){
 .task-card.compact .task-actions-button{display:grid;width:32px;height:32px}
}
@media(pointer:coarse) and (min-width:761px){
 .card-marks button{min-width:32px;min-height:36px}
 .task-card.compact .task-actions-button{display:grid;min-width:32px;min-height:36px}
 .task-card .priority{min-width:30px;min-height:30px;font-size:13px;line-height:30px}
 .column-heading>button{min-width:36px;min-height:40px}
 .column-add{min-height:40px}
}
/* Project settings and shared editor controls. */
:root{--column-header:#f8f6fc}
:root[data-theme=dark],:root[data-theme=dark-alt]{--column-header:var(--surface)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.column-heading{background:var(--column-header);border-bottom:1px solid var(--line)}
.column-heading h2{display:flex;align-items:center;gap:7px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.column-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:var(--column-color)}
.kanban{grid-template-columns:repeat(var(--column-count,5),minmax(250px,1fr))}
.project-menu{width:380px;max-width:min(380px,calc(100vw - 100px));max-height:65dvh;overflow:auto}
.project-option{display:flex;align-items:center;border-radius:8px;gap:3px}
.project-option.selected{background:var(--accent-soft);color:var(--accent-text)}
.project-menu .project-select{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:11px 9px;color:var(--text)}
.project-menu .project-select:hover,.project-menu .project-edit:hover{background:var(--soft)}
.project-menu .project-option.selected .project-select{color:var(--accent-text)}
.project-menu .project-edit{display:grid;place-items:center;flex-shrink:0;width:34px;height:38px;padding:0;margin-right:4px;color:var(--muted);background:transparent}
.project-state-icon{display:flex;align-items:center;flex-shrink:0;padding:4px;border-radius:6px}
.project-state-icon.is-active{color:var(--success);background:color-mix(in srgb,var(--success) 12%,transparent)}
.project-state-icon.is-archived{color:var(--muted);background:var(--soft)}
.archived-project .project-name{color:var(--muted)}
.project-name{text-align:left;font-weight:500}
.project-stats{gap:2px 7px;text-align:left}
.project-menu .create-project-button{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:5px;border-top:1px solid var(--line);border-radius:0 0 7px 7px;min-height:42px;color:var(--accent-text);font-weight:500}
.project-menu .create-project-button:hover{background:var(--accent-soft)}
.project-menu.service-menu{padding:10px;gap:4px}
.service-project-heading{display:flex;align-items:center;gap:10px;padding:10px 10px 12px;margin:0;font-size:13px;font-weight:600;color:var(--text)}
.service-project-heading .icon{color:var(--muted)}
.service-projects{display:flex;flex-direction:column;gap:3px;padding-left:12px;min-width:0}
.service-projects .project-info{min-width:0}
.service-projects .project-name{overflow-wrap:anywhere}
.service-menu .service-projects .create-project-button{justify-content:flex-start;border:0;border-radius:7px;margin:2px 0 0;padding-left:9px;font-weight:500}
.service-divider{border:0;border-top:1px solid var(--line);width:100%;margin:10px 0 6px}
.service-menu .service-destination{gap:12px;min-height:64px;padding:11px 10px;color:var(--text)}
.service-destination>.icon{width:20px;height:20px;color:var(--accent-text)}
.service-info{display:flex;flex-direction:column;gap:5px;min-width:0}
.service-title{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.service-count{font-size:11px;font-weight:400;color:var(--muted)}
.table-task-number{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
.task-table .card-tags{margin:7px 0 0;max-width:420px}
.task-table .card-tags .tag{font-size:10px}
.task-table .table-title{text-align:left}
.task-header-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.task-mark-toggle{position:relative;display:inline-flex;cursor:pointer;width:32px;height:32px}
.task-mark-toggle input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}
.task-mark-toggle>span{display:grid;place-items:center;width:100%;height:100%;border-radius:7px;color:var(--muted)}
.task-mark-toggle .icon{width:17px;height:17px}
.task-mark-toggle:hover>span{background:var(--soft)}
.task-mark-toggle input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.task-mark-toggle input:checked+span{background:var(--accent-soft);color:var(--accent-text)}
.task-mark-toggle input:checked+span .icon{fill:currentColor}
.task-mark-toggle.mark-favorite input:checked+span{color:#b18b24;background:color-mix(in srgb,#c69c35 13%,transparent)}
.task-mark-toggle.mark-important input:checked+span{color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent)}
.task-mark-toggle.mark-pinned input:checked+span .icon{transform:rotate(-90deg)}
[data-theme^=dark] .task-mark-toggle.mark-favorite input:checked+span{color:#e5bc59}
.editor-active-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 18px}
.editor-active-tags[hidden]{display:none}
.editor-active-tags .tag{font-size:10px;padding:2px 6px;min-height:0}
.format-hint{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:7px 0 18px;font-size:10px;color:var(--muted)}
.format-help{position:relative}
.format-help summary{list-style:none;display:grid;place-items:center;border:1px solid var(--line);width:17px;height:17px;border-radius:50%;cursor:help;font-size:10px;user-select:none}
.format-help summary::-webkit-details-marker{display:none}
.format-tooltip{position:absolute;right:0;top:calc(100% + 7px);z-index:25;display:none;width:260px;max-width:calc(100vw - 40px);border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:14px;box-shadow:var(--shadow);font-size:11px;line-height:1.7;text-align:left}
.format-help[open] .format-tooltip,.format-help:hover .format-tooltip,.format-help:focus-within .format-tooltip{display:block}
.format-tooltip p{margin:7px 0}
.format-tooltip code{color:var(--muted);font-family:Consolas,monospace}
.description-preview blockquote{border-left:3px solid var(--accent);padding-left:12px;margin-left:0;color:var(--muted)}
.description-preview code{padding:2px 4px;background:var(--soft);border-radius:3px}
.rich-description{border:1px solid var(--line);border-radius:10px;background:var(--soft);min-width:0;overflow:clip}
.format-toolbar{display:flex;flex-wrap:wrap;gap:3px;padding:7px;border-bottom:1px solid var(--line);background:var(--surface)}
.format-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:34px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--text);font-size:16px;cursor:pointer}
.format-toolbar button:hover,.format-toolbar button[aria-pressed=true]{background:var(--soft);color:var(--accent)}
.format-toolbar button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.format-toolbar [data-format=bold]{font-weight:700}.format-toolbar [data-format=italic]{font-style:italic}.format-toolbar [data-format=strikeThrough]{text-decoration:line-through}
.rich-description-content.description-preview{min-height:160px;height:auto;max-height:none;overflow:visible;border:0;border-radius:0;margin:0;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
.rich-description:focus-within{border-color:var(--accent)}
.rich-description-content:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.description-preview{overflow-wrap:anywhere}.description-preview h1{font-size:1.7em}.description-preview h2{font-size:1.4em}.description-preview h3{font-size:1.15em}
.description-preview>:first-child{margin-top:0}.description-preview>:last-child{margin-bottom:0}
.tag-editor{position:relative}
.tag-editor-selected{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:7px}
.tag-editor-selected:empty{display:none}
.selected-tag{display:inline-flex;align-items:center;gap:5px;color:var(--accent-text);background:var(--accent-soft);padding:3px 6px;max-width:100%;overflow-wrap:anywhere}
.selected-tag button{display:grid;place-items:center;flex-shrink:0;width:18px;height:18px;border-radius:4px;color:inherit;padding:0;font-size:15px}
.selected-tag button:hover{background:var(--soft)}
.tag-search{width:100%}
.tag-suggestions{position:absolute;top:100%;left:0;right:0;max-height:220px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);z-index:20;padding:4px;margin-top:4px}
.tag-suggestions[hidden]{display:none}
.tag-suggestions button{display:block;text-align:left;width:100%;padding:8px 9px;border-radius:5px;font-size:12px;overflow-wrap:anywhere}
.tag-suggestions button[aria-selected=true],.tag-suggestions button:hover{background:var(--accent-soft);color:var(--accent-text)}
.project-dialog{width:760px;max-width:calc(100vw - 32px);max-height:92dvh;border:1px solid var(--line);border-radius:16px;padding:0;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.project-dialog::backdrop{background:#14101b88;backdrop-filter:blur(3px)}
.project-dialog>form{display:flex;flex-direction:column;max-height:92dvh}
.project-dialog .dialog-header{flex-shrink:0}
.project-dialog h2{font-size:20px;margin:0;font-weight:600}
.project-form-content{padding:24px 28px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.project-primary-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 20px}
.project-primary-fields>.field{min-width:0}
.project-prefix-section{margin-bottom:22px}
.section-field-heading{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px 6px;margin-bottom:8px;font-size:12px}
.section-field-heading h3{margin:0;font-size:13px;font-weight:600}
.unlock-button{font-size:11px;padding:4px 6px;flex-shrink:0}
.project-prefix-section>input{display:block;width:220px;max-width:100%;height:40px;padding:8px 11px;border:1px solid var(--line);background:var(--card);border-radius:8px;text-transform:uppercase}
.project-prefix-section>input[readonly]{background:var(--soft);color:var(--muted);cursor:default}
.project-prefix-section .input-hint{margin:7px 0 0;font-size:11px;line-height:1.5}
#prefix-example{white-space:nowrap;color:var(--accent-text)}
.project-description .description-input{width:100%;min-height:120px}
.project-workflow-section{margin-top:22px}
.project-workflow-section>.input-hint{margin:0 0 12px;font-size:11px;line-height:1.5}
#project-workflow{border:0;padding:0;margin:0;min-width:0}
#project-workflow:disabled{opacity:.6}
.workflow-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:8px;padding-left:42px}
.workflow-rows{display:flex;flex-direction:column;gap:8px}
.workflow-row{display:grid;grid-template-columns:32px minmax(0,1fr) 32px auto;align-items:center;gap:8px}
.workflow-name-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;min-width:0}
.workflow-name-fields label{display:flex;flex-direction:column;gap:5px;min-width:0}
.workflow-name-fields label>span{font-size:10px;color:var(--muted)}
.workflow-name-fields input{height:38px;min-width:0;width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--card)}
.status-color-button{display:grid;place-items:center;width:32px;height:38px;padding:0;border-radius:7px}
.status-color-button>span{display:block;width:19px;height:19px;border-radius:50%;background:var(--status-color);box-shadow:inset 0 0 0 1px #0001}
.completion-choice{display:grid;place-items:center;position:relative;width:32px;height:32px;cursor:pointer}
.completion-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.completion-choice span{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);color:var(--muted);border-radius:50%;font-size:12px}
.completion-choice input:checked+span{background:var(--accent);color:var(--surface);border-color:var(--accent)}
.completion-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}
.workflow-actions{display:flex;gap:2px}
.workflow-actions button{width:27px;height:34px;color:var(--muted);padding:0;border-radius:5px;font-size:16px}
.workflow-actions button:hover{background:var(--soft);color:var(--text)}
.add-status{margin-top:12px}
.status-mapping{padding:14px;margin-top:18px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);font-size:12px}
.status-mapping p{font-size:11px;color:var(--muted);line-height:1.6}
.status-mapping label{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,1fr);gap:12px;align-items:center;margin-top:10px;overflow-wrap:anywhere}
.status-mapping select{height:38px;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:0 8px}
.project-dialog .dialog-footer{flex-shrink:0}
.project-dialog .dialog-footer>.input-hint{max-width:250px;font-size:10px;line-height:1.5}
.status-color-picker{position:fixed;inset:auto;margin:0;width:224px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;padding:14px;box-shadow:var(--shadow)}
.status-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:12px}
.status-palette button{width:30px;height:30px;border-radius:50%;background:var(--status-color);color:#fff;padding:0;font-weight:600;border:2px solid transparent}
.status-palette button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){
 .project-menu{left:12px;width:380px;max-width:calc(100vw - 24px)}
 .project-menu .project-select{min-height:64px;padding:9px 8px}
 .project-menu .project-edit{width:42px;height:44px}
 .project-menu .create-project-button{min-height:48px}
 .kanban{grid-template-columns:repeat(var(--column-count,5),calc(100vw - 52px))}
 .task-dialog .dialog-header{padding:9px 12px;gap:5px}
 .task-dialog .dialog-header .eyebrow{flex-wrap:wrap;gap:4px;min-width:0;font-size:10px}
 .task-header-actions{gap:2px}
 .task-mark-toggle{width:34px;height:40px}
 .task-header-actions .icon-button{width:36px}
 .editor-active-tags .tag{font-size:10px;line-height:1.5}
 .format-hint{font-size:11px;margin-bottom:18px}
 .format-help summary{width:24px;height:24px;font-size:12px}
 .selected-tag button{width:27px;height:27px}
 .tag-suggestions button{min-height:44px;font-size:14px}
 .task-table .card-tags{max-width:none}
 .task-table .table-task-number{font-size:11px}
 .project-dialog{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .project-dialog>form{height:100%;max-height:100dvh}
 .project-dialog .dialog-header{min-height:64px;padding:12px 16px}
 .project-dialog h2{font-size:19px}
 .project-form-content{padding:20px 16px;flex:1;overscroll-behavior:contain}
 .project-primary-fields{grid-template-columns:1fr;gap:0}
 .project-dialog input,.project-dialog select,.project-dialog textarea{font-size:16px;min-height:44px}
 .project-prefix-section>input{width:100%}
 .project-dialog .dialog-footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
 .project-dialog .dialog-footer>.input-hint{display:none}
 .project-dialog .dialog-footer .footer-actions{width:100%;justify-content:flex-end}
 .workflow-row{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px}
 .workflow-name-fields{grid-template-columns:1fr}
 .project-primary-fields>.field:last-child{max-width:none}
 .workflow-actions{grid-column:2/-1;justify-self:end}
 .workflow-actions button{width:40px;height:36px}
 .status-color-button{width:34px;height:44px}
 .completion-choice{width:34px;height:44px}
 .workflow-labels{padding-left:40px}
 .status-mapping label{grid-template-columns:1fr;gap:6px}
}


.confirmation-dialog{width:420px;max-width:calc(100vw - 32px);max-height:85dvh;overflow:auto;padding:25px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.confirmation-dialog::backdrop{background:#14101b88;backdrop-filter:blur(3px)}
.confirmation-dialog h2{font-size:19px;margin:0 0 12px}.confirmation-dialog p{font-size:13px;line-height:1.7;margin:0 0 22px}.confirmation-dialog .footer-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:760px){.confirmation-dialog{padding:22px}.confirmation-dialog .primary-button,.confirmation-dialog .secondary-button{min-height:44px}}

.unlock-inline{display:inline-flex;align-items:baseline;gap:1px;color:var(--muted);font-size:12px;white-space:nowrap}
.unlock-inline[hidden]{display:none}
.unlock-inline .unlock-button{padding:0;font-size:inherit}

/* Seven-day overview. Cards share the board controls and densities. */
.today-column{border:1px solid var(--line);border-top:3px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 75%,var(--soft))}
.today-column .column-heading{height:auto;min-height:76px;background:var(--soft);padding:12px 15px;align-items:center}
.day-heading{display:flex;flex-direction:column;gap:6px;min-width:0}
.today-column .day-heading h2{font-size:12px;text-transform:none;letter-spacing:0;color:var(--muted)}
.day-heading time{font-size:17px;font-weight:600;letter-spacing:-.3px}
.today-column .column-count{font-size:11px;background:var(--surface)}
.today-column.is-today{border-color:color-mix(in srgb,var(--success) 35%,var(--line));border-top-color:var(--success);background:color-mix(in srgb,var(--success) 7%,var(--surface))}
.today-column.is-today .column-heading{background:color-mix(in srgb,var(--success) 13%,var(--surface));border-bottom-color:color-mix(in srgb,var(--success) 22%,var(--line))}
.today-column.is-today .day-heading h2,.today-column.is-today .day-heading time{color:var(--success)}
.today-column.is-today .column-count{background:color-mix(in srgb,var(--success) 14%,var(--surface));color:var(--success)}
.today-column .column-body{padding-top:10px}
.today-column .column-empty{margin-top:8px;padding:20px 12px;background:color-mix(in srgb,var(--surface) 60%,transparent)}
.today-column .column-empty .icon{color:var(--muted)}
.task-project{display:flex;align-items:center;gap:5px;min-width:0;margin-bottom:10px;color:var(--muted);font-size:10px;line-height:1.5}
.task-project .icon{width:12px;height:12px;flex-shrink:0}
.task-project span{overflow-wrap:anywhere}
.task-card.compact .task-project{margin-bottom:4px;font-size:10px}
.project-filter{min-width:0;padding:0 0 10px;margin:0 0 14px;border:0;border-bottom:1px solid var(--line)}
.project-filter legend{font-size:12px;margin-bottom:4px;padding:0}
.project-filter-options{max-height:180px;overflow:auto;scrollbar-width:thin}
.project-filter .check-label{align-items:flex-start;margin:10px 0;line-height:1.5;cursor:pointer}
.project-filter input{flex-shrink:0;margin-top:3px;accent-color:var(--accent)}
.project-filter .check-label span{overflow-wrap:anywhere;min-width:0}
.filter-popover:has(.project-filter){max-height:min(680px,calc(100dvh - 190px));overflow:auto}
.panel-content .filter-popover:has(.project-filter){max-height:none;overflow:visible}
@media(max-width:760px){
 .today-column .column-heading{min-height:74px;padding:12px}
 .today-column .task-project{font-size:11px}
 .project-filter legend{font-size:14px}
 .project-filter-options{max-height:240px}
}

.editor-status select{background:color-mix(in srgb,var(--status-color,var(--accent)) 16%,var(--surface));border-color:color-mix(in srgb,var(--status-color,var(--accent)) 40%,var(--line))}
.editor-status option{background:var(--surface);color:var(--text)}
.next-status-icon{transform:rotate(-90deg)}
.toast.status-notice{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);display:flex;align-items:center;gap:16px;width:420px;max-width:calc(100vw - 32px);padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);text-align:left}
.toast.status-notice>.icon{width:36px;height:36px;padding:8px;border-radius:50%;background:color-mix(in srgb,var(--success) 14%,var(--surface));color:var(--success)}
.status-notice>div{min-width:0;display:flex;flex-direction:column;gap:8px;line-height:1.5;overflow-wrap:anywhere}
.status-notice strong{font-size:17px;font-weight:600}
.task-dialog .footer-actions{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){
 .task-dialog .footer-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0}
 .task-dialog .footer-actions:has([data-action=next-status])>.primary-button{grid-column:1/-1}
}

.workspace.habits-workspace{overflow:visible;min-width:0;padding-bottom:24px}.habits-workspace .habits-feature{min-width:0}

.settings-dialog{width:760px;max-width:calc(100vw - 32px)}
.project-tags-section{margin-top:24px}
.project-tags-section h3{font-size:13px;margin:0 0 12px}
.project-tags-section>.input-hint{font-size:11px;line-height:1.5;margin:10px 0 0}
.tag-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tag-field-row{display:flex;align-items:center;gap:4px;min-width:0}
.tag-field-row input{flex:1;width:100%;min-width:0;height:38px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:inherit;padding:8px 10px;font:inherit;font-size:12px}
.tag-field-row .icon-button{width:30px;height:36px;flex-shrink:0;color:var(--muted)}
.tag-field-add{display:inline-flex;align-items:center;gap:6px;margin-top:10px}
@media(max-width:760px){.settings-dialog{width:100%;max-width:100%}.tag-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tag-field-row input{min-height:44px;font-size:16px}}
.project-dialog [hidden]{display:none!important}
.settings-dialog .settings-content{max-height:calc(92dvh - 160px);overflow-y:auto}
.route-error{padding:40px}

#settings-defaults,.workflow-editor{border:0;padding:0;margin:0;min-width:0}
#settings-fields{border:0;padding:0;margin:0;min-width:0}
#settings-fields>.settings-block:first-child{border-top:0;padding-top:0}
#settings-fields>.settings-block:last-child{padding-bottom:0}
.settings-dialog .settings-content{padding:20px 26px}
.settings-dialog .settings-block{padding:17px 0}
.settings-dialog .settings-block h3{margin-bottom:12px}
.settings-dialog .settings-block:last-child p{margin-bottom:0}
.settings-disclosure{border:1px solid var(--line);border-radius:8px;margin-top:8px;background:var(--surface)}
.settings-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;font-size:12px;cursor:pointer;list-style:none}
.settings-disclosure>summary::-webkit-details-marker{display:none}
.settings-disclosure>summary .icon{width:14px;height:14px;color:var(--muted);flex-shrink:0}
.settings-disclosure[open]>summary{border-bottom:1px solid var(--line);background:var(--soft);border-radius:8px 8px 0 0}
.settings-disclosure[open]>summary .icon{transform:rotate(180deg)}
.settings-disclosure-content{padding:16px}
.settings-block .settings-disclosure-content>p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.settings-account-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.settings-account-fields .field{margin:0}
.settings-account-fields .field input{height:38px;border-radius:8px;padding:8px 10px;font-size:12px}
.settings-account-fields .field input:disabled{background:var(--soft);color:var(--muted);opacity:1}
.settings-email-label{display:flex;align-items:center;gap:6px;min-height:15px}
.settings-email-help{position:relative;display:grid;place-items:center;width:15px;height:15px;padding:0;border:1px solid var(--muted);border-radius:50%;font-size:10px;color:var(--muted);cursor:help}
.settings-email-tooltip{display:none;position:absolute;top:calc(100% + 8px);right:-15px;width:260px;max-width:calc(100vw - 80px);border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:12px 14px;box-shadow:var(--shadow);z-index:10;font-size:11px;line-height:1.7;text-align:left;font-weight:400}
.settings-email-help:hover .settings-email-tooltip,.settings-email-help:focus .settings-email-tooltip{display:block}
@media(max-width:650px){.settings-dialog .settings-content{padding:20px}.settings-account-fields{grid-template-columns:1fr;gap:16px}.settings-account-fields .field input{font-size:16px;min-height:44px}.settings-email-tooltip{left:-40px;right:auto}.settings-disclosure>summary{min-height:44px}.settings-disclosure-content{padding:12px}}
@media(max-width:760px){.settings-dialog .workflow-name-fields input{font-size:16px;min-height:44px}.settings-dialog .workflow-actions button{min-height:40px}}
