:root{--blue:#086ba6;--ink:#18334c;--muted:#687b8e;--line:#dce3e9;--surface:#f1f3f6;--accent:#087bbd;--shadow:0 2px 3px #12324b16;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:linear-gradient(120deg,#0676b1,#086498);height:100dvh;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,input,textarea,select{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #56adf5;outline-offset:2px}input,textarea,select{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 12px;max-width:100%}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#8794a3}button{border:0;background:transparent}h1,h2,h3,p{margin-top:0}h1{font-size:24px;margin-bottom:0;letter-spacing:-.6px}h2{font-size:20px;margin:0}h3{font-size:14px;margin:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:60px;padding:0 28px;display:flex;align-items:center;gap:22px;color:white;background:#064e7a70;border-bottom:1px solid #ffffff17}.brand{font-size:19px;font-weight:750;display:flex;align-items:center;gap:9px}.brand-icon{font-size:24px;color:#fff}.workspace-name{font-size:13px;color:#d6e9f5;border-left:1px solid #ffffff35;padding-left:22px}.top-spacer,.footer-spacer{flex:1}.team{display:flex;gap:4px}.avatar{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-weight:750;border:2px solid white;color:#fff;background:#3981c7;flex-shrink:0}.team .avatar{width:34px;height:34px;border-color:#e3f1fa}.team button.selected{outline:2px solid white;outline-offset:2px}.team button:hover{transform:translateY(-1px)}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;flex-shrink:0;border-radius:8px}.icon-button:hover{background:#0d355010}.topbar .icon-button:hover{background:#ffffff20}main{height:calc(100dvh - 60px);display:flex;flex-direction:column}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px 18px;color:white;flex-wrap:wrap}.board-title{display:flex;align-items:center;gap:12px}.total{font-size:12px;padding:4px 8px;border-radius:6px;background:#ffffff1a;white-space:nowrap}.sync{font-size:11px;color:#d7e9f3}.tools{display:flex;align-items:center;gap:8px}.search{display:flex;align-items:center;background:#ffffff15;border:1px solid #ffffff40;border-radius:8px;padding:0 10px;gap:6px;height:38px}.search>span{font-size:25px}.search input{background:transparent;border:0;padding:8px 0;width:160px;color:white}.search input::placeholder{color:#e3eff7}kbd{font:11px inherit;border:1px solid #ffffff50;border-radius:4px;padding:1px 5px;opacity:.7}.button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:8px;min-height:38px;padding:9px 14px;font-weight:600;font-size:13px;white-space:nowrap}.button.primary{background:var(--accent);color:white}.button.primary:hover{background:#006ba5}.toolbar .primary{background:#fff;color:#076298;box-shadow:var(--shadow)}.toolbar .subtle{background:#ffffff16;color:white}.toolbar .subtle[aria-pressed=true],.toolbar .subtle[aria-expanded=true]{background:#ffffff35}.button.subtle{background:#e8edf2;color:var(--ink)}.button.subtle:hover{background:#dce5ec}.button.small{min-height:30px;padding:6px 10px;font-size:12px}.button.danger{color:#b3433e;background:transparent}.filters{margin:0 28px 16px;padding:12px 16px;border-radius:10px;background:#fff;display:flex;gap:16px;align-items:flex-end;box-shadow:var(--shadow)}.filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.filters select{font-size:13px;min-width:150px;padding:8px}.board{display:flex;align-items:flex-start;gap:14px;padding:0 28px 20px;flex:1;min-height:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-color:#ffffff55 transparent;scrollbar-width:thin}.column{background:#eef1f5;border-radius:12px;width:292px;flex:0 0 292px;max-height:100%;display:flex;flex-direction:column;box-shadow:0 1px 2px #062a3e25}.column-head{display:flex;align-items:center;gap:8px;padding:12px 12px 8px;min-height:50px;cursor:grab}.column-head h2{font-size:14px;font-weight:700;flex:1}.column-dot{width:8px;height:8px;background:#8294a8;border-radius:3px}.column[data-key=doing] .column-dot{background:#2099de}.column[data-key=problem] .column-dot{background:#e97062}.column[data-key=done] .column-dot{background:#3db595}.column-count{font-size:12px;color:#7a8796}.column-head .icon-button{font-size:21px;width:27px;height:27px;color:#6b7d8c}.task-list{min-height:16px;padding:2px 9px;overflow-y:auto;scrollbar-width:thin}.task-list:empty::before{content:'Пока нет задач';display:block;color:#95a1af;font-size:12px;padding:14px 6px 20px}.task-card{position:relative;background:white;border:1px solid #dfe5eb;border-radius:9px;padding:12px;margin:0 0 8px;box-shadow:0 1px 1px #17354c12;cursor:pointer;transition:box-shadow .15s,border-color .15s;overflow-wrap:anywhere}.task-card:hover{border-color:#82b9d8;box-shadow:0 3px 8px #17354c18}.task-card:focus-visible{outline:2px solid #309bdb}.task-card.urgent{border-left:3px solid #e66d63}.card-labels{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.tag{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;background:#e8e2f7;color:#675392;font-size:11px;font-weight:600;border-radius:4px;max-width:100%;overflow-wrap:anywhere}.priority-badge{background:#fff1de;color:#ab6d16}.pin-badge{background:#e9eff7;color:#5c7492}.card-name{font-size:14px;line-height:1.5;font-weight:500;white-space:pre-line;padding-right:14px}.card-edit{position:absolute;right:5px;top:6px;color:#7f909d;opacity:0;width:26px;height:26px;font-size:17px}.task-card:hover .card-edit{opacity:1}.card-meta{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:11px;color:var(--muted);flex-wrap:wrap}.card-members{margin-left:auto;display:flex}.card-members .avatar{width:25px;height:25px;font-size:9px;margin-left:-5px}.due-badge{padding:3px 5px;border-radius:4px;background:#edf2f6}.due-badge.overdue{background:#ffebe8;color:#b34e42}.due-badge.soon{background:#fff3d4;color:#946820}.due-badge.complete{background:#e0f2e9;color:#277c57}.quick-add{padding:3px 9px 10px}.quick-open{width:100%;text-align:left;color:#667b8d;padding:10px 7px;border-radius:7px;font-size:13px;min-height:38px}.quick-open:hover{background:#dfe6ee}.quick-form textarea{width:100%;resize:none;min-height:73px;box-shadow:var(--shadow);font-size:14px}.quick-actions{display:flex;align-items:center;gap:5px;margin-top:6px}.quick-detail{margin-left:auto;color:#657b90;font-size:12px;text-decoration:underline}.add-column{color:#eff8ff;background:#ffffff20;border:1px dashed #ffffff50;border-radius:10px;min-height:48px;min-width:210px;padding:12px 20px;text-align:left}.add-column:hover{background:#ffffff30}.board-footer{display:flex;justify-content:space-between;color:#b9dcec;font-size:11px;padding:4px 28px 14px}.dot{margin:0 8px}.column-nav{display:none}.drag-ghost{opacity:.3;background:#c4e1f2}.drag-chosen{box-shadow:0 8px 20px #102e4240}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);background:#17374f;color:white;box-shadow:0 5px 25px #001b3c35;border-radius:10px;padding:13px 18px;z-index:50;font-size:13px}.toast button{color:#a8deff;margin-left:15px;font-weight:700}dialog{border:0;color:var(--ink);padding:0;box-shadow:0 30px 100px #00294255}dialog::backdrop{background:#092c4777;backdrop-filter:blur(3px)}.card-dialog{border-radius:16px;width:880px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 60px)}.card-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 60px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:14px 22px 4px;flex-shrink:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;color:#8192a1}.card-content{display:grid;grid-template-columns:minmax(0,1fr) 265px;overflow-y:auto;min-height:0}.card-main{padding:12px 28px 24px}.task-title{font-size:23px;font-weight:700;line-height:1.35;border:1px solid transparent;background:transparent;width:100%;padding:0 0 10px;resize:none;min-height:78px}.task-title:focus{border-bottom-color:#c5d8e5;outline:none}.field-label{display:block;font-size:12px;font-weight:650;margin:0 0 9px;color:#536a7e}.description{width:100%;line-height:1.55;font-size:14px;background:#f7f9fb;min-height:96px}.card-aside{background:#f8fafc;padding:17px 20px 24px;border-left:1px solid #edf0f4}.card-aside select{width:100%;margin-bottom:24px}.assignees{display:flex;flex-direction:column;gap:6px;margin-bottom:23px}.person-toggle{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid #e0e6ed;background:white;border-radius:8px;font-size:13px;text-align:left;min-height:42px}.person-toggle.selected{border-color:#65abd4;background:#edf7fd}.person-toggle .avatar{width:25px;height:25px;font-size:10px}.person-toggle .tick{margin-left:auto;color:#1285c4}.tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}.tags button{font-size:12px;padding:5px 8px}.tags:empty:before{content:'Тегов пока нет';font-size:12px;color:#8b99a6}.tag-entry{display:flex;margin-bottom:23px;gap:4px}.tag-entry input{width:100%;min-width:0;font-size:12px;padding:7px 8px}.tag-entry button{height:34px;width:30px}.deadline-inputs{display:flex;gap:5px}.deadline-inputs input{padding:9px 5px;font-size:12px;min-width:0}.deadline-inputs input[type=date]{flex:1;width:140px}.deadline-inputs input[type=time]{width:78px}.date-shortcuts{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 20px}.date-shortcuts button{font-size:10px;padding:6px;background:#e9eef4;border-radius:5px;min-height:27px}.date-shortcuts button:hover{background:#d5e7f3}.options{border-top:1px solid #e2e8ef;padding-top:5px}.option{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 0;border-bottom:1px solid #e9edf2;cursor:pointer}.option strong{font-size:12px;display:block;font-weight:600}.option small{font-size:10px;color:#7e8d9a;display:block;margin-top:4px}.option input{appearance:none;padding:0;width:31px;height:19px;flex-shrink:0;border:0;background:#c6d0da;border-radius:20px;cursor:pointer;position:relative}.option input:before{content:'';position:absolute;background:white;width:15px;height:15px;top:2px;left:2px;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}.option input:checked{background:#0e8bc7}.option input:checked:before{transform:translateX(12px)}.detail-section{margin-top:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.muted{color:var(--muted);font-weight:400}.small-text{font-size:11px;line-height:1.6}.progress{height:4px;background:#e6edf3;border-radius:5px;margin-bottom:10px;overflow:hidden}.progress i{display:block;height:100%;background:#26a988;transition:width .2s}.check-row{display:flex;align-items:center;gap:8px;padding:6px 0;min-height:34px}.check-row input{width:17px;height:17px;accent-color:#1289bd;cursor:pointer}.check-row span{flex:1;font-size:13px;overflow-wrap:anywhere}.check-row.done span{text-decoration:line-through;color:#91a0ab}.check-row button{font-size:17px;color:#9aa6ae}.check-add{display:flex;gap:4px}.check-add input{width:100%;min-width:0;font-size:12px;background:#f7f9fb;padding:9px}.check-add .icon-button{width:32px}.images{display:flex;gap:8px;flex-wrap:wrap}.image-wrap{position:relative}.images img{width:102px;height:70px;object-fit:cover;border-radius:7px;border:1px solid var(--line)}.image-wrap button{position:absolute;right:3px;top:3px;background:#fff;border-radius:50%;font-size:15px}.upload{cursor:pointer}.detail-section summary{font-weight:600;font-size:13px;cursor:pointer;margin-bottom:10px}.dialog-footer{display:flex;align-items:center;gap:8px;padding:15px 22px;border-top:1px solid var(--line);background:white;flex-shrink:0}.form-error{color:#b84237;background:#fff0ed;font-size:13px;padding:10px 22px}.small-dialog{border-radius:12px;padding:12px;width:430px;max-width:calc(100vw - 24px)}.small-dialog .field-label{margin:16px 12px 8px}.small-dialog>form>input{margin:0 12px;width:calc(100% - 24px)}.small-dialog .dialog-footer{margin-top:18px;justify-content:space-between;padding:12px}.auth-dialog{border-radius:18px;padding:38px;width:410px;text-align:center;max-width:calc(100vw - 30px)}.auth-dialog .brand-icon{color:#0d80b5;font-size:44px;margin-bottom:12px}.auth-dialog h1{font-size:24px;margin-bottom:14px}.auth-dialog p{line-height:1.65;color:#6e8293;margin-bottom:22px}.auth-dialog .button{width:100%}.auth-dialog .small-text{margin:18px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1050px){.toolbar{align-items:flex-start}.tools{flex-wrap:wrap}.sync{display:none}.column{width:275px;flex-basis:275px}}@media(max-width:650px){body{background:#0875ad}.topbar{height:54px;padding:0 16px;gap:12px}.brand{font-size:17px}.workspace-name{display:none}.team .avatar{width:29px;height:29px;font-size:10px}.topbar>.icon-button{width:28px}.team{gap:2px}main{height:calc(100dvh - 54px)}.toolbar{padding:16px 16px 10px;gap:13px}.board-title{width:100%}h1{font-size:23px}.tools{width:100%;gap:7px;flex-wrap:nowrap}.search{flex:1;min-width:0;height:39px}.search input{width:100%;min-width:0;font-size:14px}.search kbd{display:none}.tools .button{min-height:40px;padding:8px 10px;font-size:12px}.tools #mine{display:none}.tools #add-task{font-size:0;width:40px;min-width:40px;padding:0}.tools #add-task span{font-size:25px}.filters{margin:0 16px 8px;gap:9px;flex-wrap:wrap;padding:10px}.filters label{flex:1;min-width:120px}.filters select{width:100%;min-width:0;font-size:14px}.column-nav{display:flex;gap:6px;overflow:auto;padding:4px 16px 12px;scrollbar-width:none;flex-shrink:0}.column-nav button{color:#d9edfa;border:1px solid #ffffff30;border-radius:18px;padding:7px 12px;font-size:12px;white-space:nowrap;min-height:34px}.column-nav button.active{background:white;color:#126995;border-color:white}.board{gap:12px;padding:0 16px 12px;scroll-snap-type:x mandatory}.column{width:calc(100vw - 52px);flex-basis:calc(100vw - 52px);scroll-snap-align:start;scroll-margin-left:16px;border-radius:12px}.column-head{padding:13px 13px 9px}.column-head h2{font-size:15px}.task-card{padding:14px}.card-name{font-size:15px}.task-list{padding:2px 10px}.card-meta{font-size:12px}.card-edit{opacity:1}.quick-open{min-height:45px}.quick-form textarea{font-size:16px}.quick-actions .button{min-height:42px}.board-footer{font-size:10px;padding:0 16px max(8px,env(safe-area-inset-bottom))}.board-footer>span:last-child{display:none}.card-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.card-dialog form{height:100dvh;max-height:100dvh}.dialog-head{padding:10px 16px 0}.card-content{display:flex;flex-direction:column}.card-main{padding:12px 20px 8px}.task-title{font-size:22px;min-height:66px}.description{font-size:16px}.card-aside{padding:20px;border-left:0;border-top:1px solid #e7edf2}.assignees{flex-direction:row;flex-wrap:wrap}.person-toggle{flex:1;min-width:90px;padding:7px;min-height:44px;font-size:12px;gap:4px}.person-toggle .avatar{width:22px;height:22px}.card-aside select,.deadline-inputs input,.tag-entry input,.check-add input{font-size:16px;min-height:43px}.deadline-inputs input[type=date]{width:auto}.deadline-inputs input[type=time]{width:105px}.date-shortcuts button{font-size:12px;min-height:36px}.option{padding:15px 0}.option strong{font-size:14px}.option small{font-size:12px}.option input{width:36px;height:22px}.option input:before{width:18px;height:18px}.option input:checked:before{transform:translateX(14px)}.dialog-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:6px}.dialog-footer .button{min-height:43px}.dialog-footer #cancel-card{display:none}.dialog-footer #save-card{min-width:155px}.small-dialog input{font-size:16px}.toast{bottom:max(20px,env(safe-area-inset-bottom));font-size:12px;width:max-content}.check-row{min-height:42px}.check-row span{font-size:14px}.check-row input{width:20px;height:20px}.check-row button{min-width:30px;min-height:30px}.tag-entry{margin-bottom:20px}.tag-entry button{height:43px;width:40px}.form-error{padding:10px 16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Touch layouts also cover an unfolded phone and landscape use. */
@media(pointer:coarse){input,textarea,select{font-size:16px}.icon-button{min-width:44px;min-height:44px}.column-head .icon-button{min-width:36px;min-height:36px}.button{min-height:44px}.card-edit{opacity:1;min-width:30px;min-height:30px}.date-shortcuts button{min-height:36px;font-size:12px}.option input{width:36px;height:22px}.option input:before{width:18px;height:18px}.option input:checked:before{transform:translateX(14px)}}
@media(min-width:651px) and (max-width:1000px){.card-dialog{width:calc(100vw - 28px);max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px)}.card-dialog form{max-height:calc(100dvh - 28px)}.card-content{grid-template-columns:minmax(0,1fr) 255px}.card-main{padding:12px 20px 20px}.toolbar{padding:16px 20px}.board{padding-left:20px;padding-right:20px}.tools .search{flex:1}.tools{width:100%}.column{width:280px;flex-basis:280px}.board-footer{padding-left:20px;padding-right:20px}}
.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
@media(max-height:500px) and (pointer:coarse){.topbar{height:44px}main{height:calc(100dvh - 44px)}.toolbar{padding-top:8px;padding-bottom:8px}.board-footer{display:none}.card-dialog,.card-dialog form{max-height:100dvh}.card-dialog{margin:0 auto;border-radius:0}.card-content{min-height:0}}
body{height:var(--app-height,100dvh)}main{height:calc(var(--app-height,100dvh) - 60px)}
@media(max-width:650px){main{height:calc(var(--app-height,100dvh) - 54px)}.card-dialog,.card-dialog form{height:var(--app-height,100dvh);max-height:var(--app-height,100dvh)}.card-content{flex:1}.card-main,.card-aside{flex-shrink:0}}
@media(max-height:500px) and (pointer:coarse){main{height:calc(var(--app-height,100dvh) - 44px)}}
