/* T74: list navigation and task interactions reconstructed from the supplied recording. */
.clean-ui #view-tasks-new{max-width:760px;min-height:calc(100dvh - 160px)}
.clean-ui #app.app-tasks-flow>.top-header{display:none}
.clean-ui #app.app-tasks-flow:has(.tf-in-detail)>.bottom-nav{display:none}
.clean-ui #app.app-tasks-flow:has(.tf-in-detail){padding-bottom:16px}
.clean-ui .task-legacy-controls[hidden]{display:none!important}
.task-flow{--tf-accent:#087cf0;--tf-wash:#eaf5ff;padding:6px 18px 120px;color:var(--ink);font-size:15px;min-width:0}
.task-flow button,.task-flow input,.task-flow textarea,.task-flow select,.tf-dialog button,.tf-dialog input,.tf-dialog select{font:inherit}
.task-flow button{cursor:pointer;color:inherit}
.task-flow button:disabled{cursor:wait;opacity:.5}
.task-flow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tf-profile{display:flex;align-items:center;gap:12px;margin:8px 0 22px}
.tf-profile>div{display:grid;gap:3px}.tf-profile small{font-size:12px;color:var(--muted)}
.tf-page-title{font-size:28px;margin:0 0 16px;letter-spacing:-.035em}
.tf-search{display:block;width:100%;min-width:0;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:11px 12px;min-height:44px;font-size:14px!important;color:var(--ink);margin:0 0 16px;box-shadow:none}
.tf-smart{display:grid;gap:3px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.tf-list-directory{display:grid;gap:4px}
.tf-list-link{display:flex;align-items:center;gap:12px;min-height:50px;width:100%;padding:9px 8px;border:0;background:transparent;text-align:left;border-radius:10px}
.tf-list-link:hover{background:var(--surface-2)}
.tf-list-link>span{flex:1;font-weight:500;font-size:14px}.tf-list-link>svg{color:var(--tf-accent)}
.tf-list-link>svg:nth-last-child(2){width:15px;height:15px;color:var(--muted)}
.tf-list-link small{font-size:12px;min-width:22px;text-align:right;color:var(--muted)}
.tf-smart>.tf-list-link:nth-child(2)>svg{color:#16863b}.tf-smart>.tf-list-link:nth-child(3)>svg{color:#d7473c}
.tf-section-label{margin:20px 8px 9px;color:var(--muted);font-size:12px;font-weight:600}
.tf-new-list{display:flex;gap:10px;align-items:center;width:100%;text-align:left;min-height:50px;border:0;background:transparent;color:var(--tf-accent)!important;margin-top:10px;border-radius:10px;padding:10px 8px}
.tf-list-header{display:flex;align-items:center;gap:7px;position:sticky;top:0;background:var(--bg);z-index:8;padding:8px 0 12px}
.tf-list-header h1{flex:1;min-width:0;font-size:23px;line-height:1.25;color:var(--tf-accent);margin:0;overflow-wrap:anywhere}
.tf-icon-button,.tf-star,.tf-order-button{display:inline-grid;place-items:center;border:0;border-radius:9px;background:transparent;min-width:44px;width:44px;min-height:44px;padding:10px;flex:none}
.tf-icon-button:hover,.tf-star:hover,.tf-order-button:hover{background:var(--surface-2)}
.tf-options{position:relative;z-index:7;margin:0 0 14px auto;width:min(100%,320px);padding:6px;border:1px solid var(--line);background:var(--surface);border-radius:12px;box-shadow:0 8px 25px #0f172a12}
.tf-option{display:flex;align-items:center;gap:11px;border:0;border-radius:7px;background:transparent;width:100%;min-height:44px;padding:10px;font-size:13px!important;text-align:left}
.tf-option:hover,.tf-option.selected{background:var(--tf-wash);color:var(--tf-accent)}
.tf-option svg{width:18px;height:18px;color:var(--muted)}
.tf-task-list{display:grid;gap:5px;min-width:0}
.tf-task-row{display:flex;align-items:center;gap:2px;width:100%;min-width:0;padding:6px 4px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;min-height:58px}
.tf-check{display:grid;place-items:center;background:transparent;border:0;min-width:44px;min-height:44px;width:44px;position:relative;padding:12px;flex:none;color:var(--tf-accent)!important;border-radius:50%}
.tf-check:empty:before{content:'';width:18px;height:18px;border:1.5px solid var(--muted);border-radius:50%}
.tf-check[aria-pressed=true]:before{content:'';position:absolute;inset:11px;border-radius:50%;background:var(--tf-accent)}
.tf-check[aria-pressed=true] svg{position:relative;color:#fff;width:15px;height:15px}
.tf-task-content{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;background:transparent;text-align:left;border:0;padding:4px 6px;min-height:44px;border-radius:6px}
.tf-task-title{font-size:14px;font-weight:450;line-height:1.4;overflow-wrap:anywhere}
.tf-task-content small{font-size:11px;line-height:1.4;color:var(--muted)}
.tf-star{color:var(--muted)!important}.tf-star svg{width:20px;height:20px}
.tf-star.is-important{color:var(--tf-accent)!important}.tf-star.is-important svg{fill:var(--tf-accent)}
.tf-task-row.is-done .tf-task-title,.tf-step .is-done{text-decoration:line-through;color:var(--muted)}
.tf-task-row.is-done{background:var(--surface)}
.tf-completed-toggle{display:flex;align-items:center;gap:8px;background:transparent;border:0;min-height:48px;margin:14px 0 5px;padding:8px 2px;color:var(--tf-accent)!important;font-size:13px!important}
.tf-completed-toggle svg{width:16px;height:16px}
.tf-quick-add{display:flex;gap:8px;align-items:center;position:sticky;bottom:calc(86px + var(--safe-b,0px));z-index:6;border:1px solid var(--line);background:var(--surface);padding:7px 8px;border-radius:11px;box-shadow:0 0 0 6px var(--bg);margin:24px 0 0;color:var(--tf-accent)}
.tf-quick-add input{flex:1;width:100%;min-width:0;border:0;background:transparent;padding:8px 0;font-size:14px!important;color:var(--ink);min-height:42px;box-shadow:none}
.tf-quick-add>button{display:grid;place-items:center;width:44px;min-height:44px;border:0;border-radius:9px;background:var(--tf-wash);color:var(--tf-accent)}
.tf-add-floating{position:fixed;right:max(24px,calc((100vw - 720px)/2));bottom:calc(102px + var(--safe-b,0px));display:none;width:50px;height:50px;background:var(--tf-accent);border:0;border-radius:50%;color:white!important;box-shadow:0 3px 12px #087cf02b;z-index:6}
.tf-empty{text-align:center;padding:32px 12px;color:var(--muted)}.tf-empty>svg{width:38px;height:38px;color:var(--tf-accent)}.tf-empty h2{font-size:18px}.tf-empty p{font-size:13px}
.tf-reorder-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;background:var(--tf-wash);border-radius:9px;margin-bottom:12px;font-size:12px;color:var(--tf-accent)}
.tf-drag-handle{display:grid;place-items:center;min-width:35px;min-height:44px;width:35px;border:0;background:transparent;touch-action:none;cursor:grab}.tf-drag-handle svg{width:16px;height:16px}.tf-drag-handle.is-dragging{background:var(--tf-wash)}
.tf-order-button{font-size:15px!important;width:32px;min-width:32px;padding:3px}
.tf-reorder-notice .link{font-size:12px}
.tf-detail-header{position:sticky;top:0;z-index:8;background:var(--bg);display:flex;gap:8px;align-items:center;min-height:60px}.tf-detail-header>span{flex:1;font-size:14px;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.tf-detail-main{display:flex;gap:6px;align-items:flex-start;margin:10px 0 8px;padding:10px 4px;border-radius:12px;background:var(--surface-2)}
.tf-detail-title{resize:vertical;flex:1;min-width:0;min-height:66px;margin:0;padding:7px 4px;border:0;background:transparent;box-shadow:none;color:var(--ink);font-size:19px!important;font-weight:600!important;line-height:1.4}
.tf-steps{border-bottom:1px solid var(--line);padding:4px 0 12px;margin-bottom:10px}
.tf-step{display:flex;align-items:center;gap:4px}.tf-step>span{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.tf-add-step{display:flex;gap:8px;align-items:center;padding:4px 10px;color:var(--tf-accent)}
.tf-add-step input{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;padding:8px 0;color:var(--ink);min-height:44px;font-size:14px!important}
.tf-add-step button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--tf-accent)}
.tf-detail-option{display:flex;gap:12px;align-items:center;min-height:52px;width:100%;border:0;border-bottom:1px solid var(--line);padding:12px 8px;text-align:left;background:transparent;font-size:14px!important;color:var(--muted)!important}.tf-detail-option.selected{color:var(--tf-accent)!important}
.tf-detail-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 8px;border-bottom:1px solid var(--line);min-height:60px;color:var(--muted);font-size:13px}
.tf-detail-field>span{flex:1;min-width:110px}.tf-detail-field svg{width:20px;height:20px}
.tf-detail-field :is(input,select){border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:8px;min-height:40px;font-size:12px!important;max-width:100%;min-width:0;box-shadow:none}
.tf-note{width:100%;resize:vertical;min-height:130px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:12px;font-size:14px!important;margin-top:18px;box-shadow:none}
.tf-task-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;color:var(--muted)}.tf-task-footer small{font-size:11px}
.tf-file{display:flex;gap:8px;align-items:center;min-width:0;margin:6px 0;padding:4px 8px;background:var(--surface-2);border-radius:8px}.tf-file a{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
.tf-dialog{max-width:440px;width:calc(100% - 32px);margin:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}
.tf-dialog-body{padding:20px}.tf-dialog-body>header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.tf-dialog h2{font-size:20px;flex:1;margin:0}.tf-dialog p{font-size:14px;line-height:1.5;color:var(--muted)}
.tf-dialog svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none}.tf-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.tf-list-form{display:grid;gap:14px}.tf-list-form :is(input,select){min-height:48px;width:100%;font-size:16px;padding:10px;border:1px solid var(--line-input);border-radius:9px;background:var(--surface);color:var(--ink)}
.tf-member{display:flex;align-items:center;gap:10px;padding:10px 0}.tf-member strong{font-size:14px}
.tf-suggestions{border:1px solid var(--line);border-radius:10px;padding:14px;margin:16px 0}.tf-suggestions h2{font-size:16px}.tf-suggestion{display:flex;gap:10px;justify-content:space-between;padding:8px 0;font-size:13px}.tf-suggestion .link{font-size:12px}
#task-list-shortcuts{display:flex;gap:8px;overflow:auto;padding:4px 0;margin:0}
.tf-pin{display:flex;align-items:center;gap:7px;flex:none;border:1px solid var(--line);padding:8px 12px;min-height:44px;border-radius:9px;background:var(--surface);color:var(--brand);font-size:12px}
.tf-pin svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.tf-quick-add{display:none;position:fixed;left:50%;transform:translateX(-50%);width:min(660px,calc(100% - 32px));margin:0;bottom:calc(82px + var(--safe-b,0px))}
.tf-composing .tf-quick-add{display:flex}
.tf-add-floating{display:grid;place-items:center}
.tf-composing .tf-add-floating{display:none}
.tf-in-detail{padding-bottom:24px}
.tf-task-row:has(.tf-drag-handle){display:grid;grid-template-columns:44px 44px minmax(0,1fr) 44px}
.tf-task-row:has(.tf-drag-handle) .tf-order-button{width:44px;min-width:44px;min-height:44px}
.tf-task-row:has(.tf-drag-handle) .tf-order-button:nth-last-child(2){grid-column:3;justify-self:end}
.tf-drag-handle{width:44px;min-width:44px;min-height:44px}
.tf-options{position:fixed;top:calc(68px + var(--safe-t,0px));right:max(18px,calc((100vw - 700px)/2 + 18px));width:min(320px,calc(100% - 36px));max-height:calc(100dvh - 160px);overflow-y:auto;z-index:20}
.clean-ui .task-flow .tf-detail-title{border:0;border-radius:0;background:transparent;box-shadow:none;padding:6px 4px;font-size:20px!important;resize:vertical}
.clean-ui .task-flow .tf-add-step input{border:0;border-radius:0;background:transparent;box-shadow:none;font-size:16px!important}
.clean-ui .task-flow .tf-quick-add input,.clean-ui .task-flow .tf-note,.clean-ui .task-flow .tf-search{font-size:16px!important}
.tf-quick-add{bottom:var(--tf-add-bottom,calc(82px + var(--safe-b,0px)))}
.tf-property{border-bottom:1px solid var(--line)}
.tf-property>summary{display:flex;align-items:center;gap:12px;min-height:54px;padding:12px 8px;list-style:none;cursor:pointer;color:var(--muted);font-size:14px}
.tf-property>summary::-webkit-details-marker{display:none}
.tf-property>summary>span{flex:1;min-width:0;overflow-wrap:anywhere}
.tf-property>summary>svg:last-child{width:16px;height:16px}
.tf-property[open]>summary{color:var(--tf-accent)}
.tf-property .tf-detail-field{padding-top:0;border-bottom:0}
.tf-property .tf-detail-field>span{display:none}
.tf-property .tf-detail-field :is(input,select){width:100%;font-size:16px!important}
:root[data-theme=dark] .task-flow{--tf-wash:#192f47!important}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .task-flow{--tf-wash:#192f47!important}}
@media(max-width:380px){.task-flow{padding-inline:14px}.tf-list-header h1{font-size:20px}.tf-order-button{width:28px;min-width:28px}.tf-detail-field{gap:6px}.tf-detail-field input{flex:1 1 100%}}
@media(min-width:1000px){.task-flow{max-width:700px;margin-inline:auto}.tf-list-header h1{font-size:26px}.tf-quick-add{bottom:100px}}
@media print{body *{visibility:hidden!important}#view-tasks-new,#view-tasks-new *{visibility:visible!important}#view-tasks-new{position:absolute;inset:0;max-width:none!important}.tf-quick-add,.tf-options,.tf-search,.tf-add-floating{display:none!important}.tf-list-header{position:static}.task-flow{padding:0}}
@media(prefers-reduced-motion:reduce){.task-flow *{scroll-behavior:auto!important}}
