*{box-sizing:border-box}body{margin:0;font:15px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#24334a;background:#edf3fc}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #75baff;outline-offset:2px}input,textarea,select{border:1px solid #dde5ef;border-radius:12px;padding:12px;background:white;color:#24334a}input:focus,textarea:focus{outline:2px solid #89baff}h1,h2,h3,p{margin:0}small,.muted{color:#8a96a9}.shell{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.rail{background:#153276;color:#c8d7f8;padding:30px 18px;display:flex;flex-direction:column;gap:9px}.brand{font-size:27px;font-weight:750;color:white;margin:0 12px 37px;letter-spacing:-1px}.brand b{color:#78d4ff}.rail button{text-align:left;padding:14px;border-radius:12px}.rail button.active{background:#31559b;color:white}.rail .bottom{margin-top:auto;font-size:12px;line-height:1.7;padding:20px 12px;color:#a7bee8}.main{min-width:0;padding:28px 34px;background:radial-gradient(ellipse at 80% 0,#d9d9fb 0,transparent 35%),linear-gradient(#edf8ff, #f5f7fb 300px)}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:14px}.top h1{font-size:27px;letter-spacing:-.6px}.account{display:flex;align-items:center;gap:12px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:45px;height:45px;flex-shrink:0;border-radius:50%;background:linear-gradient(140deg,#65c2ef,#6483db);color:white;font-weight:600}.avatar.purple{background:linear-gradient(140deg,#b6a1ea,#8772c5)}.badge{background:#ff6877;color:white;border-radius:12px;padding:2px 7px;font-size:11px}.demo{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 17px;background:#e9f1ff;border:1px solid #d7e5fb;border-radius:12px;color:#537499;font-size:12px;margin-bottom:20px}.demo button{text-decoration:underline;white-space:nowrap}.tabs{display:flex;gap:10px;margin-bottom:20px;overflow:auto}.tabs button{padding:10px 19px;background:#ffffff99;border:1px solid #dfe6ee;border-radius:10px;white-space:nowrap}.tabs button.active{color:#1979dc;border-color:#69b7ff;background:white}.panel{background:white;border:1px solid #e7edf4;border-radius:20px;box-shadow:0 6px 24px #26457006;overflow:hidden}.messenger{display:grid;grid-template-columns:330px 1fr;height:calc(100vh - 205px);min-height:510px}.chatlist{border-right:1px solid #e7edf4;overflow:auto}.search{padding:18px;border-bottom:1px solid #eef1f6}.search input{width:100%;background:#f6f8fc;border:0}.chatrow{display:flex;width:100%;padding:20px 16px;gap:12px;text-align:left;border-bottom:1px solid #f1f3f7}.chatrow.selected{background:#eef6ff;border-left:3px solid #379cf4;padding-left:13px}.chatrow .copy{min-width:0;flex:1}.chatrow strong,.chatrow p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatrow p{color:#94a0af;font-size:13px;margin-top:7px}.chatrow time{font-size:11px;color:#99a4b5}.chatroom{display:flex;flex-direction:column;min-width:0;min-height:0}.chathead{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #edf1f5}.chathead small{display:block;margin-top:4px}.chathead .status{margin-left:auto;font-size:12px;color:#8190a5}.messages{flex:1;overflow:auto;padding:24px 30px;display:flex;flex-direction:column;gap:13px;background-color:#dcebff;background-image:radial-gradient(circle at 10px 10px,#ffffff50 1.5px,transparent 2px);background-size:26px 26px}.day{align-self:center;font-size:11px;color:#6d87aa;background:#ffffff90;border-radius:20px;padding:6px 14px;margin-bottom:9px}.bubble{max-width:78%;padding:13px 17px;background:white;border-radius:15px 15px 15px 4px;box-shadow:0 2px 3px #5c80a509;line-height:1.5;align-self:flex-start}.bubble.me{align-self:flex-end;background:#edf9e8;border-radius:15px 15px 4px 15px}.bubble strong{display:block;color:#278aca;font-size:12px;margin-bottom:4px}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere}.bubble time{display:block;text-align:right;color:#9ca8b6;font-size:10px;margin-top:6px}.composer{padding:16px;display:flex;gap:10px;align-items:center}.composer input{flex:1;min-width:0;border:0;background:#f6f8fc}.primary{background:#238feb;color:white;border-radius:11px;padding:12px 18px}.secondary{background:#edf5ff;color:#2580ce;border-radius:11px;padding:11px 15px}.voice{background:#edf5ff;color:#2580ce;border-radius:12px;padding:12px}.recordbar{display:flex;align-items:center;gap:10px;padding:12px 20px;background:#fff3f3;font-size:13px;flex-wrap:wrap}.recordbar audio{max-width:250px;height:32px}.toolbar{display:flex;gap:12px;align-items:center;margin:0 0 20px}.toolbar input{flex:1}.toolbar h2{flex:1}.task{display:grid;grid-template-columns:1fr 150px 160px 100px;gap:15px;align-items:center;padding:22px;border-bottom:1px solid #eef2f6}.task:last-child{border:0}.task strong{display:block;margin-bottom:7px}.pill{display:inline-block;font-size:12px;padding:6px 10px;border-radius:8px;background:#edf5ff;color:#4e8fc9}.pill.late{background:#fff0f0;color:#e77982}.pill.done{background:#eaf8ee;color:#59a577}.task .actions{display:flex;gap:8px}.danger{color:#db6574}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project{padding:24px;text-align:left}.project h3{margin-top:21px;font-size:18px}.project p{margin-top:9px;color:#8b98ab;font-size:13px}.progress{height:5px;background:#eef3fa;border-radius:5px;margin:22px 0 12px}.progress div{height:100%;background:#68b7ee;border-radius:5px}.project footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#94a1b3}.emptystate{padding:50px;text-align:center;color:#8a96a9}.profile{max-width:650px;padding:28px}.profile h2{margin:16px 0}.setting{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid #eef2f6;gap:15px}.setting select{max-width:200px}dialog{border:0;border-radius:22px;padding:30px;width:min(480px,92vw);box-shadow:0 20px 80px #16345e33}dialog::backdrop{background:#172e5260;backdrop-filter:blur(4px)}dialog h2{margin-bottom:8px}dialog p{color:#8994a5;font-size:13px;line-height:1.6;margin-bottom:18px}dialog form{display:grid;gap:15px}dialog label{display:grid;gap:7px;font-size:13px}dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#243b60;color:white;border-radius:12px;display:none;z-index:5;font-size:13px}.mobileback{display:none}audio{max-width:100%}.hint{font-size:12px;color:#8e9bb0;margin-top:17px}.auth{max-width:430px;margin:8vh auto}.auth .panel{padding:35px}.auth h1{margin:22px 0 10px}.auth form{display:grid;gap:14px;margin-top:25px}.auth p{font-size:14px;color:#8994a5;line-height:1.7}.auth .brand{color:#285b9c;margin:0}.auth .note{font-size:12px;margin-top:20px}.task:hover{background:#fbfdff}.iconlabel{font-size:18px;margin-right:10px}.project-filter{color:#278aca;font-size:13px}.chatrow:hover{background:#f5f9ff}@media(min-width:1500px){.main{padding:35px 50px}.messenger{grid-template-columns:370px 1fr}.bubble{max-width:60%}}@media(max-width:1000px){.shell{grid-template-columns:165px 1fr}.main{padding:22px}.messenger{grid-template-columns:270px 1fr}.projects{grid-template-columns:repeat(2,1fr)}.task{grid-template-columns:1fr 100px}.task .owner{display:none}.task .actions{grid-column:2}.chathead .status{display:none}}@media(max-width:900px){.shell{display:block}.rail{position:fixed;bottom:0;left:0;right:0;z-index:3;flex-direction:row;justify-content:space-around;padding:7px;background:#fffffff5;border-top:1px solid #e9eef4;color:#96a1b0;backdrop-filter:blur(14px)}.rail .brand,.rail .bottom{display:none}.rail button{font-size:10px;text-align:center;padding:7px 10px}.rail button.active{background:none;color:#258ff0}.iconlabel{display:block;margin:0 0 4px;font-size:22px}.main{padding:20px 16px 90px}.top{margin-bottom:17px}.top h1{font-size:25px}.account .name{display:none}.account .avatar{width:34px;height:34px}.account select{padding:6px;max-width:130px;font-size:11px}.demo{font-size:10px;padding:8px 10px}.messenger{display:block;height:calc(100dvh - 280px);min-height:220px;border-radius:15px}.chatlist{height:100%;border:0}.chatroom{display:none;height:100%}.messenger.open .chatlist{display:none}.messenger.open .chatroom{display:flex}.mobileback{display:block;padding:7px;font-size:22px}.chathead{padding:13px 10px;gap:8px}.chathead strong{font-size:14px}.chathead .avatar{width:35px;height:35px}.messages{padding:20px 14px}.bubble{max-width:90%}.composer{padding:10px;gap:5px}.composer .primary{padding:12px}.projects{grid-template-columns:1fr}.task{padding:17px;gap:8px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:140px}.top .account{gap:5px}.project{padding:22px}.tabs{gap:7px}.tabs button{padding:8px 13px}.auth{margin:3vh auto}.profile{padding:20px}#toast{bottom:90px;width:85%;text-align:center}.task strong{font-size:14px}}

/* Account registration and password login */
.auth #authform label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:14px}
.auth #authform input{display:block;width:100%;box-sizing:border-box;min-height:44px}
.auth #authform .hint{margin:6px 0;font-size:13px}
.auth #authform .primary{width:100%}
.auth #authform [role=alert]:empty{display:none}

.employee-search{display:grid;gap:8px;font-size:13px;margin-bottom:20px;max-width:480px}.employee-search input{width:100%;box-sizing:border-box}.employee-row{display:flex;align-items:center;gap:16px;padding:20px;border-bottom:1px solid #eef2f6}.employee-row:last-child{border-bottom:0}.employee-avatar{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:#e4f2ff;color:#278aca;font-weight:600}.employee-details{display:grid;gap:6px;flex:1;min-width:0;overflow-wrap:anywhere}.employee-details small{color:#8994a5;font-size:13px}.employee-row>.pill{flex-shrink:0}@media(max-width:600px){.employee-row{gap:10px;padding:14px}.employee-row>.pill{font-size:10px;padding:5px}.rail button{padding:7px 5px;font-size:10px}}

.admin-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;margin-bottom:18px;border-radius:14px;background:#edf3fa;font-size:13px}.admin-toolbar.enabled{background:#fff2d8;color:#795618}.admin-toolbar>span{flex:1}.employee-row{flex-wrap:wrap}

/* Project membership, avatars and subscriptions */
.project-open{display:flex;align-items:center;gap:14px;padding:0;text-align:left;width:100%}.project-open h3{margin:0;overflow-wrap:anywhere}.project-avatar{display:inline-flex;width:52px;height:52px;flex:0 0 auto;border-radius:16px;object-fit:cover;align-items:center;justify-content:center;background:linear-gradient(135deg,#48b9e9,#6c8dda);color:white;font-weight:650}.project-avatar.large{width:76px;height:76px;border-radius:23px;font-size:24px}.project-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.project-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.project-summary{padding:26px;margin-bottom:20px}.project-heading{display:flex;align-items:center;gap:20px}.project-heading p{margin-top:9px;color:#8795a8}.project-follow{display:flex;align-items:center;gap:12px;margin-top:24px;cursor:pointer}.project-follow input{width:20px;height:20px;accent-color:#238feb;flex-shrink:0}.project-follow small{display:block;margin-top:5px}.project-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.project-section{padding:22px;margin-bottom:20px;min-width:0}.project-section>.employee-row{padding:18px 0}.project-section h2{font-size:19px}.project-task{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 0;border-top:1px solid #eef2f6}.project-task strong{flex:1;overflow-wrap:anywhere;min-width:100px}.project-task small{width:100%}.project-member-fields{border:1px solid #dde5ef;border-radius:12px;margin:0;padding:14px;min-width:0}.project-member-fields legend{font-weight:600;padding:0 5px}.project-member-fields .hint{margin-top:0}.project-member-select{display:grid;grid-template-columns:minmax(0,1fr) 155px!important;align-items:center;gap:8px!important;margin-top:12px}.project-member-select span{overflow-wrap:anywhere}.project-member-select select{width:100%;padding:9px;font-size:12px}.project-avatar-preview{display:flex}dialog input:not([type=checkbox]),dialog textarea,dialog select{width:100%;min-width:0}dialog form>label{min-width:0}@media(max-width:1000px){.project-columns{grid-template-columns:1fr}}@media(max-width:600px){.project-summary,.project-section{padding:18px}.project-heading{align-items:flex-start;gap:12px}.project-heading h2{font-size:21px}.project-avatar.large{width:58px;height:58px;border-radius:18px}.project-member-select{grid-template-columns:1fr!important}.project-columns{gap:0}.project-actions button{font-size:13px}}
.task-observer{display:flex!important;align-items:center;gap:10px!important;margin-top:12px}.task-observer input{width:18px;height:18px;accent-color:#238feb;flex-shrink:0}

/* Encrypted conversations and voice preview */
#chat-workspace{padding:22px;min-height:360px}.orbit-chat-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;width:100%;padding:20px;text-align:left;border-bottom:1px solid #edf1f7}.orbit-chat-row:last-child{border:0}.orbit-chat-row:hover{background:#f3f8ff}.orbit-chat-row strong{overflow-wrap:anywhere}.orbit-chat-row small{grid-column:1}.orbit-chat-row .pill{grid-column:2;grid-row:1/3;align-self:center}.orbit-chat{display:flex;flex-direction:column;min-width:0}.orbit-chat>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 15px;border-bottom:1px solid #edf1f7}.orbit-chat>header strong{font-size:19px;overflow-wrap:anywhere}.orbit-chat>.hint{margin:12px 0;line-height:1.6}.orbit-chat-messages{display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;min-height:250px;height:48vh;max-height:620px;padding:22px;border-radius:15px;background-color:#dcecff;background-image:radial-gradient(circle,#fff8 1px,transparent 1px);background-size:23px 23px}.orbit-chat-messages:empty:before{content:'Начните обсуждение';align-self:center;margin:auto;color:#728daf;font-size:14px}.orbit-message{display:flex;flex-direction:column;align-self:flex-start;max-width:85%;gap:6px;padding:13px 16px;border-radius:16px 16px 16px 3px;background:white;box-shadow:0 2px 8px #16345e08;min-width:90px}.orbit-message.own{align-self:flex-end;background:#edf9e9;border-radius:16px 16px 3px 16px}.orbit-message>strong{color:#2584be;font-size:12px}.orbit-message>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.orbit-message>small{align-self:flex-end;font-size:11px;color:#8493a6}.orbit-message audio{width:280px;max-width:100%;height:40px}.chat-error{color:#b65062;font-size:13px;line-height:1.6;margin:10px 0;overflow-wrap:anywhere}.chat-error:empty{display:none}.orbit-chat-form{display:flex;align-items:flex-end;gap:9px;margin-top:14px}.orbit-chat-form textarea{flex:1;min-width:0;resize:vertical;max-height:180px;min-height:65px}.orbit-chat-form button{min-height:44px;white-space:nowrap}#voice-preview:not(:empty){display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;background:#eef6ff;border-radius:14px;margin-top:14px}#voice-preview p{width:100%;font-size:13px;color:#7087a3}#voice-preview audio{max-width:100%;height:42px}#new-chat-form [hidden]{display:none}.new-chat-error{color:#b65062}.new-chat-error:empty{display:none}@media(max-width:600px){#chat-workspace{padding:14px}.orbit-chat>header strong{font-size:17px}.orbit-chat>header button{padding:9px;font-size:12px}.orbit-chat-messages{padding:12px;height:42dvh;min-height:220px}.orbit-message{max-width:94%;padding:11px 13px}.orbit-chat-form{flex-wrap:wrap;gap:8px}.orbit-chat-form textarea{flex-basis:100%}.orbit-chat-form button{flex:1}.orbit-chat-row{padding:15px}.orbit-message audio{width:230px}.orbit-chat>.hint{font-size:11px}}
