/* Scoped task list and composer, using the workspace theme in both modes. */
.rft-workspace{--rft-bg:var(--surface,#fff);--rft-line:var(--border,#e7e9ed);--rft-soft:var(--surface-soft,#f7f8fa);--rft-text:var(--text,#252a34);--rft-muted:var(--muted,#7c818a);height:100%;min-height:450px;color:var(--rft-text);background:var(--rft-bg);font-size:13px}
.rft-toolbar{min-height:62px;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--rft-line)}
.rft-toolbar-start,.rft-toolbar-end{display:flex;align-items:center;gap:8px;min-width:0}.rft-toolbar .btn{min-height:34px;border-radius:9px;font-size:12px;font-weight:500;padding:6px 11px;gap:7px}.rft-toolbar .btn:not(.primary){background:var(--rft-bg);border:1px solid var(--rft-line);box-shadow:0 1px 2px #00000004}.rft-toolbar .primary{background:var(--rf-accent,#266df0);border:1px solid var(--rf-accent,#266df0);color:var(--rf-accent-contrast,#fff)}
.rft-search{display:flex;align-items:center;gap:7px;margin-left:4px;color:var(--rft-muted);min-width:80px}.rft-search input{border:0;outline:0;background:transparent;font:inherit;color:var(--rft-text);max-width:180px;width:100%;padding:5px}.rft-search input::placeholder{color:var(--rft-muted)}#rft-filter-count:empty{display:none}#rft-filter-count{font-size:10px;padding:1px 5px;background:var(--rft-soft);border-radius:4px}
.rft-columns,.rft-row{display:grid;grid-template-columns:minmax(220px,2.4fr) minmax(120px,.85fr) minmax(140px,1.25fr) minmax(150px,1.2fr) 28px;align-items:center;gap:16px;padding:0 23px}.rft-columns{height:38px;font-size:11px;color:var(--rft-muted);border-bottom:1px solid var(--rft-line)}.rft-columns>span{display:flex;align-items:center;gap:7px}.rft-columns svg{opacity:.7}.rft-row{min-height:62px;border-bottom:1px solid var(--rft-line);transition:background .12s}.rft-row:hover{background:var(--rft-soft)}.rft-task-cell{display:flex;align-items:center;gap:12px;min-width:0}.rft-check{appearance:none!important;border:1px solid var(--rft-line);background:var(--rft-bg);border-radius:50%;width:18px!important;height:18px!important;flex:0 0 18px;margin:0;display:grid;place-content:center;cursor:pointer}.rft-check:checked{background:var(--rf-accent,#266df0);border-color:var(--rf-accent,#266df0)}.rft-check:checked:after{content:'✓';font-size:11px;color:var(--rf-accent-contrast,#fff);line-height:1}.rft-check:disabled{opacity:.5;cursor:default}
.rft-title,.rft-due,.rft-record button,.rft-owner{border:0;background:transparent;font:inherit;color:inherit;padding:0;text-align:left;min-width:0}.rft-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;cursor:pointer}.rft-title:hover{text-decoration:underline;text-decoration-color:var(--rft-muted);text-underline-offset:3px}.rft-row.is-completed .rft-title{text-decoration:line-through;color:var(--rft-muted)}.rft-due{font-size:12px;white-space:nowrap;cursor:pointer;color:var(--rft-muted)}.rft-due.rft-today{color:#b37710}.rft-due.rft-overdue{color:#c74949}.rft-due:disabled{cursor:default}.rft-record{min-width:0;font-size:12px}.rft-record a,.rft-record button{display:flex;align-items:center;gap:6px;max-width:100%;font-size:12px;color:var(--rft-muted)}.rft-record span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rft-record button{opacity:0;cursor:pointer}.rft-row:hover .rft-record button,.rft-record button:focus-visible{opacity:1}.rft-owner{justify-self:start;display:flex;align-items:center;gap:6px;font-size:11px;border:1px solid var(--rft-line);border-radius:6px;padding:2px 5px;max-width:100%;cursor:pointer;white-space:nowrap}.rft-owner>span:last-child{overflow:hidden;text-overflow:ellipsis}.rft-avatar{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:600;background:var(--rf-accent-soft,#e8efff);color:var(--rft-text);flex:none}.rft-unassigned{color:var(--rft-muted)}.rft-row-menu{width:26px;height:28px;border-radius:6px;opacity:0}.rft-row:hover .rft-row-menu,.rft-row-menu:focus-visible{opacity:1}
.rft-group-heading{display:flex;align-items:center;gap:6px;width:100%;height:34px;padding:0 22px;border:0;border-bottom:1px solid var(--rft-line);background:var(--rft-soft);font-size:12px;color:var(--rft-muted);text-align:left;cursor:pointer}.rft-group-heading small{font-size:10px;background:var(--rft-bg);border:1px solid var(--rft-line);line-height:14px;min-width:17px;text-align:center;border-radius:4px;margin-left:2px}.rft-group [hidden]{display:none!important}.rft-footer{padding:14px 24px;color:var(--rft-muted);font-size:11px}.rft-empty{padding:65px 24px;text-align:center;color:var(--rft-muted)}.rft-empty svg{color:var(--rft-muted);margin:0 auto 12px}.rft-empty h2{font-size:16px;color:var(--rft-text);font-weight:550;margin:0 0 8px}.rft-empty p{font-size:13px;margin:0 0 18px}.rft-loading{padding:35px 24px;color:var(--rft-muted)}
.rft-no-record .rft-columns,.rft-no-record .rft-row{grid-template-columns:minmax(240px,2.8fr) minmax(125px,1fr) minmax(150px,1.2fr) 28px}.rft-no-owner .rft-columns,.rft-no-owner .rft-row{grid-template-columns:minmax(240px,2.8fr) minmax(125px,1fr) minmax(160px,1.2fr) 28px}.rft-no-owner.rft-no-record .rft-columns,.rft-no-owner.rft-no-record .rft-row{grid-template-columns:minmax(240px,1fr) minmax(125px,.4fr) 28px}.rft-compact .rft-row{min-height:45px}
.rft-popover{position:fixed;z-index:140;min-width:245px;width:288px;max-width:calc(100vw - 16px);max-height:min(430px,calc(100dvh - 16px));overflow:auto;background:var(--surface,#fff);color:var(--text,#252a34);border:1px solid var(--border,#e2e6eb);border-radius:11px;padding:7px;box-shadow:0 8px 28px #00000018;font-size:12px}.rft-pop-title{font-size:11px;font-weight:550;color:var(--muted,#7c818a);padding:6px 8px 8px}.rft-menu-item{display:flex;align-items:center;gap:7px;width:100%;min-height:32px;border:0;border-radius:6px;padding:7px 9px;background:transparent;color:var(--text,#252a34);text-align:left;font:inherit;cursor:pointer}.rft-menu-item:hover,.rft-menu-item:focus-visible{background:var(--surface-soft,#f3f5f8)}.rft-menu-item[aria-current=true]{background:var(--rf-accent-soft,#e8efff)}.rft-danger{color:#c74949}.rft-pop-search,.rft-pop-form input,.rft-pop-form select{width:100%;border:1px solid var(--border,#e2e6eb);border-radius:7px;background:var(--surface,#fff);color:var(--text,#252a34);font:inherit;padding:8px;outline:none}.rft-pop-search{margin-bottom:7px}.rft-pop-form{padding:4px}.rft-field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.rft-field>span{font-size:11px;color:var(--muted,#7c818a)}.rft-pop-form footer{display:flex;justify-content:flex-end;gap:7px;padding-top:9px}.rft-pop-form .btn{font-size:11px;padding:6px 9px}.rft-check-label{display:flex;align-items:center;gap:8px;margin:11px 0;font-size:12px}
.rft-composer-modal{width:min(880px,calc(100vw - 30px))!important;max-width:880px!important;padding:0!important;border-radius:13px!important;border:1px solid var(--border,#e0e4e9)!important;overflow:visible!important;background:var(--surface,#fff)!important;color:var(--text,#252a34)}.rft-composer-modal .modal-header{height:49px;padding:12px 18px!important;margin:0!important;border-bottom:1px solid var(--border,#e7e9ed)!important}.rft-composer-modal .modal-header h2{font-size:15px!important;font-weight:550!important;line-height:1.4;margin:0!important}.rft-composer-modal .modal-header .icon-btn{width:25px;height:25px}.rft-composer{padding:0;margin:0}.rft-title-label{display:block;margin:0}.rft-composer-title{width:100%;min-height:86px;max-height:220px;resize:vertical;display:block;padding:20px;border:0;background:transparent;color:var(--text,#252a34);outline:none;font:inherit;font-size:16px;line-height:1.6;border-radius:0}.rft-composer-title::placeholder{color:var(--muted,#878c93)}.rft-composer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:57px;padding:11px 15px;border-top:1px solid var(--border,#e7e9ed);border-radius:0 0 13px 13px}.rft-chips,.rft-composer-actions{display:flex;align-items:center;gap:9px;min-width:0}.rft-chip{display:flex;align-items:center;gap:6px;max-width:210px;border:0;border-radius:6px;padding:6px 4px;background:transparent;color:var(--muted,#747980);font-size:12px;white-space:nowrap;cursor:pointer}.rft-chip span{overflow:hidden;text-overflow:ellipsis}.rft-chip:hover{background:var(--surface-soft,#f5f6f8);color:var(--text,#252a34)}.rft-composer-actions>.btn{padding:6px 10px;min-height:33px;font-size:12px;border-radius:8px;gap:5px}.rft-composer-actions>.primary{background:var(--rf-accent,#266df0);border-color:var(--rf-accent,#266df0);color:var(--rf-accent-contrast,#fff)}.rft-composer-actions kbd{font-size:10px;border:1px solid currentColor;opacity:.55;border-radius:4px;padding:1px 3px;font-weight:400}.rft-create-more{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted,#747980);white-space:nowrap}.rft-create-more input{appearance:none!important;width:27px!important;height:16px!important;border-radius:10px;border:1px solid var(--border,#dcdfe5);background:var(--surface-soft,#e5e7ec);position:relative;margin:0;cursor:pointer}.rft-create-more input:before{content:'';position:absolute;width:12px;height:12px;left:1px;top:1px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .13s}.rft-create-more input:checked{background:var(--rf-accent,#266df0);border-color:var(--rf-accent,#266df0)}.rft-create-more input:checked:before{transform:translateX(11px)}.rft-composer-error{font-size:12px;color:#c74949;padding:0 20px;margin:0;line-height:1.5}.rft-composer-error:not(:empty){padding-bottom:13px}.rft-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}
html[data-rf-theme=dark] .rft-due.rft-today{color:#e5b957}html[data-rf-theme=dark] .rft-due.rft-overdue,html[data-rf-theme=dark] .rft-danger,html[data-rf-theme=dark] .rft-composer-error{color:#f19090}.rft-workspace :focus-visible,.rft-popover :focus-visible,.rft-composer-modal :focus-visible{outline:2px solid var(--rf-accent,#266df0);outline-offset:2px}
@media(max-width:1100px){.rft-columns,.rft-row{grid-template-columns:minmax(180px,2fr) 110px minmax(100px,1fr) minmax(110px,1fr) 25px;gap:10px;padding-left:16px;padding-right:16px}.rft-search input{max-width:130px}.rft-toolbar{padding:12px 16px}.rft-composer-footer{align-items:flex-start;flex-direction:column}.rft-composer-actions{align-self:flex-end}}
@media(max-width:720px){.rft-toolbar{align-items:flex-start;flex-wrap:wrap;gap:8px}.rft-toolbar-start{flex:1;flex-wrap:wrap}.rft-search{order:3;flex-basis:100%;margin:0}.rft-search input{max-width:none}.rft-toolbar .btn{font-size:11px;padding:6px 8px}.rft-toolbar-end .btn span{display:none}.rft-toolbar-end{gap:5px}.rft-columns{display:none}.rft-row,.rft-no-record .rft-row,.rft-no-owner .rft-row,.rft-no-record.rft-no-owner .rft-row{grid-template-columns:minmax(0,1fr) auto 24px;gap:8px;min-height:76px;padding:13px 16px}.rft-task-cell{grid-column:1/3;grid-row:1;gap:10px}.rft-title{white-space:normal;line-height:1.4;font-size:13px}.rft-due{grid-row:2;grid-column:1;margin-left:28px;font-size:11px}.rft-record{display:none}.rft-owner{grid-row:2;grid-column:2;font-size:10px;max-width:145px}.rft-row-menu{grid-row:1/3;grid-column:3;opacity:1}.rft-group-heading{padding:0 16px}.rft-composer-modal{width:calc(100vw - 18px)!important;border-radius:11px!important}.rft-composer-title{font-size:15px;padding:17px;min-height:104px}.rft-composer-footer{padding:10px 12px}.rft-chips{flex-wrap:wrap;gap:5px;width:100%}.rft-chip{font-size:11px;max-width:calc(50vw - 35px)}.rft-composer-actions{width:100%;justify-content:flex-end;margin-top:5px}.rft-create-more{margin-right:auto;font-size:11px}.rft-composer-actions kbd{display:none}.rft-composer-actions>.btn{min-height:36px}.rft-popover{max-height:calc(100dvh - 40px)}}
@media(prefers-reduced-motion:reduce){.rft-row,.rft-create-more input:before{transition:none}}
