@font-face{font-family:Sputnik;src:url('/static/assets/Sputnik-Regular.otf')}@font-face{font-family:Sputnik;src:url('/static/assets/Sputnik-Bold.otf');font-weight:700}
:root{--bg:#131110;--panel:#17140f;--panel2:#201d18;--line:#2c2822;--text:#f0ece3;--muted:#8a837e;--orange:#f28c1e;--green:#63c089;--blue:#7ba6db;--red:#e86b6b}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{font-family:Sputnik,Arial,sans-serif;background:var(--bg);color:var(--text);overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}.boot{height:100%;display:grid;place-items:center;color:var(--muted)}
.login{height:100%;display:grid;grid-template-columns:1fr 480px}.login-art{background:#0e0d0b;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;right:-160px;top:-150px;border-left:540px solid var(--orange);border-bottom:370px solid transparent}.login-copy{z-index:1;width:440px}.login-copy img{width:210px}.login-copy small{display:block;color:var(--orange);letter-spacing:.22em;font-weight:bold;margin:30px 0 18px}.login-copy p{color:#c7c0b2;font-size:18px;line-height:1.55}.login-form{background:var(--panel);display:flex;align-items:center;padding:60px}.login-form form{width:100%}.login-form h1{font-size:30px;margin:0 0 8px}.login-form p{color:var(--muted);margin:0 0 28px}.field{display:block;margin-bottom:15px}.field>span,.label{display:block;color:#7a7267;text-transform:uppercase;font-size:10px;letter-spacing:.09em;font-weight:bold;margin-bottom:7px}.input,select,textarea{width:100%;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:11px 13px;outline:none}.input:focus,select:focus,textarea:focus{border-color:var(--orange)}.primary{border:0;border-radius:9px;padding:11px 16px;background:var(--orange);color:#16120d;font-weight:bold}.secondary{border:1px solid var(--line);border-radius:9px;padding:10px 14px;background:var(--panel2);color:#c7c0b2}.danger{color:var(--red)}.login-form .primary{width:100%;padding:14px;margin-top:6px}.hint{font-size:11px!important;line-height:1.6;color:#6f685e!important;margin-top:18px!important}
.shell{height:100%;display:flex}.sidebar{width:236px;flex:none;background:#0e0d0b;border-right:1px solid #221f1a;padding:20px 16px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:2px 6px 20px;border-bottom:1px solid #201d18}.brand img{width:80px}.brand b{font-size:13px}.nav-label{color:#5c564c;font-size:9px;letter-spacing:.15em;font-weight:bold;margin:23px 10px 9px}.nav button{border:0;background:transparent;color:#aaa296;padding:10px 12px;border-radius:9px;width:100%;text-align:left;margin:2px 0}.nav button.active{background:rgba(242,140,30,.13);color:#f2a63e}.ed-link{display:flex;align-items:center;gap:9px;padding:7px 10px;color:#b8b1a4;font-size:12px}.dot{width:8px;height:8px;border-radius:2px}.ed-link span:last-child{margin-left:auto;color:#6b6459}.profile{margin-top:auto;background:#181510;border:1px solid #221f1a;border-radius:11px;padding:10px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:bold;flex:none}.profile div:nth-child(2){min-width:0;flex:1}.profile b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile small{color:var(--muted);font-size:9px}.logout{border:0;background:transparent;color:#6b6459;font-size:15px}
.main{min-width:0;flex:1;display:flex;flex-direction:column}.top{display:flex;align-items:center;padding:17px 25px;border-bottom:1px solid #201d18;gap:14px}.top h1{font-size:20px;margin:0}.top p{font-size:11px;color:var(--muted);margin:3px 0 0}.search{margin-left:auto;width:250px}.board-tools{display:flex;padding:14px 25px 3px;align-items:center;gap:10px}.filters{display:flex;gap:5px}.filters button{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:7px 10px;border-radius:8px}.filters button.active{background:var(--orange);color:#15110c;border-color:var(--orange)}.board{display:flex;gap:14px;padding:14px 25px 20px;overflow-x:auto;flex:1;min-height:0}.column{width:300px;min-width:300px;background:#17140f;border:1px solid #221f1a;border-radius:13px;display:flex;flex-direction:column;overflow:hidden}.col-head{display:flex;align-items:center;gap:9px;padding:13px;border-top:2px solid var(--col);border-bottom:1px solid #201d18}.col-head b{font-size:14px}.count{font-size:10px;background:#26221d;color:#b8b1a4;padding:2px 7px;border-radius:20px}.icon-btn{margin-left:auto;border:0;background:#242019;color:var(--muted);border-radius:6px;width:25px;height:25px}.cards{padding:10px;overflow-y:auto;min-height:120px;flex:1}.card{background:#201d18;border:1px solid #2c2822;border-radius:11px;padding:12px;margin-bottom:9px;transition:.15s}.card:hover{border-color:var(--orange);transform:translateY(-1px)}.card.dragging{opacity:.35}.card-top,.card-foot{display:flex;align-items:center;gap:6px}.tag{font-size:9px;padding:3px 7px;border-radius:5px;background:rgba(242,140,30,.14);color:#f2a63e;font-weight:bold}.status{font-size:9px;padding:3px 7px;border-radius:5px}.st-new{background:#2a2722;color:#aaa296}.st-work{background:rgba(242,140,30,.15);color:#f2a63e}.st-check{background:rgba(59,111,176,.2);color:var(--blue)}.st-done{background:rgba(46,125,82,.2);color:var(--green)}.ref{margin-left:auto;color:#6b6459;font-size:10px}.card-title{font-size:13px;line-height:1.4;margin:10px 0 12px}.card-foot{border-top:1px solid #2a2621;padding-top:9px;color:var(--muted);font-size:10px}.card-foot .avatar{margin-left:auto;width:25px;height:25px;border-radius:7px;font-size:8px}.late{color:var(--red)}.add-card{width:100%;border:1px dashed var(--line);background:transparent;color:#6b6459;padding:9px;border-radius:9px}.add-column{width:230px;min-width:230px;height:50px;border:1px dashed var(--line);background:transparent;color:var(--muted);border-radius:12px}.empty{padding:20px;text-align:center;color:#6b6459;font-size:12px}
.content{overflow:auto;padding:25px}.team{max-width:950px;margin:auto;border:1px solid #221f1a;border-radius:14px;overflow:hidden}.member{display:grid;grid-template-columns:2fr 1fr 1fr;align-items:center;padding:13px 20px;border-bottom:1px solid #201d18}.member-name{display:flex;align-items:center;gap:12px}.member span{color:#aaa296;font-size:12px}.settings{max-width:680px;margin:auto}.settings-card{background:var(--panel);border:1px solid #221f1a;border-radius:14px;padding:22px}.settings-card h2{margin-top:0}.switch{display:flex;gap:9px;align-items:center;margin:15px 0}.switch input{accent-color:var(--orange)}
.overlay{position:fixed;inset:0;background:rgba(5,4,3,.68);z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:var(--panel);border:1px solid var(--line);border-radius:16px;width:650px;max-height:94vh;overflow:auto;box-shadow:0 30px 80px #000}.modal-head{position:sticky;top:0;z-index:2;background:var(--panel);display:flex;align-items:center;padding:17px 21px;border-bottom:1px solid #221f1a}.modal-head h2{font-size:18px;margin:0}.close{margin-left:auto;border:0;background:#211e19;color:#aaa296;width:31px;height:31px;border-radius:8px}.modal-body{padding:21px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.formats{display:flex;gap:8px;margin-bottom:14px}.formats button{background:var(--panel2);border:1px solid var(--line);color:#aaa296;border-radius:8px;padding:9px 13px}.formats button.active{border-color:var(--orange);color:var(--orange);background:rgba(242,140,30,.09)}.editor-tools{display:flex;gap:3px;padding:6px;background:#181510;border:1px solid var(--line);border-bottom:0;border-radius:9px 9px 0 0}.editor-tools button{border:0;background:transparent;color:#aaa296;width:29px;height:27px;border-radius:5px}.editor-tools button:hover{background:#2a2621}.rich{min-height:110px;background:var(--panel2);border:1px solid var(--line);border-radius:0 0 9px 9px;padding:12px;outline:none;line-height:1.5}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.drawer-wrap{position:fixed;inset:0;background:rgba(5,4,3,.56);z-index:20}.drawer{position:absolute;right:0;top:0;bottom:0;width:560px;max-width:96vw;background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column}.drawer .modal-head{flex:none}.drawer-body{padding:20px;overflow:auto;flex:1}.task-title{font-size:22px;line-height:1.25;margin:8px 0 18px}.meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.meta>div{background:#1b1813;border:1px solid #26221d;padding:10px;border-radius:9px}.meta small{display:block;color:#70695f;font-size:9px;text-transform:uppercase;margin-bottom:4px}.description{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:14px;line-height:1.55;color:#d2ccbf}.description a{color:var(--orange)}.comments-title{font-size:10px;color:#7a7267;letter-spacing:.08em;margin:20px 0 10px}.comment{display:flex;gap:9px;margin:9px 0}.bubble{background:#1b1813;border:1px solid #28241e;border-radius:3px 10px 10px;padding:9px 11px;flex:1}.bubble b{font-size:11px}.bubble time{float:right;color:#6b6459;font-size:9px}.bubble p{margin:5px 0 0;color:#c7c0b2;font-size:12px;white-space:pre-wrap}.comment-add{display:flex;gap:7px;margin-top:12px}.comment-add .input{flex:1}.drawer-actions{padding:13px 20px;border-top:1px solid #221f1a;display:flex;gap:8px}.drawer-actions .primary{flex:1}#toast{position:fixed;right:20px;bottom:20px;z-index:99}.toast{background:#2d2922;border:1px solid #4a4339;color:#eee;padding:11px 15px;border-radius:9px;margin-top:8px;box-shadow:0 10px 30px #000}.toast.error{border-color:#8a3c3c}.hidden{display:none!important}
@media(max-width:850px){.login{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:35px}.sidebar{width:74px;padding:15px 9px}.brand b,.nav button span,.nav-label,.ed-link span,.profile div:nth-child(2){display:none}.brand img{width:54px}.nav button{text-align:center}.profile{padding:8px}.search{display:none}.top{padding:14px}.board{padding:12px}.grid2{grid-template-columns:1fr}.content{padding:12px}}
.admin-grid{display:grid;gap:20px;max-width:1100px;margin:0 auto;width:100%}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.section-head h2{margin:0 0 3px}.section-head p{margin:0;color:var(--muted);font-size:12px}.manage-list{display:flex;flex-direction:column}.manage-row{display:flex;align-items:center;gap:12px;padding:12px 3px;border-top:1px solid #28241e}.manage-row>span{color:var(--muted);font-size:11px}.manage-row>.dot{flex:none}.manage-row>.avatar{width:36px;height:36px}.manage-row.inactive{opacity:.5}.manage-row .user-main{min-width:190px;flex:1}.user-main b,.user-main small{display:block}.user-main small{color:var(--muted);margin-top:3px}.row-actions{margin-left:auto;display:flex;gap:6px}.row-actions .secondary{padding:6px 9px}.row-actions button:disabled{opacity:.25;cursor:default}.role-chip{background:#28241e;color:#cfc7b8!important;border-radius:6px;padding:5px 8px;min-width:105px;text-align:center}.notice{font-size:12px;line-height:1.5;color:#a59d90;background:#201d18;border:1px solid #2c2822;border-radius:9px;padding:11px}.settings-card>p{color:var(--muted);line-height:1.5}
@media(max-width:850px){.manage-row{flex-wrap:wrap}.row-actions{width:100%;margin-left:48px}.role-chip{margin-left:auto}.section-head{align-items:flex-start}.section-head .primary{white-space:nowrap}}
.st-revision{background:rgba(232,107,107,.16);color:var(--red)}.inbox-list{max-width:850px;margin:auto}.notification{display:flex;gap:12px;align-items:flex-start;padding:14px;border-bottom:1px solid #28241e;cursor:pointer}.notification.unread{background:rgba(242,140,30,.06)}.notification p{margin:0 0 4px}.notification time{color:var(--muted);font-size:10px}.unread-badge{background:var(--orange);color:#15110c;border-radius:20px;padding:1px 6px;font-size:9px;margin-left:5px}.my-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.summary-card{background:var(--panel);border:1px solid #28241e;border-radius:11px;padding:14px}.summary-card b{display:block;font-size:25px}.summary-card span{color:var(--muted);font-size:11px}.activity-item{border-left:2px solid #3a352d;padding:3px 0 10px 12px;margin-left:8px}.activity-item b{font-size:11px}.activity-item p{font-size:11px;color:var(--muted);margin:3px 0}.claim-banner{background:rgba(99,192,137,.08);border:1px solid rgba(99,192,137,.25);border-radius:10px;padding:12px;margin:12px 0;color:#a9d9bd}.login-form .hint{display:none}
.primary:disabled{opacity:.55;cursor:wait}
.login-art:after{display:none!important}.login:before{content:'';position:fixed;left:28%;top:9%;width:240px;height:150px;background:#f8961d;clip-path:polygon(0 0,100% 0,0 100%);opacity:.09;transform:rotate(-12deg);pointer-events:none}.org-page{min-height:100vh;background:#f3f3f3}.org-page>header{height:82px;padding:0 30px;background:#050505;display:flex;align-items:center;justify-content:space-between}.org-page>header img{width:225px}.org-page>main{max-width:900px;margin:0 auto;padding:70px 24px}.org-page>main>small{color:#dc7700;font-weight:700;letter-spacing:.16em}.org-page h1{font-size:38px;margin:10px 0}.org-page>main>p{color:#666}.org-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:30px 0}.org-item{border:0;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.09);padding:22px;text-align:left;border-top:4px solid #f8961d}.org-item b,.org-item span{display:block}.org-item b{font-size:19px}.org-item span{color:#777;margin-top:10px}.org-item:hover{background:#050505;color:#fff}.org-empty{padding:28px;background:#fff;color:#777}.org-page form{display:flex;align-items:end;gap:10px;background:#fff;padding:20px}.org-page form .field{flex:1;margin:0}.org-switch{margin-left:8px;width:190px;background:#171717;color:#fff;border:1px solid #333;border-radius:4px;padding:9px}.approval-label.pending{white-space:nowrap}@media(max-width:720px){.org-list{grid-template-columns:1fr}.org-page h1{font-size:28px}.org-switch{width:120px}}
.auth-box{width:100%;max-width:390px}.auth-switch{display:block;width:100%;margin-top:16px;padding:11px;border:0;background:transparent;color:#f8961d;font-weight:700}.auth-switch:hover{text-decoration:underline}.pending-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#050505;position:relative;overflow:hidden}.pending-page:before{content:'';position:absolute;right:-120px;top:-170px;border-left:520px solid #f8961d;border-bottom:350px solid transparent;opacity:.9}.pending-card{position:relative;z-index:1;width:min(560px,100%);padding:48px;background:#fff;color:#111;box-shadow:0 25px 80px rgba(0,0,0,.45);text-align:left}.pending-card img{width:240px;padding:16px;background:#050505;margin-bottom:42px}.pending-card>i{display:grid;width:44px;height:44px;place-items:center;background:#f8961d;color:#111;font-style:normal;font-weight:700;font-size:22px;margin-bottom:20px}.pending-card small{display:block;color:#e47d08;font-weight:700;letter-spacing:.16em;margin-bottom:10px}.pending-card h1{font-size:32px;margin:0 0 16px}.pending-card p{color:#555;font-size:16px;line-height:1.6}.pending-login{display:inline-block;background:#f1f1f1;padding:9px 12px;margin:8px 0 22px;font-weight:700}.approval-label{font-weight:700;color:#3b7b52!important}.approval-label.pending{color:#d96f00!important;background:#fff1dd;padding:5px 8px}.pass-change{font-size:13px!important}.login-form .hidden{display:none!important}
.assignee-self{width:100%;margin-top:2px;background:#242019;border:1px solid #3a352d;color:var(--text);border-radius:7px;padding:7px 9px;font-size:12px;outline:none}.assignee-self:focus{border-color:var(--orange)}.assignee-self:disabled{opacity:.7;cursor:not-allowed}

/* Authentication stays a single dark Sputnik composition. */
.login{min-height:100vh;background:#050505!important}.login-art,.login-form{background-color:#050505!important}.login-form{box-shadow:-1px 0 rgba(255,255,255,.07)}.login:before{opacity:.055!important;left:18%!important;top:16%!important;transform:rotate(-19deg)!important}

/* Sputnik visual system — unified shell */
:root{--bg:#100f0d;--panel:#181612;--panel2:#211e19;--line:rgba(255,255,255,.07);--muted:#8f887d;--text:#f2eee6;--orange:#f7931e}
body{background:radial-gradient(circle at 72% 8%,rgba(247,147,30,.045),transparent 28%),var(--bg)}
.sidebar{width:248px;padding:22px 18px 18px;background:linear-gradient(180deg,#0c0b0a 0%,#100f0d 100%);border-right:0;box-shadow:12px 0 36px rgba(0,0,0,.18);position:relative;z-index:3}
.brand{height:76px;padding:0 10px 18px;display:flex;align-items:center;justify-content:flex-start;gap:14px;border-bottom:0;position:relative}
.brand img{width:104px;height:auto;display:block;filter:drop-shadow(0 8px 18px rgba(247,147,30,.12))}
.brand b{display:none}.brand:after{content:'SPUTNITSA · ДПВ';font-size:9px;line-height:1.35;letter-spacing:.2em;color:#857d71;font-weight:700;max-width:62px}
.nav-label{margin:22px 12px 8px;color:#5f5951;font-size:8.5px;letter-spacing:.18em}
.nav{display:flex;flex-direction:column;gap:4px}.nav button{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:10px 12px;border-radius:10px;color:#a9a196;transition:background .16s,color .16s,transform .16s}.nav button:hover{background:rgba(255,255,255,.04);color:#eee8dd;transform:translateX(2px)}.nav button.active{background:linear-gradient(90deg,rgba(247,147,30,.17),rgba(247,147,30,.06));color:#f5a33c;box-shadow:inset 2px 0 #f7931e}
.ed-link{margin:1px 0;padding:7px 12px;border-radius:8px;transition:background .15s}.ed-link:hover{background:rgba(255,255,255,.025)}
.profile{padding:11px 12px;background:rgba(255,255,255,.035);border:0;border-radius:13px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.045)}
.main{background:transparent}.top{min-height:76px;padding:18px 28px;border-bottom:0;background:rgba(16,15,13,.76);backdrop-filter:blur(14px);position:relative;z-index:2}.top:after{content:'';position:absolute;left:28px;right:28px;bottom:0;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent)}.top h1{font-size:22px;letter-spacing:.01em}.top p{color:#777066;margin-top:5px}.top .secondary{background:transparent;border-color:transparent;color:#928a7f;padding:9px 10px}.top .secondary:hover{background:rgba(255,255,255,.045);color:#eee8dd}.top .primary{box-shadow:0 8px 24px rgba(247,147,30,.16)}
.search{height:39px;background:rgba(255,255,255,.035);border-color:transparent!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.board-tools{padding:15px 28px 2px}.filters{padding:3px;background:rgba(255,255,255,.028);border-radius:10px}.filters button{border:0;background:transparent;padding:7px 11px}.filters button.active{box-shadow:0 4px 14px rgba(247,147,30,.12)}
.board{gap:18px;padding:16px 28px 26px}.column{background:rgba(24,22,18,.68);border:0;border-radius:16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 12px 34px rgba(0,0,0,.12);overflow:hidden}.col-head{min-height:52px;padding:14px 15px;border-top:2px solid var(--col);border-bottom:0;background:rgba(255,255,255,.018)}.col-head:after{content:'';position:absolute}.cards{padding:4px 11px 12px}.card{margin-bottom:10px;padding:13px;background:linear-gradient(145deg,rgba(36,32,26,.96),rgba(29,27,23,.96));border:0;border-radius:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 7px 20px rgba(0,0,0,.12)}.card:hover{box-shadow:inset 0 0 0 1px rgba(247,147,30,.55),0 12px 28px rgba(0,0,0,.22);transform:translateY(-2px)}.card-foot{border-top-color:rgba(255,255,255,.055)}.add-card{border-color:rgba(255,255,255,.08);margin-top:2px}.add-card:hover,.add-column:hover{border-color:rgba(247,147,30,.6);color:#f7a342}
.content{padding:28px}.settings-card,.team{background:rgba(24,22,18,.78);border:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 16px 50px rgba(0,0,0,.12)}.member{border-bottom-color:rgba(255,255,255,.045)}
.overlay,.drawer-wrap{background:rgba(7,6,5,.72);backdrop-filter:blur(5px)}.modal,.drawer{background:linear-gradient(180deg,#191713,#141310);border-color:rgba(255,255,255,.08);box-shadow:0 32px 90px rgba(0,0,0,.65)}.modal-head{background:rgba(25,23,19,.94);border-bottom-color:rgba(255,255,255,.055);backdrop-filter:blur(12px)}.drawer-actions{background:#11100e;border-top-color:rgba(255,255,255,.06)}.meta>div{border:0;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.045)}.description{background:rgba(255,255,255,.035);border:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.login-form{background:linear-gradient(160deg,#1a1814,#12110f)}.login-form form{max-width:360px}.login-form h1{letter-spacing:.025em}.login-art{background:radial-gradient(circle at 40% 42%,#15120d,#090909 60%)}.login-art:after{opacity:.92}.login-copy img{width:180px}.login-copy small{font-size:11px}.login-copy p{font-size:17px;color:#aaa397}
@media(max-width:850px){.sidebar{width:72px;padding:15px 8px}.brand{height:58px;padding:0 2px 12px}.brand img{width:55px}.brand:after{display:none}.top{padding:14px 16px}.top:after{left:16px;right:16px}.top .secondary{font-size:0;width:34px}.board{padding:14px 16px}.content{padding:16px}}

/* Official Sputnik-inspired light workspace */
body{background:#f3f3f3;color:#111;overflow:hidden}.shell{flex-direction:column;background:#f3f3f3}.sidebar{width:100%;height:82px;flex:0 0 82px;padding:0 30px;background:#050505;box-shadow:none;display:flex;flex-direction:row;align-items:center;border:0}.brand{width:300px;height:82px;padding:0;justify-content:flex-start;gap:18px}.brand img{width:225px;max-height:50px;filter:none}.brand:after{content:'';color:#f8961d;font-size:12px;letter-spacing:.14em;max-width:none}.sidebar>.nav-label,.sidebar>.ed-link{display:none}.nav{height:100%;display:flex;flex-direction:row;align-items:stretch;gap:0}.nav button{width:auto;min-height:82px;margin:0;padding:0 20px;border-radius:0;color:#fff;font-size:14px;font-weight:700;letter-spacing:.015em}.nav button:hover{background:#151515;color:#fff;transform:none}.nav button.active{background:#111;color:#fff;box-shadow:inset 0 -4px #f8961d}.profile{width:auto;min-width:205px;margin:0 0 0 auto;padding:8px 10px;background:transparent;box-shadow:none;color:#fff}.profile b{color:#fff}.profile small{color:#aaa}.logout{color:#fff}.main{height:calc(100vh - 82px);background:#f3f3f3;color:#111}.top{min-height:86px;padding:17px 30px;background:#fff;color:#111;backdrop-filter:none;border:0;box-shadow:0 2px 12px rgba(0,0,0,.07)}.top:after{display:none}.top h1{color:#111;font-size:25px;text-transform:uppercase}.top p{color:#777}.top .secondary{color:#111;background:#f5f5f5;border:1px solid #e5e5e5;border-radius:8px}.top .secondary:hover{background:#111;color:#fff}.top .primary,.primary{background:#f8961d;color:#111;box-shadow:none;border-radius:8px}.top .primary:hover,.primary:hover{background:#ff9f2e}.search{background:#f6f6f6;color:#111;border:1px solid #e3e3e3!important;box-shadow:none}.input,select,textarea{background:#fff;color:#111;border-color:#ddd}.input:focus,select:focus,textarea:focus{border-color:#f8961d}.board-tools{padding:16px 30px 3px;background:#f3f3f3}.filters{background:#fff;border:1px solid #e1e1e1;border-radius:8px}.filters button{color:#555}.filters button.active{background:#111;color:#fff;box-shadow:none}.archive-toggle{background:#fff!important;color:#111!important;border:1px solid #ddd!important}.board{padding:15px 30px 28px;gap:14px;background:#f3f3f3}.column{background:#e9e9e9;border:0;border-radius:4px;box-shadow:none}.col-head{background:#fff;border-top:4px solid var(--col);border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.col-head b{color:#111;text-transform:uppercase}.count{background:#eee;color:#555}.icon-btn{background:#f1f1f1;color:#111}.cards{padding:10px}.card{background:#fff;border:0;border-radius:4px;box-shadow:0 2px 7px rgba(0,0,0,.12);color:#111}.card:hover{box-shadow:0 5px 16px rgba(0,0,0,.2);transform:translateY(-2px)}.card-title{color:#111;font-weight:700}.card-foot{border-top-color:#eee;color:#777}.add-card,.add-column{background:#fff;color:#555;border-color:#ccc;border-radius:4px}.tag{background:#fff3e3;color:#d96f00}.status.st-new{background:#eee;color:#555}.content{background:#f3f3f3}.settings-card,.team{background:#fff;color:#111;box-shadow:0 2px 10px rgba(0,0,0,.09);border-radius:4px}.member{border-bottom-color:#eee}.member span,.section-head p,.settings-card>p{color:#666}.secondary{background:#fff;color:#111;border-color:#ddd}.role-chip{background:#eee;color:#333!important}.manage-row{border-top-color:#eee}.manage-row>span,.user-main small{color:#777}.stat-card{background:#fff;border:0;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.08)}.bar-row>i{background:#eee}.modal,.drawer{background:#fff;color:#111;border:0}.modal-head{background:#050505;color:#fff;border:0}.modal-head h2{color:#fff}.modal-head .close{background:#222;color:#fff}.modal-body,.drawer-body{background:#fff;color:#111}.drawer-actions{background:#f5f5f5;border-top:1px solid #ddd}.meta>div,.description{background:#f5f5f5;color:#111;box-shadow:none;border:1px solid #e4e4e4}.description a{color:#d96f00}.bubble{background:#f3f3f3;border-color:#e4e4e4}.bubble p{color:#333}.comment-add .input{background:#fff}.editor-tools{background:#f1f1f1;border-color:#ddd}.editor-tools button{color:#555}.rich{background:#fff;color:#111;border-color:#ddd}.assignee-self{background:#fff;color:#111;border-color:#ccc}.notice{background:#fff7eb;border-color:#ffd7a5;color:#6d4b24}.login{background:#050505;color:#fff}.login-art{background:#050505}.login-art:after{border-left-color:#f8961d}.login-copy img{width:300px}.login-form{background:#111;color:#fff}.login-form h1{color:#fff}.login-form .input{background:#1e1e1e;color:#fff;border-color:#333}.login-form p{color:#888}.login-form .primary{background:#f8961d}.toast{background:#111;color:#fff;border-color:#333}
@media(max-width:1050px){.sidebar{padding:0 16px}.brand{width:210px}.brand img{width:165px}.brand:after{display:none}.nav button{padding:0 12px;font-size:12px}.profile{min-width:55px;width:55px}.profile>div{display:none}.top{padding:14px 18px}.top .secondary{font-size:11px}.board{padding:14px 18px}.board-tools{padding-left:18px;padding-right:18px}}
@media(max-width:720px){.sidebar{height:66px;flex-basis:66px}.brand{width:95px;height:66px}.brand img{width:90px}.nav button{min-height:66px;width:45px;padding:0;font-size:0;justify-content:center}.nav button span{display:none}.profile{display:none}.main{height:calc(100vh - 66px)}.top{min-height:76px}.top h1{font-size:18px}.top .secondary{font-size:0;width:34px}.column{min-width:285px}}

/* Natural page scrolling and drag feedback */
html,body,#app{height:auto;min-height:100%;overflow-y:auto}body{overflow-x:hidden}.shell{height:auto;min-height:100vh;overflow:visible}.sidebar{position:sticky;top:0;z-index:40}.main{height:auto;min-height:calc(100vh - 82px);overflow:visible}.top{position:sticky;top:82px;z-index:30}.board{flex:0 0 auto;min-height:calc(100vh - 190px);overflow-x:auto;overflow-y:visible;align-items:flex-start}.column{height:auto;min-height:180px;align-self:flex-start;overflow:visible}.cards{max-height:none;overflow:visible}.column.drag-over{background:#fff4e5;box-shadow:inset 0 0 0 2px #f8961d}.column.drag-over .col-head{background:#fff8ef}.card.dragging{opacity:.32;transform:rotate(1.5deg) scale(.985);box-shadow:0 18px 35px rgba(0,0,0,.2)}.drop-indicator{height:4px;margin:5px 2px 10px;border-radius:5px;background:#f8961d;box-shadow:0 0 0 4px rgba(248,150,29,.15);animation:dropPulse .75s ease-in-out infinite alternate}.card.drop-settle{animation:dropSettle .28s cubic-bezier(.2,.8,.2,1)}body.is-dragging .column{transition:background .18s,box-shadow .18s}body.is-dragging .card:not(.dragging){transition:transform .18s,box-shadow .18s}@keyframes dropPulse{to{box-shadow:0 0 0 7px rgba(248,150,29,.05)}}@keyframes dropSettle{from{transform:translateY(-10px);opacity:.45}to{transform:translateY(0);opacity:1}}@media(max-width:720px){.main{min-height:calc(100vh - 66px)}.top{top:66px}}
.claim-mini{width:100%;border:1px solid rgba(99,192,137,.35);background:rgba(99,192,137,.09);color:#8fd0a8;border-radius:8px;padding:7px;margin:-2px 0 10px;font-weight:700;font-size:11px}.claim-mini:hover{background:rgba(99,192,137,.18)}.archive-toggle{margin-left:auto}.archive-chip{background:#332f29;color:#aaa296}.archived-card{opacity:.72}.sputnik-date{color-scheme:dark;padding-right:10px}.sputnik-date::-webkit-calendar-picker-indicator{filter:invert(65%) sepia(80%) saturate(1500%) hue-rotate(345deg);cursor:pointer}.date-quick{display:flex;gap:5px;margin-top:7px}.date-quick button{border:1px solid #38332b;background:#211e19;color:#aaa296;border-radius:6px;padding:5px 8px;font-size:10px}.date-quick button:hover{border-color:var(--orange);color:var(--orange)}.stats-page{max-width:1150px;margin:auto;width:100%}.stat-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:18px}.stat-card{background:var(--panel);border:1px solid #28241e;border-radius:12px;padding:15px}.stat-card b{display:block;font-size:23px}.stat-card span{font-size:10px;color:var(--muted)}.stat-card.good b{color:var(--green)}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bar-row{margin:13px 0}.bar-row>div{display:flex;justify-content:space-between;font-size:12px}.bar-row>div b{color:var(--muted);font-size:10px}.bar-row>i{display:block;height:7px;background:#28241e;border-radius:10px;overflow:hidden;margin-top:6px}.bar-row em{display:block;height:100%;border-radius:10px;min-width:3px}@media(max-width:1000px){.stat-cards{grid-template-columns:repeat(3,1fr)}.stats-grid{grid-template-columns:1fr}.my-summary{grid-template-columns:repeat(2,1fr)}}

/* Consistent Sputnik header controls */
.brand{width:330px}.brand:after{font-size:22px;font-weight:700;letter-spacing:.08em;color:#f8961d}.nav button{gap:9px;padding-left:16px;padding-right:16px}.nav-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px}.nav-icon svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav button:first-child .nav-icon svg{fill:currentColor;stroke:none}.avatar,.card-foot .avatar,.manage-row>.avatar{background:#f8961d!important;color:#111!important;border-radius:50%}.org-switch{appearance:none;-webkit-appearance:none;padding:9px 42px 9px 13px;background-color:#171717;background-image:linear-gradient(45deg,transparent 50%,#f8961d 50%),linear-gradient(135deg,#f8961d 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 13px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}.profile .logout,.pass-change{width:30px;height:30px;display:grid;place-items:center;padding:0;font-size:17px!important}
@media(max-width:1050px){.brand{width:230px}.brand:after{font-size:17px}.nav button{padding-left:10px;padding-right:10px}.nav-icon,.nav-icon svg{width:20px;height:20px}.org-switch{width:165px}}

/* Statistics always uses the light workspace palette. */
.stats-page{color:#111}.stats-page .stat-card{background:#fff;border:0;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.08)}.stats-page .stat-card b{color:#111}.stats-page .stat-card span{color:#626262}.stats-page .stat-card.good b{color:#237a49}.stats-page .stat-card.danger b{color:#b62f2f}.stats-page .settings-card h2{color:#111}.stats-page .bar-row>div span{color:#222;font-weight:700}.stats-page .bar-row>div b{color:#5f5f5f}.stats-page .bar-row>i{background:#e5e5e5}

/* Dialogs must stay above both sticky Sputnik headers. */
.overlay,.drawer-wrap{z-index:100}.overlay{align-items:center;padding:24px}.overlay .modal{max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain}

.org-controls{display:flex;align-items:center;gap:6px;flex:none}.org-controls .org-switch{width:145px;height:36px;margin-left:0;padding-top:7px;padding-bottom:7px;font-size:12px}.org-create-mini{height:36px;padding:0 10px;border:1px solid #3a3a3a;border-radius:4px;background:#111;color:#f8961d;font-size:11px;font-weight:700;white-space:nowrap}.org-create-mini:hover{border-color:#f8961d;background:#1b1b1b}@media(max-width:1250px){.org-controls .org-switch{width:120px}.org-create-mini{width:36px;padding:0;font-size:0}.org-create-mini:after{content:'+';font-size:21px}.org-controls{gap:4px}}

.profile-clickable{position:relative;cursor:pointer}.profile-clickable:hover{background:#151515}.profile-menu{display:none;position:absolute;right:0;top:calc(100% + 12px);z-index:120;width:330px;padding:18px;background:#fff;color:#111;border-top:4px solid #f8961d;box-shadow:0 18px 55px rgba(0,0,0,.3);cursor:default}.profile-menu.open{display:block;animation:profileOpen .16s ease-out}.profile-menu:before{content:'';position:absolute;right:28px;top:-10px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #f8961d}.profile-menu-head{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #e8e8e8}.profile-menu-head .avatar{width:44px;height:44px}.profile-menu-head small{display:block;color:#d96f00;font-size:9px;letter-spacing:.13em;margin-bottom:4px}.profile-menu-head b{color:#111;font-size:16px}.profile-menu dl{margin:10px 0 14px}.profile-menu dl>div{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:7px 0}.profile-menu dt{color:#777;font-size:11px}.profile-menu dd{margin:0;color:#111;font-size:12px;font-weight:700;overflow-wrap:anywhere}.profile-menu-actions{display:flex;gap:8px;padding-top:13px;border-top:1px solid #e8e8e8}.profile-menu-actions button{flex:1;padding:9px;border:1px solid #ddd;background:#f5f5f5;color:#111;border-radius:4px;font-weight:700}.profile-menu-actions button:hover{border-color:#f8961d}.profile-menu-actions .profile-signout{background:#111;color:#fff;border-color:#111}@keyframes profileOpen{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
.password-modal{width:480px}.password-intro{margin:0 0 20px;color:#666;line-height:1.5}.password-overlay{z-index:150}
.card-assignee-label{display:block;margin:0 0 10px}.card-assignee-label>span{display:block;margin-bottom:4px;color:#777;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.card-assignee{height:34px;padding:6px 34px 6px 9px;background-color:#f7f7f7;color:#111;border:1px solid #ddd;border-radius:4px;font-size:11px;font-weight:700}.card-assignee:hover,.card-assignee:focus{border-color:#f8961d}.card-assignee:disabled{opacity:.6;cursor:not-allowed}
.application-badge{display:grid;place-items:center;min-width:20px;height:20px;margin-left:2px;padding:0 6px;border-radius:20px;background:#f8961d;color:#111;font-size:10px;font-style:normal;font-weight:700}.applications-card{border-top:4px solid #f8961d}.application-row{background:#fff9f0;padding-left:12px;padding-right:12px}.application-row .application-review{margin-left:auto}.applications-card+.settings-card{margin-top:0}
.org-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.org-tag{display:inline-flex;padding:3px 8px;border:1px solid transparent;border-radius:20px;font-size:9px;font-weight:700;white-space:nowrap}.org-tone-0{background:#fff0dc;color:#955000;border-color:#f7d5a8}.org-tone-1{background:#fbe3d8;color:#913e21;border-color:#efc4b1}.org-tone-2{background:#f5e9c9;color:#735511;border-color:#e5d49f}.org-tone-3{background:#e9e4dd;color:#4f4941;border-color:#d5cec5}.org-tone-4{background:#eee0d0;color:#704923;border-color:#ddc8af}.org-tone-5{background:#f7d9c5;color:#813f1c;border-color:#ebbaa0}.org-tag.pending{background:#f0f0f0;color:#777;border-color:#ddd}.org-tag.empty-tag{background:#eee;color:#888;border-color:#ddd}.member-with-orgs{min-height:70px}.member-with-orgs .member-name>div{min-width:0}.global-directory{margin-top:0}.membership-modal{width:650px}.membership-list{display:flex;flex-direction:column;border:1px solid #e5e5e5}.membership-item{display:grid;grid-template-columns:22px 1fr 180px;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #e9e9e9}.membership-item:last-child{border-bottom:0}.membership-item input{accent-color:#f8961d}.membership-item span b,.membership-item span small{display:block}.membership-item span small{margin-top:3px;color:#777;font-size:10px}.membership-item select{padding:8px}.profile-menu-actions{flex-wrap:wrap}.profile-menu-actions .profile-join{flex-basis:100%;background:#fff4e5;color:#9b5100;border-color:#f6c27f}
.team-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1180px;background:transparent!important;box-shadow:none!important}.team-group{overflow:hidden;background:#fff;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.09)}.team-group-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-top:3px solid #f8961d;border-bottom:1px solid #eee}.team-group-head h2{margin:0;font-size:17px;text-transform:uppercase;letter-spacing:.04em}.team-group-head>span{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:20px;background:#111;color:#fff;font-size:11px;font-weight:800}.team-group .member{grid-template-columns:minmax(0,1.7fr) minmax(130px,1fr);gap:10px}.team-group .member>span:last-child{grid-column:1/-1;padding-left:46px}.team-group .member:last-child{border-bottom:0}.team-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.access-tag{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border:1px solid #efc17e;border-radius:20px;background:#fff3e3;color:#9b5100;font-size:8px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}.access-user{background:#f4e8d8;color:#704923;border-color:#ddc8af}.team-empty{margin:0;padding:28px 20px;color:#777;text-align:center;font-size:12px}@media(max-width:900px){.team-split{grid-template-columns:1fr}}

/* Organization dashboard */
.stats-dashboard{max-width:none;padding:22px 28px 34px;background:#181818;color:#f5f5f5}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}.dashboard-kpis article,.dashboard-panel{background:#252525;border:1px solid #353535;border-radius:7px}.dashboard-kpis article{min-height:150px;padding:16px 20px;display:flex;flex-direction:column}.dashboard-kpis span{font-size:13px;font-weight:700;color:#e8e8e8}.dashboard-kpis b{margin:auto 0;text-align:center;font-size:43px;font-weight:400;color:#fff}.dashboard-kpis small{text-align:center;color:#888;font-size:10px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dashboard-panel{min-height:310px;padding:18px 20px;overflow:hidden}.dashboard-panel h2{margin:0 0 20px;color:#eee;font-size:14px}.vertical-chart{height:230px;display:flex;align-items:stretch;gap:12px;padding:8px 5px 0;border-bottom:1px solid #555}.vertical-item{min-width:38px;flex:1;display:grid;grid-template-rows:18px 1fr 44px;align-items:end;text-align:center}.vertical-item>b{color:#aaa;font-size:9px}.vertical-item>i{height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #555}.vertical-item em{display:block;width:min(32px,70%);min-height:3px;background:linear-gradient(#ffad4d,#f28a18);border-radius:3px 3px 0 0}.vertical-item>span{padding-top:8px;color:#aaa;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.donut-wrap{height:235px;display:flex;align-items:center;justify-content:center;gap:55px}.donut{--done:0deg;width:170px;height:170px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,#252525 0 52%,transparent 53%),conic-gradient(#f8961d 0 var(--done),#5b5146 var(--done) 360deg)}.donut strong{font-size:28px}.donut small{color:#999}.chart-legend{display:flex;flex-direction:column;gap:14px}.chart-legend span,.timeline-legend span{display:flex;align-items:center;gap:8px;color:#bbb;font-size:11px}.chart-legend b{margin-left:auto;color:#fff}.chart-legend i,.timeline-legend i{width:10px;height:10px;border-radius:2px;background:#f8961d}.legend-open{background:#5b5146!important}.legend-overdue{background:#b94a3c!important}.legend-total{background:#e7d4bb!important}.person-bars{display:flex;flex-direction:column;gap:14px}.person-load>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}.person-load span{color:#eee;font-size:11px}.person-load b{color:#999;font-size:9px}.person-load>i{display:block;height:8px;background:#3a3a3a;border-radius:10px;overflow:hidden}.person-load em{display:block;height:100%;background:linear-gradient(90deg,#d96f00,#f8a744);border-radius:10px}.timeline-chart svg{display:block;width:100%;height:190px;overflow:visible}.timeline-chart svg line{stroke:#555;stroke-width:1}.timeline-chart polyline{fill:none;stroke-width:4;vector-effect:non-scaling-stroke}.line-total{stroke:#e7d4bb}.line-done{stroke:#f8961d}.timeline-labels,.timeline-legend{display:flex;justify-content:space-between;color:#888;font-size:9px}.timeline-legend{justify-content:flex-end;gap:18px;margin-top:12px}.dashboard-empty{margin:auto;color:#777;font-size:12px}@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:650px){.stats-dashboard{padding:14px}.dashboard-kpis{grid-template-columns:1fr}.donut-wrap{gap:20px}.dashboard-kpis article{min-height:125px}.membership-item{grid-template-columns:22px 1fr}.membership-item select{grid-column:2}}

@media(min-width:851px){.login{grid-template-columns:minmax(0,1fr) 480px;padding:28px clamp(32px,5vw,92px) 28px 0}.login-form{border-radius:9px;box-shadow:0 24px 70px rgba(0,0,0,.38),inset 1px 0 rgba(255,255,255,.06)}}

/* Centered Sputnik authentication card */
.login{position:relative;display:grid!important;grid-template-columns:1fr!important;place-items:center;min-height:100vh;padding:34px 20px!important;overflow:auto;background:radial-gradient(circle at 50% 42%,#34312d 0,#1a1917 38%,#090909 78%)!important}
.login:before{left:-70px!important;top:-110px!important;width:380px!important;height:270px!important;opacity:.12!important;transform:rotate(16deg)!important}
.login:after{content:'';position:fixed;right:-120px;bottom:-180px;width:430px;height:330px;background:#f8961d;clip-path:polygon(100% 0,100% 100%,0 100%);opacity:.07;transform:rotate(-8deg);pointer-events:none}
.login-art{display:none!important}
.login-backdrop{position:fixed;inset:0;pointer-events:none;overflow:hidden;color:#fff;font-weight:700;font-size:clamp(72px,11vw,170px);letter-spacing:.02em;opacity:.018;line-height:.86}
.login-backdrop span{position:absolute;white-space:nowrap}.login-backdrop span:nth-child(1){left:-2%;top:8%}.login-backdrop span:nth-child(2){right:-4%;top:40%}.login-backdrop span:nth-child(3){left:5%;bottom:-2%}
.login-form{position:relative;z-index:1;width:min(460px,100%);min-height:0;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;display:block!important}
.auth-box{width:100%;max-width:none!important;padding:34px 36px 25px;background:linear-gradient(150deg,#1c1a17 0,#11100e 100%);border:1px solid rgba(255,255,255,.09);border-top:4px solid #f8961d;box-shadow:0 28px 80px rgba(0,0,0,.52),0 3px 12px rgba(0,0,0,.35);border-radius:5px;color:#fff}
.auth-brand{display:flex;align-items:center;gap:16px;padding-bottom:25px;margin-bottom:27px;border-bottom:1px solid rgba(255,255,255,.1)}
.auth-brand img{display:block;width:210px;height:auto;max-height:49px;object-fit:contain;object-position:left center}
.auth-brand>div{padding-left:15px;border-left:1px solid rgba(255,255,255,.16)}
.auth-brand b{display:block;color:#f8961d;font-size:22px;line-height:1;letter-spacing:.09em}
.auth-brand small{display:block;width:115px;margin-top:7px;color:#8f8980;font-size:7px;line-height:1.35;letter-spacing:.11em}
.login-form form{max-width:none!important;width:100%}
.login-form h1{font-size:26px;letter-spacing:.06em;margin-bottom:7px}
.login-form form>p{margin-bottom:24px!important;font-size:13px;line-height:1.45;color:#8f8980!important}
.login-form .field{margin-bottom:14px}
.login-form .field>span{color:#aaa297;font-size:9px;margin:0 0 7px 2px}
.login-form .input{height:46px;padding:12px 14px;background:#24211d!important;border:1px solid #36312b!important;border-radius:5px!important;color:#fff!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.24)}
.login-form .input:focus{border-color:#f8961d!important;box-shadow:0 0 0 3px rgba(248,150,29,.12)}
.login-form .primary{height:46px;margin-top:7px;border-radius:5px!important;text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.auth-switch{margin-top:14px!important;padding:8px!important;color:#f8961d!important;font-size:11px;letter-spacing:.02em}
.auth-foot{margin-top:19px;padding-top:17px;border-top:1px solid rgba(255,255,255,.08);text-align:center;color:#5f5a53;font-size:8px;letter-spacing:.17em}
.login-intro{position:fixed;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none}
.login-intro:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,#292622 0,#111 48%,#080808 100%);opacity:1;transition:opacity .48s ease}
.login-intro img{position:relative;z-index:1;display:block;width:min(520px,72vw);height:auto;filter:drop-shadow(0 22px 55px rgba(248,150,29,.16));will-change:transform}
.login:not(.login-ready) .login-form{visibility:hidden}
.login:not(.login-ready) .auth-box{opacity:0;transform:translateY(14px)}
.login.login-ready .login-intro:before{opacity:0}
.login.login-ready:not(.login-no-intro) .auth-brand>img{visibility:hidden}
.login.login-ready .login-form{visibility:visible}
.login.login-ready .auth-box{animation:none}
.login.login-ready .auth-brand>div{animation:auth-content-arrival .42s ease-out .12s both}
.login.login-ready .auth-box>form,.login.login-ready .auth-switch,.login.login-ready .auth-foot{animation:auth-content-arrival .48s ease-out .25s both}
@keyframes auth-content-arrival{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.login-intro{display:none}.login:not(.login-ready) .login-form{visibility:visible}.login.login-ready .auth-brand>div,.login.login-ready .auth-box>form,.login.login-ready .auth-switch,.login.login-ready .auth-foot{animation:none}}
@media(max-width:520px){.login{padding:18px 14px!important;align-items:start;padding-top:7vh!important}.auth-box{padding:27px 22px 21px}.auth-brand{gap:12px}.auth-brand img{width:175px}.auth-brand>div{padding-left:11px}.auth-brand small{width:90px}.login-form h1{font-size:23px}}

/* Smart assignee recommendations */
.recommendation-slot{grid-column:1/-1;margin:-2px 0 16px}.recommendation-slot.loading{opacity:.55}.smart-assign{padding:14px;background:#f7f4ef;border:1px solid #e5ded3;border-left:4px solid #f8961d;border-radius:5px}.smart-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.smart-head small,.smart-head b{display:block}.smart-head small{color:#d96f00;font-size:8px;letter-spacing:.15em}.smart-head b{margin-top:3px;font-size:13px}.smart-head>span{color:#888;font-size:9px}.smart-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.smart-person{display:grid;grid-template-columns:29px 1fr auto;align-items:center;gap:7px;min-width:0;padding:9px 8px;border:1px solid #ddd6cc;background:#fff;color:#111;text-align:left;border-radius:4px}.smart-person:hover,.smart-person.chosen{border-color:#f8961d;background:#fff8ef}.smart-person.best{box-shadow:inset 0 3px #f8961d}.smart-person .avatar{width:29px;height:29px;font-size:9px}.smart-person span{min-width:0}.smart-person span b,.smart-person span small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smart-person span b{font-size:10px}.smart-person span small{margin-top:3px;color:#777;font-size:7px}.smart-person>strong{color:#d96f00;font-size:17px}.smart-person>strong small{font-size:8px}.smart-empty{grid-column:1/-1;padding:12px;color:#777;text-align:center;font-size:11px}@media(max-width:700px){.smart-list{grid-template-columns:1fr}.smart-person span small{font-size:9px}}

/* Full-screen production newsroom */
.live-launch{color:#d96f00!important}.live-launch:before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#f8961d;box-shadow:0 0 0 4px rgba(248,150,29,.14);animation:livePulse 1.2s infinite}.live-shell>.sidebar{display:none}.live-shell>.main{height:auto;min-height:100vh;width:100%;background:#0b0b0b}.live-room{min-height:100vh;padding:22px 28px 34px;background:radial-gradient(circle at 50% 0,#211d17,#0b0b0b 42%);color:#fff}.live-header{display:flex;align-items:center;gap:25px;padding-bottom:20px;border-bottom:1px solid #333}.live-brand{display:flex;align-items:center;gap:20px}.live-brand img{width:220px}.live-brand span{padding-left:20px;border-left:1px solid #555;color:#f8961d;font-size:26px;font-weight:700;letter-spacing:.12em}.live-header>div:nth-child(2){margin-left:auto;text-align:right}.live-header small,.live-header b{display:block}.live-header small{color:#888;font-size:10px;text-transform:uppercase}.live-clock{margin-top:3px;font-size:25px;font-variant-numeric:tabular-nums}.live-exit{padding:10px 14px;border:1px solid #444;background:#171717;color:#ddd;border-radius:4px}.live-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.live-kpis article{padding:15px 18px;background:#202020;border-top:3px solid #666}.live-kpis article.hot{border-color:#f8961d;background:#2a2117}.live-kpis span,.live-kpis small,.live-kpis b{display:block}.live-kpis span{color:#aaa;font-size:9px;letter-spacing:.14em}.live-kpis b{font-size:37px;margin:8px 0 2px}.live-kpis small{color:#777;font-size:9px}.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px}.live-feed,.live-team{background:#171717;border:1px solid #2b2b2b}.live-section-title{display:flex;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #303030}.live-section-title b{font-size:11px;letter-spacing:.12em}.live-section-title span{color:#777;font-size:9px}.live-task{display:grid;grid-template-columns:105px minmax(0,1fr) 100px auto;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid #292929;cursor:pointer;transition:.18s}.live-task:hover{background:#222}.live-task.late{background:rgba(185,58,45,.09);box-shadow:inset 4px 0 #b93a2d}.live-task.soon{box-shadow:inset 4px 0 #f8961d}.live-task-status{display:flex;align-items:center;gap:7px;color:#aaa;font-size:9px;text-transform:uppercase}.live-task-status i{width:7px;height:7px;border-radius:50%;background:#f8961d}.live-task-main small,.live-task-main b,.live-task-main span{display:block}.live-task-main small{color:#777;font-size:8px}.live-task-main b{margin:4px 0;font-size:14px}.live-task-main span{color:#a69f94;font-size:9px;text-transform:uppercase}.live-task time{color:#ddd;font-size:10px;font-weight:700;text-align:right}.live-task.late time{color:#e36a5b}.live-claim{padding:7px 10px;border:1px solid #f8961d;background:transparent;color:#f8961d;border-radius:3px;font-size:9px;font-weight:700}.live-person{display:grid;grid-template-columns:35px 1fr 30px;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #292929}.live-person .avatar{width:35px;height:35px;font-size:10px}.live-person b,.live-person span{display:block}.live-person b{font-size:11px}.live-person span{margin-top:3px;color:#f8961d;font-size:8px;letter-spacing:.1em}.live-person.free span{color:#63c089}.live-person strong{text-align:center;font-size:18px}.live-empty{padding:80px 20px;text-align:center;color:#777}.live-room .drawer-wrap{color:#111}@keyframes livePulse{50%{opacity:.45;transform:scale(.8)}}@media(max-width:900px){.live-room{padding:15px}.live-kpis{grid-template-columns:repeat(2,1fr)}.live-layout{grid-template-columns:1fr}.live-brand img{width:150px}.live-brand span{font-size:18px}.live-task{grid-template-columns:80px 1fr auto}.live-task time{display:none}}@media(max-width:560px){.live-header{flex-wrap:wrap}.live-header>div:nth-child(2){display:none}.live-exit{margin-left:auto}.live-kpis{grid-template-columns:1fr 1fr}.live-task{grid-template-columns:1fr}.live-task-status{display:none}.live-claim{width:100%}}

/* Compact, consistent typography for the workspace switcher row. */
@media(min-width:721px){
  .top{gap:10px}
  .top .top-view,.top #new-task{letter-spacing:0;word-spacing:-.08em;line-height:1.15;white-space:nowrap}
  .top .top-view{padding-inline:12px}
}

.yandex-preview{flex:none;width:36px;height:36px;border:0;border-radius:8px;background:#f8961d;color:#111;font-weight:700}.yandex-preview:disabled{opacity:.45}.yandex-preview-slot:empty{display:none}.preview-loading,.preview-error{margin:10px 0;padding:11px;border-radius:8px;background:#f3f3f3;color:#666;font-size:11px}.preview-error{color:#a43d32;background:#fff0ee}.media-preview{margin:10px 0;padding:9px;background:#111;border-radius:10px}.media-preview video,.media-preview img{display:block;width:100%;max-height:55vh;border-radius:6px;background:#000;object-fit:contain}.media-preview audio{display:block;width:100%}.media-preview small{display:block;margin-top:7px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Unified typography rhythm */
body,button,input,select,textarea{line-height:1.45}
h1,h2,h3,.task-title,.card-title{line-height:1.2}
p,.description,.bubble p,.notice,.settings-card>p,.password-intro{line-height:1.58}
small,.field>span,.label,.tag,.status,.role-chip,.org-tag,.card-foot,.profile-menu dt,.profile-menu dd{line-height:1.35}
.top h1{line-height:1.14}.top p{line-height:1.42}.nav button,.primary,.secondary,.auth-switch{line-height:1.2}
.member,.manage-row,.notification,.profile-menu dl>div{line-height:1.4}

/* Phone and tablet layout: navigation, boards, dialogs and data views */
@media(max-width:900px){
  html,body,#app{width:100%;height:100%;min-height:100%;overflow:hidden}
  body{font-size:14px;line-height:1.5}
  .shell{height:100dvh;min-height:100dvh;overflow:hidden}
  .sidebar{position:fixed;left:0;right:0;top:0;z-index:80;width:100%;height:58px;flex:0 0 58px;padding:0 12px;display:flex;align-items:center;background:#050505}
  .brand{width:132px;height:58px;padding:0;border:0}.brand img{width:122px;max-height:34px}.brand:after{display:none}
  .sidebar>.nav-label,.sidebar>.ed-link{display:none}
  .nav{position:fixed;left:0;right:0;bottom:0;z-index:100;height:64px;padding-bottom:env(safe-area-inset-bottom);display:flex;align-items:stretch;background:#090909;border-top:1px solid #292929;box-shadow:0 -8px 24px rgba(0,0,0,.22)}
  .nav button{flex:1;min-width:0;min-height:64px;height:64px;padding:7px 3px 6px!important;display:flex;flex-direction:column;justify-content:center;gap:3px!important;font-size:9px!important;line-height:1.1;color:#aaa}
  .nav button span{display:block!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-icon,.nav-icon svg{width:20px!important;height:20px!important}
  .nav button.active{box-shadow:inset 0 3px #f8961d;background:#151515;color:#fff}
  .profile{display:flex;width:42px;min-width:42px;height:42px;margin-left:auto;padding:4px;background:transparent;border:0}.profile>.avatar{width:34px;height:34px}.profile>div,.profile>.logout{display:none!important}
  .org-controls{margin-left:auto;margin-right:6px}.org-controls .org-switch{width:112px;height:34px;padding-left:9px;font-size:11px}.org-create-mini{width:34px;height:34px}
  .main{height:calc(100dvh - 58px);min-height:0;margin-top:58px;padding-bottom:64px;overflow:hidden}
  .top{position:relative;top:0!important;z-index:12;min-height:0;padding:12px;background:#fff;display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:7px}
  .top>div:first-child{width:100%;min-width:0}.top h1{font-size:20px;line-height:1.12;overflow-wrap:anywhere}.top p{margin-top:4px;font-size:11px;line-height:1.4}
  .top>div[style]{display:none}.top .search{display:none}
  .top .top-view{display:flex;align-items:center;justify-content:center;flex:0 0 calc((100% - 21px)/4);width:calc((100% - 21px)/4)!important;min-width:0;height:38px;padding:5px 3px!important;font-size:9px!important;line-height:1.12;white-space:normal;text-align:center}
  .top #new-task{flex:1 1 100%;height:38px;margin-top:1px}
  .unread-badge{flex:none;margin-left:3px}
  .board-tools{position:relative;z-index:2;padding:9px 12px 4px;gap:7px;overflow-x:auto;flex:none}.filters{flex:none;overflow-x:auto;max-width:none}.filters button{flex:none;padding:7px 10px;white-space:nowrap}.archive-toggle{flex:none;white-space:nowrap}
  .board{padding:9px 12px 14px;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-left:12px;-webkit-overflow-scrolling:touch}
  .column{width:calc(100vw - 24px);min-width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:100%;scroll-snap-align:start;border-radius:7px}
  .col-head{min-height:48px;padding:11px 12px}.col-head b{font-size:13px;line-height:1.25}.cards{padding:9px;overscroll-behavior:contain}.card{padding:12px;margin-bottom:9px}.card-title{font-size:14px;line-height:1.42;margin:10px 0}.card-foot{font-size:10px;line-height:1.35}
  .add-column{min-width:calc(100vw - 24px);width:calc(100vw - 24px);scroll-snap-align:start}
  .content{padding:12px 12px 78px;overflow:auto;-webkit-overflow-scrolling:touch}
  .settings-card{padding:15px}.section-head{gap:10px}.section-head h2{font-size:18px}.section-head p{font-size:11px;line-height:1.4}
  .manage-row{padding:12px 0;gap:9px}.manage-row .user-main{min-width:0}.user-main b{line-height:1.3}.user-main small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
  .row-actions{width:100%;margin:4px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.row-actions .secondary{width:100%;padding:8px 5px}
  .role-chip{min-width:0;margin-left:auto}.global-directory{overflow:hidden}
  .team{width:100%;border-radius:6px}.member{grid-template-columns:1fr;gap:7px;padding:13px}.member-name{min-width:0}.member>span{padding-left:46px;overflow-wrap:anywhere}
  .my-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-card{padding:12px}.summary-card b{font-size:23px}
  .overlay{align-items:flex-end;padding:0;background:rgba(0,0,0,.72)}.modal{width:100%;max-width:100%;max-height:calc(100dvh - 18px);border-radius:16px 16px 0 0}.modal-head{padding:14px 16px}.modal-head h2{font-size:17px;line-height:1.2}.modal-body{padding:15px}.grid2{grid-template-columns:1fr;gap:10px}.formats{overflow-x:auto;padding-bottom:3px}.formats button{flex:none}.actions{position:sticky;bottom:-15px;margin:16px -15px -15px;padding:11px 15px;background:#fff;border-top:1px solid #eee;z-index:2}.actions button{flex:1}
  .drawer{width:100vw;max-width:none}.drawer-body{padding:14px 14px 84px}.drawer .modal-head{padding:13px 14px}.task-title{font-size:20px;line-height:1.24}.meta{grid-template-columns:1fr;gap:7px}.description{font-size:14px;line-height:1.58}.comment-add{align-items:flex-end}.comment-add .primary{flex:none}.drawer-actions{position:absolute;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));overflow-x:auto;background:#fff}.drawer-actions button{flex:1 0 auto;white-space:nowrap}
  .profile-menu{position:fixed;left:10px;right:10px;top:auto;bottom:74px;width:auto;max-height:calc(100dvh - 94px);overflow:auto;padding:15px}.profile-menu:before{display:none}.profile-menu dl>div{grid-template-columns:92px 1fr}.profile-menu-actions{position:sticky;bottom:-15px;background:#fff}
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-kpis article{min-height:112px;padding:12px}.dashboard-kpis span{font-size:10px;line-height:1.35}.dashboard-kpis b{font-size:32px}.dashboard-panel{min-height:260px;padding:14px}.donut-wrap{height:auto;min-height:220px;flex-direction:column;gap:17px}.chart-legend{width:100%}.vertical-chart{overflow-x:auto}.vertical-item{min-width:54px}.stats-dashboard{padding:12px 12px 80px}
  .org-page>header{height:62px;padding:0 14px}.org-page>header img{width:155px}.org-page>main{padding:34px 14px 90px}.org-page h1{font-size:27px;line-height:1.14}.org-page>main>p{line-height:1.55}.org-page form{display:block;padding:15px}.org-page form .primary{width:100%;margin-top:10px}
  .pending-card{padding:28px 22px}.pending-card img{width:190px;margin-bottom:28px}.pending-card h1{font-size:25px;line-height:1.16}.pending-card p{font-size:14px}
  .login{padding:18px 12px!important;place-items:center!important}.login-form{width:100%;max-width:430px}.auth-box{padding:25px 20px 20px}.auth-brand{gap:10px;padding-bottom:20px;margin-bottom:22px}.auth-brand img{width:min(175px,55vw)}.auth-brand small{width:auto;font-size:6px;line-height:1.45}.login-intro img{width:min(430px,82vw)}
  #toast{left:12px;right:12px;bottom:76px}.toast{width:100%;margin-top:6px;line-height:1.4}
}

@media(max-width:390px){
  .brand{width:112px}.brand img{width:104px}.org-controls .org-switch{width:98px}.org-create-mini{display:none}
  .top{padding:10px}.top h1{font-size:18px}.top .top-view{font-size:9px!important;padding:5px 3px!important}
  .dashboard-kpis{grid-template-columns:1fr}.dashboard-kpis article{min-height:96px}.dashboard-kpis b{font-size:29px}
  .auth-brand>div{display:none}.auth-brand img{width:190px}.auth-brand{justify-content:center}.login-form h1{font-size:22px}
  .live-room{padding:10px}.live-brand img{width:125px}.live-brand span{font-size:14px;padding-left:10px}.live-kpis article{padding:11px}.live-kpis b{font-size:28px}
}

/* Эфирная: красный зарезервирован для задач без исполнителя. */
.live-task{--live-status:#777;box-shadow:inset 3px 0 var(--live-status)}
.live-task.status-new{--live-status:#8d867b}
.live-task.status-work{--live-status:#5680a6}
.live-task.status-check{--live-status:#7c72a5}
.live-task.status-revision{--live-status:#a98550}
.live-task .live-task-status i{background:var(--live-status);box-shadow:0 0 0 3px color-mix(in srgb,var(--live-status) 18%,transparent)}
.live-task.unclaimed{--live-status:#df554a;background:rgba(223,85,74,.09)}
.live-task.unclaimed:hover{background:rgba(223,85,74,.14)}
.live-task.unclaimed .live-task-status{color:#ef8a82}
.live-task.unclaimed .live-claim{border-color:#df554a;background:rgba(223,85,74,.08);color:#ef8a82}
.live-task.late:not(.unclaimed){background:rgba(169,133,80,.07);box-shadow:inset 3px 0 var(--live-status)}
.live-task.soon:not(.unclaimed){box-shadow:inset 3px 0 var(--live-status)}
.live-task.late:not(.unclaimed) time{color:#c49a60}
@media(max-width:560px){.live-task .live-task-status{display:flex}}

/* Telegram notification center */
.telegram-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.telegram-settings .settings-card{margin:0}.telegram-connect,.telegram-groups{grid-column:1/-1}.telegram-connect .section-head small{color:#d96f00;font-size:9px;letter-spacing:.16em}.telegram-state{flex:none;padding:7px 10px;border:1px solid #cbc5bc;border-radius:3px;color:#777;font-size:8px;font-weight:700;letter-spacing:.11em}.telegram-state.linked{border-color:#f8961d;background:#fff7eb;color:#c76500}.telegram-username{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:18px 0 8px}.telegram-username .field{margin:0}.telegram-username .secondary{height:44px}.telegram-help{margin:0 0 14px;color:#777;font-size:10px}.telegram-channels{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid #ece7df}.telegram-events{display:grid;gap:7px;margin:13px 0 16px}.telegram-events label{display:flex;align-items:center;gap:9px;padding:9px 10px;background:#f7f5f1;border-radius:4px;font-size:11px}.telegram-events input,.telegram-channels input{accent-color:#f8961d}.telegram-chat-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #ece7df}.telegram-chat-list span{color:#777;font-size:10px}.telegram-command{max-width:520px}.telegram-command p{line-height:1.55}.telegram-command code{display:block;margin:15px 0;padding:14px;background:#171512;color:#f8a438;border-left:3px solid #f8961d;overflow-wrap:anywhere;user-select:all}.field>small{display:block;margin-top:5px;color:#827b72;font-size:8px;line-height:1.4}
.quick-status-select{position:relative;z-index:3;max-width:112px;padding:4px 22px 4px 7px;border:1px solid currentColor;border-radius:3px;background-color:#fff;font:inherit;font-size:8px;font-weight:700;text-transform:uppercase;cursor:pointer}.quick-status-select.detail-status{max-width:150px;padding:7px 28px 7px 10px;font-size:9px}.quick-status-select:disabled{opacity:.55;cursor:wait}
.task-links-input{min-height:92px;resize:vertical}.task-files{display:grid;gap:14px;margin:18px 0}.task-files-block{padding:14px;border:1px solid #e4ded5;border-left:3px solid #f8961d;background:#faf9f7;border-radius:4px}.task-files-block.result-block{background:#fff8ee}.task-files-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.task-files-title b{font-size:10px;letter-spacing:.12em}.task-files-title span{min-width:24px;padding:4px 7px;background:#171512;color:#f8961d;text-align:center;border-radius:12px;font-size:9px}.task-file{display:flex;align-items:center;gap:8px;margin-top:7px}.task-file>a{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:11px;background:#fff;border:1px solid #e5e0d8;border-radius:6px;color:#171512;text-decoration:none}.task-file>a:hover{border-color:#f8961d}.task-file i{display:grid;place-items:center;width:30px;height:30px;flex:none;background:#f8961d;color:#111;border-radius:50%;font-style:normal}.task-file span{min-width:0}.task-file b,.task-file small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-file b{font-size:12px}.task-file small{margin-top:2px;color:#777;font-size:10px}.link-delete{flex:none;width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:#8f887f;font-size:18px}.link-delete:hover{background:#f0ece6;color:#111}.task-file-empty{padding:8px 0;color:#999;font-size:11px}.task-link-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e8e2d9}.task-link-add .input{min-width:0;height:42px;padding:10px 12px;font-size:13px}.task-link-add input[name="label"]{grid-column:1/-1}.task-link-add button{min-width:155px;height:42px;padding:9px 14px;white-space:nowrap;font-size:13px}
@media(max-width:720px){.telegram-settings{grid-template-columns:1fr}.telegram-connect,.telegram-groups{grid-column:auto}.telegram-username{grid-template-columns:1fr}.telegram-username .secondary{width:100%}.telegram-connect .section-head,.telegram-groups .section-head{align-items:flex-start;flex-wrap:wrap}.telegram-state{order:-1}.telegram-channels{display:grid;gap:8px}.telegram-chat-list>div{display:grid}.telegram-command{border-radius:16px 16px 0 0}.quick-status-select{font-size:9px;max-width:125px}.task-files-block{padding:12px}.task-link-add{grid-template-columns:1fr}.task-link-add input[name="label"]{grid-column:auto}.task-link-add button{width:100%;min-width:0}.task-file>a{padding:10px}.link-delete{width:38px;height:38px}}

/* Global direct messenger */
.messenger-badge{position:absolute;right:5px;top:12px;min-width:17px;height:17px;padding:0 5px;display:grid;place-items:center;border-radius:9px;background:#f8961d;color:#111;font-size:8px;font-style:normal}.nav button{position:relative}.messenger{display:grid;grid-template-columns:330px minmax(0,1fr);flex:1;min-height:0;margin:18px 30px 28px;background:#fff;border:1px solid #e2ded8;border-radius:8px;overflow:hidden;box-shadow:0 5px 22px rgba(0,0,0,.07)}.messenger-sidebar{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e6e1da;background:#faf9f7}.messenger-search{padding:14px}.messenger-search .input{height:42px;background:#fff}.messenger-section-label{padding:4px 15px 10px;color:#8b8379;font-size:8px;font-weight:700;letter-spacing:.14em}.messenger-people{overflow:auto;flex:1}.messenger-person{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 14px;border:0;border-top:1px solid #eeeae4;background:transparent;text-align:left;color:#171512}.messenger-person:hover,.messenger-person.active{background:#fff3e2}.messenger-person.active{box-shadow:inset 3px 0 #f8961d}.messenger-person .avatar{width:40px;height:40px;border-radius:50%;background:#f8961d}.messenger-person span{min-width:0}.messenger-person b,.messenger-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger-person b{font-size:12px}.messenger-person small{margin-top:4px;color:#8a837a;font-size:9px}.messenger-person strong{min-width:20px;padding:4px 6px;border-radius:12px;background:#f8961d;text-align:center;font-size:9px}.contact-mark{color:#f8961d;font-size:12px;font-style:normal}.messenger-empty{padding:35px 15px;text-align:center;color:#888;font-size:11px}.messenger-chat{min-width:0;display:flex;flex-direction:column;background:#f5f3ef}.messenger-chat-head{height:70px;flex:none;display:flex;align-items:center;gap:10px;padding:12px 18px;background:#fff;border-bottom:1px solid #e7e2db}.messenger-chat-head .avatar{width:40px;height:40px;border-radius:50%;background:#f8961d}.messenger-chat-head>div{min-width:0}.messenger-chat-head b,.messenger-chat-head small{display:block}.messenger-chat-head b{font-size:13px}.messenger-chat-head small{margin-top:3px;color:#817a71;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-toggle{margin-left:auto;padding:8px 10px;border:1px solid #ddd6cc;border-radius:6px;background:#fff;color:#625c54;font-size:10px}.contact-toggle.saved{border-color:#f8961d;color:#c86700;background:#fff7eb}.messenger-back{display:none;border:0;background:transparent;font-size:20px}.messenger-thread{flex:1;min-height:0;overflow:auto;padding:20px 22px;display:flex;flex-direction:column;gap:8px}.direct-message{max-width:min(72%,620px);align-self:flex-start}.direct-message>div{padding:10px 12px;border:1px solid #e0dbd3;border-radius:4px 12px 12px;background:#fff;color:#222;font-size:12px;line-height:1.48;overflow-wrap:anywhere}.direct-message time{display:block;margin:4px 5px;color:#999;font-size:8px}.direct-message.mine{align-self:flex-end}.direct-message.mine>div{border-color:#f4a33f;background:#f8961d;border-radius:12px 4px 12px}.direct-message.mine time{text-align:right}.messenger-compose{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:13px 16px;background:#fff;border-top:1px solid #e6e1da}.messenger-compose textarea{min-height:44px;max-height:120px;resize:vertical}.messenger-compose button{min-width:105px}.messenger-placeholder,.messenger-welcome{margin:auto;max-width:390px;padding:30px;text-align:center;color:#8a837a}.messenger-placeholder i,.messenger-placeholder b,.messenger-placeholder span,.messenger-welcome b,.messenger-welcome span{display:block}.messenger-placeholder i{font-size:34px;font-style:normal}.messenger-placeholder b,.messenger-welcome b{margin:12px 0 7px;color:#28231e}.messenger-placeholder span,.messenger-welcome span{font-size:11px;line-height:1.55}
@media(max-width:720px){.messenger-badge{right:calc(50% - 18px);top:5px}.messenger{display:block;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}.messenger-sidebar,.messenger-chat{height:100%}.messenger.has-peer .messenger-sidebar{display:none}.messenger:not(.has-peer) .messenger-chat{display:none}.messenger-back{display:block}.messenger-chat-head{height:61px;padding:9px 10px}.messenger-chat-head small{max-width:46vw}.contact-toggle{padding:7px;font-size:9px}.messenger-thread{padding:13px 11px}.direct-message{max-width:86%}.direct-message>div{font-size:13px}.messenger-compose{padding:9px;grid-template-columns:minmax(0,1fr) auto}.messenger-compose button{min-width:0;padding:9px 10px;font-size:0}.messenger-compose button:after{content:'➤';font-size:17px}.messenger-search{padding:10px}.messenger-person{padding:11px 12px}}
.thread-search{flex:none;width:calc(100% - 32px);height:38px;margin:9px 16px;background:#fff}.shortcut-modal{max-width:520px}.shortcut-list{display:grid;gap:4px}.shortcut-list>div{display:grid;grid-template-columns:145px 1fr;align-items:center;gap:14px;padding:10px 4px;border-bottom:1px solid #eee}.shortcut-list kbd{justify-self:start;padding:5px 8px;border:1px solid #d9d3ca;border-bottom-width:2px;border-radius:5px;background:#f6f4f0;color:#333;font:11px Sputnik,Arial}.shortcut-list span{font-size:12px;color:#565049}@media(max-width:720px){.thread-search{width:calc(100% - 20px);margin:7px 10px}.shortcut-list>div{grid-template-columns:120px 1fr}.shortcut-list kbd{font-size:9px}}

/* Personal profiles and avatars */
.person-avatar-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar[data-profile],.person-name-link,.person-meta-link{cursor:pointer}.person-name-link{min-width:0;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.person-name-link:hover{color:#d96f00;text-decoration-color:#f8961d}.person-name-line{display:flex!important;align-items:center;gap:6px;min-width:0;max-width:100%}.person-name-line>.person-name-link{min-width:0;overflow:hidden;text-overflow:ellipsis}.person-favorite-mini{display:grid;place-items:center;flex:none;width:23px;height:23px;padding:0;border:1px solid #ded7cd;border-radius:50%;background:#fff;color:#d96f00;line-height:1;cursor:pointer}.person-favorite-mini:hover,.person-favorite-mini.saved{border-color:#f8961d;background:#fff7eb}.favorite-icon{display:block;width:13px;height:13px}.favorite-profile .favorite-icon{width:22px;height:22px;margin:auto}.contact-toggle{display:flex;align-items:center;gap:6px;white-space:nowrap}.contact-toggle .favorite-icon{width:15px;height:15px}.comment,.activity-item,.smart-person,.member,.manage-row,.live-person{position:relative}.messenger-person .person-name-line{padding-right:2px}.smart-person .person-name-line{padding-right:0}.card-foot .avatar{overflow:hidden}.card-person-favorite{margin-left:0}.person-meta-link{position:relative;padding-right:36px!important}.person-meta-link>.person-favorite-mini{position:absolute;right:8px;top:50%;transform:translateY(-50%)}.person-meta-link:hover{outline:1px solid #f8961d}.comment-count{display:inline-flex;align-items:center;gap:3px}.comment-count svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.25}.message-placeholder-icon svg{width:38px;height:38px;fill:none;stroke:#f8961d;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.person-profile-modal{width:min(760px,calc(100vw - 24px));max-height:min(880px,calc(100dvh - 24px));overflow:auto}.person-profile-body{background:#f7f5f1}.person-hero{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:20px;padding:25px;background:#171512;color:#fff;border-bottom:4px solid #f8961d}.profile-avatar-large{display:grid;place-items:center;width:112px;height:112px;overflow:hidden;border:3px solid #f8961d;border-radius:50%;background:#f8961d;color:#111;font-size:32px;font-weight:700}.person-hero small{color:#f6a743;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.person-hero h2{margin:7px 0 3px;font-size:28px;line-height:1.05}.person-hero .org-tags{margin-top:12px}.favorite-profile{align-self:start;width:44px;height:44px;border:1px solid #5b5043;border-radius:50%;background:#25211c;color:#f8961d;font-size:25px;cursor:pointer}.favorite-profile.saved{background:#f8961d;color:#111;border-color:#f8961d}.profile-contacts{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:20px}.profile-contact{position:relative;min-height:84px;padding:15px;border:1px solid #ddd7ce;border-left:3px solid #f8961d;border-radius:5px;background:#fff;color:#171512;text-decoration:none}.profile-contact:hover{border-color:#f8961d}.profile-contact.empty{pointer-events:none;opacity:.55}.profile-contact span,.profile-contact b{display:block}.profile-contact span{margin-bottom:8px;color:#847b70;font-size:9px;text-transform:uppercase;letter-spacing:.1em}.profile-contact b{font-size:13px;overflow-wrap:anywhere}.telegram-contact{grid-column:1/-1;padding-left:58px}.telegram-icon{width:25px;height:25px;fill:#229ed9}.telegram-contact>.telegram-icon{position:absolute;left:17px;top:27px;width:28px;height:28px}.profile-edit-form{padding:20px;background:#fff}.avatar-settings{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;margin-bottom:20px;padding:15px;border:1px solid #e2dcd3;border-left:4px solid #f8961d;background:#faf8f4}.avatar-settings b{font-size:13px}.avatar-settings p{max-width:440px;margin:5px 0 0;color:#756e65;font-size:9px;line-height:1.45}.avatar-upload{display:inline-flex;align-items:center;justify-content:center;min-height:40px;cursor:pointer}.avatar-upload.loading{pointer-events:none;opacity:.55}.input-with-icon{position:relative}.input-with-icon .telegram-icon{position:absolute;z-index:2;left:12px;top:50%;width:20px;height:20px;transform:translateY(-50%)}.input-with-icon .input{padding-left:42px}.profile-menu-actions .profile-account{flex-basis:100%;background:#fff4e5;color:#9b5100;border-color:#f6c27f}
.notification-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:#fff3e2;color:#d96f00}.notification-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.avatar-crop-overlay{z-index:160;background:rgba(0,0,0,.82)}.avatar-crop-modal{width:min(520px,calc(100vw - 24px));overflow:hidden}.avatar-crop-modal .modal-head>div{min-width:0}.avatar-crop-modal .modal-head p{margin:4px 0 0;color:#999;font-size:10px}.avatar-crop-body{padding:22px;background:#f7f5f1}.avatar-crop-stage{position:relative;width:min(360px,100%);aspect-ratio:1;margin:0 auto;overflow:hidden;background:#111;touch-action:none;cursor:grab;user-select:none}.avatar-crop-stage:active{cursor:grabbing}.avatar-crop-stage canvas{display:block;width:100%;height:100%}.avatar-crop-mask{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 80px rgba(0,0,0,.68),inset 0 0 0 3px #f8961d;pointer-events:none}.avatar-zoom{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;margin:18px auto 0;max-width:360px}.avatar-zoom span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#756e65}.avatar-zoom input{width:100%;accent-color:#f8961d}.avatar-crop-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.avatar-crop-actions button{min-width:145px}
@media(max-width:1350px) and (min-width:721px){.sidebar{padding-left:18px;padding-right:18px}.brand{width:205px}.brand img{width:180px}.nav button{padding-left:12px;padding-right:12px;font-size:12px}.org-controls .org-switch{width:105px}.top>div:first-child{max-width:245px}.top h1{font-size:22px}.top{gap:10px}.top .search{width:210px}.top .top-view{padding-left:11px;padding-right:11px;font-size:12px}}
@media(max-width:1500px) and (min-width:721px){.profile{width:56px;min-width:56px;padding:8px}.profile>div{display:none}.profile .logout{display:none}.sidebar{padding-right:20px}}
@media(max-width:720px){.person-profile-modal{width:100%;max-height:100dvh;border-radius:0}.person-hero{grid-template-columns:78px minmax(0,1fr) auto;gap:12px;padding:18px 14px}.profile-avatar-large{width:78px;height:78px;font-size:23px}.person-hero h2{font-size:21px;overflow-wrap:anywhere}.favorite-profile{width:38px;height:38px}.profile-contacts{grid-template-columns:1fr;padding:12px}.telegram-contact{grid-column:auto}.profile-edit-form{padding:13px}.avatar-settings{grid-template-columns:1fr}.avatar-settings .primary,.avatar-settings .secondary{width:100%}.person-favorite-mini{width:24px;height:24px}.person-name-line{gap:5px}.member .person-name-line{max-width:calc(100vw - 100px)}.messenger-person .person-name-line{max-width:100%}.person-meta-link{padding-right:42px!important}}

.telegram-username-field{display:flex;align-items:center;overflow:hidden;border:1px solid #ddd;border-radius:8px;background:#fff}.telegram-username-field:focus-within{border-color:#f8961d;box-shadow:0 0 0 3px rgba(248,150,29,.12)}.telegram-username-field>span{flex:none;padding:0 0 0 13px;color:#171512;font-weight:800}.telegram-username-field .input{border:0!important;box-shadow:none!important;padding-left:4px}.profile-message{grid-column:1/-1;min-height:42px}.message-receipt{display:inline-block;margin-left:4px;font-size:11px;font-weight:800;letter-spacing:-3px}.message-receipt.delivered{color:#8e8e8e;letter-spacing:0}.message-receipt.read{color:#d96f00}.task-files-title b small{display:block;max-width:390px;margin-top:5px;color:#756d63;font-size:12px;font-weight:700;letter-spacing:0;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-history{margin:17px 0;border:1px solid #e4ded5;border-radius:7px;background:#faf9f7}.task-history>summary{padding:12px 14px;color:#5e574f;font-size:11px;font-weight:800;cursor:pointer;list-style:none}.task-history>summary:after{content:'+';float:right;color:#d96f00;font-size:17px;line-height:10px}.task-history[open]>summary:after{content:'−'}.task-history>div{padding:0 13px 10px}.drawer-actions{align-items:center;padding:9px 14px}.drawer-actions button,.drawer-actions summary{min-height:36px;padding:8px 12px;font-size:11px}.drawer-actions .primary{flex:0 1 auto}.deadline-launcher{width:100%;text-align:left;cursor:pointer}.deadline-layer{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:14px;background:rgba(5,5,5,.55);backdrop-filter:blur(4px)}.deadline-calendar{width:min(370px,calc(100vw - 28px));padding:15px;border-top:4px solid #f8961d;border-radius:10px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.35);color:#171512}.deadline-calendar header{display:grid;grid-template-columns:38px 1fr 38px 38px;align-items:center;gap:5px;margin-bottom:12px}.deadline-calendar header b{text-align:center;text-transform:capitalize}.deadline-calendar button{border:0;border-radius:7px;background:#f3f1ed;color:#171512;cursor:pointer}.deadline-calendar header button{height:34px;font-size:20px}.deadline-calendar .deadline-close{margin-left:4px;background:#171512;color:#fff;font-size:13px}.deadline-calendar>label{display:flex;align-items:center;justify-content:space-between;margin:8px 0 13px;padding:9px 11px;border-radius:7px;background:#f6f4f0;font-size:11px;font-weight:700}.deadline-calendar input[type=time]{border:1px solid #ddd;border-radius:6px;padding:6px;background:#fff;color:#111}.weekday,.deadline-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.weekday span{text-align:center;color:#8a8379;font-size:9px}.deadline-days{margin-top:5px}.deadline-days i,.deadline-days button{aspect-ratio:1}.deadline-days button:hover,.deadline-days button.selected{background:#f8961d;color:#111;font-weight:800}

/* Registration: aligned fields and explicit validation feedback. */
.login.registration-open .login-form{width:min(720px,100%)}
.login.registration-open .auth-box{padding:28px 34px 22px}
#register .grid2{gap:12px 18px}
#register .field{position:relative;margin-bottom:16px}
#register .field>span{display:flex;align-items:center;min-height:14px;white-space:nowrap}
#register .field>span em{margin-left:6px;color:#746e66;font:inherit;font-weight:600;text-transform:none;letter-spacing:0}
#register .field>small{display:block;min-height:14px;margin:6px 2px 0;color:#777168;font-size:9px;line-height:1.4}
#register .registration-passwords .field>small{min-height:13px}
#register .field-error{display:none;margin:6px 2px 0;color:#ff8f79;font-size:10px;font-style:normal;font-weight:700;line-height:1.35}
#register .field.invalid .field-error{display:block}
#register .field.invalid .input,#register .field.invalid .telegram-username-field{border-color:#df6049!important;box-shadow:0 0 0 3px rgba(223,96,73,.12)!important}
#register .field.valid .input,#register .field.valid .telegram-username-field{border-color:#5e594f!important}
#register select{width:100%;height:46px;padding:0 40px 0 14px;border:1px solid #36312b;border-radius:5px;background:#24211d;color:#fff}
#register .telegram-username-field{height:46px;border:1px solid #36312b;border-radius:5px;background:#24211d}
#register .telegram-username-field>span{display:grid;align-self:stretch;place-items:center;padding:0 2px 0 14px;background:transparent;color:#f3a13d;font-size:16px;font-weight:800}
#register .telegram-username-field .input{height:44px;min-width:0;padding-left:3px!important;background:transparent!important}
#register .register-submit{width:100%;margin-top:2px}
@media(max-width:620px){.login.registration-open{padding:12px!important;align-items:start!important}.login.registration-open .login-form{width:100%}.login.registration-open .auth-box{padding:22px 18px 18px}.login.registration-open .auth-brand{padding-bottom:18px;margin-bottom:20px}#register .grid2{grid-template-columns:1fr;gap:0}#register .field{margin-bottom:13px}#register .field>span{white-space:normal}.registration-organization{margin-top:1px}}

@media(max-width:720px){.profile-message{grid-column:auto}.deadline-layer{align-items:end;padding:0}.deadline-calendar{width:100%;border-radius:14px 14px 0 0;padding:17px 14px calc(17px + env(safe-area-inset-bottom))}.task-files-title b small{max-width:240px}.drawer-actions button{min-height:38px}.telegram-username-field .input{min-width:0}}
.deadline-layer{z-index:180}
@media(max-width:720px){.admin-grid>.settings-card:first-child .manage-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:8px}.admin-grid>.settings-card:first-child .manage-row>span{white-space:nowrap}.admin-grid>.settings-card:first-child .row-actions{grid-column:1/-1;width:100%;margin:2px 0 0;grid-template-columns:34px 34px minmax(0,1fr) minmax(0,1fr)}.admin-grid>.settings-card:first-child .row-actions .secondary{height:34px;padding:5px 7px}.team .member-name>div{min-width:0}.team .member-name .org-tags{margin-top:5px}.team .member>span{line-height:1.35}.messenger-section-label{padding-top:7px}.messenger-person{min-height:63px}.person-profile-overlay{z-index:120}.person-profile-modal .modal-head{position:sticky;top:0}}
@media(max-width:520px){.avatar-crop-overlay{align-items:flex-end}.avatar-crop-modal{width:100%;max-width:100%;border-radius:16px 16px 0 0}.avatar-crop-body{padding:15px}.avatar-crop-stage{width:min(82vw,340px)}.avatar-crop-actions{position:sticky;bottom:0}.avatar-crop-actions button{flex:1;min-width:0}}
/* Knowledge base */
.knowledge-page{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:22px;padding:22px;min-height:calc(100vh - 118px);background:#f3f3f1}
.knowledge-index,.knowledge-reader{background:#fff;border:1px solid #deddd9;border-radius:16px}
.knowledge-index{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.knowledge-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:16px;border-bottom:1px solid #e8e7e3}
.knowledge-tools .input{min-width:0}
.knowledge-categories{display:flex;gap:7px;padding:12px 16px;overflow-x:auto;border-bottom:1px solid #e8e7e3;scrollbar-width:thin}
.knowledge-categories button{flex:0 0 auto;border:1px solid #deddd9;background:#f5f4f1;border-radius:999px;padding:7px 12px;font:700 11px/1 var(--font);letter-spacing:.04em}
.knowledge-categories button.active{color:#111;background:#f49a2e;border-color:#f49a2e}
.knowledge-list{padding:8px;overflow:auto}
.knowledge-item{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:5px;padding:14px;border:0;border-radius:11px;background:transparent;text-align:left;color:#181715}
.knowledge-item:hover{background:#f5f4f1}
.knowledge-item.active{background:#171614;color:#fff}
.knowledge-item small,.knowledge-reader-head small{color:#ef942e;font:800 10px/1.2 var(--font);letter-spacing:.14em;text-transform:uppercase}
.knowledge-item b{font-size:14px;line-height:1.3}
.knowledge-item span{color:#7e7a73;font-size:12px;line-height:1.45}
.knowledge-item.active span{color:#bdb8af}
.knowledge-reader{padding:clamp(24px,4vw,58px);overflow:auto}
.knowledge-reader-head{display:flex;justify-content:space-between;gap:28px;padding-bottom:24px;border-bottom:1px solid #e6e4df}
.knowledge-reader-head h1{margin:10px 0 8px;font-size:clamp(28px,3vw,46px);line-height:1.02;letter-spacing:-.035em}
.knowledge-reader-head p{margin:0;color:#77726b;font-size:16px;line-height:1.55}
.knowledge-reader-head>div:last-child{display:flex;align-items:flex-start;gap:8px;flex:0 0 auto}
.knowledge-content{max-width:900px;padding:30px 0;color:#24221f;font-size:16px;line-height:1.72}
.knowledge-content h2{margin:32px 0 12px;font-size:25px;line-height:1.15}
.knowledge-content h3{margin:25px 0 10px;font-size:19px;line-height:1.25}
.knowledge-content p{margin:0 0 15px}.knowledge-content ul,.knowledge-content ol{padding-left:24px}.knowledge-content li{margin:7px 0}
.knowledge-content blockquote{margin:22px 0;padding:16px 20px;border-left:4px solid #f49a2e;background:#fff7ec;border-radius:0 10px 10px 0}
.knowledge-content a{color:#c96e08;text-decoration:underline}
.knowledge-reader>footer{padding-top:18px;border-top:1px solid #e6e4df;color:#918c84;font-size:11px}
.knowledge-empty,.knowledge-welcome{padding:30px;color:#8f8a83}.knowledge-welcome{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.wiki-editor-modal,.template-editor-modal{width:min(820px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}
.wiki-editor-tools{margin-top:7px;border:1px solid #d9d7d2;border-bottom:0;border-radius:10px 10px 0 0;background:#f5f4f1}
.wiki-editor-tools button{min-width:38px;height:36px;border:0;border-right:1px solid #ddd9d2;background:transparent}
.wiki-rich,.template-rich{min-height:270px;padding:18px;border:1px solid #d9d7d2;border-radius:0 0 10px 10px;background:#fff;font-size:15px;line-height:1.65;outline:none}
.wiki-rich:focus,.template-rich:focus{border-color:#f49a2e;box-shadow:0 0 0 2px rgba(244,154,46,.14)}

/* Private editorial templates */
.template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 22px 0;padding:20px 22px;border:1px solid #dddcd7;border-radius:14px;background:#fff}
.template-toolbar>div{display:flex;flex-direction:column;gap:5px}.template-toolbar b{font-size:15px}.template-toolbar span{color:#817c74;font-size:12px;line-height:1.45}
.template-board{display:flex;align-items:flex-start;gap:16px;padding:18px 22px 32px;overflow-x:auto;min-height:calc(100vh - 220px);background:#f3f3f1}
.template-column{flex:0 0 330px;padding:10px;border:1px solid #d5d3ce;border-top:4px solid var(--col);border-radius:14px;background:#dfdedb}
.template-column>header{display:flex;align-items:center;gap:9px;padding:7px 7px 13px}.template-column>header>b{font-size:14px}.template-column>header>span{margin-left:auto;padding:3px 8px;border-radius:999px;background:#c8c6c1;font:800 10px/1.2 var(--font)}
.template-column>div{display:flex;flex-direction:column;gap:10px}
.template-card{padding:16px;border:1px solid #cac8c3;border-radius:12px;background:#f0efed;box-shadow:0 3px 12px rgba(0,0,0,.05)}
.template-card>div{display:flex;align-items:center;justify-content:space-between}.template-card>div>span{color:#776f66;font:900 9px/1 var(--font);letter-spacing:.16em}.template-card small{padding:5px 8px;border-radius:6px;background:#d7d5d1;font-weight:800}
.template-card h3{margin:14px 0 7px;font-size:17px;line-height:1.22}.template-card p{min-height:34px;margin:0;color:#746f68;font-size:12px;line-height:1.45}
.template-card footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin-top:16px}.template-card footer button{min-height:36px;padding:8px 11px;font-size:11px}.template-remove{width:36px;border:1px solid #cac8c3;border-radius:8px;background:transparent;color:#77716a}
.template-empty{padding:30px 18px;border:1px dashed #bbb8b2;border-radius:10px;color:#77716a;text-align:center;font-size:12px;line-height:1.5}

/* Task author and assignee avatars */
.card-foot .task-author-avatar{margin-left:auto}.card-foot .task-author-avatar~.avatar{margin-left:-9px;border:2px solid #fff}.card-foot .task-author-avatar,.card-foot .task-author-avatar~.avatar{width:28px;height:28px;overflow:hidden}

@media(max-width:800px){
 .nav{overflow-x:auto;overscroll-behavior-x:contain}.nav button{flex:0 0 64px}
 .knowledge-page{display:block;padding:12px;min-height:0}.knowledge-index{max-height:none;margin-bottom:12px}.knowledge-list{display:flex;gap:7px;overflow-x:auto}.knowledge-item{flex:0 0 240px;border:1px solid #e1dfda}.knowledge-reader{padding:24px 18px}.knowledge-reader-head{display:block}.knowledge-reader-head>div:last-child{margin-top:16px}.knowledge-reader-head h1{font-size:30px}.knowledge-content{font-size:15px;line-height:1.65}
 .knowledge-tools{grid-template-columns:1fr}.knowledge-tools .primary{width:100%}.wiki-editor-modal,.template-editor-modal{width:100%;height:100dvh;max-height:none;border-radius:0}.wiki-editor-modal .grid2,.template-editor-modal .grid2{grid-template-columns:1fr}
 .template-toolbar{display:block;margin:12px;padding:16px}.template-toolbar .primary{width:100%;margin-top:14px}.template-board{padding:0 12px 100px;min-height:0}.template-column{flex-basis:min(88vw,330px)}
}

/* Desktop density: newsroom-scale workspace without oversized UI. */
@media(min-width:901px){
  .sidebar{height:68px;flex-basis:68px;padding:0 24px}
  .brand{width:238px;height:68px;gap:12px}.brand img{width:188px;max-height:42px}
  .org-controls{gap:6px}.org-controls .org-switch{width:142px;height:36px;padding:7px 30px 7px 11px;font-size:11px}.org-create-mini{height:36px;padding:0 10px;font-size:10px}
  .nav button{min-height:68px;padding:0 13px;gap:7px;font-size:12px;line-height:1.08}.nav-icon,.nav-icon svg{width:18px;height:18px}
  .profile{min-width:48px;width:48px;padding:6px}.profile>.avatar{width:34px;height:34px}
  .main{min-height:calc(100vh - 68px)}
  .top{top:68px;min-height:68px;padding:12px 24px;gap:8px}.top>div:first-child{min-width:280px}.top h1{font-size:21px}.top p{margin-top:2px;font-size:10px}
  .top .search{width:220px;height:36px;padding:8px 12px;font-size:12px}.top .secondary,.top .primary{min-height:36px;padding:8px 12px;font-size:12px}
  .board-tools{padding:11px 24px 2px}.filters{padding:2px}.filters button{padding:6px 10px;font-size:11px}.archive-toggle{min-height:34px;padding:7px 12px;font-size:11px}
  .board{gap:11px;padding:11px 24px 22px;min-height:calc(100vh - 158px)}
  .column{width:260px;min-width:260px}.col-head{min-height:43px;padding:10px 11px;border-top-width:3px}.col-head b{font-size:12px}.icon-btn{width:24px;height:24px}.cards{padding:8px}
  .card{margin-bottom:8px;padding:10px}.card-title{margin:8px 0 9px;font-size:12px;line-height:1.32}.card-assignee-label{margin-bottom:8px}.card-assignee-label>span{margin-bottom:3px;font-size:8px}.card-assignee{height:31px;padding-top:5px;padding-bottom:5px;font-size:10px}.card-foot{padding-top:7px;font-size:9px}.tag{font-size:8px}.quick-status-select{max-width:104px;font-size:7px}.add-card{padding:7px;font-size:11px}.add-column{width:200px;min-width:200px}
  .card-foot .task-author-avatar,.card-foot .task-author-avatar~.avatar{width:25px;height:25px}.person-favorite-mini{width:21px;height:21px}.favorite-icon{width:11px;height:11px}
  .stats-dashboard{padding:16px 24px 28px}.dashboard-kpis{gap:10px;margin-bottom:10px}.dashboard-kpis article{min-height:116px;padding:13px 17px}.dashboard-kpis span{font-size:11px}.dashboard-kpis b{font-size:36px}.dashboard-grid{gap:10px}.dashboard-panel{min-height:270px;padding:15px 17px}.vertical-chart{height:190px}.donut-wrap{height:195px}.donut{width:145px;height:145px}.person-bars{gap:10px}.timeline-chart svg{height:155px}
  .knowledge-page{grid-template-columns:300px minmax(0,1fr);gap:14px;padding:16px;min-height:calc(100vh - 136px)}.knowledge-index,.knowledge-reader{border-radius:10px}.knowledge-tools{padding:11px;gap:7px}.knowledge-tools .input{height:37px;padding:8px 10px;font-size:12px}.knowledge-tools .primary{padding:8px 11px;font-size:11px}.knowledge-categories{padding:9px 11px}.knowledge-categories button{padding:6px 9px;font-size:9px}.knowledge-list{padding:6px}.knowledge-item{gap:3px;padding:10px}.knowledge-item small{font-size:8px}.knowledge-item b{font-size:12px}.knowledge-item span{font-size:10px;line-height:1.35}
  .knowledge-reader{padding:32px 40px}.knowledge-reader-head{gap:20px;padding-bottom:19px}.knowledge-reader-head h1{margin:7px 0 6px;font-size:34px}.knowledge-reader-head p{font-size:14px}.knowledge-reader-head .secondary{padding:8px 11px;font-size:11px}.knowledge-content{padding:22px 0;font-size:14px;line-height:1.62}.knowledge-content h2{margin:24px 0 8px;font-size:21px}.knowledge-content h3{margin:19px 0 7px;font-size:16px}.knowledge-content p{margin-bottom:11px}
  .template-toolbar{margin:16px 18px 0;padding:14px 17px}.template-toolbar b{font-size:13px}.template-board{gap:12px;padding:13px 18px 25px;min-height:calc(100vh - 190px)}.template-column{flex-basis:280px;padding:8px}.template-card{padding:12px}.template-card h3{margin:10px 0 5px;font-size:14px}.template-card footer{margin-top:12px}
}

@media(min-width:901px) and (max-width:1320px){
  .brand{width:205px}.brand img{width:166px}.sidebar{padding-inline:18px}.nav button{padding-inline:10px;font-size:11px}.org-controls .org-switch{width:115px}.top>div:first-child{min-width:230px}.top .search{width:180px}
}

/* Fluid workspace header: keep the signed-in person visible at every width. */
@media(min-width:1501px){
  .profile{width:190px;min-width:190px;gap:9px;padding-inline:7px}
  .profile>div{display:block;min-width:0}.profile b{font-size:11px}.profile small{font-size:8px}
}
@media(min-width:1101px) and (max-width:1500px){
  .brand{width:190px}.brand img{width:158px}
  .org-controls .org-switch{width:108px}
  .nav button{width:48px;min-width:48px;padding-inline:0;justify-content:center}
  .nav button span{display:none}
  .profile{width:178px;min-width:178px;gap:8px;padding-inline:7px}
  .profile>div{display:block;min-width:0}.profile b{font-size:10px}.profile small{font-size:8px}
}
@media(min-width:901px) and (max-width:1100px){
  .sidebar{padding-inline:12px}.brand{width:164px}.brand img{width:144px}
  .org-controls .org-switch{width:102px}.org-create-mini{width:34px;padding:0;font-size:0}
  .org-create-mini::before{content:'+';font-size:16px}
  .nav button{width:42px;min-width:42px;padding-inline:0;justify-content:center}
  .nav button span{display:none}.nav-icon,.nav-icon svg{width:17px;height:17px}
  .profile{width:190px;min-width:190px;gap:7px;padding-inline:5px}
  .profile>div{display:block;min-width:0}.profile b{font-size:10px}.profile small{font-size:8px}
}
@media(max-width:900px){
  .profile{display:flex;width:180px;min-width:180px;height:42px;gap:7px;margin-left:auto;padding:4px}
  .profile>div{display:block!important;min-width:0}.profile b{font-size:9px;line-height:1.15}.profile small{display:none}
  .profile>.avatar{width:32px;height:32px}
}
@media(max-width:430px){
  .sidebar{padding-inline:8px}
  .brand{width:88px}.brand img{width:84px}
  .org-controls{margin-right:2px}.org-controls .org-switch{width:82px}
  .profile{width:142px;min-width:142px;gap:6px}.profile b{font-size:9px;white-space:normal;overflow:visible;text-overflow:clip}
}

@media(min-width:901px) and (max-width:1200px){
  .top .search{display:none}.top>div:first-child{min-width:190px}
  .top .secondary,.top .primary{padding-inline:9px;font-size:10px}
}

.task-template-picker{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(260px,1.2fr);align-items:center;gap:16px;margin-bottom:18px;padding:14px 16px;border:1px solid #e4ded5;border-left:4px solid #f8961d;border-radius:6px;background:#fff8ee}
.task-template-picker div{min-width:0}.task-template-picker small,.task-template-picker b,.task-template-picker span{display:block}.task-template-picker small{color:#d96f00;font-size:8px;font-weight:800;letter-spacing:.15em}.task-template-picker b{margin:3px 0 2px;font-size:13px}.task-template-picker span{color:#81796f;font-size:9px}.task-template-picker select{min-width:0;width:100%;height:42px;background:#fff}
@media(max-width:900px){.task-template-picker{grid-template-columns:1fr;gap:9px;padding:12px}.task-template-picker select{height:44px}}

/* Interaction polish found during the browser-led user audit. */
.profile-menu-head{position:relative;padding-right:38px}
.profile>.profile-menu{display:none!important}
.profile>.profile-menu.open{display:block!important}
.profile-menu-close{position:absolute;right:0;top:0;width:30px;height:30px;border:1px solid #e2ddd5;border-radius:50%;background:#fff;color:#6f675d;font-size:13px;cursor:pointer}
.profile-menu-close:hover{border-color:#f8961d;color:#111;background:#fff7eb}
.nav button[title]{position:relative}

@media(max-width:900px){
  .drawer-body{padding-bottom:190px}
  .drawer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}
  .drawer-actions button{width:100%;min-width:0;min-height:42px;padding:8px 6px;white-space:normal;font-size:11px;line-height:1.2}
  .drawer-actions button:last-child:nth-child(odd){grid-column:1/-1}
  .profile-menu-close{display:grid;place-items:center}
}

.brand-dialog-overlay{z-index:1000;background:rgba(5,5,5,.76);backdrop-filter:blur(5px)}
.brand-dialog{width:min(480px,calc(100vw - 24px));overflow:hidden;border-radius:10px;box-shadow:0 28px 90px rgba(0,0,0,.42)}
.brand-dialog .modal-head{align-items:flex-start;padding:17px 19px;border-bottom:3px solid #f8961d}.brand-dialog .modal-head small{display:block;margin-bottom:3px;color:#f8961d;font-size:8px;font-weight:800;letter-spacing:.18em}.brand-dialog .modal-head h2{font-size:20px}
.brand-dialog .modal-body{padding:20px}.brand-dialog-message{margin:0 0 17px;color:#666;font-size:13px;line-height:1.55}.brand-dialog .field{margin:0}.brand-dialog .input{height:46px;font-size:14px}.brand-dialog .actions{margin-top:20px}.brand-dialog .actions button{min-height:42px}.brand-dialog .danger-confirm{background:#b83a2f;color:#fff}.brand-dialog .danger-confirm:hover{background:#982e26}
@media(max-width:520px){.brand-dialog{border-radius:14px 14px 0 0}.brand-dialog-overlay{align-items:flex-end;padding:0}.brand-dialog .modal-body{padding:17px}.brand-dialog .actions{position:static;margin:18px 0 0;padding:0;border:0}}
.org-page form.org-create-launcher{align-items:center;justify-content:space-between}.org-create-launcher>div{display:flex;min-width:0;flex-direction:column;gap:4px}.org-create-launcher>div b{font-size:14px}.org-create-launcher>div span{color:#777;font-size:11px}.org-create-launcher .primary{flex:none}
@media(max-width:720px){.org-page form.org-create-launcher{display:flex;align-items:stretch;flex-direction:column}.org-create-launcher .primary{margin-top:8px}}

/* The signed-in person's full name is never sacrificed by compact header rules. */
.profile>.profile-full-name{display:block!important;min-width:0;flex:1;color:#fff;font-size:10px;font-weight:700;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip}
.profile>.profile-full-name+div:not(.profile-menu){display:none!important}
@media(max-width:430px){.profile>.profile-full-name{font-size:9px}}

/* Familiar account dropdown: compact identity card with one clear destination. */
.profile>.modern-profile-menu{top:calc(100% + 9px);right:0;width:286px;padding:8px;border:1px solid #e5e0d8;border-top:1px solid #e5e0d8;border-radius:12px;background:#fff;box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}
.profile>.modern-profile-menu:before{right:24px;top:-7px;border-width:0 7px 7px;border-style:solid;border-color:transparent transparent #fff}
.modern-profile-menu .profile-menu-head{gap:11px;padding:10px 10px 13px;border-bottom:1px solid #eee9e2}
.modern-profile-menu .profile-menu-head .avatar{width:42px;height:42px;overflow:hidden}
.modern-profile-menu .profile-menu-head>div{min-width:0}
.profile .modern-profile-menu .profile-menu-head>div,.profile .modern-profile-menu .profile-menu-actions{display:block}
.modern-profile-menu .profile-menu-head b{display:block;color:#181512;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modern-profile-menu .profile-menu-head small{display:block;margin:4px 0 0;color:#837b71;font-size:9px;letter-spacing:0;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modern-profile-menu .profile-menu-actions{display:block;padding:7px 0 0;border:0}
.modern-profile-menu .profile-menu-actions .profile-account{display:flex;width:100%;min-height:40px;align-items:center;justify-content:space-between;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#1b1814;font-size:11px;text-align:left}
.modern-profile-menu .profile-menu-actions .profile-account:hover{border:0;background:#fff2df;color:#b65d00}
.modern-profile-menu .profile-account i{font-size:22px;font-style:normal;font-weight:400;line-height:1}
.account-security{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px -20px -20px;padding:18px 20px;background:#f5f2ed;border-top:1px solid #e4ded5}
.account-security>div:first-child{min-width:0}.account-security small,.account-security b,.account-security p{display:block}.account-security small{color:#d96f00;font-size:8px;font-weight:800;letter-spacing:.14em}.account-security b{margin:4px 0;font-size:12px}.account-security p{max-width:390px;margin:0;color:#777;font-size:9px;line-height:1.45}
.account-security>div:last-child{display:flex;flex:none;gap:7px}.account-security button{min-height:38px;padding:8px 11px;border-radius:6px;font-size:10px;font-weight:700}.account-signout{border:1px solid #2b2722;background:#1b1814;color:#fff}.account-signout:hover{background:#000}
@media(max-width:720px){.profile>.modern-profile-menu{position:fixed;left:10px;right:10px;top:66px;bottom:auto;width:auto;max-height:none;border-radius:12px}.modern-profile-menu:before{display:none}.account-security{display:grid}.account-security>div:last-child{display:grid;grid-template-columns:1fr 1fr}.account-security button{width:100%}}

/* Personnel and editable workspace taxonomy */
.personnel-page{display:grid;gap:18px}.personnel-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(150px,1fr));gap:10px;padding:14px;background:#fff;border:1px solid #e5e0da;border-radius:8px;position:sticky;top:8px;z-index:4}.personnel-filters select{min-width:0}.personnel-directory{display:grid;gap:8px}.personnel-row{display:grid;grid-template-columns:minmax(240px,1.15fr) minmax(300px,2fr) 110px auto;align-items:center;gap:16px;padding:12px 14px;background:#fff;border:1px solid #e7e1da;border-radius:7px;transition:.18s ease;overflow:hidden}.personnel-row:hover{border-color:#ef9a38;box-shadow:0 7px 22px rgba(43,31,18,.06)}.personnel-person{display:flex;align-items:center;gap:11px;min-width:0;cursor:pointer}.personnel-person .avatar{width:38px;height:38px;flex:0 0 38px;overflow:hidden;isolation:isolate}.personnel-person .avatar img,.personnel-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;border-radius:inherit!important;position:static!important;transform:none!important}.personnel-person>div{min-width:0}.personnel-person b,.personnel-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.personnel-person small{color:#817a72;margin-top:3px}.personnel-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.personnel-tag,.muted-tag{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:750;letter-spacing:.02em;border:1px solid color-mix(in srgb,var(--tag-color) 50%,#fff);background:color-mix(in srgb,var(--tag-color) 13%,#fff);color:color-mix(in srgb,var(--tag-color) 72%,#201b16)}.tag-editorial{background:color-mix(in srgb,var(--tag-color) 8%,#fff);border-style:dashed}.muted-tag{--tag-color:#8c847b;color:#777;background:#f4f2ef}.access-tag{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.access-user{background:#f0eeeb;color:#665f58}.access-user{background:#fff0df;color:#a44b0e}.access-admin{background:#181512;color:#fff}.personnel-load{text-align:right}.personnel-load b,.personnel-load small{display:block}.personnel-load b{font-size:19px}.personnel-load small{font-size:10px;color:#817a72}.personnel-admin{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1240px}.personnel-admin .admin-wide{grid-column:1/-1}.taxonomy-list{display:grid;gap:7px}.taxonomy-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e8e2db;border-radius:6px}.taxonomy-row>i{width:8px;height:28px;border-radius:6px}.taxonomy-row b,.taxonomy-row small{display:block}.taxonomy-row b{font-size:13px}.taxonomy-row small{color:#817a72;margin-top:2px;font-size:9px;line-height:1.25}.taxonomy-row .secondary{padding:7px 10px;font-size:10px}.personnel-modal{width:min(680px,calc(100vw - 24px));max-height:min(820px,calc(100vh - 24px));overflow:auto}.personnel-modal .modal-head small{display:block;font-size:10px;letter-spacing:.13em;color:#f29a2e;margin-bottom:4px}.color-field input{width:100%;height:44px;border:1px solid #ddd5cd;border-radius:9px;padding:4px}.permission-set,.tag-choice{border:1px solid #ded7cf;border-radius:12px;padding:13px;display:grid;gap:8px}.permission-set legend,.tag-choice legend{font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;padding:0 5px}.permission-set label,.tag-choice label{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:8px}.permission-set label:hover,.tag-choice label:hover{background:#f8f5f1}.tag-choice label span{display:inline-flex;padding:4px 9px;border-radius:999px;background:color-mix(in srgb,var(--tag-color) 13%,#fff);border:1px solid color-mix(in srgb,var(--tag-color) 45%,#fff);font-weight:700}.member-editor{gap:15px}.access-explainer{padding:12px 14px;background:#f7f4f0;border-radius:10px}.access-explainer p{margin:5px 0 0;color:#706860;line-height:1.45}.split-actions{justify-content:space-between}.split-actions>div{display:flex;gap:8px}
@media(max-width:1100px){.personnel-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.personnel-filters #people-search{grid-column:1/-1}.personnel-row{grid-template-columns:minmax(220px,1fr) minmax(220px,1.5fr) auto}.personnel-row .member-settings{grid-column:1/-1;justify-self:end}.personnel-admin{grid-template-columns:1fr}.personnel-admin .admin-wide{grid-column:auto}}
@media(max-width:700px){.personnel-filters{position:static;grid-template-columns:1fr}.personnel-filters #people-search{grid-column:auto}.personnel-row{grid-template-columns:1fr auto;gap:10px}.personnel-tags{grid-column:1/-1}.personnel-load{grid-column:2;grid-row:1}.personnel-row .member-settings{grid-column:1/-1;width:100%;justify-content:center}.taxonomy-row{grid-template-columns:10px minmax(0,1fr) auto}.taxonomy-row .tag-delete{grid-column:2/-1}.split-actions{display:grid!important}.split-actions>div{display:grid;grid-template-columns:1fr 1fr}.split-actions .account-delete{width:100%}}

/* 2026 UX system: WCAG-aware contrast, predictable disclosure and calmer density. */
:root{--ux-orange:#f8961d;--ux-text:#1c1916;--ux-muted:#655f58;--ux-line:#ded9d2;--ux-focus:#0b67d1;--ux-danger:#a82f27;--ux-surface:#fff;--ux-canvas:#f4f3f1}
body{color:var(--ux-text);line-height:1.45;background:var(--ux-canvas)}
p{line-height:1.5}
button,input,select,textarea,[contenteditable="true"],summary{font:inherit}
button:not(.person-favorite-mini):not(.icon-btn):not(.close):not(.link-delete),select,input{min-height:36px}
:where(button,input,select,textarea,[contenteditable="true"],summary,a):focus-visible{outline:2px solid var(--ux-focus)!important;outline-offset:2px!important;box-shadow:none!important}
button:disabled{cursor:not-allowed;opacity:.58}
.top p,.section-head p,.personnel-person small,.personnel-load small,.task-file-empty,.telegram-help{color:var(--ux-muted)}

/* Navigation keeps labels whenever a desktop viewport has room. */
@media(min-width:1101px) and (max-width:1500px){
  .brand{width:178px}.brand img{width:150px}.org-controls .org-switch{width:96px}
  .nav{flex:1;min-width:0}.nav button{width:auto;min-width:68px;padding:0 9px;gap:5px}
  .nav button span{display:block;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
  .profile{width:160px;min-width:160px}
}
@media(min-width:1501px){.nav button{padding-inline:16px}}

/* Current destination is not repeated in the quick-action strip. */
.top-view{transition:border-color .16s ease,background .16s ease,color .16s ease}
.top-view:hover{border-color:#bdb6ad;background:#f8f6f2}

/* Team: search first, advanced filters on demand. */
.personnel-filters{grid-template-columns:minmax(260px,1fr) auto;padding:10px;position:static}
.personnel-filters>select{display:none}
.personnel-filters.filters-expanded{grid-template-columns:minmax(240px,1.4fr) repeat(4,minmax(135px,1fr)) auto}
.personnel-filters.filters-expanded>select{display:block}
.filter-toggle{min-width:105px;white-space:nowrap}

/* Management is split into focused destinations instead of one endless page. */
.personnel-admin{display:block;max-width:1280px}
.admin-section-tabs{position:sticky;top:0;z-index:8;display:flex;gap:4px;margin:0 0 12px;padding:6px;border:1px solid var(--ux-line);border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 5px 18px rgba(24,20,16,.06);overflow-x:auto;backdrop-filter:blur(8px)}
.admin-section-tabs button{min-width:max-content;padding:8px 13px;border:0;border-radius:6px;background:transparent;color:#5d5750;font-size:11px;font-weight:750;cursor:pointer}
.admin-section-tabs button.active{background:#171512;color:#fff}
.personnel-admin>.settings-card{margin:0}
.personnel-admin>[hidden]{display:none!important}

/* Task creation uses progressive disclosure. */
#task-form{max-width:100%}
.recommendation-toggle{width:100%;margin:-2px 0 11px;border-style:dashed;color:#5d5750}
.recommendation-slot.compact-collapsed{display:none}
.recommendation-slot.compact-collapsed.compact-open{display:block}
#task-form .manual-dimensions{display:none}
#task-form .manual-units{grid-template-columns:1fr}
#task-form .manual-units>.field:first-child{display:none}
#task-form .creation-status-hidden{display:none}
.task-template-picker{margin-bottom:12px;padding:11px 13px}
.task-template-picker small,.smart-head small{letter-spacing:.1em}
.formats button{min-height:40px}
.modal:has(#task-form){width:min(720px,calc(100vw - 28px))}
.modal:has(#task-form)>.modal-body{scrollbar-gutter:stable}

/* Secondary and destructive task actions live behind a conventional More menu. */
.task-more{position:relative;align-self:stretch;min-width:78px}
.task-more>summary{height:100%;min-height:42px;display:grid;place-items:center;padding:8px 13px;border:1px solid #d6d0c8;border-radius:7px;background:#fff;list-style:none;font-size:12px;font-weight:700;cursor:pointer}
.task-more>summary::-webkit-details-marker{display:none}
.task-more>summary:after{content:'···';margin-left:7px;letter-spacing:2px}
.task-more>div{position:absolute;right:0;bottom:calc(100% + 7px);z-index:20;width:210px;padding:6px;border:1px solid var(--ux-line);border-radius:9px;background:#fff;box-shadow:0 16px 40px rgba(0,0,0,.2)}
.task-more:not([open])>div{display:none}
.task-more>div button{width:100%;min-height:40px;border:0;background:#fff;text-align:left}
.task-more>div .delete-task{color:var(--ux-danger)}
.task-more>div button:hover{background:#f5f2ee}

/* Fix critical KPI contrast and reduce visual noise in lists. */
.my-summary .summary-card{background:#211e1a;color:#fff;border:1px solid #39342e}
.my-summary .summary-card b{color:#fff!important}
.my-summary .summary-card span{color:#d7d0c7}
.inbox-list{max-width:880px;margin-inline:auto}
.notification{border-color:#ded8d0!important}
.notification p{line-height:1.45}
.telegram-settings{max-width:920px;margin-inline:auto}
.messenger{grid-template-columns:minmax(250px,290px) minmax(0,1fr)}
.messenger-placeholder,.messenger-welcome{max-width:330px}
.template-empty{padding:22px 14px}

@media(max-width:1100px){
  .personnel-filters,.personnel-filters.filters-expanded{grid-template-columns:minmax(0,1fr) auto}
  .personnel-filters.filters-expanded>select{grid-column:1/-1}
}
@media(max-width:700px){
  button:not(.person-favorite-mini):not(.icon-btn):not(.close):not(.link-delete),select,input{min-height:42px}
  .personnel-filters,.personnel-filters.filters-expanded{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px}
  .personnel-filters.filters-expanded>select{grid-column:1/-1}
  .filter-toggle{min-width:88px;padding-inline:9px}
  .admin-section-tabs{margin:-2px 0 10px;border-radius:7px}
  .admin-section-tabs button{min-height:40px;padding-inline:11px}
  .modal:has(#task-form){width:100%;max-width:none}
  .task-more{min-width:0}
  .task-more>summary{width:100%}
  .task-more>div{position:fixed;left:10px;right:10px;bottom:calc(74px + env(safe-area-inset-bottom));width:auto}
}
@media(max-width:800px){
  .nav{overflow:hidden}
  .nav button{flex:1 1 0;min-width:0}
}
.org-controls-select-only{min-width:108px}.organization-management{border-top:3px solid #f8961d}.organization-manage-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.organization-manage-row{min-width:0;display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #e5dfd7;border-radius:6px;background:#faf9f7}.organization-manage-row.current{border-color:#f3a64e;background:#fff8ef}.organization-manage-row>div{min-width:0;flex:1}.organization-manage-row b,.organization-manage-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.organization-manage-row small{margin-top:4px;color:#837b72;font-size:9px}.organization-manage-row>span{padding:5px 7px;border-radius:4px;background:#181512;color:#fff;font-size:8px;font-weight:800;letter-spacing:.08em}.organization-manage-row .secondary{padding:7px 10px;font-size:10px}
@media(max-width:900px){.organization-manage-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.organization-management .section-head{align-items:flex-start}.organization-management .organization-create{flex:none}.organization-manage-list{grid-template-columns:1fr}}
.archive-empty{max-width:680px;margin:36px auto;padding:38px 24px;border:1px dashed #d7d0c7;border-radius:10px;background:#fff;text-align:center}.archive-empty b,.archive-empty span{display:block}.archive-empty b{font-size:18px}.archive-empty span{margin-top:7px;color:#706960;font-size:12px}
@media(max-width:700px){
  .top{padding:10px 10px 9px}.top h1{font-size:19px;line-height:1.12}.top p{font-size:10px;line-height:1.35;margin-top:4px}
  .top-actions{gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.top-actions::-webkit-scrollbar{display:none}.top-actions button{flex:0 0 auto;padding-inline:11px;font-size:10px}
  .profile{min-width:0}.profile>div{min-width:0}.profile>div b,.profile-full-name{max-width:116px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.approval-access small{display:block;margin-top:6px;color:#7d766e;font-size:10px;line-height:1.45}.membership-simple{grid-template-columns:auto 1fr!important}.membership-simple select{display:none!important}
.personnel-filters.personnel-filters-visible{display:grid;grid-template-columns:minmax(210px,1.4fr) repeat(4,minmax(145px,1fr));gap:8px;position:static}.personnel-filters.personnel-filters-visible>select{display:block;min-width:0}@media(max-width:1100px){.personnel-filters.personnel-filters-visible{grid-template-columns:repeat(2,minmax(0,1fr))}.personnel-filters.personnel-filters-visible #people-search{grid-column:1/-1}}@media(max-width:650px){.personnel-filters.personnel-filters-visible{grid-template-columns:1fr}.personnel-filters.personnel-filters-visible #people-search{grid-column:auto}}
