@charset "UTF-8";
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#142049;background:#f7f9fd;font-size:14px;--blue:#0969ef;--line:#e1e8f2;--muted:#7384a4;--surface:#fff;--light:#f3f7fc;--shadow:0 10px 35px #243f6812;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea,[contenteditable]{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 12px;line-height:1.25;display:inline-flex;gap:7px;align-items:center;justify-content:center;white-space:nowrap}button:hover{border-color:#b2c8e9;background:#f3f8ff}button:disabled{cursor:default;opacity:.5}button.primary,.segmented button.active,.type-tabs button.active,.sort-buttons button.active{background:var(--blue);color:#fff;border-color:var(--blue)}button.primary:hover{background:#005bd7}button.ghost{background:transparent;border-color:transparent}button.icon{width:33px;min-width:33px;height:33px;padding:5px}button.small{padding:5px 8px;font-size:12px}button.link{border:0;background:transparent;color:var(--blue);padding:2px 4px}button.danger{color:#be123c}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:5px;padding:9px 10px;background:#fff}input:focus,textarea:focus,select:focus{border-color:#80b5ff;outline:2px solid #dcecff}input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue);cursor:pointer}input[type=color]{width:42px;min-width:42px;height:31px;padding:3px;cursor:pointer}textarea{resize:vertical;line-height:1.5}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.7px;margin:0}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}a{color:var(--blue)}.muted{color:var(--muted)}.tiny{font-size:11px}.smalltext{font-size:12px}.hidden{display:none!important}.svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.boot{padding:70px;text-align:center;color:var(--muted)}.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#fff}.topbar{height:64px;flex-shrink:0;display:flex;align-items:center;gap:23px;padding:0 23px;border-bottom:1px solid var(--line);background:#fff;z-index:3}.brand{font-size:20px;font-weight:750;display:flex;align-items:center;gap:10px;letter-spacing:-.4px;margin-right:10px}.brand img{width:31px;height:31px}.nav-tabs{display:flex;align-self:stretch;gap:10px}.nav-tabs button{border:0;border-radius:0;background:none;border-bottom:3px solid transparent;padding:0 12px;font-size:14px}.nav-tabs button.active{border-bottom-color:var(--blue);color:var(--blue);font-weight:650}.type-tabs{display:flex;gap:5px;align-items:center;min-width:0;overflow:auto;scrollbar-width:none;flex:1}.type-tabs button{padding:8px 10px;font-size:12px;background:#f5f8fc}.header-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.notice-button{position:relative}.notice-button .badge{position:absolute;right:-3px;top:-4px;background:#ea4d61;color:#fff;border:2px solid #fff;border-radius:12px;font-size:10px;min-width:18px;padding:1px 3px}.avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:27px;height:27px;border-radius:50%;font-size:11px;font-weight:650;background:color-mix(in srgb,var(--avatar-color,#3b82f6) 19%,white);color:var(--avatar-color,#3b82f6);border:1px solid #ffffff90}.avatar.large{width:35px;height:35px;font-size:13px}.profile-button{border:0;padding:0;background:none}.local-mark{font-size:10px;letter-spacing:.04em;color:#8b99af;background:#f4f6fa;padding:4px 7px;border-radius:4px}.workspace{flex:1;min-height:0;overflow:hidden}.task-layout{height:100%;display:grid;grid-template-columns:56% 44%}.task-left{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow:hidden}.task-controls{padding:19px 22px 9px;flex-shrink:0}.list-head{display:flex;align-items:center;gap:12px;min-height:39px}.list-head h1{font-size:25px;letter-spacing:-.5px;margin-right:5px}.segmented{display:inline-flex;flex-shrink:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#f6f8fc}.segmented button{border:0;border-radius:0;font-size:12px;padding:10px 13px;background:transparent}.segmented button+button{border-left:1px solid var(--line)}.search{position:relative;flex:1;min-width:70px}.search .svg{position:absolute;left:10px;top:10px;color:var(--muted);width:17px;height:17px}.search input{padding-left:34px;height:37px;background:#fcfdff;min-width:0}.add-square{height:37px!important;width:40px!important;min-width:40px!important;font-size:26px;font-weight:300;padding:0!important}.sort-line{display:flex;align-items:center;gap:9px;margin-top:18px;min-height:33px;color:var(--muted);font-size:11px;white-space:nowrap}.sort-buttons{display:flex;gap:4px}.sort-buttons button{padding:7px 9px;font-size:11px;background:#f7f9fd}.sort-hint{overflow:hidden;text-overflow:ellipsis;min-width:40px}.task-list{flex:1;min-height:0;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 12px 20px 22px;scrollbar-color:#b9c4d5 #f2f5f9;scrollbar-width:thin}.list-footer{font-size:11px;color:var(--muted);padding:9px 22px;border-top:1px solid #f2f5fa;flex-shrink:0;display:flex;justify-content:space-between;gap:10px}.type-heading{font-size:11px;font-weight:650;letter-spacing:.045em;color:#7588a7;padding:15px 2px 7px;text-transform:uppercase;display:flex;align-items:center;gap:7px}.type-heading:after{content:"";height:1px;background:var(--line);flex:1}.task-group{border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:8px;background:#fff}.group-heading{background:#eef3f9;display:flex;align-items:center;gap:7px;padding:9px 10px;font-size:12px;font-weight:650;min-height:35px;cursor:pointer}.group-heading .svg{width:13px;height:13px}.group-count{color:#7c8daa;font-weight:400}.group-dot{width:6px;height:6px;border-radius:50%;background:var(--state-color);margin-left:auto}.task-group.drag-over{outline:2px dashed var(--blue);outline-offset:-2px;background:#f0f7ff}.task-row{position:relative;padding:9px 9px 8px 38px;min-height:76px;border-top:1px solid #edf1f7;cursor:pointer;background:#fff;transition:background .12s}.task-row:hover{background:#f6faff}.task-row.selected{background:#eaf4ff}.task-row[draggable=true]:active{cursor:grabbing}.row-grip{position:absolute;left:5px;top:17px;color:#a2b3cf;cursor:grab;font-size:15px;line-height:1}.complete-button{position:absolute;left:17px;top:12px;width:16px;height:16px;border-radius:50%;border:1.5px solid #a5b5cb;padding:0;background:transparent;font-size:10px}.complete-button.done{background:#e3f8ed;border-color:#65b58e;color:#14814d}.row-top{display:flex;align-items:center;gap:5px;min-width:0;font-size:12px;line-height:1.4;padding-right:60px;margin-bottom:6px}.row-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.row-client{font-weight:550}.row-title .place{color:#596d92}.row-title strong{font-weight:650}.row-number{position:absolute;right:37px;top:12px;color:#677da7;font-size:11px}.row-menu{position:absolute;right:4px;top:5px;border:0;background:transparent;width:29px;height:29px;padding:2px;color:#6886b6}.row-bottom{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:10.5px;line-height:1.4;min-width:0}.state-pill{border:0;border-radius:4px;font-size:10px;padding:3px 6px;background:color-mix(in srgb,var(--state-color) 20%,white);color:#233e62;max-width:130px;overflow:hidden;text-overflow:ellipsis;display:inline-flex}.priority{display:inline-flex;gap:3px;align-items:center}.priority.urgent{color:#ef4444}.priority.high{color:#e69505}.priority.medium{color:#bd8b0e}.priority.normal{color:#91a0b6}.priority .svg{width:14px;height:14px;fill:currentColor;stroke-width:1}.role-avatar{display:inline-flex;gap:3px;align-items:center;cursor:pointer;border:0;background:none;padding:0;font-size:10px}.role-avatar .avatar{width:22px;height:22px;font-size:9px}.role-avatar .role-label{color:#8597b5;font-size:9px}.row-date{display:flex;align-items:center;gap:4px;color:#3d577e}.row-date:before{content:"";height:11px;width:1px;background:#d4dfed;margin-right:3px}.row-date .caption{font-size:9px;color:#8394af}.row-date.overdue{color:#d14158}.unread-indicator{width:7px;height:7px;border-radius:50%;background:var(--blue);flex-shrink:0;box-shadow:0 0 0 3px #e1efff}.unread-text{font-size:9px;color:var(--blue);font-weight:600}.task-right{min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 18px 28px;background:#fcfdff;scrollbar-width:thin;scrollbar-color:#c6cfdd #f3f6fa}.client-card,.detail-card,.chat-card,.card{border:1px solid var(--line);border-radius:7px;background:#fff}.client-card{padding:12px 13px;background:#f8fbff;margin-bottom:10px}.client-summary{display:flex;align-items:center;gap:10px;min-height:26px;margin-bottom:10px}.client-summary .caption{font-size:11px}.client-summary strong{font-size:16px}.client-summary .place{font-size:12px;color:#6b7fa2}.client-notes{width:100%;height:94px;min-height:62px;resize:vertical;font-size:13px;line-height:1.5;background:#fff}.save-indicator{font-size:10px;display:flex;align-items:center;gap:5px;color:#7f91ac;min-height:17px}.save-indicator.saved{color:#388a69}.save-indicator.error{color:#c33251}.detail-card{padding:0 12px 8px;margin-bottom:11px}.detail-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 0 8px}.detail-title h2{font-size:19px;margin:0;line-height:1.4}.detail-title .title-actions{display:flex;flex-shrink:0}.toolbar{display:flex;align-items:center;gap:1px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;padding:3px;background:#fbfdff;flex-wrap:wrap}.toolbar button{border:0;border-radius:3px;padding:5px 7px;font-size:14px;min-width:27px;background:transparent;line-height:1}.toolbar button:hover{background:#e4efff}.toolbar select{border:0;background:transparent;padding:5px 3px;width:auto;font-size:11px;max-width:94px}.toolbar .divider{width:1px;height:20px;background:var(--line);margin:0 3px}.color-control{position:relative;width:30px;height:28px;display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer}.color-control input{position:absolute;width:25px;height:6px;left:3px;bottom:0;border:0;padding:0;opacity:.8}.editor-wrap{border:1px solid var(--line);border-radius:0 0 4px 4px;background:#fff}.editor{height:420px;min-height:170px;max-height:1000px;overflow:auto;resize:vertical;padding:15px 13px;line-height:1.55;font-size:14px;outline:none!important;color:#15213e;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#adb9cc #f1f5fa;overflow-wrap:anywhere}.editor h1{font-size:26px}.editor h2{font-size:22px;margin:0 0 12px;letter-spacing:-.2px}.editor p{margin:0 0 9px}.editor table,.rich-preview table{border-collapse:collapse;max-width:100%;margin:10px 0;min-width:240px;font-size:13px}.editor th,.editor td,.rich-preview th,.rich-preview td{border:1px solid #cdd9e7;min-width:65px;padding:6px 9px;vertical-align:top}.editor th,.rich-preview th{background:#e0efff;text-align:left;font-weight:650}.editor table{table-layout:auto}.editor:empty:before{content:attr(data-placeholder);color:#99a6b9;pointer-events:none}.editor-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8797ad;padding:4px 7px;min-height:24px;pointer-events:none}.editor-footer .svg{width:12px;height:12px}.chat-card{padding:13px;margin-bottom:12px}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}.chat-heading h3{margin:0}.chat-heading .muted{font-size:11px;font-weight:400;margin-left:5px}.chat-avatars{display:flex;margin-left:auto}.chat-avatars .avatar{margin-left:-5px;border:2px solid #fff}.messages{display:flex;flex-direction:column;gap:12px;min-height:100px;padding:0 0 15px;overflow-wrap:anywhere}.message{display:flex;gap:7px;max-width:92%;align-self:flex-start}.message.mine{align-self:flex-end;flex-direction:row-reverse}.message .avatar{margin-top:15px}.message-head{font-size:10px;color:#8395b1;margin:0 4px 3px}.message.mine .message-head{text-align:right}.message-bubble{padding:9px 11px;background:#eef3f9;border-radius:0 10px 10px 10px;white-space:pre-wrap;font-size:12px;line-height:1.5}.message.mine .message-bubble{background:#e0f6ed;border-radius:10px 0 10px 10px}.message.unread .message-bubble{box-shadow:inset 3px 0 var(--blue)}.message-foot{font-size:10px;color:#8295ac;display:flex;gap:7px;align-items:center;margin-top:3px}.message-foot button{font-size:10px}.recipient-line{display:flex;align-items:center;gap:7px;border-top:1px solid #edf1f7;padding-top:10px;margin-bottom:7px}.recipient-line label{color:#798aaa;font-size:11px}.recipient-line select{padding:5px 7px;font-size:12px;width:auto;max-width:100%;flex:1}.composer{display:flex;align-items:flex-end;gap:7px}.composer textarea{height:42px;min-height:42px;max-height:180px;font-size:12px;resize:vertical}.composer button{height:41px}.empty-state{padding:55px 20px;color:#7c8faa;text-align:center;line-height:1.6}.empty-state .svg{width:35px;height:35px;display:block;margin:0 auto 15px;color:#b4c4db}.empty-state h3{color:#40597c}.mobile-back{display:none}.page{height:100%;overflow:auto;padding:26px 30px;background:#fff}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}.page-title p{margin:6px 0 0;color:var(--muted);font-size:12px}.client-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:20px;height:calc(100% - 90px);min-height:350px}.client-table-card{display:flex;flex-direction:column;overflow:hidden}.client-table-controls{display:flex;gap:12px;padding:15px;border-bottom:1px solid var(--line);align-items:center}.table-scroll{overflow:auto;flex:1;min-height:0}table.data-table{border-collapse:collapse;width:100%;font-size:12px}.data-table th{background:#f5f8fc;color:#6f829e;font-weight:550;font-size:11px;text-align:left;padding:11px 12px;white-space:nowrap}.data-table td{padding:12px;border-top:1px solid #edf1f7}.data-table tr.selected td{background:#eaf4ff}.data-table tr[data-client]{cursor:pointer}.data-table tr[data-client]:hover td{background:#f5faff}.client-form-card{padding:22px;overflow:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-field{display:flex;flex-direction:column;gap:6px;font-size:12px}.form-field.full{grid-column:1/-1}.form-field label{font-weight:550}.form-field .hint{color:var(--muted);font-size:11px;line-height:1.5}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.client-form-card textarea{min-height:180px}.client-worklist{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.client-work-button{display:flex;width:100%;text-align:left;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:12px}.subtabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:18px 0 20px}.subtabs button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 18px;background:none}.subtabs button.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}.config-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px}.card{padding:20px;margin-bottom:15px}.card h2{margin:0 0 13px}.card h3{margin-bottom:12px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.card-title h2{margin:0}.info{padding:12px 14px;border-radius:5px;background:#edf5ff;color:#34608f;font-size:12px;line-height:1.5;margin:13px 0}.type-select{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.type-select label{font-size:12px}.type-select button{font-size:12px;padding:8px 11px}.type-select button.active{background:var(--blue);color:white;border-color:var(--blue)}.settings-table{width:100%;border-collapse:collapse;font-size:12px}.settings-table th{font-size:11px;font-weight:500;color:#7c8da5;background:#f4f7fb;padding:10px 7px;text-align:left;white-space:nowrap}.settings-table td{padding:6px 7px;border-top:1px solid #edf1f7}.settings-table input[type=text]{padding:6px 8px;font-size:12px;min-width:85px}.settings-table .name-col{width:45%}.settings-table .order-buttons{display:flex;gap:1px}.settings-table .order-buttons button{padding:2px;min-width:20px;width:20px;height:23px;font-size:12px;border:0;background:transparent;color:#8193ae}.settings-table tr.inactive td{color:#8a9bb4;background:#fafbfd}.settings-table .center{text-align:center}.settings-table .avatar{width:25px;height:25px;font-size:10px}.rule{padding:12px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.5}.rule:first-of-type{border-top:0}.rule .muted{display:block;margin-top:3px;font-size:11px}.number-card{background:#eff6ff;padding:13px;border-radius:6px;margin:12px 0}.number-card strong{display:block;font-size:34px;margin:3px 0}.user-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f7}.user-main{flex:1;min-width:0}.user-first{display:flex;gap:8px;align-items:center;margin-bottom:5px}.user-name{font-weight:550;font-size:13px}.user-contact{font-size:11px;color:#7d8fab;overflow-wrap:anywhere;line-height:1.45}.role-badge{font-size:10px;padding:3px 6px;border-radius:4px;background:#eef2f8;color:#5b7193}.role-badge.admin{background:#e6f1ff;color:var(--blue)}.active-dot{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#7b8da7}.active-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#21bb72}.active-dot.off:before{background:#a6afbc}.user-count{padding-top:12px;font-size:11px;color:var(--muted)}.checks{display:flex;flex-direction:column;gap:10px}.check-line{display:flex;align-items:center;gap:8px;font-size:13px}.hint-box{font-size:12px;line-height:1.6;color:#7a8ca7;padding:10px 0}.app-login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#edf5ff,#f8faff 65%);padding:25px}.login-card{background:#fff;max-width:420px;width:100%;border:1px solid var(--line);border-radius:14px;padding:32px;box-shadow:var(--shadow)}.login-card .brand{margin-bottom:28px}.login-card h1{font-size:25px;margin-bottom:8px}.login-card>p{color:var(--muted);line-height:1.5;font-size:13px;margin-bottom:25px}.login-card .form-field{margin-bottom:16px}.login-card .primary{width:100%;padding:11px}.demo-picks{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.demo-picks button{font-size:11px;padding:6px 9px}.demo-box{margin-top:23px;border-top:1px solid var(--line);padding-top:18px;font-size:11px;color:#8292a9;line-height:1.6}.error-text{color:#b32448;font-size:12px;margin:8px 0;line-height:1.5}dialog{border:1px solid var(--line);border-radius:12px;padding:0;max-width:min(650px,94vw);width:600px;max-height:90dvh;box-shadow:0 25px 80px #0f244c35;color:inherit;background:#fff}dialog::backdrop{background:#17294c55;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}.modal-head h2{font-size:20px;margin:0}.modal-body{padding:22px}.modal-body .form-grid{gap:16px}.modal-body .notice-item{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);align-items:flex-start}.notice-item button{white-space:normal;text-align:left;justify-content:flex-start;flex:1;border:0;background:#f6faff;line-height:1.5}.notice-item strong{display:block;font-size:12px}.notice-item p{margin:4px 0 0;font-size:12px;color:#7c8eaa}.history-item{border-bottom:1px solid var(--line);padding:10px 0;font-size:12px;line-height:1.6}.history-item .rich-preview{border:1px solid var(--line);padding:14px;max-height:240px;overflow:auto;margin:10px 0}.history-item summary{cursor:pointer}.shortcut-menu{display:flex;flex-direction:column;gap:7px}.shortcut-menu button{justify-content:flex-start;padding:12px}.shortcut-menu .avatar{margin-right:7px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(20px);padding:12px 18px;border-radius:8px;background:#17355d;color:white;font-size:13px;box-shadow:var(--shadow);z-index:100;opacity:0;pointer-events:none;max-width:min(560px,90vw);transition:.2s;line-height:1.5}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}#toast.error{background:#a22f48}.pending-banner{background:#fff8de;border:1px solid #f0de9e;border-radius:4px;padding:7px 9px;margin-bottom:8px;font-size:11px;color:#8c6c12}.page-footer{font-size:11px;color:#8a9ab1;padding:20px 0 0}.help-line{font-size:11px;color:#7d91ad;line-height:1.6}.readonly-note{padding:12px;color:#7b8fa9;font-size:12px;background:#f6f9fc;border-radius:5px}.task-list::-webkit-scrollbar,.task-right::-webkit-scrollbar,.editor::-webkit-scrollbar{width:9px}.task-list::-webkit-scrollbar-track,.task-right::-webkit-scrollbar-track,.editor::-webkit-scrollbar-track{background:#f3f6fa;border-radius:9px}.task-list::-webkit-scrollbar-thumb,.task-right::-webkit-scrollbar-thumb,.editor::-webkit-scrollbar-thumb{background:#bcc7d7;border-radius:9px;border:2px solid #f3f6fa}.state-select-mini{font-size:11px}.wide-dialog{width:760px;max-width:94vw}.search-match{background:#fff4b5}.table-notice{font-size:11px;color:#7f92ad;margin-bottom:10px}.inline-actions{display:flex;gap:8px;align-items:center}.file-input{padding:5px}.notification-kind{font-size:11px;color:#1671d8;font-weight:600}.empty-group{font-size:11px;color:#92a2b9;padding:10px 13px;background:#fafcff}.state-empty{padding-top:20px}.mobile-summary{display:none}
@media(min-width:1700px){.row-top{font-size:13px}.row-bottom{font-size:11px;gap:10px}.row-date .caption{font-size:10px}.task-row{padding-top:11px;min-height:81px}.task-controls{padding-left:25px}.editor{height:470px}}
@media(max-width:1350px){.topbar{gap:12px;padding:0 17px}.brand{font-size:18px;margin-right:0}.nav-tabs{gap:0}.nav-tabs button{padding:0 9px;font-size:13px}.type-tabs button{font-size:11px;padding:8px}.local-mark{display:none}.task-controls{padding:15px 15px 9px}.task-list{padding-left:15px;padding-right:8px}.list-head{gap:8px}.list-head h1{font-size:22px}.segmented button{padding:10px 9px;font-size:11px}.sort-line{gap:6px}.sort-buttons button{padding:7px;font-size:10px}.row-bottom{gap:5px;font-size:10px}.row-date .caption{display:none}.role-avatar .role-label{display:none}.task-right{padding:13px 12px}.client-summary{gap:7px}.client-summary strong{font-size:14px}.client-summary .place{font-size:11px}.config-layout{grid-template-columns:minmax(0,1.6fr) minmax(285px,1fr)}.card{padding:16px}.settings-table td,.settings-table th{padding-left:4px;padding-right:4px}.sort-hint{font-size:9px}.row-top{font-size:11.5px}}
@media(max-width:1050px){.topbar{flex-wrap:wrap;height:auto;min-height:64px;padding:10px 14px;gap:6px 12px}.brand{font-size:18px}.type-tabs{order:4;width:100%;flex-basis:100%;padding-top:4px}.type-tabs button{flex:1}.header-actions{margin-left:auto}.nav-tabs{height:38px;align-self:auto}.task-layout{grid-template-columns:53% 47%}.list-head{flex-wrap:wrap}.list-head h1{font-size:21px}.list-head .search{flex-basis:50%;order:3}.list-head .add-square{order:4}.list-head .segmented{margin-left:auto}.sort-line{flex-wrap:wrap;margin-top:9px}.sort-hint{width:100%;margin-left:0}.row-bottom{flex-wrap:wrap;gap:4px 7px}.row-date{font-size:10px}.task-row{min-height:88px}.row-date:before{display:none}.row-top{font-size:12px}.client-summary{flex-wrap:wrap}.client-summary .place{margin-left:auto}.detail-title h2{font-size:16px}.editor{height:350px}.toolbar{gap:0}.toolbar .divider{margin:0 1px}.toolbar button{padding:5px}.chat-heading{flex-wrap:wrap}.chat-heading h3{font-size:14px}.chat-heading .muted{font-size:10px}.page{padding:22px 18px}.config-layout{grid-template-columns:1fr}.config-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}.client-layout{grid-template-columns:1fr 1fr;gap:14px}.client-form-card{padding:16px}.data-table td,.data-table th{padding:10px 7px}.user-row{padding:11px 0}.settings-table input[type=text]{min-width:70px}.user-contact{font-size:12px}}
@media(max-width:720px){:root{font-size:14px}.topbar{padding:8px 10px;gap:5px 6px}.brand{font-size:16px;gap:6px}.brand img{width:26px;height:26px}.nav-tabs button{font-size:12px;padding:0 7px}.header-actions{gap:4px}.header-actions .avatar.large{height:28px;width:28px;font-size:10px}.notice-button.icon{width:28px;min-width:28px}.type-tabs{gap:4px;overflow-x:auto}.type-tabs button{font-size:10px;padding:7px 8px;flex:none}.task-layout{display:block;position:relative}.task-left{height:100%;border:0}.task-right{display:none;height:100%;padding:9px 10px 24px}.task-layout.show-detail .task-left{display:none}.task-layout.show-detail .task-right{display:block}.mobile-back{display:inline-flex;margin-bottom:9px;background:#fff}.task-controls{padding:14px 12px 9px}.list-head{flex-wrap:nowrap;gap:7px}.list-head h1{font-size:20px}.list-head .segmented{margin-left:0}.list-head .segmented button{padding:9px 8px;font-size:10px}.list-head .search{order:unset;flex-basis:auto;min-width:50px}.list-head .search input{font-size:11px;padding-left:26px;height:33px}.search .svg{left:7px;width:14px;top:10px}.list-head .add-square{order:unset;height:33px!important;width:33px!important;min-width:33px!important}.sort-line{margin-top:12px;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.sort-line>span:first-child{font-size:10px}.sort-buttons{gap:3px}.sort-buttons button{font-size:10px;padding:7px 8px}.sort-hint{display:none}.task-list{padding:0 6px 15px 11px}.task-row{padding-left:35px;min-height:85px}.row-top{font-size:12px;padding-right:63px}.row-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.row-title .place{font-size:11px}.row-bottom{font-size:10px;gap:5px}.row-date{font-size:9px}.row-date .caption{display:inline;font-size:9px}.role-avatar .role-label{display:inline;font-size:9px}.role-avatar .name{display:none}.row-number{font-size:10px}.list-footer{padding:8px 12px;font-size:10px}.group-heading{padding:9px 10px}.client-card{padding:10px}.client-summary strong{font-size:15px}.client-summary .place{margin-left:0}.client-notes{height:77px;font-size:12px}.editor{height:350px;min-height:180px;max-height:700px;font-size:14px;padding:12px 9px}.detail-card{padding:0 9px 7px}.detail-title h2{font-size:17px}.toolbar button{padding:6px}.chat-card{padding:12px}.chat-heading .muted{font-size:10px}.chat-heading .chat-avatars{display:none}.message{max-width:97%}.composer textarea{font-size:14px}.page{padding:19px 12px}.page-title{margin-bottom:16px}.page-title h1{font-size:25px}.client-layout{display:flex;flex-direction:column;height:auto;min-height:0}.client-table-card{min-height:270px;max-height:450px;flex-shrink:0}.client-table-controls{padding:10px;flex-wrap:wrap}.client-table-controls .search{min-width:130px}.client-form-card{overflow:visible}.client-form-card textarea{min-height:140px}.data-table th,.data-table td{font-size:11px;padding:10px 7px}.data-table .province-col{display:none}.form-grid{gap:12px}.subtabs{margin-top:13px}.subtabs button{font-size:12px;padding:10px 12px}.config-layout{display:block}.config-side{display:block}.card{padding:13px}.card h2{font-size:19px}.settings-table{font-size:10px;min-width:500px}.settings-table th{font-size:10px}.settings-table input[type=text]{font-size:11px;min-width:95px}.settings-table input[type=color]{width:33px;min-width:33px}.type-select{gap:5px}.type-select label{width:100%}.type-select button{font-size:10px;padding:7px 8px}.card-title{flex-wrap:wrap}.user-first{gap:7px}.user-contact{font-size:12px}.user-row .active-dot{font-size:10px}.modal-body{padding:16px}.modal-head{padding:16px}.modal-head h2{font-size:18px}dialog{width:94vw;max-height:92dvh}.login-card{padding:25px}.client-work-button{font-size:11px}.info{font-size:11px}.row-grip{cursor:default}.mobile-summary{display:flex;gap:7px;margin:0 0 10px;flex-wrap:wrap}.empty-state{padding-top:40px}.detail-title .icon{width:28px;min-width:28px}.settings-save-bar{position:sticky;bottom:-1px;background:#fff;padding:10px 0 0}}
@media(max-width:390px){.brand span{display:none}.list-head h1{font-size:18px}.segmented button{padding:9px 6px!important;font-size:9px!important}.list-head .search input::placeholder{color:transparent}.row-date .caption{display:none}.header-actions{gap:6px}.nav-tabs button{font-size:12px;padding:0 9px}.row-bottom{gap:5px 7px}}
@media(max-width:720px){.topbar{gap:5px}.brand{font-size:14px;gap:5px}.brand img{width:24px;height:24px}.nav-tabs button{font-size:11px;padding:0 6px}.header-actions{gap:3px}.header-actions .avatar.large{width:26px;height:26px}.notice-button.icon{width:26px;min-width:26px}.client-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px}.client-summary .caption{display:none}.client-summary strong{grid-column:1;grid-row:1}.client-summary .place{grid-column:1;grid-row:2;margin:0}.client-summary button{grid-column:2;grid-row:1/3}.brand span{display:inline}}
@media(max-width:350px){.brand span{display:none}}

/* Revisión 0.2: controles directos, lectura del listado y desplazamiento de los paneles. */
.task-layout{min-height:0}
.task-right{height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
.editor,.client-notes,.composer textarea{overscroll-behavior:auto}
.task-row{min-height:0;padding-top:8px;padding-bottom:5px}
.row-top{font-size:14px;margin-bottom:4px;line-height:1.35}
.row-bottom{font-size:11.5px;gap:5px 7px;flex-wrap:wrap;line-height:1.4}
.row-date{font-size:11px;gap:3px}
.row-date .caption{display:inline;font-size:10.5px;color:#627794}
.row-date:before{margin-right:1px}
.role-avatar .role-label{display:inline;font-size:10.5px}
.creator-avatar{cursor:default}
.priority[data-action]{border:0;background:transparent;padding:2px 0;font-size:11px;gap:3px}
.priority[data-action]:hover{background:#edf3fa;border-radius:3px}
.state-pill{font-size:11px;max-width:110px;padding:3px 5px}
.row-bottom .avatar{width:22px;height:22px;font-size:9px}
.row-number{font-size:12px;top:10px}
.task-row.finished{background:#f0f1f3}
.task-row.finished:hover{background:#e9ebef}
.task-row.finished.selected{background:#e5e8ed;box-shadow:inset 3px 0 #0969ef}
.group-heading{background:var(--state-color,#eef3f9);color:var(--state-ink,#142049);font-size:13px}
.group-count{color:inherit;opacity:.8}
.group-dot{display:none}
.client-save-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.client-save-bar .save-indicator{flex-wrap:wrap}
.client-save-bar button{font-size:11px;padding:4px 7px}
.palette-control{position:relative;display:inline-flex}
.toolbar .palette-toggle{min-width:30px;height:28px;font-size:16px}
.color-palette{position:absolute;top:34px;left:-80px;z-index:8;padding:9px;background:#fff;border:1px solid #cbd8ea;border-radius:7px;box-shadow:0 6px 20px #14204926;display:grid;grid-template-columns:repeat(5,29px);gap:6px}
.color-palette[hidden]{display:none}
.toolbar .color-swatch{width:29px;height:29px;padding:0;background:var(--swatch);border:1px solid #a7b7cc;border-radius:3px;min-width:29px}
.toolbar .color-swatch:hover{background:var(--swatch);outline:2px solid #0969ef;outline-offset:1px}
.recipient-line{flex-wrap:wrap;gap:8px}
.recipient-caption{color:#627794;font-size:12px}
.recipient-choices{display:flex;gap:7px;flex-wrap:wrap}
.recipient-choice{display:flex;align-items:center;gap:4px;cursor:pointer;padding:3px 5px;border:1px solid transparent;border-radius:6px;background:#f5f7fb}
.recipient-choice.checked{border-color:#8ab9f8;background:#eaf3ff}
.recipient-choice input{width:15px;height:15px;margin:0}
.recipient-choice .avatar{width:28px;height:28px;font-size:11px}
.message-recipients{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap}
.message .message-foot .avatar{margin:0;width:19px;height:19px;font-size:8px}
.client-table-controls{flex-wrap:wrap}
.client-table-controls .check-line{white-space:nowrap;font-size:11px;gap:5px}
.client-table-controls .check-line input{width:15px;height:15px}
.client-name-field{position:relative}
.client-matches{position:absolute;top:67px;left:0;right:0;max-height:250px;overflow:auto;background:white;border:1px solid #b9cce8;border-radius:6px;z-index:5;box-shadow:0 6px 20px #14204920}
.client-matches[hidden]{display:none}
.client-matches .match-caption{padding:10px;font-size:11px;color:#627794;line-height:1.4;background:#f5f9ff}
.client-match{display:flex;flex-direction:column;align-items:flex-start;white-space:normal;gap:3px;text-align:left;width:100%;border:0;border-top:1px solid #edf1f7;border-radius:0;padding:10px}
.client-match strong{font-size:12px}
.client-match span{font-size:11px;color:#627794}
.client-form-card h2{margin-bottom:18px}
.type-name-action{padding-top:3px}
.type-name-action button{font-size:11px}
.settings-save-bar{position:sticky;bottom:-1px;background:#fff;padding:10px 0 0;z-index:2}
.settings-save-bar .form-actions{margin-top:7px}
@media(max-width:1350px){.row-top{font-size:13.5px}.row-bottom{font-size:11px}.row-date{font-size:10.5px}.row-date .caption,.role-avatar .role-label{font-size:10px}.state-pill{font-size:10.5px}.row-bottom{gap:4px 6px}}
@media(max-width:1050px){.task-row{min-height:0}.row-top{font-size:13px}.row-date{font-size:10.5px}.row-bottom{font-size:11px}.row-top{padding-right:65px}.client-layout{grid-template-columns:1.1fr 1fr}}
@media(max-width:720px){.task-row{min-height:0;padding-bottom:6px}.row-top{font-size:13px}.row-date .caption{display:inline;font-size:9.5px}.row-date{font-size:10px}.role-avatar .role-label{font-size:9.5px}.row-title .place{font-size:12px}.row-bottom{gap:4px 6px}.row-number{font-size:11px}.state-pill{font-size:10px}.row-bottom .priority{font-size:10px}.recipient-choice{padding:3px}.client-table-card{max-height:460px}.client-table-controls .search{flex-basis:100%}}

.priority-preview{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.priority-preview .svg{width:17px;height:17px;fill:currentColor}
.priorities-table input[type=color]{width:48px;height:34px}
.recipient-choice.fixed-recipient{border-color:#9ac1f4;background:#eaf3ff;cursor:default}
.fixed-recipient input:disabled{opacity:1;cursor:default}
/* Revisión 0.4: checklist, lectura y dos paneles de la misma anchura. */
@media(min-width:721px){.task-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.task-row{padding-left:54px;position:relative;border-left:0;box-shadow:inset 4px 0 transparent}
.task-row .row-grip{position:absolute;left:8px;top:9px;width:16px;height:21px;line-height:21px;display:flex;align-items:center;justify-content:center;font-size:20px}
.task-row .complete-button{position:absolute;left:28px;top:10px;width:19px;height:19px;min-width:19px;margin:0}
.row-top{line-height:21px;margin-bottom:3px;padding-right:75px}
.task-row.finished{background:#e0e3e8;box-shadow:inset 4px 0 #626975}
.task-row.finished:hover{background:#d9dde3}
.task-row.unread-task,.task-row.finished.unread-task{background:#fff0f1;box-shadow:inset 4px 0 #8d2844}
.task-row.selected,.task-row.finished.selected,.task-row.unread-task.selected{box-shadow:inset 4px 0 #123e87}
.task-row.selected:not(.finished):not(.unread-task){background:#eaf3ff}
.group-heading{padding:0 10px;min-height:18px;line-height:18px;font-size:13px}
.group-heading .svg{height:15px;width:15px}
.subtask-toggle{border:0;background:transparent;padding:2px 0;font-size:11px;color:#40577c;gap:4px}
.subtask-toggle:hover{background:#e8eef6}
.check-chevron{font-size:17px;line-height:16px;min-width:12px;text-align:center}
.subtask-count{font-size:10.5px;color:#637793}
.company-pill{padding:2px 5px;min-height:22px;border-color:#ccd8e8;background:#f5f8fd;font-size:11px;color:#365078;font-weight:600}
.checklist-panel{margin:5px 0 0;border-top:1px solid #dce4f0;padding:3px 0 1px}
.subtask-row{display:flex;align-items:flex-start;gap:6px;padding:4px 3px 4px 0;border-bottom:1px solid #dce4f0;min-width:0}
.subtask-grip{border:0;background:transparent!important;cursor:grab;padding:2px 0;line-height:21px;font-size:19px;color:#8897ac;width:17px;min-width:17px;touch-action:none}
.subtask-check{width:16px!important;height:16px!important;min-width:16px;margin:5px 0 0}
.subtask-text{flex:1;min-width:0;border:0;background:transparent;outline:none!important;font-size:12.5px;padding:4px 3px;line-height:1.3;min-height:25px;height:25px;resize:none;overflow:hidden;border-radius:3px}
.subtask-text:focus{background:#fff;border:0;box-shadow:inset 0 0 0 1px #a7c7ed}
.subtask-row.checked .subtask-text{text-decoration:line-through;color:#748094}
.subtask-row.check-drop{box-shadow:inset 0 3px #0969ef;background:#e4f0ff}
.subtask-row.check-drop-after{box-shadow:inset 0 -3px #0969ef;background:#e4f0ff}
.checklist-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:4px}
.checklist-footer button{font-size:11px;padding:3px 0}
.check-save{font-size:10px;color:#64816f}
.plain-review{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);padding:10px}
.editor,.rich-preview{line-height:1}
.editor p,.editor div,.rich-preview p,.rich-preview div{margin-top:0;margin-bottom:0;line-height:1}
.editor h1,.editor h2,.editor h3,.editor h4{line-height:1;margin:0 0 5px}
.editor font[size="1"],.rich-preview font[size="1"]{font-size:8pt}
.editor table,.rich-preview table{margin:5px 0;line-height:1}
.chat-toggle{padding:0;border:0;background:transparent!important;font-size:16px;font-weight:650;gap:5px}
.chat-count{font-size:12px;font-weight:400;color:#7384a4}
.chat-card.folded .messages{display:none}
.chat-card.folded .chat-toggle .svg{transform:rotate(-90deg)}
.message.mine{align-self:flex-start;flex-direction:row}
.message.mine .message-head{text-align:left}
.message.mine .message-bubble{background:#eef3f9;border-radius:0 10px 10px 10px}
.message.reply-side{align-self:flex-end;flex-direction:row-reverse}
.message.reply-side .message-head{text-align:right}
.message.reply-side .message-bubble{background:#e0f6ed;border-radius:10px 0 10px 10px}
.state-color-chip{min-width:34px;width:34px;height:27px;border:1px solid #b6c6dc;border-radius:4px;padding:0}
.state-swatches{display:grid;grid-template-columns:repeat(5,42px);gap:12px;justify-content:center;padding:12px}
.state-swatch{width:42px;height:36px;min-width:42px;border:1px solid #b6c6dc;border-radius:4px;padding:0}
.state-swatch:hover,.state-color-chip:hover{outline:2px solid #0969ef;outline-offset:2px}
@media(max-width:1050px) and (min-width:721px){.sort-hint{display:none}}
@media(max-width:720px){.task-row{padding-left:51px}.row-top{line-height:21px;font-size:13px}.group-heading{padding:0 9px}.subtask-text{font-size:13px}.chat-toggle{font-size:15px}}
@media(max-width:720px){.priorities-table{min-width:390px}.priority-preview{font-size:12px}}

/* Cabecera sobre el listado y columnas estables de información por trabajo. */
.topbar{height:auto;min-height:56px;gap:14px;padding:8px 14px;flex-wrap:wrap}
.topbar .nav-tabs{align-self:auto;height:39px;flex-shrink:0}
.type-tools{display:flex;align-items:center;gap:8px;flex:1;min-width:200px;max-width:400px;margin-left:auto}
.type-picker{flex:1;min-width:0}
.type-picker select{height:34px;padding:5px 25px 5px 9px;font-size:12px;background:#f4f8fd;border-color:#d7e2f0;text-overflow:ellipsis}
.type-tools .header-actions{margin:0;flex-shrink:0;gap:6px}
.type-tools .avatar.large{height:31px;width:31px;font-size:12px}
.type-tools .notice-button{height:31px;width:31px;min-width:31px}
@media(min-width:721px){
 .app-shell.task-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .task-screen>.topbar{grid-column:1;grid-row:1;border-right:1px solid var(--line);min-width:0;gap:8px;padding:6px 10px}
 .task-screen>.workspace,.task-screen .task-layout{display:contents}
 .task-screen .task-left{grid-column:1;grid-row:2;min-height:0}
 .task-screen .task-right{grid-column:2;grid-row:1/3;height:auto;min-height:0;padding-top:10px}
 .task-screen .topbar .nav-tabs{height:36px}
 .task-screen .nav-tabs button{font-size:12px;padding:0 7px}
 .task-screen .brand{gap:6px;margin:0;font-size:17px}
 .task-screen .brand img{height:28px;width:28px}
 .task-screen .type-tools{min-width:205px;max-width:none;gap:5px}
 .task-screen .type-tools .header-actions{gap:4px}
}
@media(min-width:721px) and (max-width:1700px){.task-screen .brand span{display:none}}
@media(min-width:721px) and (max-width:1120px){
 .task-screen .type-tools{flex-basis:100%;max-width:none}
 .task-screen .brand span{display:inline}
 .task-screen .nav-tabs{margin-left:auto}
}
.task-list{overflow-x:hidden;container-type:inline-size}
.task-group{min-width:0;max-width:100%;overflow:hidden}
.task-row .row-top{max-width:none;padding-right:75px}
.task-row .row-number{left:auto;right:37px}
.task-row .row-menu{left:auto;right:4px}
.task-row .row-bottom{display:grid;grid-template-columns:96px 34px minmax(55px,.8fr) 22px 87px 88px minmax(140px,1.2fr) 110px minmax(0,.7fr);align-items:center;justify-content:space-between;gap:0 3px;min-width:0;width:calc(100% + 46px);min-height:26px;height:auto;margin-left:-46px;white-space:nowrap;font-size:11px;line-height:1.3}
.row-bottom>*{min-width:0;justify-self:start}
.row-bottom .subtask-toggle{display:grid;grid-template-columns:15px auto minmax(0,1fr);align-items:center;gap:3px;height:24px;width:96px;font-size:11px;padding:0;line-height:1}
.check-chevron{display:flex;align-items:center;justify-content:center;width:15px;height:24px;font-size:inherit;line-height:1}
.check-chevron .svg{width:14px;height:14px;display:block;stroke-width:2}
.subtask-count{font-size:10.5px;line-height:1}
.row-bottom .company-pill{width:34px;padding:2px 3px;font-size:11px}
.row-bottom .priority{width:100%;justify-content:flex-start;overflow:hidden;white-space:nowrap;font-size:11px!important;gap:3px}
.row-bottom .priority span{overflow:hidden;text-overflow:ellipsis}
.row-bottom .priority .svg{height:14px;width:14px}
.row-bottom .creator-avatar{padding:0;width:22px}
.row-bottom .assigned-avatar{width:100%;min-width:0;gap:4px;padding:0;border:0;background:transparent;justify-content:flex-start}
.row-bottom .role-label{display:inline;font-size:10.5px}
.row-bottom .row-date{font-size:11px;gap:3px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.row-bottom .row-date .caption{font-size:10.5px;display:inline}
.row-bottom .row-date:before{display:none}
.row-bottom .row-alert{font-size:10.5px;overflow:hidden;text-overflow:ellipsis;max-width:68px}
.checklist-panel{margin-left:-28px}
.task-list::-webkit-scrollbar{height:9px}
/* Una sola línea: repartir el sobrante entre las columnas, no al final. */
.task-row .row-bottom{column-gap:1px;min-height:24px;height:24px;grid-template-areas:none;--row-fields:88px 30px 60px 18px 80px 86px 135px 108px;--row-alert-width:68px;grid-template-columns:var(--row-fields) var(--row-alert-width)}
.row-bottom .subtask-toggle{grid-template-columns:12px auto minmax(0,1fr);gap:2px;height:22px;width:88px;max-width:100%;padding:0}
.check-chevron{width:12px;height:22px}
.check-chevron .svg{width:12px;height:12px}
.row-bottom .company-pill{width:30px;padding:1px 2px;min-height:20px}
.row-bottom .priority{gap:4px;padding:1px 0}
.row-bottom .priority .svg{width:12px;height:12px}
.row-bottom .avatar{width:18px;height:18px;font-size:8px}
.row-bottom .creator-avatar{width:18px}
.row-bottom .assigned-avatar{gap:3px;flex-wrap:nowrap}
.row-bottom .row-date{flex-direction:row;align-items:center;gap:3px;padding:0;white-space:nowrap}
.row-bottom .date-value{white-space:nowrap;line-height:1}
.row-bottom .row-alert{max-width:100%;white-space:nowrap;font-size:10px}
.row-bottom .row-alert:empty{visibility:hidden}
.row-bottom .row-alert .unread-text{display:inline-flex;align-items:center;gap:1px}
@container (max-width:810px){
 .task-row .row-bottom{--row-fields:82px 26px 55px 18px 76px 79px 127px 101px;--row-alert-width:16px;grid-template-columns:var(--row-fields) var(--row-alert-width);font-size:10.5px}
 .row-bottom .subtask-toggle{width:82px;font-size:10.5px}
 .row-bottom .subtask-count{font-size:10px}
 .row-bottom .company-pill{width:26px;font-size:10px}
 .row-bottom .priority{font-size:10.5px!important}
 .row-bottom .role-label,.row-bottom .row-date .caption{font-size:10px}
 .row-bottom .row-date{font-size:10.5px}
 .row-bottom .row-alert>.unread-text{display:none}
 .row-bottom .row-alert::after{content:attr(data-compact);font-size:9px;color:#1463c4;font-weight:600}
}
@container (max-width:650px){
 .task-row .row-bottom{--row-fields:82px 26px 54px 18px 32px 58px 95px 72px;--row-alert-width:16px;grid-template-columns:var(--row-fields) var(--row-alert-width)}
 .row-bottom .role-label,.row-bottom .row-date .caption{font-size:0}
 .row-bottom .role-label::after,.row-bottom .row-date .caption::after{content:attr(data-short);font-size:10px}
}
@container (max-width:500px){
 .task-row .row-bottom{--row-fields:76px 24px 14px 18px 18px 56px 92px 66px;--row-alert-width:14px;grid-template-columns:var(--row-fields) var(--row-alert-width);font-size:10px}
 .row-bottom .subtask-toggle{width:76px;font-size:10px}
 .row-bottom .subtask-count{font-size:9px}
 .row-bottom .company-pill{width:24px;font-size:9.5px;padding:1px}
 .row-bottom .priority>span,.row-bottom .assigned-avatar>.role-label{display:none}
 .row-bottom .row-date{font-size:10px}
 .row-bottom .row-date .caption::after{font-size:9px}
}
@container (max-width:410px){
 .task-row .row-bottom{--row-fields:32px 24px 14px 16px 16px 56px 96px 66px;--row-alert-width:14px;grid-template-columns:var(--row-fields) var(--row-alert-width)}
 .row-bottom .avatar,.row-bottom .creator-avatar{width:16px;height:16px}
 .row-bottom .subtask-label{display:none}
 .row-bottom .subtask-toggle{width:32px;grid-template-columns:12px minmax(0,1fr);gap:1px}
}
@container (max-width:360px){
 .task-row .row-bottom{--row-fields:32px 22px 12px 16px 16px 40px 68px 40px;--row-alert-width:14px;grid-template-columns:var(--row-fields) var(--row-alert-width)}
 .row-bottom .avatar,.row-bottom .creator-avatar{width:16px;height:16px}
 .row-bottom .row-date .caption{display:none}
 .row-bottom .row-date{font-size:9.5px}
 .row-bottom .company-pill{width:22px}
}
@media(max-width:720px){
 .topbar{gap:5px 7px;padding:6px 9px}
 .topbar .nav-tabs{height:32px}
 .topbar .type-tools{flex-basis:100%;max-width:none;min-width:0;margin:0}
 .type-picker select{height:31px;font-size:12px}
 .task-row .row-bottom{margin-left:-43px;width:calc(100% + 43px)}
}

/* Interlineado del 140 % solicitado para la zona tipo Note. */
.editor,.editor *,.editor[data-note-font],.editor [data-note-font]{line-height:1.4}
/* Los valores del selector representan puntos tipográficos, también el tamaño 8. */
.editor font[size="1"]{font-size:8pt}
.editor font[size="2"]{font-size:10pt}
.editor font[size="3"]{font-size:12pt}
.editor font[size="4"]{font-size:14pt}
.editor font[size="5"]{font-size:18pt}
.editor font[size="6"]{font-size:24pt}

/* Mensajes compactos: autor y fecha al lado, destinatarios dentro de la burbuja. */
.messages{gap:8px;min-height:0;padding-bottom:10px}
.message,.message.mine{max-width:100%;display:flex;align-items:flex-start;gap:6px;align-self:flex-start;flex-direction:row}
.message.reply-side{align-self:flex-end;flex-direction:row-reverse}
.message-sender{flex-shrink:0;display:inline-flex;margin-top:4px}
.message .message-sender>.avatar{width:22px;height:22px;font-size:9px;margin:0}
.message-stamp{flex-shrink:0;margin-top:6px;font-size:10px;line-height:18px;white-space:nowrap;color:#7b8ea9;font-variant-numeric:tabular-nums}
.message .message-bubble{min-width:0;flex:0 1 auto;padding:6px 8px;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.message .message-text{white-space:pre-wrap}
.message .message-recipients{display:inline-flex;vertical-align:middle;gap:2px;margin-right:3px}
.message .message-recipients>.avatar{width:18px;height:18px;font-size:8px;margin:0}
.message-reply{display:inline-flex;vertical-align:middle;margin-left:5px;padding:0;border:0;width:17px;height:18px;font-size:14px;line-height:1;color:#6885ac;background:transparent}
.message-read{display:inline-block;margin-left:5px;font-size:10px;color:#6885ac;white-space:nowrap}
@media(max-width:720px){.message,.message.mine{gap:5px}.message-stamp{font-size:9px}.message .message-bubble{padding:5px 7px}}

/* Papelera accesible también con teclado y pantallas táctiles. */
.subtask-delete{flex-shrink:0;width:25px;min-width:25px;height:25px;padding:4px;border:0;background:transparent;color:#8190a6}
.subtask-delete .svg{width:15px;height:15px}
.subtask-delete:hover,.subtask-delete:focus-visible{color:#be123c;background:#fff0f2}
.checklist-undo{margin-left:auto}

/* Si ninguna fila muestra avisos, las fechas aprovechan también su columna. */
.task-list:not(:has(.row-alert:not(:empty))) .row-bottom{grid-template-columns:var(--row-fields)}
.task-list:not(:has(.row-alert:not(:empty))) .row-alert{display:none}
