.calendar-view{margin-top:16px}.calendar-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;flex-wrap:wrap}.calendar-period{display:flex;align-items:center;gap:10px}.calendar-period h2{font-size:19px;letter-spacing:-.4px;font-weight:700;text-transform:capitalize;min-width:190px;text-align:center}.calendar-period>button{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:26px;line-height:1}.calendar-options{display:flex;align-items:center;gap:8px;font-size:12px}.calendar-today,.calendar-undated{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:36px;padding:0 11px;white-space:nowrap}.calendar-view-switch{display:flex;background:#e8edf5;border-radius:8px;padding:3px}.calendar-view-switch button{padding:6px 10px;border-radius:6px;min-height:30px}.calendar-view-switch button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 3px #172c4c12}.calendar-undated.selected{background:#e8effe;color:var(--blue);border-color:#a8c0ee}.calendar-undated b{font-size:10px;margin-left:3px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.calendar-surface{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;min-width:0}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{padding:13px 0;background:#f9fafc;border-bottom:1px solid var(--line);font-size:11px;font-weight:650;color:var(--muted);text-align:center}.calendar-weekdays span:nth-last-child(-n+2){color:#8c9bb0}.calendar-day{min-width:0;min-height:113px;padding:8px 7px;display:flex;flex-direction:column;text-align:left;border-bottom:1px solid #edf0f5;border-right:1px solid #edf0f5;position:relative;gap:6px;overflow:hidden}.calendar-day:nth-child(7n){border-right:0}.calendar-day:hover{background:#f5f8ff}.calendar-day.selected{background:#edf3ff;box-shadow:inset 0 0 0 2px #94b7f4}.calendar-day.outside .calendar-day-number{color:#b0bac9}.calendar-day-top{display:flex;align-items:center;justify-content:space-between;gap:3px}.calendar-day-number{font-size:12px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:600}.calendar-day.today .calendar-day-number{background:var(--blue);color:#fff}.calendar-count{font-size:10px;color:var(--muted);padding-right:4px}.calendar-events{display:flex;flex-direction:column;gap:4px;width:100%}.calendar-event{font-size:10px;line-height:1.5;padding:2px 5px;border-left:2px solid #789dd7;border-radius:3px;background:#f0f4fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event.review{border-color:#c99541;background:#fff7e8}.calendar-event.done{border-color:#68aa88;background:#edf6ef;color:#607f6f}.calendar-event.late{border-color:#ce6666;background:#fff0f0;color:#a74545}.calendar-more{font-size:10px;color:var(--muted);padding-left:4px}.calendar-dots{display:none}.calendar-hint{font-size:11px;color:var(--muted);padding:11px 14px}.calendar-agenda{min-width:0}.calendar-agenda-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 13px;gap:8px}.calendar-agenda-heading h3{font-size:19px;letter-spacing:-.4px}.calendar-agenda-heading p{font-size:11px;color:var(--muted);margin-top:5px}.calendar-agenda-heading>button{background:#e8effe;color:var(--blue);border-radius:10px;width:38px;height:38px;font-size:25px;flex-shrink:0}.calendar-task-list{display:flex;flex-direction:column;gap:13px}.calendar-agenda-task{min-width:0}.calendar-task-time{font-size:12px;font-weight:650;color:var(--muted);display:block;margin:0 0 6px 2px}.calendar-task-time.late{color:#b74345}.calendar-empty{padding:30px 16px;background:#edf1f7;border-radius:13px;text-align:center}.calendar-empty strong{font-size:14px;font-weight:600}.calendar-empty p{font-size:11px;color:var(--muted);margin-top:8px}.calendar-empty button{color:var(--blue);font-size:12px;min-height:40px;margin-top:12px}@media(max-width:1000px){.calendar-layout{grid-template-columns:minmax(0,1fr) 280px}.calendar-day{min-height:88px}.calendar-event{font-size:9px}}@media(max-width:760px){.view-switch button{min-width:0;gap:4px;font-size:11px;padding:0 5px}.calendar-view{margin-top:9px}.calendar-controls{gap:7px;margin-bottom:10px}.calendar-period{width:100%;justify-content:space-between;gap:4px}.calendar-period h2{font-size:16px;min-width:0}.calendar-period>button{height:32px;width:32px}.calendar-options{width:100%;justify-content:space-between;gap:5px;font-size:11px}.calendar-view-switch button{padding:5px 9px;min-height:28px}.calendar-today,.calendar-undated{min-height:34px;padding:0 9px}.calendar-layout{display:flex;flex-direction:column;gap:17px}.calendar-surface,.calendar-agenda{width:100%}.calendar-surface{border-radius:12px}.calendar-weekdays{padding:8px 0;font-size:10px}.calendar-day{height:45px;min-height:45px;padding:3px 2px;gap:2px;align-items:center}.calendar-day-top{width:100%;justify-content:center;gap:1px}.calendar-day-number{height:23px;width:23px;font-size:11px}.calendar-count{font-size:8px;padding:0;position:absolute;top:3px;right:3px}.calendar-events{display:none}.calendar-dots{display:flex;align-items:center;justify-content:center;gap:3px;height:6px}.calendar-dots i{display:block;width:4px;height:4px;background:#759fdc;border-radius:50%}.calendar-dots i.review{background:#cb9d4b}.calendar-dots i.done{background:#81b79a}.calendar-dots i.late{background:#ce6666}.calendar-dots small{font-size:8px;color:var(--muted)}.calendar-hint{font-size:9px;padding:7px 10px}.calendar-agenda-heading{margin-bottom:10px}.calendar-agenda-heading h3{font-size:17px}.calendar-agenda-heading>button{width:34px;height:34px}.calendar-agenda .task-card{padding:14px;border-radius:12px}.calendar-agenda .task-title{font-size:15px;margin-bottom:13px}.calendar-agenda .card-person{margin-bottom:12px}.calendar-grid.week .calendar-day{height:58px;gap:6px}.calendar-task-time{font-size:11px}.calendar-task-list{gap:12px}}@media(max-width:360px){.view-switch button{font-size:10px;gap:3px;padding:0 2px}.calendar-options{font-size:10px}.calendar-today,.calendar-undated{padding:0 7px}.calendar-count{right:1px;font-size:7px}}.live-avatar{background:#e9eef7}.live-app .brand{text-align:left;padding:0}.live-gate{max-width:460px;margin:12vh auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px}.live-gate h1{font-size:25px;font-weight:600;letter-spacing:-.5px}.live-gate p{font-size:14px;line-height:1.7;color:var(--muted)}.live-gate .primary{flex:none;margin-top:8px}.live-refresh{font-size:12px;color:var(--blue);min-height:36px;padding:0 10px;border-radius:8px;white-space:nowrap}.live-refresh-mobile{display:none}.live-refresh:hover{background:#eaf3ff}.live-error{display:flex;align-items:center;gap:12px;background:#fff4e8;color:#8f5823;padding:12px 14px;border-radius:10px;font-size:12px;line-height:1.5;margin:0 0 12px}.live-error button{color:#0071e3;min-height:36px;flex-shrink:0}.live-checklist{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:12px}.live-checklist li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.live-checklist .checked>span:last-child{color:var(--muted);text-decoration:line-through}.live-checkmark{height:19px;width:19px;border:1px solid #d1d1d6;border-radius:5px;display:grid;place-items:center;flex-shrink:0;margin-top:1px}.checked>.live-checkmark{background:var(--blue);color:#fff;border-color:var(--blue)}.live-confirmation,.live-inline-note{background:#f5f5f7;border:1px solid #e5e5ea;border-radius:12px;padding:14px;width:100%}.live-confirmation strong{font-size:15px;font-weight:600}.live-confirmation p,.live-inline-note{font-size:12px;line-height:1.65;color:var(--muted)}.live-confirmation p{margin-top:8px}.live-confirmation .sheet-actions{margin-top:14px}.live-inline-note .secondary{margin-top:10px}.live-app .toast{max-width:calc(100vw - 32px);line-height:1.5;z-index:1000}.live-app .task-number{white-space:nowrap}.live-app .profile>span:last-child{max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.live-app .detail-people>div>span:last-child{overflow-wrap:anywhere;min-width:0}@media(max-width:760px){.live-app .workspace-top{gap:5px}.live-app .view-switch{flex:1;min-width:0}.workspace-top>.live-refresh{display:none}.live-refresh-mobile{display:block;min-height:36px;padding:0 2px;font-size:10px}.live-gate{margin-top:14vh}.live-gate h1{font-size:23px}.live-error{font-size:11px;padding:10px;gap:8px}.live-app .profile>span:last-child{display:none}.live-footer{line-height:1.6}}.live-action-notice{padding:12px 14px;border-radius:10px;background:#edf5ff;color:#355675;font-size:12px;line-height:1.6;margin:12px 0}html:has(.live-app),body:has(.live-app){overscroll-behavior-y:contain}.live-app,.live-app .workspace,.live-app .board,.live-app .groups-board,.live-app .sheet{overscroll-behavior-y:contain}.live-editor .sheet-body{max-width:100%}.live-kind-picker{border:0;padding:0;margin:2px 0 22px;min-width:0}.live-kind-picker legend{font-size:12px;font-weight:600;margin-bottom:9px;color:var(--muted)}.live-kind-picker>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.live-kind-picker button{padding:11px 7px;border:1px solid #e5e5ea;border-radius:10px;background:#f5f5f7;text-align:left;min-width:0}.live-kind-picker button.selected{border-color:#007aff;background:#edf5ff;color:#0064ce}.live-kind-picker strong{font-size:12px;font-weight:600;display:block;line-height:1.4}.live-kind-picker span{font-size:10px;line-height:1.45;display:block;margin-top:4px;color:var(--muted)}.live-editor .field{margin:16px 0;min-width:0}.live-editor textarea{resize:vertical;min-height:92px;line-height:1.55;max-width:100%}.live-editor .field input,.live-editor .field select,.live-editor textarea{font-size:16px;min-width:0;width:100%}.live-field-hint{font-weight:400;font-size:11px;text-align:right;color:var(--muted)}.live-deadline{margin:18px 0}.live-deadline .helper{margin-top:7px}.live-form-error{padding:12px 14px;margin:12px 0;border-radius:10px;background:#fff4e8;color:#8f5823;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.live-text-button{display:block;padding:6px 0;color:#0071e3;text-align:left}.live-editor .sheet-actions{align-items:stretch;gap:8px}.live-editor .sheet-actions button{min-width:0;white-space:normal;line-height:1.4}.live-editor .live-inline-note p+p{margin-top:10px}.live-editor button:disabled{cursor:default;opacity:.55}.live-edit-button{margin-bottom:10px}.live-counterparty{min-width:0;max-width:100%}.live-counterparty>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.live-counterparty:disabled,.live-counterparty-detail:disabled{opacity:.6;cursor:default}.live-counterparty-detail{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px}.live-contact-notice{margin-bottom:12px}.live-contact-sheet .sheet-head h2{overflow-wrap:anywhere;min-width:0}.live-contact-sheet .close-button{flex-shrink:0}.live-area-switch{display:flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%}.live-area-switch>button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid #e5e5ea;border-radius:10px;background:#fff;color:#6e6e73;font-size:12px;font-weight:550;white-space:nowrap}.live-area-switch>button.selected{background:#edf5ff;border-color:#bddbfa;color:#0071e3}.live-area-switch>button>span{font-size:10px;font-weight:500;min-width:18px;border-radius:6px;background:#00000005;padding:2px 5px}.live-area-switch>button.selected>span{background:#dcecff;color:#0071e3}.personal-period{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 12px}.board>.column.personal-overdue{background:#fbefed;border-color:#efddd9}.board>.column.personal-week{background:#edf3fa;border-color:#e0e8f2}.board>.column.personal-later{background:#eeeef1;border-color:#e3e3e8}.personal-board .column-heading{min-height:48px;align-items:flex-start}.personal-board .column-heading h2{white-space:normal;line-height:1.4;align-items:flex-start;flex:1;min-width:0}.personal-board .column-heading h2 i{margin-top:5px;flex-shrink:0}.personal-board .column-heading h2 span{flex-shrink:0}.personal-board .personal-overdue .column-heading h2 i{background:#d97b71}.personal-board .personal-week .column-heading h2 i{background:#78a7db}.personal-board .personal-later .column-heading h2 i{background:#a1a1ad}.personal-completed{margin-top:20px}.personal-completed-heading{margin-bottom:14px}.personal-completed-heading h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.personal-completed-heading span{font-size:12px;font-weight:500;color:var(--muted);margin-left:8px}.personal-completed-list{display:flex;flex-direction:column;gap:12px;max-width:540px}@media(max-width:760px){.live-area-switch{width:100%;gap:6px}.live-area-switch>button{flex:1;min-width:0;justify-content:center;min-height:37px;padding:8px 6px;font-size:11px;gap:5px}.toolbar-filters.personal-filters{display:grid;grid-template-columns:minmax(0,1fr) 40px;max-width:300px}.personal-period{font-size:10px;margin:5px 0 8px}.personal-tabs button{white-space:normal;line-height:1.3;font-size:10px;padding:5px;gap:4px}.personal-tabs button span{flex-shrink:0}.personal-board .column-heading{min-height:48px}.personal-board .column-heading h2{font-size:12px}}.live-app .quick-filter{position:relative;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;height:40px;min-height:40px;overflow:visible}.live-app .quick-filter>span{font-size:12px;line-height:18px;pointer-events:none}.live-app .quick-filter:after{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-right:3px;pointer-events:none}.live-app .quick-filter>select{position:absolute;inset:0;z-index:1;width:100%;height:100%;max-width:none;min-height:0;padding:0;opacity:0;cursor:pointer}.live-app .quick-filter:has(select:disabled){opacity:.55}.live-checklist-editor{border:0;padding:0;margin:22px 0}.live-checklist-editor legend{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:10px}.live-checklist-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.live-checklist-row>span{font-size:12px;color:var(--muted);width:18px;flex:none}.live-checklist-row input{min-width:0;flex:1;border:1px solid var(--line);background:#fafafa;border-radius:10px;padding:12px 10px;font:inherit;font-size:14px;color:var(--ink)}.live-remove-item{border:0;background:var(--bg);border-radius:10px;width:40px;height:42px;flex:none;display:grid;place-items:center;color:var(--muted)}.live-comments ol{list-style:none;margin:0;padding:0}.live-comments li{border-bottom:1px solid var(--line);padding:12px 0}.live-comments li:last-child{border:0}.live-comments li>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.live-comments strong{font-size:13px}.live-comments time{font-size:11px;color:var(--muted);white-space:nowrap}.live-comments li p{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.live-comment-editor textarea{resize:vertical}.live-comments li>div{flex-wrap:wrap}.live-comments strong{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.live-checklist-row input,.live-comment-editor textarea{font-size:16px}}:root{--blue:#2864dc;--ink:#182842;--muted:#637187;--line:#e0e6ef;--bg:#f4f6fa}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}button,input,select,textarea{font:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8eb5ff;outline-offset:3px}button:active:not(:disabled){transform:scale(.98)}input,select,textarea{color:var(--ink);background:#fff}input::placeholder,textarea::placeholder{color:#778498}textarea{resize:vertical}h1,h2,h3,p{margin:0}.app{min-height:100dvh;padding-bottom:34px}.topbar{height:84px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:-.5px}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:.1px;color:var(--muted);margin-top:2px}.brand-mark{height:37px;width:37px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--blue);border-radius:11px;color:#fff;font-size:25px;font-weight:700}.top-right{display:flex;align-items:center;gap:26px}.demo-badge{font-size:10px;letter-spacing:1px;font-weight:700;color:#607086;border:1px solid var(--line);border-radius:5px;padding:4px 7px}.profile{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;min-height:44px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:50%;font-size:12px;color:#374e74;font-weight:700;flex-shrink:0}.avatar.small{height:27px;width:27px;font-size:9px}.workspace{max-width:1680px;margin:auto;padding:26px 40px}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.view-switch{display:flex;padding:4px;border:1px solid var(--line);border-radius:12px;background:#eaf0f7;gap:3px}.view-switch button{display:flex;justify-content:center;align-items:center;gap:9px;min-height:38px;min-width:104px;font-size:14px;font-weight:600;color:var(--muted);border-radius:8px}.view-switch button.active{background:#fff;color:var(--blue);box-shadow:0 1px 4px #172c4c12}.local-note{color:var(--muted);font-size:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 24px;gap:16px}.page-heading h1{font-size:30px;font-weight:750;letter-spacing:-1px;line-height:1.2}.page-heading p{font-size:13px;color:var(--muted);margin-top:7px}.create-desktop{background:var(--blue);color:#fff;font-weight:650;padding:14px 20px;border-radius:10px;font-size:14px}.toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:26px}.search{border:1px solid var(--line);background:#fff;border-radius:11px;min-height:46px;display:flex;align-items:center;gap:10px;padding:0 13px;width:390px;max-width:45%}.search>span{font-size:27px;color:var(--muted);line-height:1}.search input{border:0;outline:none!important;width:100%;min-width:0;font-size:14px;background:transparent}.search button{font-size:23px}.toolbar-filters{display:flex;gap:9px;align-items:center}.role-select,.filter-button,.staff-desktop,.refresh-desktop{min-height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;padding:0 13px;font-weight:550}.role-select{padding-right:24px;max-width:180px}.filter-button{display:flex;align-items:center;justify-content:center;gap:8px}.filter-button>span{font-size:21px}.filter-button.selected{color:var(--blue);background:#edf3ff;border-color:#cbdcff}.filter-button b{border-radius:5px;background:var(--blue);color:#fff;font-size:10px;padding:2px 5px}.refresh-desktop{font-size:22px}.active-filters{display:flex;flex-wrap:wrap;gap:7px;margin:-8px 0 22px;font-size:12px}.active-filters>span{padding:6px 9px;background:#e6edfa;border-radius:6px;color:#35547e}.active-filters button{color:var(--blue);padding:4px 8px;min-height:32px}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;min-height:450px;touch-action:pan-y}.column{background:#eaf0f6;border:1px solid #e2e8f0;border-radius:16px;padding:13px;min-width:0}.column-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.column-heading h2{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;white-space:nowrap}.column-heading h2 i{height:7px;width:7px;border-radius:50%;background:#8997ac}.column.active .column-heading h2 i{background:#2864dc}.column.review .column-heading h2 i{background:#ba852a}.column.done .column-heading h2 i{background:#378966}.column-heading h2 span{font-size:11px;border-radius:5px;padding:1px 5px;background:#dfe6ef;color:#617084}.column-heading>button{font-size:22px;color:#73839c;min-width:28px;min-height:34px}.column-cards{display:flex;flex-direction:column;gap:12px}.task-card{display:flex;flex-direction:column;text-align:left;width:100%;min-width:0;background:#fff;border:1px solid #e2e7f0;border-radius:12px;padding:17px 16px 15px;box-shadow:0 2px 3px #28395404;transition:box-shadow .16s,border-color .16s,transform .16s}.task-card:hover{border-color:#abc4f2;box-shadow:0 5px 15px #2839540a}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.task-number{font-size:11px;color:#8591a4;font-variant-numeric:tabular-nums}.group-tag{font-size:10px;line-height:1.3;background:#f0f3f8;color:#66768d;border-radius:5px;padding:4px 7px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-tag.personal{color:#5377b2;background:#edf3ff}.task-title{font-size:15px;line-height:1.45;font-weight:650;letter-spacing:-.15px;margin-bottom:21px;overflow-wrap:anywhere}.card-person{display:flex;align-items:center;gap:7px;font-size:11px;margin-bottom:15px}.card-category{margin-left:auto;font-size:10px;color:#78869a;overflow:hidden;text-overflow:ellipsis;max-width:90px}.card-bottom{display:flex;align-items:center;gap:5px;justify-content:space-between}.due{font-size:10px;color:#6b7c91;font-weight:550}.due.late{color:#b74345}.card-counts{display:flex;gap:7px;font-size:10px;color:#7f8b9b;white-space:nowrap}.progress-track{margin-top:12px;background:#eef2f8;height:3px;border-radius:2px;overflow:hidden;width:100%}.progress-track>span{display:block;background:#9ebbef;height:100%;border-radius:2px}.task-card.done .progress-track>span{background:#95c4af}.obstacle-tag{font-size:11px;color:#a65125;background:#fff0e6;padding:5px 8px;margin-bottom:12px;border-radius:5px;align-self:flex-start}.status-tabs,.swipe-hint,.bottom-nav{display:none}.demo-footer{text-align:center;color:#758297;font-size:11px;margin:27px 0 0}.empty-state{padding:28px 7px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;color:#6b7c92}.empty-state>span{height:44px;width:44px;border:1px solid #d8e1ee;display:grid;place-items:center;font-size:20px;border-radius:50%;color:#9aadc6}.empty-state strong{font-size:14px;font-weight:600}.empty-state p{font-size:12px;line-height:1.6;max-width:200px}.empty-state button{font-size:12px;color:var(--blue);min-height:40px}.sheet{border:0;padding:0;background:#fff;color:var(--ink);border-radius:20px;max-height:88dvh;width:460px;max-width:calc(100vw - 32px);margin:auto;overflow-y:auto;box-shadow:0 20px 90px #172b4d33}.sheet.wide{width:540px}.sheet::backdrop{background:#18284265;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.sheet-body{padding:25px 26px 26px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.sheet-head h2{font-size:19px;font-weight:700;letter-spacing:-.4px}.close-button{height:37px;width:37px;border-radius:50%;background:#f1f4f8;color:#5d6f87;font-size:24px;line-height:1}.sheet-handle{display:none}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin:17px 0}.field input,.field select,.field textarea{min-height:46px;border:1px solid #dce3ee;border-radius:9px;padding:11px 12px;width:100%;font-size:14px;font-weight:400;outline:none}.field textarea{line-height:1.6}.field input:focus,.field select:focus,.field textarea:focus{border-color:#739eec}.field input[type=date],.field input[type=time],.field input[type=datetime-local]{appearance:none;min-width:0}.helper{font-size:12px;line-height:1.65;color:var(--muted);margin:10px 0}.primary{background:var(--blue);color:#fff;font-weight:650;font-size:14px;border-radius:10px;min-height:48px;padding:12px 16px;flex:1}.secondary{background:#f2f5fa;color:#415774;border:1px solid #e1e7f0;border-radius:10px;min-height:48px;padding:10px 17px;font-size:13px;font-weight:600}.full{width:100%}.sheet-actions{display:flex;gap:10px;padding-top:18px;margin-top:14px;border-top:1px solid var(--line)}.muted{color:var(--muted);font-weight:400;font-size:12px}.error{font-size:13px;padding:12px;border-radius:8px;background:#fff0ef;color:#a9343d;line-height:1.5;margin:12px 0}.steps{display:flex;justify-content:space-between;gap:4px;margin:25px 0 27px}.steps span{font-size:9px;color:#7a889b;display:flex;align-items:center;flex-direction:column;gap:7px;flex:1}.steps i{height:25px;width:25px;display:grid;place-items:center;border-radius:50%;font-size:11px;background:#edf1f7;font-style:normal}.steps .reached{color:#285aac}.steps .reached i{background:#e7efff;color:#2864dc;font-weight:700}.choice-pair{display:flex;gap:8px;margin:18px 0}.choice-pair button{flex:1;padding:12px;border:1px solid var(--line);border-radius:9px;min-height:46px;font-size:13px}.choice-pair .chosen,.category-grid .chosen{background:#edf3ff;border-color:#7ca5ef;color:#215cc2}.confirm-task{text-align:center;padding:20px 0}.confirm-mark{display:grid;place-items:center;margin:0 auto 22px;width:55px;height:55px;background:#edf3ff;color:var(--blue);border-radius:17px;font-size:27px}.confirm-task h3{font-size:19px}.confirm-task p{margin:16px 0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.category-grid button{border:1px solid var(--line);border-radius:10px;padding:14px 10px;min-height:48px;font-size:14px;overflow-wrap:anywhere}.section-title{font-size:16px}.creation-summary{display:flex;flex-direction:column;gap:8px;background:#f3f6fb;padding:17px;border-radius:12px;font-size:15px;overflow-wrap:anywhere}.creation-summary span{font-size:12px;color:var(--muted)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row>.field{min-width:0}.check-row{display:flex;gap:10px;align-items:center;min-height:42px;font-size:13px;line-height:1.5}.check-row input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}.check-row.checked span{color:#718198;text-decoration:line-through}.detail-title{font-size:24px;line-height:1.35;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere;margin:17px 0 12px}.description{font-size:13px;line-height:1.7;color:#64748b;margin-bottom:22px}.detail-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.status-badge{font-size:10px;padding:5px 8px;border-radius:6px;font-weight:600;background:#edf0f5;color:#617189}.status-badge.active{background:#eaf1ff;color:#3163b7}.status-badge.review{background:#fcf3df;color:#92681e}.status-badge.done{background:#eaf5ef;color:#39815f}.detail-people{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.detail-people>div{display:flex;flex-direction:column;gap:9px}.detail-people>div>span:last-child{display:flex;align-items:center;gap:7px;font-size:13px}.label{font-size:11px;color:#718198}.detail-meta{display:flex;gap:13px;align-items:center;font-size:11px;color:#607187;padding-bottom:20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.detail-meta button{margin-left:auto;color:var(--blue);min-height:32px}.detail-section{margin:23px 0}.detail-section h3,.result-box h3,.settings-section h3{font-size:14px;font-weight:650;margin-bottom:13px}.detail-section h3 span{font-size:11px;color:#8b97a6;font-weight:400;margin-left:8px}.result-box{padding:16px 17px;border-radius:11px;background:#eef5ff;border:1px solid #e1ebfc;margin:20px 0}.result-box p,.obstacle-box p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.attachment{display:flex;align-items:center;gap:11px;text-align:left;padding:12px;background:#f5f7fb;border:1px solid #e7ebf2;border-radius:10px;width:100%;margin-bottom:8px}.file-icon{font-size:26px;color:var(--blue)}.attachment>span:nth-child(2){flex:1;min-width:0}.attachment strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.attachment small{display:block;font-size:10px;margin-top:5px;color:#7c899b}.file-preview{font-size:12px;line-height:1.7;padding:14px;background:#f4f7fc;border-radius:8px;margin:10px 0}.file-preview button{color:var(--blue);padding-top:10px}.attach-button{position:relative;display:flex;align-items:center;justify-content:center;border:1px dashed #cbd7e8;color:var(--blue);border-radius:9px;padding:13px;font-size:13px;cursor:pointer;overflow:hidden}.attach-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.comment{display:flex;gap:9px;margin:14px 0;font-size:12px}.comment strong{font-size:11px;color:#5d728e}.comment p{margin-top:5px;line-height:1.65;overflow-wrap:anywhere}.text-actions{display:flex;justify-content:space-between;gap:12px;font-size:11px}.text-actions button{color:var(--blue);min-height:32px;padding:0;text-align:left}.detail-actions{display:flex;flex-direction:column;gap:10px;padding-top:15px;border-top:1px solid var(--line)}.rework-button{color:#b4494f;background:#fff4f2;border:1px solid #f4dbd8;font-size:14px;min-height:45px;border-radius:9px;font-weight:550}.chat-link{color:var(--blue);font-size:13px;min-height:43px}.obstacle-box{padding:15px;background:#fff4e9;border-radius:11px;font-size:13px;margin:18px 0}.obstacle-box button{margin-top:10px;color:#875c30;font-size:12px;padding:0}.settings-profile{display:flex;align-items:center;gap:12px;padding:15px;background:#f3f6fb;border-radius:12px;margin-bottom:23px;font-size:14px}.settings-profile p{font-size:11px;color:var(--muted);margin-top:5px}.settings-section{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;min-height:40px}.toggle-row input{width:20px;height:20px;accent-color:var(--blue)}.reset-demo{font-size:12px;color:#b54850;border:1px solid #ebd2d7;padding:10px 13px;border-radius:8px;margin:5px 0 23px;min-height:43px}.staff-list{display:flex;flex-direction:column;gap:8px}.staff-list button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}.staff-list button>span:nth-child(2){flex:1}.staff-list strong{font-size:14px;display:block}.staff-list small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);max-width:calc(100% - 30px);width:max-content;border-radius:12px;background:#253c5b;color:#fff;box-shadow:0 6px 30px #14264026;padding:14px 19px;font-size:13px;z-index:80;display:flex;align-items:center;gap:10px}.toast>span{color:#b7d4ff}.chat-view{max-width:620px;margin:auto}.chat-date{text-align:center;color:#74859b;font-size:10px;margin:10px 0 22px}.bot-intro{display:flex;gap:11px;font-size:12px;margin:20px 0;color:#5f718d}.bot-intro .brand-mark{width:30px;height:30px;font-size:18px;border-radius:9px}.bot-intro p{font-size:13px;line-height:1.65;margin-top:6px}.chat-cards{display:flex;flex-direction:column;gap:18px}.chat-task{max-width:430px;background:#e6edf7;padding:12px;border-radius:15px}.chat-task>.status-badge{display:inline-flex;margin-bottom:10px}.chat-composer{position:sticky;bottom:15px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dde5f1;padding:8px;border-radius:15px;margin-top:23px;box-shadow:0 5px 20px #2438540d}.chat-composer>input{min-width:0;flex:1;border:0;outline:none;font-size:14px}.chat-composer>button{width:38px;height:38px;font-size:20px;color:#587498;flex-shrink:0}.chat-composer>.send{border-radius:50%;background:var(--blue);color:#fff;font-size:23px}.error-page{padding:50px;max-width:500px;margin:auto}.error-page h1{font-size:24px;margin-bottom:20px}.error-page button,.error-page a{display:block;margin-top:20px;color:var(--blue)}@media(min-width:1000px){.sheet.wide{position:fixed;inset:18px 18px 18px auto;max-height:calc(100dvh - 36px);height:calc(100dvh - 36px);margin:0}}@media(max-width:1190px)and (min-width:761px){.topbar{padding:0 24px}.workspace{padding:25px 24px}.board{gap:12px}.column{padding:10px}.task-card{padding:14px 11px}.staff-desktop,.card-category{display:none}.column-heading h2{font-size:12px}.column-heading h2 i{display:none}}@media(max-width:760px){.app{padding-bottom:100px}.topbar{height:66px;padding:0 19px}.brand{font-size:18px;gap:9px}.brand-mark{width:31px;height:31px;font-size:22px;border-radius:10px}.brand small{display:none}.top-right{gap:12px}.profile>span:last-child:not(.avatar){display:none}.profile .avatar{height:32px;width:32px;font-size:10px}.demo-badge{font-size:8px;padding:3px 5px}.workspace{padding:20px 17px}.workspace-top{display:block}.view-switch{width:100%;padding:4px}.view-switch button{flex:1;min-height:40px}.local-note,.create-desktop,.staff-desktop,.refresh-desktop{display:none}.page-heading{margin:26px 2px 21px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px;margin-top:6px}.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:11px;margin-bottom:18px}.search{width:100%;max-width:none;min-height:47px}.search input{font-size:16px}.toolbar-filters{display:flex;gap:10px}.role-select{flex:1;max-width:none;min-width:0;font-size:13px;padding-left:13px}.filter-button{min-width:121px;font-size:13px}.active-filters{margin:0 0 16px}.status-tabs{display:flex;gap:4px;margin:0 -3px 18px;border-bottom:1px solid var(--line);padding-bottom:9px}.status-tabs button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;color:#718197;font-size:11px;font-weight:600;min-height:39px;border-radius:8px;white-space:nowrap;padding:4px}.status-tabs button span{font-size:10px;background:#e7ecf4;padding:1px 5px;border-radius:5px}.status-tabs .selected{color:var(--blue);background:#e8effe}.status-tabs .selected span{color:#fff;background:var(--blue)}.board{display:block;min-height:260px}.column{display:none;padding:0;background:none;border:0}.column.mobile-active{display:block}.column-heading{display:none}.column-cards{gap:14px}.task-card{border-radius:15px;padding:18px 18px 16px;box-shadow:0 2px 6px #20365605}.task-title{font-size:17px;margin-bottom:22px;line-height:1.5}.card-top{margin-bottom:13px}.task-number{font-size:12px}.group-tag{font-size:10px;padding:5px 8px}.card-person{font-size:12px;gap:9px;margin-bottom:16px}.avatar.small{width:29px;height:29px;font-size:10px}.card-category,.due,.card-counts{font-size:11px}.progress-track{margin-top:14px}.swipe-hint{display:block;text-align:center;font-size:10px;color:#8794a7;margin-top:22px}.demo-footer{font-size:9px;margin-top:25px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#ffffffef;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid #e0e6ef;padding:8px 12px calc(10px + env(safe-area-inset-bottom));justify-content:space-around}.bottom-nav>button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:#8190a3;min-width:75px;min-height:48px}.bottom-nav>button>span{font-size:23px;line-height:27px;height:27px}.bottom-nav>button.active{color:var(--blue)}.bottom-nav .nav-plus{height:27px;width:27px;border-radius:8px;background:#edf3ff;color:var(--blue)}.sheet,.sheet.wide{position:fixed;inset:auto 0 0;max-width:100%;width:100%;max-height:94dvh;margin:0;border-radius:22px 22px 0 0}.sheet-body{padding:9px 20px calc(25px + env(safe-area-inset-bottom))}.sheet-handle{display:block;width:34px;height:4px;background:#d9e1ec;border-radius:4px;margin:0 auto 16px}.sheet-head{margin-bottom:18px}.sheet-head h2{font-size:18px}.sheet-head .close-button{height:35px;width:35px}.field input,.field select,.field textarea{font-size:16px}.detail-title{font-size:23px}.detail-people{gap:10px}.detail-people>div>span:last-child{font-size:12px}.toast{bottom:89px;font-size:12px}.chat-composer{bottom:82px}.chat-composer>input{font-size:16px}.chat-task{max-width:100%}.chat-task .task-card{padding:15px 14px}.chat-task .task-title{font-size:16px}.empty-state{padding:30px 18px}.steps span{font-size:8px}.sheet-actions .primary{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}.board{grid-template-columns:repeat(5,minmax(215px,1fr));overflow-x:auto;padding-bottom:8px}.task-shell{position:relative;min-width:0}.task-shell[draggable=true]{cursor:grab}.task-shell[draggable=true]:active{cursor:grabbing}.movable .card-top{padding-right:25px}.move-card{position:absolute;right:10px;top:9px;width:34px;height:34px;display:grid;place-items:center;color:#6380a8;background:#f5f8fc;border-radius:8px;font-size:18px;z-index:1}.move-card:hover{color:var(--blue);background:#e7efff}.task-card>.status-badge{align-self:flex-start;margin-bottom:10px}.awaiting-label{margin-top:11px;font-size:10px;color:#836526}.avatar.unassigned{background:#edf0f5;color:#8593a7}.status-badge.backlog{color:#596f91;background:#e8edf6}.backlog .column-heading h2 i{background:#748bab}.drop-over{outline:2px solid #739fee;outline-offset:-2px;background:#dfeafd}.backlog-note{padding:12px 14px;font-size:12px;line-height:1.65;background:#eff3fa;border:1px solid #e1e8f2;border-radius:9px;color:#536985;margin:14px 0}.choice-field{margin:18px 0;padding:0;border:0}.choice-field legend{font-size:12px;font-weight:600;color:#607187}.choice-field .choice-pair{margin:8px 0}.move-options{display:flex;flex-direction:column;gap:9px;margin:20px 0}.move-options button{display:flex;justify-content:space-between;align-items:center;background:#eff4fc;border:1px solid #dfe8f5;padding:16px;border-radius:10px;color:#345d94;min-height:50px;font-size:14px}.back-groups{display:block;color:var(--blue);font-size:12px;padding:0;margin:0 0 12px;min-height:25px}.group-guide{color:#6f8096;font-size:12px;margin:0 0 17px;line-height:1.6}.groups-board{display:flex;gap:20px;overflow-x:auto;align-items:flex-start;scroll-snap-type:x proximity;padding:0 0 22px;max-width:100%}.group-column{flex:0 0 340px;background:#eaf0f6;border:1px solid #dfe7f1;border-radius:17px;padding:17px;scroll-snap-align:start;min-height:300px}.group-heading{display:flex;align-items:center;gap:11px;margin:0 0 15px}.group-heading h2{font-size:17px;font-weight:700;line-height:1.4}.group-heading p{font-size:10px;color:#708197;margin-top:5px}.group-symbol{height:37px;width:37px;flex-shrink:0;display:grid;place-items:center;color:#5a7fb8;background:#dce7f7;border-radius:10px;font-size:22px}.open-group{display:flex;align-items:center;justify-content:center;width:100%;border:1px solid #cfdcf0;border-radius:9px;min-height:43px;margin-bottom:18px;color:var(--blue);background:#fff;font-size:13px;font-weight:600}@media(max-width:760px){.board{display:block;overflow-x:visible}.view-switch button{min-width:0;gap:6px;font-size:13px}.status-tabs{overflow-x:auto;scrollbar-width:none;gap:2px}.status-tabs button{min-width:62px;font-size:10px;gap:3px;padding:4px 2px}.status-tabs button span{font-size:9px;padding:1px 4px}.move-card{right:11px;top:10px;width:38px;height:38px;font-size:20px}.movable .card-top{padding-right:31px}.group-column{flex-basis:calc(100vw - 56px);padding:14px;min-width:270px}.groups-board{gap:13px;margin-right:-17px;padding-right:17px;max-width:calc(100% + 17px);scroll-snap-type:x mandatory}.group-guide{font-size:11px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;line-height:1.6}}.task-shell.movable{-webkit-touch-callout:none}.is-touch-dragging{scroll-snap-type:none!important;scroll-behavior:auto!important}.task-drag-active,.task-drag-active *{user-select:none!important;-webkit-user-select:none!important}.touch-drag-source{opacity:.32}.touch-target{outline:2px solid #759ded!important;outline-offset:-2px;background:#e1ecff!important}.touch-invalid{outline:2px dashed #c9a0a5!important;outline-offset:-2px}.touch-drag-preview{position:fixed;width:230px;z-index:95;pointer-events:none;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #86a9e9;border-radius:13px;padding:13px 15px;box-shadow:0 12px 35px #253e6930;transform:rotate(-2deg)}.touch-drag-preview strong{display:block;font-size:14px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.touch-drag-preview small{display:block;font-size:11px;color:#2864dc;line-height:1.4}.touch-drag-preview.invalid{border-color:#b8848d}.touch-drag-preview.invalid small{color:#9f5360}.drag-number{font-size:10px;color:#74849a}.drag-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:760px){.board{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;overflow-y:hidden;position:relative;width:calc(100% + 17px);max-width:calc(100% + 17px);margin-right:-17px;padding:2px 17px 15px 0;scroll-snap-type:x mandatory;scroll-padding-left:0;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;-webkit-overflow-scrolling:touch}.board::-webkit-scrollbar,.groups-board::-webkit-scrollbar{display:none}.board>.column,.board>.column.mobile-active{display:block;flex:0 0 calc(60vw - 17.4px);width:calc(60vw - 17.4px);min-height:320px;background:#eaf0f6;border:1px solid #dfe7f1;border-radius:15px;padding:12px;scroll-snap-align:start}.board .column-heading{display:flex;margin-bottom:13px}.board .column-heading h2{font-size:13px;gap:7px}.board .column-heading>button{width:32px;height:34px}.board .task-card{padding:15px 13px 14px;border-radius:12px}.board .task-title{font-size:15px;line-height:1.45;margin-bottom:17px}.board .card-person{gap:6px;font-size:11px}.board .card-category{font-size:10px;max-width:70px}.board .due,.board .card-counts{font-size:10px}.board .card-top{margin-bottom:11px}.board .move-card{right:7px;top:7px;width:35px;height:35px}.board .group-tag{font-size:9px;max-width:72%}.board .task-shell{user-select:none;-webkit-user-select:none}.group-column{flex-basis:calc(60vw - 17.4px);width:calc(60vw - 17.4px);min-width:0}.groups-board{gap:12px;scrollbar-width:none;overscroll-behavior-x:contain}.swipe-hint{line-height:1.6;margin-top:10px}}@media(max-width:760px){.topbar{height:48px;padding:0 17px;gap:10px}.brand{font-size:15px;gap:8px;letter-spacing:-.3px}.brand-mark{height:26px;width:26px;border-radius:8px;font-size:19px}.top-right{gap:9px}.profile{min-height:44px;min-width:36px;justify-content:center}.profile .avatar{width:28px;height:28px;font-size:9px}.demo-badge{font-size:8px;letter-spacing:.6px}.workspace{padding:6px 17px 16px}.view-switch{padding:2px;border-radius:10px}.view-switch button{min-height:40px;border-radius:7px;font-size:12px}.page-heading:not(.group-page-heading){height:0;min-height:0;margin:0;padding:0;overflow:hidden}.group-page-heading{margin:4px 0 0;gap:0}.group-page-heading>div{display:flex;align-items:center;gap:12px;min-width:0;width:100%}.group-page-heading h1{font-size:16px;font-weight:650;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-page-heading p{display:none}.back-groups{display:flex;align-items:center;min-height:44px;margin:0;white-space:nowrap;font-size:11px;flex-shrink:0}.toolbar{flex-direction:row;align-items:center;gap:6px;margin:8px 0}.search{flex:1;width:auto;min-width:0;min-height:44px;padding:0 9px;gap:6px;border-radius:9px}.search>span{font-size:23px;flex-shrink:0}.search input{font-size:16px;min-width:0}.search button{padding:0;flex-shrink:0}.toolbar-filters{flex:0 0 auto;gap:6px;min-width:0}.role-select{flex:none;width:122px;max-width:122px;min-width:0;min-height:44px;padding:0 5px;font-size:12px;border-radius:9px}.filter-button{min-width:44px;width:44px;min-height:44px;padding:0;gap:2px;font-size:0;border-radius:9px}.filter-button>span{font-size:23px}.filter-button b{font-size:9px;padding:2px 4px}.status-tabs{min-height:44px;margin:0 0 6px;padding:0;border-bottom:0;gap:2px}.status-tabs button{min-height:44px;font-size:10px}.active-filters{flex-wrap:nowrap;overflow-x:auto;gap:5px;margin:0 0 6px;scrollbar-width:none}.active-filters>span,.active-filters>button{flex-shrink:0;white-space:nowrap;align-self:center}.active-filters>span{padding:5px 7px;font-size:11px}.active-filters>button{font-size:11px;min-height:32px}.group-guide{font-size:10px;margin:0 0 8px}.chat-date{margin:5px 0 10px}.bot-intro{margin:10px 0}}@media(max-width:360px){.role-select{width:108px;max-width:108px;font-size:11px}.search{padding:0 7px;gap:4px}.toolbar,.toolbar-filters{gap:4px}}@media(max-width:760px){.board,.groups-board{padding-right:calc(40vw + .4px)}.board>.column,.board>.column.mobile-active,.group-column{padding:10px}.board .column-heading{gap:4px;min-height:34px;margin-bottom:10px}.board .column-heading h2{min-width:0;font-size:12px;gap:5px;white-space:normal}.board .column-heading h2 i{display:none}.board .column-heading h2 span{flex-shrink:0}.board .column-heading>button{flex:0 0 28px;width:28px;padding:0}.board .task-card,.groups-board .task-card{padding:12px 10px;border-radius:12px}.board .task-title,.groups-board .task-title{font-size:14px;line-height:1.45;margin-bottom:14px}.board .card-top,.groups-board .card-top{gap:5px;margin-bottom:10px}.board .group-tag,.groups-board .group-tag{font-size:9px;max-width:100%;padding:4px 5px;min-width:0}.board .task-number,.groups-board .task-number{font-size:10px;flex-shrink:0}.board .movable .card-top,.groups-board .movable .card-top{padding-right:25px}.board .move-card,.groups-board .move-card{right:3px;top:3px;width:35px;height:35px}.board .card-person,.groups-board .card-person{flex-wrap:wrap;gap:5px;font-size:11px;margin-bottom:12px;overflow-wrap:anywhere}.board .avatar.small,.groups-board .avatar.small{width:24px;height:24px;font-size:9px}.board .card-category,.groups-board .card-category{flex-basis:100%;max-width:100%;margin-left:0;font-size:10px;white-space:normal}.board .card-bottom,.groups-board .card-bottom{flex-wrap:wrap;gap:6px 8px}.board .due,.board .card-counts,.groups-board .due,.groups-board .card-counts{font-size:10px}.board .empty-state,.groups-board .empty-state{padding:24px 2px}.group-heading{gap:7px;align-items:flex-start;margin-bottom:12px}.group-heading>div{min-width:0;overflow-wrap:anywhere}.group-heading h2{font-size:14px}.group-heading p{line-height:1.5;margin-top:3px}.group-symbol{width:28px;height:28px;flex:0 0 28px;font-size:19px}.open-group{font-size:11px;min-height:40px}}.toolbar{flex-direction:column;align-items:stretch;gap:8px}.search{width:100%;max-width:none;min-height:38px}.toolbar-filters{width:100%;display:flex;gap:8px;min-width:0}.quick-filter{display:flex;align-items:center;gap:5px;min-width:0;flex:1;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;color:var(--muted);min-height:40px}.quick-filter select{min-width:0;flex:1;width:100%;border:0;background:transparent;outline:none;font-size:12px;font-weight:600;color:var(--ink)}.filter-button{min-height:40px;white-space:nowrap}.filter-label{font-size:12px}@media(max-width:760px){.toolbar{flex-direction:column;align-items:stretch;gap:7px;margin:7px 0 8px}.search{flex:none;width:100%;max-width:none;min-height:36px;height:36px;padding:0 10px;gap:7px}.search>span{font-size:20px}.search input{font-size:16px}.toolbar-filters{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 40px;gap:5px}.quick-filter{padding:0 5px;min-height:38px;height:38px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:0;font-size:9px;line-height:12px;overflow:hidden}.quick-filter span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-filter select{font-size:11px;line-height:16px;min-height:18px;max-width:100%;padding:0 12px 0 0;text-overflow:ellipsis}.filter-button{width:40px;min-width:40px;min-height:38px;height:38px;padding:0;gap:0}.filter-button>span:first-child{font-size:21px}.filter-label{display:none}.filter-button b{position:absolute;transform:translate(15px,-13px)}}.telegram-group-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 10px;border-radius:8px;background:#eaf3ff;color:#2864dc;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer;touch-action:manipulation}.telegram-group-link svg{flex-shrink:0}.telegram-group-link:hover{background:#dbeaff}.telegram-group-link>span:last-child{font-size:13px}.task-shell.has-telegram-link{padding-bottom:39px;background:#fff;border-radius:12px;box-shadow:0 2px 3px #28395404}.task-shell.has-telegram-link>.task-card{border-radius:12px 12px 0 0;border-bottom:0;box-shadow:none}.task-telegram-link{position:absolute;bottom:5px;left:10px;right:10px;width:calc(100% - 20px);min-height:30px;background:#f0f6ff;font-size:10px}.group-board-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:14px}.group-board-actions .open-group{margin:0;flex:1}.group-board-actions .telegram-group-link{flex:1;min-height:36px}.group-heading-telegram{margin-top:8px}.telegram-editor-title{margin-bottom:18px}.telegram-editor-title strong{font-size:18px}.telegram-editor-title p{margin-top:8px}.telegram-settings-list{display:flex;flex-direction:column;gap:12px;margin-top:12px}.telegram-settings-row{padding:12px;border:1px solid var(--line);border-radius:10px}.telegram-settings-row>strong{font-size:13px}.telegram-settings-row>div{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.telegram-edit-link{font-size:12px;color:var(--blue);min-height:34px}@media(max-width:760px){.group-page-heading>div{flex-wrap:wrap;column-gap:8px;row-gap:0}.group-page-heading h1{flex:1;min-width:50px}.group-heading-telegram{margin:0;min-height:32px;padding:0 7px;font-size:10px}.group-board-actions{gap:5px;margin-bottom:10px}.group-board-actions .telegram-group-link{min-height:32px;font-size:10px}.task-telegram-link{left:7px;right:7px;width:calc(100% - 14px)}.board .task-shell.has-telegram-link>.task-card,.groups-board .task-shell.has-telegram-link>.task-card{border-radius:12px 12px 0 0}}.board>.column.backlog{background:#edf0f3;border-color:#dfe4e9}.board>.column.active{background:#e8f5ec;border-color:#cfe8d7}.board>.column.review{background:#fff1e2;border-color:#f2dfc4}.board>.column.active .column-heading h2 i{background:#56a878}.board>.column.review .column-heading h2 i{background:#d69a4b}:root{--blue:#007aff;--ink:#1d1d1f;--muted:#6e6e73;--line:#e5e5ea;--bg:#f5f5f7}html,body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0}button,a,input,select,textarea{transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}button:focus-visible,a:focus-visible{outline:2px solid #007aff;outline-offset:3px}.topbar{height:68px;background:#fff;border-bottom-color:#e9e9ed}.brand{font-weight:650;font-size:19px;letter-spacing:-.55px;gap:10px}.brand small{color:var(--muted);font-size:11px;letter-spacing:0}.brand-mark{background:var(--blue);box-shadow:inset 0 1px #ffffff35;border-radius:11px}.demo-badge{background:#f5f5f7;color:#6e6e73;border:0;border-radius:6px;font-size:9px;letter-spacing:.7px;padding:5px 8px}.avatar{font-weight:600;color:#515971}.profile{font-size:12px;font-weight:550}.top-right{gap:20px}.workspace{padding-top:24px}.page-heading{margin:0 0 24px}.page-heading h1{font-size:30px;font-weight:650;letter-spacing:-1px}.page-heading p{font-size:12px}.create-desktop{display:inline-flex;align-items:center;gap:7px;padding:11px 16px;border-radius:10px;font-weight:550;box-shadow:0 2px 5px #007aff14}.workspace-top{margin-bottom:12px}.local-note{font-size:11px;color:#86868b}.view-switch{background:#e9e9ed;border:0;border-radius:11px;padding:3px;gap:2px}.view-switch button{font-size:13px;font-weight:550;min-height:34px;border-radius:8px;gap:7px;color:#6e6e73}.view-switch button.active{color:var(--blue);background:#fff;box-shadow:0 2px 5px #0000000b,0 0 1px #00000020}.toolbar{margin:0 0 18px;gap:9px}.search{height:38px;min-height:38px;border:1px solid transparent;background:#eaeaec;border-radius:10px;box-shadow:none;gap:8px}.search>.ui-icon{color:#86868b}.search input{font-size:14px;color:var(--ink);letter-spacing:-.1px}.search:focus-within{background:#fff;border-color:#a8ceff;box-shadow:0 0 0 3px #007aff0d}.search button{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#86868b}.toolbar-filters{gap:8px;justify-content:flex-start}.quick-filter{flex:0 1 225px;border:1px solid #e5e5ea;min-height:38px;border-radius:10px;padding:0 11px;gap:8px;font-size:11px;background:#fff}.quick-filter select{font-size:12px;font-weight:550;color:#515154;cursor:pointer}.quick-filter.selected{background:#edf5ff;border-color:#c5dfff;color:#0071e3}.quick-filter.selected select{color:#0071e3}.quick-filter:focus-within{box-shadow:0 0 0 3px #007aff0d;border-color:#a8ceff}.filter-button{min-height:38px;background:#fff;border-radius:10px;font-weight:550;color:#6e6e73}.filter-button.selected{background:#edf5ff;border-color:#c5dfff;color:#0071e3}.filter-label{font-size:12px!important}.filter-button b{border-radius:10px;min-width:17px}.active-filters{margin:0 0 15px}.active-filters>span{background:#eaf3ff;color:#0071e3;border-radius:7px;font-size:11px}.board>.column,.board>.column.mobile-active{border-radius:18px;box-shadow:none;border-color:#e4e4e9;background:#eeeef2}.board>.column.backlog{background:#eeeef1;border-color:#e3e3e8}.board>.column.active{background:#eaf5ee;border-color:#d8eadd}.board>.column.review{background:#fff2e5;border-color:#f1e1d0}.board>.column.new{background:#edf3fa;border-color:#e0e8f2}.board>.column.done{background:#f0f3f2;border-color:#e2e7e4}.column-heading h2{font-weight:600;color:#414145;letter-spacing:-.2px}.column-heading h2 span{background:#00000005;color:#86868b;font-weight:500;font-size:11px;border-radius:6px}.column-heading>button{display:grid;place-items:center;border-radius:8px;color:#86868b}.column-heading>button:hover{background:#fffa;color:var(--blue)}.task-shell,.task-shell.has-telegram-link{padding-bottom:0;background:#fff;border:1px solid #0000000a;border-radius:16px;box-shadow:0 2px 7px #00000004;overflow:hidden;transition:box-shadow .2s,border-color .2s,transform .2s;animation:card-appear .22s ease both}.task-shell:focus-within{border-color:#a8ceff}.task-shell>.task-card,.task-shell.has-telegram-link>.task-card,.board .task-shell.has-telegram-link>.task-card,.groups-board .task-shell.has-telegram-link>.task-card{border:0;border-radius:0 0 16px 16px;box-shadow:none;padding:4px 15px 16px;background:#fff}.task-card:hover{border-color:transparent;box-shadow:none}.task-card:active:not(:disabled){transform:none;background:#fcfcfd}.card-top,.movable .card-top,.board .card-top,.groups-board .card-top,.board .movable .card-top,.groups-board .movable .card-top{padding:9px 11px 5px 15px;margin:0;min-height:41px;gap:7px;align-items:center}.task-number,.board .task-number,.groups-board .task-number{font-size:10px;color:#929297;font-weight:500}.telegram-group-link{background:#eef5ff;color:#0071e3;border-radius:8px;font-weight:500;gap:4px}.telegram-group-link:hover{background:#e1eeff}.telegram-group-link.group-chip{background:transparent;min-width:0;max-width:100%;padding:0;min-height:28px;justify-content:flex-end;margin-left:auto;overflow:hidden;font-size:10px;gap:3px}.group-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-chip .ui-icon{opacity:.65}.group-tag.personal{margin-left:auto;background:#f3f3f6;color:#86868b;font-size:10px;padding:4px 6px}.move-card,.board .move-card,.groups-board .move-card{position:static;display:grid;place-items:center;width:27px;height:30px;min-width:27px;flex:0 0 27px;margin:0;background:transparent;color:#a1a1a6;border-radius:7px;opacity:1}.move-card:hover{background:#f2f2f7;color:var(--blue)}.task-title,.board .task-title,.groups-board .task-title{font-size:15px;line-height:1.45;font-weight:600;letter-spacing:-.25px;margin-bottom:17px}.card-person{font-size:12px;color:#515154;gap:7px;margin-bottom:15px}.assignee-name{min-width:0;overflow-wrap:anywhere}.card-category{font-size:10px;color:#929297}.avatar.small{width:26px;height:26px;font-size:9px;font-weight:600}.card-bottom{gap:8px;flex-wrap:wrap}.due{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#86868b;font-weight:450}.due.late{color:#d43a32}.task-card.done .due{color:#658a72}.card-counts{color:#929297;font-size:10px;gap:8px}.card-counts>span{display:inline-flex;align-items:center;gap:3px}.progress-track{height:2px;margin-top:13px;background:#f1f1f4}.progress-track>span{background:#8ab9ee;transition:width .25s}.awaiting-label{font-size:10px;color:#86868b;letter-spacing:0}.status-badge{border-radius:6px;font-size:10px;font-weight:500}.status-badge.active{background:#eaf5ee;color:#548669}.status-badge.review{background:#fff2e5;color:#a37745}.status-badge.done{background:#edf3ef;color:#658a72}.status-badge.backlog{background:#f0f0f3;color:#6e6e73}.task-card>.status-badge{align-self:flex-start;margin:3px 0 9px}.group-column{background:#eeeef2;border-color:#e4e4e9;border-radius:18px}.group-symbol{background:#e4eaf3;color:#657b99}.group-heading h2{font-weight:600}.open-group{background:#ffffffb0;border-color:#dee5ee;border-radius:9px;font-weight:500}.group-guide,.swipe-hint,.demo-footer{color:#929297}.sheet,.sheet.wide{background:#fff;border-radius:22px;box-shadow:0 24px 100px #00000020}.sheet[open]{animation:sheet-appear .22s cubic-bezier(.2,.8,.2,1)}.sheet::backdrop{background:#1d1d1f40;-webkit-backdrop-filter:none;backdrop-filter:none}.sheet-head h2{font-weight:600;letter-spacing:-.4px}.close-button{display:grid;place-items:center;background:#f2f2f7;color:#86868b;width:32px;height:32px}.field{font-size:12px;color:#6e6e73;font-weight:500}.field input,.field select,.field textarea{border:1px solid #e5e5ea;background:#fafafa;border-radius:11px;color:#1d1d1f}.field input:focus,.field select:focus,.field textarea:focus{background:#fff;border-color:#a8ceff;box-shadow:0 0 0 3px #007aff0a}.primary{font-weight:550;border-radius:11px}.secondary{background:#f2f2f7;border-color:transparent;color:#515154;border-radius:11px;font-weight:500}.detail-title{font-weight:600}.description,.detail-meta,.label{color:var(--muted)}.result-box,.settings-profile,.creation-summary{background:#f5f7fa;border-color:#e8ebf0}.attachment{background:#f7f7f9;border-color:#ededf1}.chat-task{background:#eeeef3;border-radius:18px}.chat-composer{border-color:#e5e5ea;box-shadow:0 4px 18px #00000005}.toast{background:#303034;border-radius:12px;box-shadow:0 6px 24px #00000016}.toast>span{color:#fff}.toggle-row input[role=switch]{appearance:none;-webkit-appearance:none;width:42px;height:26px;background:#dcdce1;border:0;border-radius:20px;position:relative;cursor:pointer;transition:background .18s}.toggle-row input[role=switch]:before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #00000020;transition:transform .18s}.toggle-row input[role=switch]:checked{background:var(--blue)}.toggle-row input[role=switch]:checked:before{transform:translate(16px)}.calendar-surface{border-color:#e5e5ea;box-shadow:0 2px 7px #00000003}.calendar-weekdays{background:#fafafa}.calendar-day.selected{background:#edf5ff;box-shadow:inset 0 0 0 1px #b8d9ff}.calendar-period h2,.calendar-agenda-heading h3{font-weight:600}.calendar-period>button,.calendar-today,.calendar-undated{border-color:#e5e5ea;border-radius:9px}.calendar-view-switch{background:#e9e9ed}.calendar-empty{background:#eeeef2}.calendar-event.active{background:#eaf5ee;border-color:#85b396}.calendar-event.review{background:#fff2e5;border-color:#d6a376}@media(hover:hover){.task-shell:hover{box-shadow:0 5px 16px #00000008;border-color:#d6e1ee;transform:translateY(-1px)}}@media(max-width:760px){.topbar{height:52px}.brand{font-size:15px;font-weight:650}.brand-mark{height:28px;width:28px;border-radius:9px}.brand-mark .ui-icon{width:20px;height:20px}.top-right{gap:10px}.workspace{padding-top:9px}.workspace-top{margin-bottom:9px}.view-switch{padding:3px}.view-switch button{min-height:35px;font-size:11px;gap:4px;padding:0 3px}.view-switch button .ui-icon{width:14px;height:14px}.create-desktop{display:none}.toolbar{gap:8px;margin:0 0 8px}.search{height:36px;min-height:36px;padding:0 11px}.search input{font-size:16px}.toolbar-filters{grid-template-columns:repeat(3,minmax(0,1fr)) 40px;gap:6px}.quick-filter{padding:0 7px;min-height:40px;height:40px;font-size:9px;gap:1px;border-radius:9px}.quick-filter select{font-size:11px;font-weight:500}.filter-button{width:40px;min-width:40px;min-height:40px;height:40px;border-radius:9px;position:relative}.filter-label{display:none}.filter-button b{right:-3px;top:-5px;transform:none;position:absolute;font-size:9px}.status-tabs{gap:2px;margin-bottom:7px;min-height:39px}.status-tabs button{min-height:39px;font-weight:500;font-size:10px;color:#86868b;border-radius:8px}.status-tabs button span{background:#00000004;color:#86868b;border-radius:5px}.status-tabs .selected{background:#e7effa;color:#0071e3}.status-tabs .selected span{background:#007aff;color:#fff}.board .column-heading h2{font-size:12px;font-weight:600}.board .column-heading>button{font-size:18px}.board .task-shell>.task-card,.groups-board .task-shell>.task-card,.board .task-shell.has-telegram-link>.task-card,.groups-board .task-shell.has-telegram-link>.task-card{padding:3px 10px 13px;border-radius:0 0 16px 16px}.board .card-top,.groups-board .card-top,.board .movable .card-top,.groups-board .movable .card-top{padding:7px 7px 3px 10px;min-height:37px;gap:4px}.board .task-title,.groups-board .task-title{font-size:14px;line-height:1.45;margin-bottom:14px}.board .card-person,.groups-board .card-person{font-size:11px;margin-bottom:11px}.board .avatar.small,.groups-board .avatar.small{width:23px;height:23px;font-size:9px}.board .card-category,.groups-board .card-category{font-size:10px;color:#929297}.board .move-card,.groups-board .move-card{width:24px;min-width:24px;flex-basis:24px;height:28px}.board .telegram-group-link.group-chip,.groups-board .telegram-group-link.group-chip{font-size:9px}.board .due,.board .card-counts,.groups-board .due,.groups-board .card-counts{font-size:10px}.board .card-bottom,.groups-board .card-bottom{gap:7px}.board .due>.ui-icon,.groups-board .due>.ui-icon{width:11px;height:11px}.group-page-heading{margin:0 0 8px}.group-page-heading h1{font-size:16px}.active-filters{margin-bottom:8px}.bottom-nav{background:#ffffffd9;backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);border-top:1px solid #dcdce380;padding-top:9px}.bottom-nav>button{color:#86868b;font-size:10px;font-weight:500;gap:5px}.bottom-nav>button>span{display:grid;place-items:center;height:26px}.bottom-nav .nav-plus{width:30px;height:26px;background:transparent}.bottom-nav>button.active{color:var(--blue)}.sheet,.sheet.wide{border-radius:24px 24px 0 0}.sheet-handle{background:#dcdce1}.calendar-agenda .task-shell>.task-card{padding:4px 15px 16px}.chat-task .task-shell>.task-card{padding:4px 14px 16px}.chat-task .task-title{font-size:15px}}@media(max-width:360px){.view-switch button{font-size:10px;gap:3px}.view-switch button .ui-icon{width:13px;height:13px}.quick-filter{padding:0 5px}.toolbar-filters{gap:5px}}@keyframes card-appear{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes sheet-appear{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.personal-board .personal-overdue .column-heading h2 span{color:#c62828;background:#fff0ee;font-size:14.3px;font-weight:700}
.personal-board .personal-week .column-heading h2 span{color:#16803b;background:#e5f6e9;font-size:14.3px;font-weight:700}
.board .task-card[draggable="true"]{cursor:grab}
.board .task-card[draggable="true"]:active{cursor:grabbing}
.board:fullscreen{background:#f5f5f7;width:100vw;height:100vh;max-width:none;overflow:auto;padding:24px}
.tb-fullscreen{margin-left:auto;border:1px solid #d8e0e9;background:white;border-radius:10px;padding:8px 12px;cursor:pointer;color:#275794}
.tb-move-overlay{position:fixed;inset:0;background:#0008;z-index:10000;display:grid;place-items:center;padding:20px}
.tb-move-box{background:#fff;color:#1d1d1f;width:min(440px,100%);border-radius:18px;box-shadow:0 20px 60px #0004;padding:24px;display:grid;gap:12px}
.tb-move-box h2{font-size:20px;margin:0}.tb-move-box p{margin:0;line-height:1.5}.tb-move-box input,.tb-move-box select,.tb-account input[type=time]{padding:10px;border:1px solid #cbd2dc;border-radius:8px;font:inherit;max-width:100%}
.tb-move-actions,.tb-choices{display:flex;gap:10px;flex-wrap:wrap}.tb-move-actions button,.tb-choices button,.tb-account button{border:1px solid #ccd6e3;background:#f0f4fb;border-radius:9px;padding:10px 14px;cursor:pointer}
.tb-move-actions button:last-child,.tb-account button{background:#007aff;color:white;border-color:#007aff}
.tb-account{margin:14px 0;padding:16px;border:1px solid #e0e4e9;border-radius:14px;display:grid;gap:10px}.tb-account h3{margin:8px 0 2px;font-size:16px}.tb-account p{margin:0;color:#60656d}.tb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tb-stats span{padding:10px;border-radius:9px;background:#f3f5f8;display:grid;gap:4px;font-size:12px}.tb-stats b{font-size:22px;color:#1d1d1f}
#tb-move-notice{margin:8px 0;color:#a33}
@media(max-width:760px){.tb-fullscreen{display:none}.tb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Let vertical gestures over a horizontal board continue to the page.
   Keep the viewport's Telegram overscroll protection in the existing CSS. */
.live-app .board,
.live-app .groups-board {
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
}

/* A desktop Telegram window can be as narrow as the mobile layout. */
@media (hover: hover) and (pointer: fine) {
  .live-app .board,
  .live-app .groups-board {
    scrollbar-width: auto;
  }
  .live-app .board::-webkit-scrollbar,
  .live-app .groups-board::-webkit-scrollbar {
    display: block;
    height: 10px;
    width: 10px;
  }
  .live-app .board::-webkit-scrollbar-thumb,
  .live-app .groups-board::-webkit-scrollbar-thumb {
    background: #bac1cc;
    border: 2px solid #f5f5f7;
    border-radius: 8px;
  }
}

.live-app .task-role-switch{display:flex;gap:8px;width:100%;grid-column:1/-1}
.live-app .task-role-switch button{flex:1;min-width:0;min-height:42px;padding:10px 8px;border:1px solid #e1e3e9;border-radius:12px;background:#fff;color:#656b76;font:inherit;font-weight:600;cursor:pointer}
.live-app .task-role-switch button.selected{background:#eaf3ff;border-color:#b9d9ff;color:#087df0}
.live-app .task-role-switch button:focus-visible{outline:2px solid #087df0;outline-offset:2px}
.live-app .view-switch{grid-template-columns:repeat(3,minmax(0,1fr))}
.live-app .board .column.active .column-heading h2 .work-count-overdue{color:#c62828;background:#fff0ee;font-size:14.3px;font-weight:700}
.live-app .board .column.active .column-heading h2 .work-count-ontime{color:#16803b;background:#e5f6e9;font-size:14.3px;font-weight:700}
.live-app .board > .column > .column-heading{position:relative;z-index:3;background:inherit;padding-top:6px;padding-bottom:6px;border-radius:8px}

.tb-statistics{width:min(960px,96vw);max-width:96vw;max-height:90dvh;box-sizing:border-box;border:0;border-radius:20px;padding:20px;color:#222;background:#fff;font:15px system-ui;overflow:auto}
.tb-statistics::backdrop{background:#0006}
.tb-statistics>header{display:flex;justify-content:space-between;gap:12px;align-items:center;position:sticky;top:-20px;background:#fff;z-index:1;padding:10px 0}
.tb-statistics button,.tb-statistics select,.tb-statistics input{font:inherit;border:1px solid #dce0e8;border-radius:10px;padding:10px;background:#f4f6fa;color:#087df0;min-height:44px}
.tb-statistics h2{font-size:21px}.tb-statistics h3{font-size:17px;margin-top:24px}
.stats-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-filters label{display:flex;flex-direction:column;gap:4px;min-width:0}.stats-filters input,.stats-filters select{width:100%;min-width:0;box-sizing:border-box}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.stats-grid button{text-align:left;color:#333}.stats-grid b{display:block;font-size:24px;margin-bottom:5px}.stats-grid span{font-size:13px}
.stats-note{font-size:13px;line-height:1.5;color:#626875}.stats-table-wrap{overflow-x:auto}.tb-statistics table{border-collapse:collapse;min-width:590px;width:100%}.tb-statistics th,.tb-statistics td{padding:10px;border-bottom:1px solid #eee;text-align:left}.stats-detail article{padding:12px 0;border-bottom:1px solid #ddd}.stats-detail p{font-size:13px}
@media(max-width:600px){.tb-statistics{padding:14px}.tb-statistics>header{top:-14px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tb-statistics.stats-compact{width:min(960px,calc(100vw - 12px));max-width:calc(100vw - 12px);max-height:calc(100dvh - 16px);padding:12px;border-radius:16px;font-size:14px;line-height:1.35}
.stats-compact>header{top:-12px;padding:4px 0 8px;gap:8px;z-index:3}
.stats-compact h2{font-size:20px;line-height:1.2;margin:6px 0}
.stats-compact>header button{width:44px;flex:0 0 44px;padding:0;font-size:28px;color:#535b68}
.stats-compact .stats-tabs{display:flex;gap:4px;margin:0 0 10px;background:#f1f3f6;border-radius:10px;padding:3px}
.stats-compact .stats-tabs button{flex:1;border:0;background:transparent;padding:6px;font-weight:600}
.stats-compact .stats-tabs button[aria-pressed=true]{background:#e5f1ff;color:#087df0}
.stats-compact .stats-filters{gap:6px 8px}
.stats-compact .stats-filters label{font-size:12px;gap:2px}
.stats-compact .stats-filters select,.stats-compact .stats-filters input{font-size:16px;padding:6px;min-height:40px}
.stats-compact .stats-note{font-size:12px;line-height:1.4;margin:8px 0;color:#626875}
.stats-compact h3{font-size:15px;margin:14px 0 8px}
.stats-compact .stats-grid{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}
.stats-compact .stats-grid button{padding:8px;line-height:1.25}
.stats-compact .stats-grid b{font-size:22px;margin-bottom:3px}
.stats-compact .stats-grid span{font-size:12px}
.stats-compact .stats-table-wrap{overflow:visible}
.stats-compact table{width:100%;min-width:0;table-layout:fixed}
.stats-compact th,.stats-compact td{padding:6px 2px;text-align:center;width:15%;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats-compact th{font-size:11px;line-height:1.25;color:#535b68}
.stats-compact td{font-size:15px}
.stats-compact th:first-child,.stats-compact td:first-child{width:40%;text-align:left;padding-left:0;padding-right:6px}
.stats-compact td button{display:block;box-sizing:border-box;width:100%;padding:4px 0;min-height:44px;text-align:left;border:0;background:none;border-radius:4px;font-size:14px;line-height:1.3;overflow-wrap:anywhere;color:#087df0}
.stats-compact .stats-zero{color:#808997}.stats-compact .stats-late{color:#cf3030;font-weight:600}.stats-compact .stats-done{color:#168342;font-weight:600}
.stats-compact [hidden]{display:none!important}
.stats-compact button:focus-visible{outline:2px solid #087df0;outline-offset:2px}
@media(min-width:600px){.stats-compact .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-compact th{font-size:13px}.stats-compact .stats-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}

.live-checklist button.live-checkmark{flex:0 0 44px;width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #c9d1de;border-radius:10px;background:#fff;color:#087df0;cursor:pointer}
.live-checklist button.live-checkmark[aria-checked=true]{background:#e8f3ff;border-color:#087df0}
.live-checklist button.live-checkmark:disabled{cursor:default;opacity:.65}
.live-checklist button.live-checkmark:focus-visible{outline:2px solid #087df0;outline-offset:2px}

/* Personal attributes: selected controls, readable tints and mobile wrapping. */
.tb-personal-fields{display:grid;gap:18px;margin:18px 0}
.tb-personal-fields fieldset{border:0;padding:0;margin:0;min-width:0}
.tb-personal-fields legend{font-size:13px;font-weight:700;margin-bottom:9px}
.tb-type-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tb-type-choices button,.tb-priority-choices button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;border:1px solid #d4dce6;border-radius:10px;padding:10px 5px;background:#fff;color:#273b52;cursor:pointer;min-width:0}
.tb-type-choices small,.tb-priority-choices small{font-size:11px;line-height:1.35;text-align:center}
.tb-type-icon{font-size:24px}
.tb-priority-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tb-priority-choices button[data-priority="1"]{background:#fff7d6}
.tb-priority-choices button[data-priority="2"]{background:#fff0f6}
.tb-priority-choices button[data-priority="3"]{background:#ffe2de}
.tb-personal-fields button[aria-pressed="true"],.tb-filter-group button[aria-pressed="true"]{outline:2px solid #2869b8;outline-offset:1px;border-color:#2869b8}
.tb-personal-fields button:disabled{opacity:.55;cursor:default}
.tb-personal-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:12px 0 18px;padding:12px;background:#fff;border:1px solid #e0e5ec;border-radius:12px}
.tb-filter-group{display:flex;gap:6px;align-items:center}
.tb-filter-group>span,.tb-category-filter{font-size:12px;color:#42546b;font-weight:600}
.tb-filter-group button{min-width:38px;min-height:38px;padding:7px;border:1px solid #d9e0e8;border-radius:8px;background:#fff;cursor:pointer}
.tb-category-filter{display:flex;align-items:center;gap:8px;min-width:0}
.tb-category-filter select{min-height:38px;max-width:210px;background:#fff;border:1px solid #d9e0e8;border-radius:8px;padding:6px;color:#273b52}
.tb-priority-badge{display:inline-block;font-size:12px;line-height:1.5;margin:3px 5px 3px 0}
.tb-category-badge{display:block;font-size:11px;color:#536178;margin:3px 0;overflow-wrap:anywhere}
.live-app .task-shell[data-priority="1"],.live-app .task-shell[data-priority="1"]>.card-top,.live-app .task-shell[data-priority="1"]>.task-card{background:#fff7d6}
.live-app .task-shell[data-priority="2"],.live-app .task-shell[data-priority="2"]>.card-top,.live-app .task-shell[data-priority="2"]>.task-card{background:#fff0f6}
.live-app .task-shell[data-priority="3"],.live-app .task-shell[data-priority="3"]>.card-top,.live-app .task-shell[data-priority="3"]>.task-card{background:#ffe2de}
.tb-accept-task{display:block;width:100%;margin:12px 0 20px;min-height:42px}
.sheet-body>.detail-meta{padding-bottom:12px}
.tb-fullscreen{display:none}
@media(min-width:761px){
 .tb-fullscreen{display:inline-flex;align-items:center;justify-content:center;min-height:38px;white-space:nowrap;margin-left:0;flex-shrink:0}
 .workspace-top{flex-wrap:wrap}
 html.tb-interface-expanded .workspace{max-width:none;width:100%;padding-left:20px;padding-right:20px;box-sizing:border-box}
 html.tb-interface-expanded .live-app{min-height:100dvh;width:100%;max-width:none}
 html.tb-interface-expanded .board:not(.personal-board){grid-template-columns:repeat(5,minmax(205px,1fr))}
 html.tb-interface-expanded .personal-board{grid-template-columns:repeat(3,minmax(205px,1fr))}
 html.tb-interface-expanded .board{min-height:calc(100dvh - 330px);align-items:stretch}
 html.tb-interface-expanded .column{min-height:100%;min-width:0}
 html.tb-interface-expanded .toolbar{flex-wrap:wrap}
 html.tb-interface-expanded .task-title{overflow-wrap:anywhere}
}
html.tb-interface-expanded{background:#f5f5f7;overflow:auto}
html.tb-interface-expanded .live-app{padding-top:calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px));padding-bottom:var(--tg-safe-area-inset-bottom,0px)}
html.tb-interface-expanded .sheet,html.tb-interface-expanded .tb-statistics{inset:calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px) + 8px) 0 calc(var(--tg-safe-area-inset-bottom,0px) + 8px);margin:auto;max-height:calc(100dvh - var(--tg-safe-area-inset-top,0px) - var(--tg-content-safe-area-inset-top,0px) - var(--tg-safe-area-inset-bottom,0px) - 16px)}
@media(max-width:420px){.tb-priority-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-personal-filters{gap:14px 8px}.tb-filter-group{gap:4px}.tb-filter-group>span{min-width:64px}.tb-filter-group button{padding:7px 5px}}

/* Match filter buttons to their corresponding task cards. */
.live-app .tb-filter-group button[data-priority="1"]{background:#fff7d6}
.live-app .tb-filter-group button[data-priority="2"]{background:#fff0f6}
.live-app .tb-filter-group button[data-priority="3"]{background:#ffe2de}

/* Compact board controls. Task cards and editing dialogs keep their sizes. */
.live-app .topbar{height:44px;gap:12px}
.live-app .topbar .brand{font-size:15px;gap:7px}
.live-app .topbar .brand-mark{width:26px;height:26px;border-radius:8px}
.live-app .topbar .brand-mark .ui-icon{width:19px;height:19px}
.live-app .topbar .profile{min-height:34px}
.live-app .topbar .profile .avatar{height:26px;width:26px}
.live-app .workspace{padding-top:10px}
.live-app .page-heading{margin-bottom:10px}
.live-app .page-heading h1{font-size:24px}
.live-app .page-heading p{margin-top:3px}
.live-app .workspace-top{margin-bottom:5px;gap:6px}
.live-app .view-switch{padding:2px;gap:2px;border-radius:9px}
.live-app .view-switch button{min-height:30px;font-size:12px;gap:5px}
.live-app .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;align-items:center;margin:0 0 5px}
.live-app .toolbar>.search{grid-column:1/-1;width:100%;max-width:none;height:32px;min-height:32px;padding:0 9px;border-radius:8px}
.live-app .toolbar>.task-role-switch{grid-column:1;gap:4px;width:100%;min-width:0}
.live-app .task-role-switch button{height:30px;min-height:30px;padding:3px 4px;font-size:12px;line-height:1.2;border-radius:8px;white-space:nowrap}
.live-app .toolbar>.live-area-switch{grid-column:2;width:100%;gap:4px;min-width:0;align-self:center}
.live-app .live-area-switch>button{flex:1;justify-content:center;height:30px;min-height:30px;gap:4px;padding:3px 4px;font-size:12px;border-radius:8px}
.live-app .live-area-switch>button>span{font-size:10px;min-width:16px;padding:1px 3px}
.live-app .toolbar>.toolbar-filters{grid-column:1/-1;width:100%;max-width:none;gap:5px}
.live-app .quick-filter{height:30px;min-height:30px;padding:0 7px;border-radius:8px}
.live-app .quick-filter>span{font-size:11px;line-height:16px}
.live-app .filter-button{height:30px;min-height:30px;width:32px;min-width:32px;border-radius:8px}
.live-app .toolbar-filters{grid-template-columns:repeat(3,minmax(0,1fr)) 32px}
.live-app .toolbar-filters.personal-filters{grid-template-columns:minmax(0,1fr) 32px;max-width:none}
.live-app .workspace>.tb-personal-filters{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px 12px;padding:5px 7px;margin:0 0 5px;border-radius:9px}
.live-app .workspace>.tb-personal-filters .tb-filter-group{gap:3px;white-space:nowrap;min-width:0}
.live-app .workspace>.tb-personal-filters .tb-filter-group>span{font-size:11px;min-width:0;margin-right:2px}
.live-app .workspace>.tb-personal-filters .tb-filter-group button{min-width:28px;min-height:30px;height:30px;padding:2px 4px;line-height:1;font-size:13px;border-radius:7px}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по типу"] button{font-size:18px;width:30px;padding:2px}
.live-app .workspace>.tb-personal-filters .tb-category-filter{font-size:11px;gap:6px}
.live-app .workspace>.tb-personal-filters .tb-category-filter select{min-height:30px;height:30px;padding:2px 5px;max-width:190px}
.live-app .status-tabs{min-height:30px;margin:0 0 4px;padding:0}
.live-app .status-tabs button{min-height:30px;padding:3px 2px}
.live-app .personal-period{font-size:10px;line-height:1.3;margin:3px 0 4px}
.live-app .active-filters{margin:3px 0 5px;gap:4px}
@media(min-width:1100px){
 .live-app .toolbar{grid-template-columns:minmax(220px,1fr) minmax(220px,.7fr) minmax(200px,.7fr)}
 .live-app .toolbar>.search{grid-column:1}
 .live-app .toolbar>.task-role-switch{grid-column:2}
 .live-app .toolbar>.live-area-switch{grid-column:3}
 .live-app .toolbar>.toolbar-filters{grid-column:1/-1}
}
@media(max-width:760px){
 .live-app .topbar{height:36px;padding:0 12px;gap:8px}
 .live-app .topbar .brand{font-size:14px}
 .live-app .topbar .brand-mark{height:24px;width:24px}
 .live-app .topbar .profile{min-height:30px;min-width:30px}
 .live-app .topbar .live-refresh-mobile{min-height:30px}
 .live-app .workspace{padding-top:4px}
 .live-app .page-heading:not(.group-page-heading){margin:0}
 .live-app .group-page-heading{margin:0 0 4px}
 .live-app .group-page-heading h1{font-size:14px}
 .live-app .view-switch button{min-height:28px;font-size:11px;padding:0 3px}
 .live-app .search input{font-size:16px}
 .live-app .tb-fullscreen{display:none}
 .live-app .bottom-nav{padding:4px 12px calc(4px + env(safe-area-inset-bottom))}
 .live-app .bottom-nav>button{min-height:44px;gap:2px}
}
@media(max-width:370px){
 .live-app .task-role-switch button,.live-app .live-area-switch>button{font-size:11px;padding:2px}
 .live-app .workspace>.tb-personal-filters{gap:5px 9px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:330px){
 .live-app .toolbar>.task-role-switch,.live-app .toolbar>.live-area-switch{grid-column:1/-1}
}

/* Role marks follow authenticated viewer; no briefcase in task cards. */
.tb-role-marks{display:inline-flex;gap:3px;margin-right:5px;vertical-align:baseline}
.live-app .task-number{display:inline-flex;align-items:center;white-space:nowrap}
@media(min-width:331px) and (max-width:440px){
 .live-app .toolbar>.task-role-switch{grid-column:1/-1}
 .live-app .toolbar>.live-area-switch{grid-column:1/-1}
}

.tb-category-editor{display:grid;gap:8px}.tb-category-editor .field{margin:0}
.tb-category-editor button,.tb-category-manager button{font:inherit;border:1px solid #d5dce5;background:#f5f7fa;color:inherit;padding:8px 10px;border-radius:9px;cursor:pointer;min-height:36px}
.tb-category-create{display:flex;gap:6px;flex-wrap:wrap}.tb-category-create input{min-width:120px;flex:1;min-height:40px;padding:8px;border:1px solid #c9d1de;border-radius:8px;font:inherit}
.tb-category-manager{font-size:12px}.tb-category-list{padding:8px;max-width:100%;border:1px solid #d5dce5;border-radius:8px}
.tb-category-list>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0}.tb-category-list>div>span{flex:1;overflow-wrap:anywhere}
.tb-category-list [role=group]{display:block;padding:8px;background:#fff0f6}.tb-category-list [role=group] button{margin:4px}
.tb-category-editor [role=alert],.tb-category-manager [role=alert]{color:#b3261e}
.tb-category-manager button:disabled,.tb-category-editor button:disabled{opacity:.5}

/* Type and priority stay on a single row, with accessible group labels. */
.live-app .workspace>.tb-personal-filters{display:grid;grid-template-columns:max-content max-content;align-items:center;gap:5px 8px;padding:5px 7px}
.live-app .workspace>.tb-personal-filters .tb-filter-group{flex-wrap:nowrap;gap:3px}
.live-app .workspace>.tb-personal-filters .tb-category-filter,
.live-app .workspace>.tb-personal-filters .tb-category-manager{grid-column:1/-1}
@media(max-width:760px){
 .live-app .workspace>.tb-personal-filters .tb-filter-group>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по типу"] button{min-width:0;width:32px;height:34px;min-height:34px;padding:2px;font-size:20px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button{min-width:0;width:28px;height:34px;min-height:34px;padding:2px;font-size:11px;letter-spacing:-1px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button[data-priority="2"]{width:34px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button[data-priority="3"]{width:40px}
}

/* Two named groups, one aligned row of icons. */
.live-app .workspace>.tb-personal-filters{column-gap:18px;row-gap:6px;padding:6px 8px;grid-template-columns:max-content max-content}
.live-app .workspace>.tb-personal-filters .tb-filter-group{display:grid;grid-template-columns:repeat(3,max-content);gap:4px 3px;align-items:center;position:relative}
.live-app .workspace>.tb-personal-filters .tb-filter-group>span{position:static;grid-column:1/-1;width:auto;height:auto;min-width:0;padding:0;margin:0;overflow:visible;clip-path:none;white-space:nowrap;font-size:11px;font-weight:600;line-height:14px;color:#626b78}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"]{grid-template-columns:repeat(4,max-content);padding-left:13px;border-left:1px solid #dce1e8}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button[data-priority="3"]{width:50px;min-width:50px;letter-spacing:-1px}
@media(max-width:340px){
 .live-app .workspace>.tb-personal-filters{column-gap:10px;padding-left:6px;padding-right:6px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"]{padding-left:9px}
}

/* White workspace and one neutral surface for every work/personal column. */
:root{--bg:#ffffff}
html,body,#root,.live-app,.live-app .workspace{background:#ffffff}
.live-app .topbar,.live-app .bottom-nav{background:#ffffff}
.live-app .board>.column,.live-app .board>.column.mobile-active,.live-app .group-column{
 background:#F4F4F5;border:1px solid #E6E7EA;border-radius:13px;padding:10px;
}
.live-app .board{gap:10px}
.live-app .board:not(.personal-board){grid-template-columns:repeat(4,minmax(215px,1fr))}
html.tb-interface-expanded .live-app .board:not(.personal-board){grid-template-columns:repeat(4,minmax(205px,1fr))}
.live-app .column-cards{gap:10px}
.live-app .board .column-heading{min-height:32px;margin-bottom:9px;gap:5px}
.live-app .board .column-heading h2{font-size:15px;line-height:1.25;font-weight:600}
.live-app .board .column-heading h2 i{display:none}
.live-app .board .column-heading>button{width:28px;min-width:28px;height:30px;flex:0 0 28px}

/* Compact cards retain all task/role metadata and existing priority colors. */
.live-app .task-shell,.live-app .task-shell.has-telegram-link{border-radius:11px;box-shadow:none}
.live-app .task-shell>.card-top,
.live-app .board .task-shell>.card-top,
.live-app .groups-board .task-shell>.card-top{
 min-height:30px;padding:8px 10px 5px;margin:0;gap:5px;align-items:center;
}
.live-app .task-shell>.task-card,
.live-app .board .task-shell>.task-card,
.live-app .groups-board .task-shell>.task-card,
.live-app .task-shell.has-telegram-link>.task-card{
 padding:5px 10px 10px;border:0;border-radius:0 0 11px 11px;box-shadow:none;
}
.live-app .task-shell .task-title{font-size:16px;line-height:1.3;margin:0;font-weight:600;letter-spacing:-.15px;overflow-wrap:anywhere}
.live-app .task-shell .task-number{font-size:10px;flex-shrink:0}
.live-app .task-shell .group-tag,
.live-app .task-shell .group-chip,
.live-app .task-shell .chat-contact-compact{font-size:10px;min-width:0}
.live-app .task-shell .tb-role-marks{gap:2px;margin-right:4px}
.live-app .task-shell .tb-category-badge,
.live-app .task-shell .obstacle-tag{margin-top:5px;margin-bottom:0}
.live-app .task-shell .card-footer{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 8px;
 width:100%;margin-top:8px;padding-top:8px;border-top:1px solid #E6E7EA;
}
.live-app .task-shell .card-person{margin:0;gap:0;font-size:11px;line-height:1.3;min-width:0;max-width:100%;flex:0 1 auto}
.live-app .task-shell .assignee-name{overflow-wrap:anywhere;min-width:0}
.live-app .task-shell .card-bottom{margin:0 0 0 auto;gap:5px;flex:0 1 auto;min-width:0;justify-content:flex-end}
.live-app .task-shell .due,.live-app .task-shell .card-counts{font-size:10px;line-height:1.3}
.live-app .task-shell .due{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;white-space:normal;text-align:right}
.live-app .task-shell .due .ui-icon{width:12px;height:12px;flex-shrink:0}
.live-app .task-shell .progress-track{margin-top:7px}
.live-app .task-shell .awaiting-label{font-size:10px;line-height:1.25;margin-top:5px}
.live-app .task-shell[data-priority="1"]>.card-top,.live-app .task-shell[data-priority="1"]>.task-card{background:#fff7d6}
.live-app .task-shell[data-priority="2"]>.card-top,.live-app .task-shell[data-priority="2"]>.task-card{background:#fff0f6}
.live-app .task-shell[data-priority="3"]>.card-top,.live-app .task-shell[data-priority="3"]>.task-card{background:#ffe2de}

/* Keep both named filter groups on one line. Font sizes are exactly 70% of
   filter-labels-v1: labels 11 -> 7.7; desktop type 18 -> 12.6 and priority
   13 -> 9.1; mobile type 20 -> 14 and priority 11 -> 7.7. */
.live-app .workspace>.tb-personal-filters{
 display:grid;grid-template-columns:max-content max-content;align-items:center;
 column-gap:10px;row-gap:5px;padding:5px 7px;margin-bottom:5px;max-width:100%;box-sizing:border-box;overflow-x:auto;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group{
 display:flex;flex-wrap:nowrap;align-items:center;gap:3px;min-width:0;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group>span{
 position:static;grid-column:auto;width:auto;height:auto;min-width:0;padding:0;margin:0 3px 0 0;
 clip-path:none;overflow:visible;white-space:nowrap;font-size:7.7px;line-height:9.8px;font-weight:600;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по типу"] button{
 width:28px;min-width:28px;height:30px;min-height:30px;padding:2px;font-size:12.6px;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"]{
 padding-left:10px;border-left:1px solid #E6E7EA;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button{
 width:24px;min-width:24px;height:30px;min-height:30px;padding:2px;font-size:9.1px;letter-spacing:-.7px;
}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button[data-priority="2"]{width:28px;min-width:28px}
.live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button[data-priority="3"]{width:36px;min-width:36px}
.live-app .workspace>.tb-personal-filters .tb-category-filter,
.live-app .workspace>.tb-personal-filters .tb-category-manager{grid-column:1/-1}
.live-app .tb-profile-categories{margin:14px 0;padding:12px;border:1px solid #E6E7EA;border-radius:12px;background:#fff}
.live-app .tb-profile-categories h3{font-size:16px;line-height:1.3;margin:0 0 10px}
.live-app .tb-profile-categories .tb-category-manager{margin:0}
.live-app .tb-profile-categories .tb-category-manager button{min-height:40px}
@media(max-width:760px){
 .live-app .board{width:100%;max-width:100%;margin-right:0;padding:2px 0 12px;align-items:stretch}
 .live-app .board>.column,.live-app .board>.column.mobile-active{display:block;flex:0 0 230px;width:230px;min-height:320px}
 .live-app .board .column-heading h2{font-size:14px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по типу"] button{font-size:14px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"] button{font-size:7.7px}
}
@media(min-width:400px) and (max-width:760px){
 .live-app .board>.column,.live-app .board>.column.mobile-active{flex-basis:calc((100% - 10px)/2);width:calc((100% - 10px)/2)}
}
@media(max-width:340px){
 .live-app .workspace>.tb-personal-filters{column-gap:6px;padding-left:4px;padding-right:4px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group{gap:2px}
 .live-app .workspace>.tb-personal-filters .tb-filter-group[aria-label="Фильтр по приоритету"]{padding-left:6px}
}

/* Compact previews: full task text is unchanged and opens in the detail sheet. */
.live-app .task-shell .task-title{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.live-app .task-shell>.card-top,.live-app .board .task-shell>.card-top,.live-app .groups-board .task-shell>.card-top{min-height:30px;padding:4px 10px 0;gap:5px}
.live-app .task-shell>.card-top .telegram-group-link{width:32px;min-width:32px;height:32px;min-height:32px;padding:6px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;margin-left:auto}
.live-app .task-shell>.card-top .telegram-group-link>span{display:none}
.live-app .task-shell>.card-top .telegram-group-link .ui-icon{width:16px;height:16px}
.live-app .task-shell .card-footer{margin-top:6px;padding-top:6px;gap:4px 8px}
.live-app .task-shell .card-person{flex:1 1 60px;min-width:0}
.live-app .task-shell .assignee-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-app .task-shell .card-bottom{flex:0 1 auto;max-width:100%;flex-wrap:wrap}
.live-app .task-shell .awaiting-label{margin-top:4px}
/* At rest the next column occupies about 10% of the viewport. The 10px
   gutter is subtracted separately. End spacer lets the final column snap left. */
@media(max-width:760px){
 .live-app .board{display:flex;width:100%;max-width:100%;margin-right:0;padding:2px 0 12px;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:0}
 .live-app .board>.column,.live-app .board>.column.mobile-active{box-sizing:border-box;flex:0 0 calc(100% - 10vw - 10px);width:calc(100% - 10vw - 10px);min-width:0;max-width:100%;scroll-snap-align:start}
 .live-app .board::after{content:"";display:block;flex:0 0 10vw;align-self:stretch}
 .live-app .board .column-cards,.live-app .board .task-shell{width:100%;min-width:0;box-sizing:border-box}
 .live-app .board .task-card{width:100%;box-sizing:border-box}
}

/* Restore chat/group labels while retaining compact cards and 10% next-column peek. */
.live-app .task-shell>.card-top .telegram-group-link{width:auto;min-width:32px;max-width:100%;flex:0 1 auto;padding:4px 0 4px 6px;gap:5px;overflow:hidden}
.live-app .task-shell>.card-top .telegram-group-link>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-app .task-shell>.card-top .telegram-group-link .ui-icon{flex:0 0 16px}

/* Red overdue count in personal deadline tabs, selected or inactive. */
.live-app .personal-status-tabs button[data-deadline-bucket="overdue"]>span,
.live-app .personal-status-tabs button[data-deadline-bucket="overdue"].selected>span{color:#d32f2f;background:#fff0f0}

/* Visible checkbox: 44px -> 22px. Row remains comfortable to read. */
.live-checklist button.live-checkmark{flex:0 0 22px;width:22px;height:22px;min-width:22px;min-height:22px;border-radius:5px;margin-top:2px}
.live-checklist button.live-checkmark .ui-icon{width:13px;height:13px}
.tb-order-handle{display:none}
.live-app .board .task-shell>.card-top .tb-order-handle{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:32px;min-height:32px;flex:0 0 28px;padding:0;border:0;background:transparent;color:#87909e;font-size:18px;letter-spacing:-4px;border-radius:5px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.live-app .board .tb-order-handle:focus-visible{outline:2px solid #087df0}
.live-app .board .tb-order-dragging{opacity:.5;outline:2px solid #087df0}
.live-app .board .tb-order-before{box-shadow:0 -3px 0 #087df0}
.live-app .board .tb-order-after{box-shadow:0 3px 0 #087df0}
#tb-order-notice{font-size:11px;color:#64748b;margin:3px 0}

.live-app .board .tb-order-handle:disabled{opacity:.35;cursor:wait}

/* compact-navigation-v1: filter state stays in React, not in DOM copies. */
.live-app .toolbar{display:block;margin-bottom:6px}
.live-app .toolbar>.search{width:100%;box-sizing:border-box}
.live-app .tb-compact-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:6px;margin:0 0 6px;align-items:center}
.live-app .tb-compact-filters>select,.live-app .tb-compact-filters>.filter-button{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;border:1px solid #e1e3e9;border-radius:9px;background:#fff;color:#515866;font-size:12px;padding:5px 8px}
.live-app .tb-compact-filters>.filter-button{display:flex;align-items:center;justify-content:center;gap:5px}
.live-app .tb-compact-filters>.filter-button .filter-label{display:inline}
.live-app .tb-compact-filters>.selected{background:#eaf3ff;color:#087df0;border-color:#b9d9ff}
.live-app .tb-compact-filters>.tb-category-filter{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:11px;min-width:0}
.live-app .tb-compact-filters .tb-category-filter select{min-height:32px;min-width:0;max-width:100%;font-size:12px;padding:4px 6px}
.live-app .tb-bottom-dock{position:fixed;left:0;right:0;bottom:0;z-index:45;background:#fff;border-top:1px solid #e6e7ea;padding:0 max(6px,env(safe-area-inset-left)) env(safe-area-inset-bottom);box-sizing:border-box}
.live-app .tb-bottom-switches{display:grid;grid-template-columns:1.1fr 1fr;gap:4px;max-width:760px;margin:auto;padding:4px 0}
.live-app .tb-bottom-switches>.task-role-switch,.live-app .tb-bottom-switches>.live-area-switch{display:flex;gap:2px;min-width:0;width:100%;margin:0;grid-column:auto}
.live-app .tb-bottom-switches .task-role-switch button,.live-app .tb-bottom-switches .live-area-switch>button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:34px;height:auto;padding:4px 2px;font-size:10px;line-height:1.25;gap:2px;white-space:normal;border:0;border-radius:7px;font-weight:500;background:#fff;color:#656b76}
.live-app .tb-bottom-switches .task-role-switch button.selected,.live-app .tb-bottom-switches .live-area-switch>button.selected{background:#eaf3ff;color:#087df0}
.live-app .tb-bottom-switches .live-area-switch>button>span{font-size:9px;min-width:13px;padding:1px 2px}
.live-app .tb-bottom-dock>.bottom-nav{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:760px;margin:0 auto;transform:none;border-top:1px solid #e6e7ea;padding:2px 0;background:#fff;backdrop-filter:none}
.live-app .tb-bottom-dock>.bottom-nav>button{display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:38px;height:auto;gap:6px;padding:4px;font-size:11px}
.live-app .tb-bottom-dock>.bottom-nav>button>span,.live-app .tb-bottom-dock .nav-plus{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px}
.live-app .tb-bottom-dock .bottom-nav .ui-icon{width:19px;height:19px}
.live-app .workspace{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.live-app .toast{bottom:calc(100px + env(safe-area-inset-bottom))}
.live-app .tb-bottom-dock button:focus-visible,.live-app .tb-compact-filters select:focus-visible{outline:2px solid #087df0;outline-offset:1px}
/* Final font scale requested: 0.5 * 1.3 = 0.65 of compact-peek baseline.
   Detail dialogs deliberately retain their original readable typography. */
.live-app .task-shell .task-title{font-size:10.5625px;line-height:1.35;letter-spacing:0}
.live-app .task-shell .task-number,.live-app .task-shell .group-tag,.live-app .task-shell .group-chip,.live-app .task-shell .chat-contact-compact{font-size:6.5px}
.live-app .task-shell .card-person,.live-app .task-shell .assignee-name,.live-app .task-shell .tb-category-badge,.live-app .task-shell .obstacle-tag{font-size:7.15px}
.live-app .task-shell .due,.live-app .task-shell .card-counts,.live-app .task-shell .awaiting-label,.live-app .task-shell .status-badge{font-size:6.5px}
.live-app .task-shell>.card-top .telegram-group-link>span{font-size:6.5px}
.live-app .task-shell .task-number .tb-role-mark{font-size:inherit}
.live-app .task-shell .due .ui-icon{width:7.8px;height:7.8px}
.live-app .task-shell .card-counts .ui-icon{width:8.45px;height:8.45px}
.live-app .task-shell>.card-top .telegram-group-link .ui-icon{width:10.4px;height:10.4px;flex-basis:10.4px}
.live-app .task-shell>.task-card{padding:5px 9px 8px}
.live-app .task-shell .card-footer{margin-top:5px;padding-top:5px;gap:3px 6px}
@media(max-width:360px){.live-app .tb-bottom-switches{gap:1px}.live-app .tb-bottom-switches .task-role-switch button,.live-app .tb-bottom-switches .live-area-switch>button{font-size:9px}}
