@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#222829;--muted:#7a8283;--line:#e4e8e6;--yellow:#feee59;--paper:#f5f6f3;--green:#527967}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:Manrope,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}button{border:1px solid var(--line);background:white;color:var(--ink);padding:10px 15px;border-radius:7px;font-weight:700}button:hover{border-color:#9fa7a3;background:#fafbf7}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b2a128;outline-offset:3px}a{color:inherit}.shell{display:flex;min-height:100vh}aside{width:236px;flex-shrink:0;background:var(--ink);color:#e0e5e1;position:fixed;height:100vh;padding:32px 18px;display:flex;flex-direction:column}.brand{background:var(--yellow);display:block;padding:17px 14px;width:190px}.brand img{width:100%;display:block;mix-blend-mode:multiply}.brand-sub{letter-spacing:2px;font-size:9px;color:#adb4b1;margin:15px 0 40px 6px}.side-label{font-size:9px;letter-spacing:1.6px;color:#84908a;margin:0 12px 14px}nav a{display:flex;align-items:center;gap:13px;text-decoration:none;padding:12px;margin:4px 0;border-radius:5px;color:#b7c0bb;font-size:12px;font-weight:600}nav a:hover{background:#303838;color:white}nav a.active{background:var(--yellow);color:var(--ink)}nav .ico{font-size:19px;width:21px;text-align:center;font-weight:400}nav .count{margin-left:auto;font-size:10px;border:1px solid currentColor;border-radius:4px;padding:0 5px}.side-bottom{margin-top:auto;font-size:11px;color:#b4beb8;padding:30px 10px 0}.side-bottom small{display:block;color:#7b8781;font-size:9px;margin:9px 0 22px}.side-bottom a{font-size:10px;text-decoration:none}.online{display:inline-block;background:#91ae83;border-radius:50%;width:6px;height:6px;margin-right:5px}.workspace{margin-left:236px;width:calc(100% - 236px)}header{height:78px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.breadcrumb{font-size:11px;font-weight:700;white-space:nowrap}.breadcrumb span{margin:0 13px;color:#b7bdb9}.header-right{display:flex;gap:22px;align-items:center}.search{display:flex;align-items:center;gap:9px}.search span{font-size:24px}.search input{border:0;background:transparent;font-size:11px;width:200px;padding:8px}.identity{display:flex;align-items:center;gap:8px;border-left:1px solid var(--line);padding-left:20px}.avatar{background:#e9ede7;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-size:11px;font-weight:800}.identity select{border:0;background:white;font-size:11px;max-width:125px}.demo{font-size:10px;color:#737867;padding:10px 36px;background:#f0f0df;line-height:1.6}.demo span{font-weight:800;margin-right:12px;color:#555c43}main{padding:34px 36px 50px;min-height:calc(100vh - 166px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:2px;color:var(--muted)}h1{font-size:29px;letter-spacing:-1px;margin:9px 0}h2{font-size:16px;letter-spacing:-.3px;margin:0}h3{font-size:13px;margin:0}p{line-height:1.7}.page-heading p{font-size:11px;color:var(--muted);margin:8px 0}.primary{background:var(--yellow);border-color:var(--yellow);white-space:nowrap}.primary:hover{background:#f2e249;border-color:#dfcd30}.scope-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:27px 0 24px}.segments{display:flex;gap:3px;padding:4px;background:#e9ece7;border-radius:7px}.segments button{border:0;background:transparent;padding:7px 14px;font-size:11px;color:#707974}.segments button.active{background:white;box-shadow:0 1px 3px #2221;color:var(--ink)}.date-label{font-size:10px;color:var(--muted)}.date-label span{margin:0 9px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:21px}.stat.highlight{background:var(--ink);color:white;border-color:var(--ink)}.stat .label{font-size:11px;display:flex;justify-content:space-between;color:var(--muted)}.stat.highlight .label{color:#c2ccc5}.stat strong{display:block;font-size:30px;letter-spacing:-1px;margin:16px 0 7px;font-weight:700}.stat .hint{font-size:9px;color:var(--muted)}.stat.highlight .hint{color:#d9dfb8}.stat .accent{color:#d8c538}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:22px}.panel-heading{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading a{font-size:10px;text-decoration:none;color:var(--muted)}.panel-heading p{margin:5px 0 0;color:var(--muted);font-size:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;font-size:9px;color:#929994;font-weight:600;padding:12px 20px;background:#fafbf8;white-space:nowrap}td{padding:17px 20px;border-top:1px solid #eef0ec;vertical-align:middle}td strong{font-weight:700;display:block;font-size:11px;line-height:1.5}td small{display:block;font-size:9px;color:var(--muted);margin-top:5px}tr.clickable:hover{background:#fcfcef;cursor:pointer}.pill{display:inline-block;font-size:9px;border-radius:4px;padding:5px 8px;background:#eef1ed;white-space:nowrap}.pill.yellow{background:#fff6be;color:#7c681d}.pill.green{background:#e9f1e9;color:#487454}.pill.blue{background:#eaf0f4;color:#527085}.pill.red{background:#faece7;color:#9e604d}.muted{color:var(--muted)}.task-tile{padding:16px 22px;border-top:1px solid #edf0ea;cursor:pointer}.task-tile:hover{background:#fafbf5}.task-tile .meta{font-size:9px;color:var(--muted);margin-top:9px;display:flex;justify-content:space-between}.task-tile h3{font-size:11px;line-height:1.7}.region-card{padding:0 22px 23px}.region-row{display:flex;justify-content:space-between;font-size:11px;margin:17px 0 8px}.bar{height:5px;border-radius:3px;background:#edf0e9;overflow:hidden}.bar i{display:block;background:#79887b;height:100%;border-radius:3px}.bar i.yellow{background:#e3d74c}.band{background:#e8ece4;padding:20px 22px;border-radius:8px;display:flex;justify-content:space-between;gap:20px;align-items:center}.band p{margin:5px 0 0;font-size:10px;color:#6b776a}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:17px;flex-wrap:wrap}.toolbar select{background:white;border:1px solid var(--line);padding:9px 12px;border-radius:6px;font-size:11px}.toolbar .view-switch{margin-left:auto}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-card{background:white;border:1px solid var(--line);border-radius:8px;padding:21px;cursor:pointer}.project-card:hover{border-color:#a9b49f;box-shadow:0 4px 18px #2221}.card-top{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:17px}.project-card h3{font-size:14px;line-height:1.6;min-height:45px}.project-card p{font-size:10px;color:var(--muted);margin:12px 0 22px}.card-bottom{display:flex;justify-content:space-between;align-items:center;font-size:10px;padding-top:16px;border-top:1px solid var(--line)}.empty{text-align:center;padding:50px 20px;color:var(--muted);font-size:13px}.small-button{font-size:10px;padding:7px 10px}.approval{display:flex;padding:22px;gap:18px;align-items:center;border-top:1px solid var(--line)}.approval .grow{flex:1}.approval p{font-size:11px;color:var(--muted);margin:6px 0}.approval-actions{display:flex;gap:7px;flex-wrap:wrap}.number{font-variant-numeric:tabular-nums}.calendar-day{display:grid;grid-template-columns:100px 1fr;gap:24px;padding:20px;border-top:1px solid var(--line)}.calendar-day .day{font-size:12px;font-weight:800}.calendar-entry{padding:10px 14px;background:#f4f6ef;border-left:3px solid #c9c448;margin:0 0 8px;cursor:pointer}.calendar-entry small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.info-card{padding:22px;background:white;border:1px solid var(--line);border-radius:8px}.info-card p{font-size:11px;color:var(--muted)}.info-card .pill{margin-top:10px}footer{padding:20px 36px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}dialog{border:0;border-radius:12px;padding:0;width:min(880px,94vw);max-height:91vh;box-shadow:0 24px 100px #0003;color:var(--ink)}dialog::backdrop{background:#19232180;backdrop-filter:blur(3px)}.modal-head{padding:25px 28px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);gap:15px}.modal-head h2{font-size:21px;line-height:1.5}.modal-head .eyebrow{margin-bottom:8px}.close{border:0;font-size:23px;padding:0 6px}.modal-body{padding:24px 28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dce1d8;padding:11px;border-radius:6px;background:#fff;min-width:0;font-size:12px;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.field.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.form-error{color:#a24735;font-size:12px;margin-top:12px}.detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:19px;background:#f3f5f0;border-radius:7px;margin:18px 0}.detail-summary small{display:block;color:var(--muted);font-size:9px;margin-bottom:6px}.detail-summary strong{font-size:11px}.steps{display:flex;gap:4px;margin:20px 0}.step{flex:1;border-top:3px solid #e7eae3;padding-top:9px;font-size:9px;color:#8e9691}.step.current{border-color:#c9b835;color:#363d2c;font-weight:800}.step.done{border-color:#6c8974}.detail-tabs{display:flex;border-bottom:1px solid var(--line);gap:18px;flex-wrap:wrap}.detail-tabs button{border:0;border-radius:0;padding:12px 0;background:transparent;font-size:11px}.detail-tabs .active{border-bottom:2px solid var(--ink)}.detail-section{padding-top:20px}.detail-section p{font-size:12px}.file-row,.history-row{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:11px}.history-row{display:block}.history-row small{display:block;color:var(--muted);margin-bottom:6px}.inline-form{display:flex;gap:8px;margin-top:17px;flex-wrap:wrap}.inline-form input,.inline-form select{padding:9px;border:1px solid var(--line);border-radius:6px;font-size:11px;max-width:100%}.inline-form input[type=text]{flex:1}.notice{padding:12px 15px;background:#f8f4dc;border-radius:5px;font-size:11px;line-height:1.7}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.detail-actions button{font-size:11px}#toast{position:fixed;bottom:25px;right:25px;background:#222829;color:white;padding:14px 22px;border-radius:8px;box-shadow:0 6px 20px #0002;z-index:10;display:none;max-width:85vw;font-size:12px}#toast.show{display:block}.stock-amount{font-size:19px;font-weight:800}.integration-list{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.budget-amount{font-size:24px;font-weight:700}.contact-log{margin-top:20px}.link-button{border:0;background:none;padding:0;text-align:left;font-size:11px}.error-panel{background:#faece7;padding:30px;border-radius:8px}.loading{padding:40px;color:var(--muted)}
@media(min-width:1500px){main{max-width:1500px;margin:auto}.dashboard-grid{grid-template-columns:1fr 320px}}@media(max-width:1100px){aside{width:200px;padding:25px 13px}.brand{width:174px}.workspace{margin-left:200px;width:calc(100% - 200px)}main{padding:27px 23px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.right-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.date-label{display:none}.search input{width:145px}.cards{grid-template-columns:repeat(2,1fr)}header{padding:0 23px}.stat{padding:16px}.stat strong{font-size:25px}.integration-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){aside{position:relative;width:100%;height:auto;padding:15px}.shell{display:block}.brand{width:145px;padding:10px}.brand-sub,.side-label,.side-bottom{display:none}nav{display:flex;overflow:auto;margin-top:12px}nav a{flex-shrink:0;font-size:10px;padding:8px}nav .ico{font-size:15px}nav .count{display:none}.workspace{margin:0;width:100%}header{height:60px;padding:0 15px}.breadcrumb{display:none}.header-right{width:100%;justify-content:space-between;gap:5px}.identity{padding-left:8px}.demo{padding:8px 15px}.page-heading{align-items:flex-start}h1{font-size:24px}.page-heading .primary{font-size:10px;padding:10px}.page-heading p{max-width:230px}main{padding:25px 15px}.stats{grid-template-columns:1fr 1fr;gap:10px}.scope-row{margin:20px 0}.segments button{padding:7px 12px}.cards,.info-grid,.integration-list{grid-template-columns:1fr}.dashboard-grid>.right-column{display:block}.form-grid{grid-template-columns:1fr}.detail-summary{grid-template-columns:1fr 1fr}.modal-body,.modal-head{padding:20px}.approval{align-items:flex-start;flex-wrap:wrap}.approval-actions{width:100%}.steps{flex-wrap:wrap}.step{min-width:28%}footer span{display:none}.band{align-items:flex-start}.calendar-day{grid-template-columns:70px 1fr;gap:10px}}

[hidden]{display:none!important}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.settings-tabs button.active{background:#222829;color:#feee59}.settings-panel{padding:26px}.settings-panel h2{margin:0 0 12px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.setting-field{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600}.setting-field input,.setting-field select{width:100%;padding:12px;border:1px solid #dce0df;border-radius:8px;background:white;color:#222829}.setting-field small,.setting-toggle small{display:block;font-size:12px;font-weight:400;line-height:1.6;color:#66716d}.settings-fieldset{border:0;padding:0;margin:0;min-width:0}.setting-toggle{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #edf0ee}.setting-toggle input,.role-matrix input{width:18px;height:18px;accent-color:#222829}.settings-save{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:white;padding:20px;border:1px solid #e2e6e4;border-radius:12px;margin:20px 0}.settings-save span{flex:1;font-size:12px;min-width:180px}.setting-summary{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #edf0ee;font-size:12px}.setting-summary small{color:#66716d}.role-matrix th{white-space:normal}.role-matrix td:not(:first-child){text-align:center}.due-alert{color:#a24d18!important;font-size:10px}.settings-notice{margin-bottom:12px}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.settings-panel{padding:18px}.setting-summary{flex-wrap:wrap}}

.directory-tools{display:flex;align-items:end;gap:20px;padding:0 24px 24px;flex-wrap:wrap}.directory-tools label{display:grid;gap:8px;font-size:12px}.directory-tools input,.directory-tools select{padding:10px;border:1px solid #dce0df;border-radius:8px}.directory-tools span{font-size:12px;color:#66716d}.directory-heading{margin-top:26px}.directory-tabs button{font-size:12px}

.social-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;position:relative;padding:10px 0}.social-toggle input{position:absolute;right:0;width:110px;height:38px;opacity:0;cursor:pointer}.social-choice{display:flex;border:1px solid #dce0df;border-radius:8px;padding:3px;pointer-events:none}.social-choice span{padding:7px 13px;border-radius:5px;color:#66716d}.social-toggle input:not(:checked)+.social-choice span:first-child{background:#e9edeb;color:#222829}.social-toggle input:checked+.social-choice span:last-child{background:#feee59;color:#222829}.social-toggle input:focus-visible+.social-choice{outline:2px solid #222829;outline-offset:3px}.social-toggle input:disabled+.social-choice{opacity:.6}

.dealer-group{margin-top:24px;padding:18px;border:1px solid #e0e5e2;border-radius:10px}.dealer-repeat-row{display:flex;gap:10px;align-items:center;margin:12px 0}.dealer-repeat-row input{flex:1;min-width:0;padding:10px;border:1px solid #dce0df;border-radius:6px}.dealer-row-number{width:25px;font-size:12px}.dealer-group>button{margin-top:12px}
[hidden]{display:none!important}
#login-panel{min-height:100vh;display:grid;place-items:center;background:#252525;padding:24px}
.login-card{width:min(440px,100%);background:#fff;padding:36px;border-top:6px solid #ffe500;border-radius:12px}
.login-card>img{width:180px;margin-bottom:28px}.login-card h1{font-size:25px}.login-card p{color:#666;line-height:1.6}
.login-card form{display:grid;gap:18px;margin-top:26px}#login-error{color:#9b2d20;margin:0}
.telegram-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}
.telegram-layout .panel{overflow:hidden}.telegram-layout input[type=search],#tg-search{width:calc(100% - 24px);margin:0 12px 12px}
#tg-dialogs{max-height:650px;overflow:auto}.tg-dialog{display:block;width:100%;text-align:left;padding:16px;border:0;border-bottom:1px solid #eee;border-radius:0;background:white}.tg-dialog.active{background:#fff9b5}
#tg-messages{min-height:220px;max-height:560px;overflow:auto;padding:18px;background:#f4f4f1;display:flex;flex-direction:column;gap:12px}
.tg-message{max-width:88%;width:fit-content;padding:14px 18px;border:1px solid #e1e1da;border-radius:10px;background:white;overflow-wrap:anywhere}
.tg-message.out{align-self:flex-end;background:#fffbd7}.tg-message .meta{gap:16px;flex-wrap:wrap}.tg-message p{line-height:1.6;margin:10px 0}.tg-select{display:flex;gap:8px;align-items:center;font-size:11px;margin-top:12px;color:#666}.tg-select input{width:auto}
.tg-import-bar{display:flex;justify-content:space-between;gap:10px;padding:12px;flex-wrap:wrap}#tg-send{padding:18px;display:grid;gap:12px}#tg-send-result{font-size:12px}.tg-qr{width:240px;display:block;margin:18px 0}#tg-password{max-width:400px;display:grid;gap:14px}
.tg-context{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff8cf;border:1px solid #e9d965;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:12px}
.tg-dialog{display:flex;align-items:center;gap:10px}.tg-dialog .pill{margin-left:auto}.tg-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#e8eeea;font-weight:800}
.tg-avatar img{width:30px;height:30px;object-fit:cover;border-radius:50%}.tg-link-preview{display:block;border-left:3px solid #d7c738;background:#f7f8f4;padding:8px 10px;margin:8px 0;text-decoration:none!important}.tg-link-preview strong,.tg-link-preview small{display:block;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-link-preview small{color:var(--muted);margin-top:4px}
.tg-message-search{display:flex;gap:8px;padding:0 12px 12px;flex-wrap:wrap}.tg-message-search input{flex:1;min-width:150px;border:1px solid var(--line);border-radius:7px;padding:9px}.tg-message-search select{border:1px solid var(--line);border-radius:7px;padding:9px;background:white}
.tg-message a{color:#2465a2;text-decoration:underline}.tg-message-file{display:flex;gap:8px;flex-wrap:wrap}.tg-photo-slot img{max-width:min(100%,420px);max-height:320px;object-fit:contain;border-radius:7px;margin-top:8px}.tg-select{flex-wrap:wrap}.tg-select label{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);padding:4px 7px;border-radius:6px;background:#fff}.tg-select label:has(input:checked){background:#fff1a4;border-color:#d8c538}.tg-select input{accent-color:#272b29}
.tg-emoji{display:flex;gap:4px}.tg-emoji button{padding:5px 8px;font-size:17px}.tg-destination-list{max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin:10px 0 18px}.tg-destination{display:flex;gap:9px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf0ec;cursor:pointer;font-size:12px}.tg-destination:hover{background:#fffbd7}.tg-destination.depth-1{padding-left:30px}.tg-destination.depth-2{padding-left:50px}.tg-destination input{accent-color:#222829}.tg-import-entry{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:10px 0;background:#fff}.tg-import-entry small{color:var(--muted)}.tg-import-entry p{margin:8px 0;overflow-wrap:anywhere}
@media(max-width:1000px){.telegram-layout{grid-template-columns:1fr}#tg-dialogs{max-height:200px}.tg-message{max-width:100%}}
.workspace-header{position:sticky;top:0;z-index:3;height:64px;padding:0 24px;gap:12px;justify-content:flex-start}
.workspace-header .scope-row{margin:0;flex-shrink:0}
.workspace-header .segments{padding:3px;gap:1px}
.workspace-header .segments button{padding:8px 11px;white-space:nowrap}
.workspace-header .view-switch{display:flex;flex-shrink:0;gap:2px;padding:3px;border:1px solid var(--line);border-radius:7px}
.workspace-header .view-switch button{border:0;background:transparent;white-space:nowrap;padding:7px 9px}
.workspace-header .view-switch button.active{background:#e9ece7;color:var(--ink)}
.workspace-header #create{padding:10px 13px;font-size:11px}
.workspace-header .header-right{margin-left:auto;flex:1;min-width:0;gap:12px;justify-content:flex-end}
.workspace-header .search{flex:1;min-width:90px;max-width:240px;gap:5px}
.workspace-header .search input{width:100%;min-width:0}
.workspace-header .identity{padding-left:12px;gap:6px;flex-shrink:0}
.workspace-header .identity select{max-width:110px}
.workspace-header #sign-out{flex-shrink:0}
.workspace>main{max-width:none;margin:0;padding:18px 24px 32px;min-height:calc(100vh - 112px)}
.page-heading{margin-bottom:16px;gap:12px}
.page-heading h1{font-size:25px;margin:0;line-height:1.3}
.page-heading p{margin:4px 0 0;max-width:none}
.project-count{font-size:11px;margin:0 0 8px}
.workspace .panel{margin-bottom:16px}.workspace .panel-heading{padding:16px 20px}
.workspace td{padding:12px 20px}.workspace .stat{padding:17px 20px}.workspace .stats{margin-bottom:18px}
aside{padding-top:20px;padding-bottom:16px;overflow-y:auto}.brand-sub{margin-bottom:22px}.side-label{margin-bottom:10px}nav a{padding-top:10px;padding-bottom:10px}.side-bottom{padding-top:18px}
@media(max-width:1200px) and (min-width:721px){.workspace-header{padding:0 16px;gap:8px}.workspace-header .segments button{padding:8px}.workspace-header .header-right{gap:8px}.workspace-header .identity{padding-left:8px}.workspace-header .avatar{display:none}.workspace-header .view-switch button{padding:7px}.workspace>main{padding:16px 18px 28px}}
@media(max-width:1000px){.workspace-header{height:auto;min-height:64px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.workspace-header .header-right{flex-basis:100%;justify-content:flex-end}.workspace-header .search{max-width:none}.workspace-header .identity select{max-width:160px}}
@media(max-width:720px){.workspace-header{position:relative;padding:10px 15px;gap:8px}.workspace-header .segments button{padding:7px 10px}.workspace-header #create{margin-left:auto}.workspace-header .view-switch{order:3}.workspace-header .header-right{order:4;width:auto}.workspace>main{padding:16px 15px 25px}.page-heading h1{font-size:23px}.page-heading p{max-width:none}.workspace td{padding:11px 14px}aside{padding:12px 15px}.brand-sub,.side-label,.side-bottom{display:none}}
aside{overflow-x:hidden}.brand{max-width:100%}
.workspace-header .page-heading{margin:0;flex:1 1 290px;min-width:180px;max-width:440px}
.workspace-header .page-heading>div{min-width:0}
.workspace-header .page-heading h1{font-size:20px;line-height:1.2;letter-spacing:-.6px}
.workspace-header .page-heading p{font-size:10px;line-height:1.4;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.workspace-header .header-right{flex:0 1 340px}
.workspace-header .search{min-width:70px}
@media(min-width:1001px){.workspace-header{height:76px;gap:10px}.workspace-header .page-heading{min-width:170px}.workspace-header .header-right{min-width:170px}.workspace>main{min-height:calc(100vh - 124px)}}
@media(min-width:1001px) and (max-width:1350px){.workspace-header{padding-left:16px;padding-right:16px;gap:7px}.workspace-header .page-heading{flex-basis:210px;min-width:145px}.workspace-header .page-heading h1{font-size:18px}.workspace-header .segments button{padding:8px 7px}.workspace-header .view-switch button{padding:7px 6px}.workspace-header #create{padding:10px;font-size:10px}.workspace-header .header-right{flex-basis:220px;min-width:145px;gap:6px}.workspace-header .identity{padding-left:6px}.workspace-header .avatar{display:none}.workspace-header .identity select{max-width:80px}}
@media(max-width:1000px){.workspace-header .page-heading{flex:1 0 100%;max-width:none;min-width:0}.workspace-header .header-right{flex:1 1 220px}.workspace-header .page-heading h1{font-size:20px}}
@media(max-width:720px){.workspace-header .page-heading{order:0}.workspace-header .header-right{flex-basis:100%}.workspace-header .page-heading p{-webkit-line-clamp:unset;display:block}}

/* Compact Telegram connection controls above the conversation workspace. */
.tg-status-compact{padding:8px 16px;margin-bottom:12px}.tg-connection-row{display:flex;align-items:center;gap:16px;min-height:34px}.tg-connection{font-size:15px;font-weight:700;letter-spacing:.04em}.tg-connection.on{color:#13833b}.tg-connection.off{color:#c23b35}.tg-connection-row button{padding:7px 12px}

.dictation-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 10px}.dictation-bar button{padding:6px 10px;font-size:12px}.dictation-bar button[aria-pressed="true"]{background:#fff0ed;color:#a62920;border-color:#d54d40}.dictation-bar span{font-size:11px;color:#738078;font-weight:400}
.task-row{align-items:center}.task-row label{display:flex;align-items:center;gap:8px;min-width:0}.task-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.task-done{text-decoration:line-through;color:var(--muted)}
.danger-button{color:#a32b20;border-color:#ddb0aa;background:#fff}.danger-button:hover{background:#fff0ee}
.sales-channel-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:0 24px 24px}.sales-channel-card{padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff}.sales-channel-card>div{display:flex;gap:12px;align-items:center;justify-content:space-between}.sales-channel-card p{font-size:12px;color:var(--muted);line-height:1.6;white-space:pre-wrap}.sales-channel-card small{display:block;color:var(--muted);margin-bottom:10px}.sales-channel-card>button{font-size:11px}
.worklist-picker-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.worklist-picker-actions button{padding:8px 10px;font-size:11px}.worklist-picker-actions span{font-size:10px;color:var(--muted);margin-left:auto}

.worklist-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.worklist-card h3{margin:5px 0}.worklist-card p,.worklist-card small{color:var(--muted);font-size:10px}.worklist-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.worklist-source-grid button{text-align:left;padding:18px;background:#fff;border:1px solid var(--line)}.worklist-source-grid strong,.worklist-source-grid small{display:block}.worklist-source-grid small{margin-top:7px;color:var(--muted)}
.worklist-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.worklist-filters label{display:grid;gap:6px;font-size:10px;font-weight:700}.worklist-filters input,.worklist-filters select{min-width:0;width:100%;padding:9px;border:1px solid var(--line);border-radius:6px}.worklist-selection-head{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:11px}.worklist-selection-head span{color:var(--muted)}.worklist-employee-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:7px;max-height:280px;overflow:auto;background:var(--line)}.worklist-person{display:flex;gap:10px;align-items:flex-start;padding:11px;background:#fff;font-size:11px}.worklist-person input{margin-top:2px}.worklist-person span,.worklist-person strong,.worklist-person small{display:block}.worklist-person small{color:var(--muted);margin-top:4px}.worklist-field-picker{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.worklist-field-picker label{padding:8px 10px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:#fff}.worklist-column-builder{display:grid;grid-template-columns:minmax(160px,1fr) 180px minmax(170px,1fr) 38px;gap:8px;margin:8px 0}.worklist-column-builder input,.worklist-column-builder select{min-width:0;padding:9px;border:1px solid var(--line);border-radius:6px}.worklist-column-builder:not(:has([data-column-options],[data-builder-options])){grid-template-columns:minmax(160px,1fr) 180px 38px}.worklist-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.worklist-toolbar>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.worklist-toolbar small{display:block;margin-top:5px;color:var(--muted)}.worklist-table-wrap{overflow:auto;max-height:58vh;border:1px solid var(--line);border-radius:8px}.worklist-table{min-width:max-content}.worklist-table th{position:sticky;top:0;z-index:1}.worklist-table th:first-child,.worklist-table td:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:180px}.worklist-table th:first-child{background:#fafbf8;z-index:3}.worklist-table td{padding:10px 12px;white-space:nowrap}.worklist-table input[type=text],.worklist-table input[type=date],.worklist-table select{min-width:145px;padding:7px;border:1px solid var(--line);border-radius:5px}.worklist-table input[type=checkbox]{width:18px;height:18px;accent-color:#222829}.worklist-bulk{display:block;margin-top:6px;padding:3px 6px;font-size:9px}.builder-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
@media(max-width:760px){.worklist-source-grid,.worklist-employee-picker,.builder-source-grid{grid-template-columns:1fr}.worklist-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.worklist-column-builder,.worklist-column-builder:not(:has([data-column-options],[data-builder-options])){grid-template-columns:1fr 1fr}.worklist-column-builder button{grid-column:2}.worklist-toolbar,.worklist-card{align-items:flex-start;flex-direction:column}}
.worklist-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-link{display:inline-block;padding:10px 15px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}.report-link:hover{border-color:#9fa7a3;background:#fafbf7}

.directory-tools [data-employee-filter]{width:100%;min-width:125px;max-width:260px}.directory-tools:has([data-employee-filter]){gap:12px}.directory-tools:has([data-employee-filter]) label{min-width:0}.directory-tools #employee-filter-reset{padding:10px;font-size:12px}@media(max-width:720px){.directory-tools:has([data-employee-filter]) label{flex:1 1 140px}.directory-tools [data-employee-filter]{max-width:100%}}

.role-preview-badge{padding:6px 8px;border:1px solid #ded9a5;border-radius:6px;background:#fffbe2;color:#494638;font-size:9px;font-weight:800;letter-spacing:.04em;white-space:nowrap}.role-preview-badge.active{background:#ffe868;border-color:#d6bd25;color:#222829}.identity:has(select[aria-label="Швидке тестування ролей"]){background:#fffbe2;border:1px solid #e6da86;border-radius:7px;padding:4px 7px}.identity select[aria-label="Швидке тестування ролей"]{max-width:160px;cursor:pointer;font-weight:700}@media(max-width:720px){.role-preview-badge{font-size:8px;padding:4px}.identity select[aria-label="Швидке тестування ролей"]{max-width:110px}}

/* Calendar modes and date navigation. */
.calendar-panel{overflow:visible}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--line)}.calendar-toolbar-title h2{margin:0 0 4px;font-size:17px}.calendar-toolbar-title p{margin:0;color:var(--muted);font-size:11px}.calendar-toolbar-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.calendar-mode-switch,.calendar-navigation{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f4f6f2}.calendar-mode-switch button,.calendar-navigation button{border:0;background:transparent;padding:8px 10px;border-radius:6px;font-size:11px;font-weight:700;white-space:nowrap}.calendar-mode-switch button.active{background:#222829;color:#fff}.calendar-navigation button:hover:not(:disabled),.calendar-mode-switch button:hover:not(.active){background:#e4e8e2}.calendar-navigation button:first-child,.calendar-navigation button:nth-child(3){font-size:18px;line-height:13px}.calendar-navigation input{width:136px;min-height:32px;padding:4px 6px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:11px}.calendar-list-day{display:grid;grid-template-columns:170px minmax(0,1fr);gap:15px;padding:14px 20px;border-bottom:1px solid var(--line)}.calendar-list-day:last-child{border-bottom:0}.calendar-list-date{display:grid;align-content:start;gap:4px;font-size:12px;text-transform:capitalize}.calendar-list-date span{font-size:10px;color:var(--muted)}.calendar-list-events{display:grid;gap:7px}.calendar-list-item{display:grid;gap:4px;text-align:left;padding:12px 14px;border:1px solid var(--line);border-left:3px solid #d7c736;border-radius:6px;background:#f7f8f4;min-width:0}.calendar-list-item strong{font-size:12px}.calendar-list-item small{color:var(--muted);font-size:10px}.calendar-list-item:hover,.calendar-project-card:hover{background:#fffbe4;border-color:#c5b525}.calendar-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding:18px 20px}.calendar-project-card{display:grid;align-content:start;gap:12px;min-height:160px;text-align:left;padding:16px;border:1px solid var(--line);border-left:3px solid #d7c736;border-radius:8px;background:#fff}.calendar-project-card strong{font-size:14px;line-height:1.35}.calendar-card-date{font-size:11px;font-weight:700;text-transform:capitalize}.calendar-card-meta{color:var(--muted);font-size:10px}.calendar-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:10px}.calendar-grid-scroll{overflow-x:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));min-width:875px}.calendar-weekday{padding:10px 12px;text-align:center;background:#f5f7f3;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;font-weight:800}.calendar-day-tile{min-width:0;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.calendar-week .calendar-day-tile{min-height:245px}.calendar-month .calendar-day-tile{min-height:128px}.calendar-day-tile.is-outside{background:#f7f8f6;color:#87918b}.calendar-day-tile.is-today{box-shadow:inset 0 0 0 2px #e5cc1d}.calendar-tile-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:7px;font-weight:800;font-size:12px}.calendar-tile-head small{color:var(--muted);font-size:10px}.calendar-tile-events{display:grid;gap:5px}.calendar-event{display:block;width:100%;min-width:0;padding:7px 8px;border:0;border-left:3px solid #d7c736;border-radius:4px;text-align:left;background:#f2f4ed;font-size:10px;font-weight:700}.calendar-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event:hover,.calendar-event:focus{background:#fff5b9;outline:2px solid #d9c524;outline-offset:0}.calendar-event.is-overdue,.calendar-list-item.is-overdue,.calendar-project-card.is-overdue{border-left-color:#d65b48}.calendar-event.is-done,.calendar-list-item.is-done,.calendar-project-card.is-done{border-left-color:#71a985}.calendar-no-events{font-size:11px;color:#b5bdb6}.calendar-more{border:0;background:none;text-align:left;color:#495e53;font-size:10px;font-weight:700;padding:5px}.calendar-tooltip{position:fixed;z-index:1100;max-width:min(350px,calc(100vw - 24px));padding:12px 14px;border:1px solid #222829;border-radius:7px;background:#222829;color:#fff;box-shadow:0 10px 24px #0003;pointer-events:none;font-size:11px;line-height:1.5}.calendar-tooltip strong,.calendar-tooltip span{display:block}.calendar-tooltip strong{font-size:13px;margin-bottom:5px}.calendar-dialog-list{display:grid;gap:8px}.calendar-dialog-list button{display:grid;gap:5px;padding:12px;text-align:left;border:1px solid var(--line);border-radius:6px;background:#fff}.calendar-dialog-list small{color:var(--muted)}
@media(max-width:720px){.calendar-toolbar{padding:14px}.calendar-toolbar-controls{width:100%}.calendar-mode-switch{max-width:100%;overflow-x:auto}.calendar-list-day{grid-template-columns:1fr;padding:12px 14px}.calendar-cards{padding:14px}.calendar-grid{grid-template-columns:repeat(7,125px)}}

.project-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;margin-bottom:12px;background:#fff;border:1px solid var(--line);border-radius:8px}
.project-filters label,.project-filters fieldset{display:grid;gap:5px;margin:0;color:#59625d;font-size:10px;font-weight:700}
.project-filters fieldset{display:flex;align-items:center;gap:5px;padding:0;border:0;min-width:0}
.project-filters legend{padding:0 0 5px}
.project-filters input,.project-filters select{height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:11px}
.project-filters input[type=date]{width:137px;min-width:0}
.project-filters select{min-width:110px;max-width:180px}
.project-filters #project-filters-reset{height:36px;white-space:nowrap}
.project-table th{padding:7px 14px}.project-table td{padding:15px 14px}
.project-sort{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;width:100%;padding:4px 0;border:0;background:transparent;color:inherit;font-size:inherit;letter-spacing:inherit;font-weight:inherit;text-align:left;white-space:nowrap}
.project-sort span{font-size:14px;line-height:1;color:#9da69f}.project-sort.active,.project-sort.active span{color:#333b37;font-weight:800}.project-sort:hover{background:transparent;color:#333b37}
.project-card-dates{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:15px 0 4px;color:var(--muted);font-size:10px}
@media(max-width:760px){.project-filters{padding:12px}.project-filters fieldset{flex:1 1 100%}.project-filters input[type=date]{flex:1 1 0;width:auto}.project-filters label{flex:1 1 135px}.project-filters select{max-width:none;width:100%}}
