/* Вариант A. Область действия ограничена рабочим столом; инструменты переносятся отдельно. */
body.desk-active{--desk-bg:#f6f7f9;--desk-surface:#fff;--desk-soft:#f4f5f7;--desk-text:#202733;--desk-muted:#626c7b;--desk-faint:#687382;--desk-line:#e3e7ed;--desk-accent:#ff6d02;--desk-accent-ink:#202733;--desk-selected:#a84400;--desk-selected-bg:#fff1e7;--desk-focus:#c65300;--desk-ok:#34735b;--desk-bad:#a44338}
:root[data-theme=dark] body.desk-active{--desk-bg:#171b20;--desk-surface:#1e242b;--desk-soft:#252c34;--desk-text:#e4e9ef;--desk-muted:#adb7c4;--desk-faint:#98a4b3;--desk-line:#353e49;--desk-selected:#ffb480;--desk-selected-bg:#3b2c22;--desk-focus:#ff9a54;--desk-ok:#8fc8ae;--desk-bad:#efac9f}
.desk-active .toolnav,.desk-active #app-topbar{display:none!important}
.desk-active #home{display:block;padding:0;background:var(--desk-bg)}
.desk-active #home-dashboard{margin:0;padding:0;max-width:none;width:100%;height:auto;display:block}
#project-dashboard{min-height:100dvh;display:block;font-family:var(--font-sans);font-size:14px;line-height:1.5;background:var(--desk-bg);color:var(--desk-text)}
#project-dashboard button,#project-dashboard input,#project-dashboard select{font:inherit;color:inherit}
#project-dashboard button:focus-visible,#project-dashboard input:focus-visible,#project-dashboard select:focus-visible,#project-dashboard summary:focus-visible{outline:2px solid var(--desk-focus);outline-offset:3px}
#project-dashboard button{cursor:pointer}
@media(max-width:760px){#project-dashboard .desk-header .desk-link{font-size:0;min-width:44px;min-height:44px;justify-content:center}}
.desk-main{min-width:0}.desk-header{height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 40px;border-bottom:1px solid var(--desk-line);background:var(--desk-surface)}
.desk-header>div>span{font-size:11px;color:var(--desk-faint)}
#project-dashboard h1{font-size:24px;font-weight:600;letter-spacing:-.045em;line-height:1.25;margin:3px 0 0}
#project-dashboard .desk-link{display:flex;align-items:center;gap:8px;border:0;background:none;font-size:11px;color:var(--desk-muted);padding:8px 0}
.desk-link .icon{width:16px;height:16px}.desk-body{padding:34px 40px;max-width:1600px;margin:0 auto}
.desk-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
#project-dashboard h2{font-size:18px;font-weight:600;letter-spacing:-.025em;margin:0}
.desk-intro p{font-size:12px;color:var(--desk-muted);margin:5px 0 0}
#project-dashboard .desk-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;background:var(--desk-surface);border:1px solid var(--desk-line);border-radius:5px;font-size:12px;font-weight:500}
#project-dashboard .desk-primary{background:var(--desk-accent);border-color:var(--desk-accent);color:var(--desk-accent-ink)}
.desk-workspace{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:30px;align-items:start}.desk-projects{min-width:0}
.desk-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.desk-search{display:flex;align-items:center;gap:9px;flex:1;max-width:360px;min-height:36px;padding:0 11px;border:1px solid var(--desk-line);border-radius:5px;background:var(--desk-surface);color:var(--desk-faint)}
.desk-search .icon{width:15px;height:15px;flex:none}
#project-dashboard .desk-search input{height:34px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;width:100%;min-width:0;font-size:12px;color:var(--desk-text)}
#project-dashboard .desk-search input::placeholder{color:var(--desk-faint)}
/* animationstart обнаруживает и позднее autofill без события input. */
@keyframes desk-search-autofill{from{opacity:1}to{opacity:1}}
#desk-search:autofill{animation:desk-search-autofill 1ms}
#desk-search:-webkit-autofill{animation:desk-search-autofill 1ms}
#project-dashboard #desk-sort{margin-left:auto;border:0;background:none;padding:6px 0;min-height:36px;font-size:11px;width:auto;max-width:140px}
.desk-filter-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}#desk-filters{display:flex;gap:20px}
#project-dashboard #desk-filters button{display:flex;align-items:center;gap:7px;border:0;border-radius:0;border-bottom:2px solid transparent;background:none;font-size:12px;color:var(--desk-muted);padding:0 0 7px}
#project-dashboard #desk-filters [aria-pressed=true]{color:var(--desk-text);border-bottom-color:var(--desk-focus);font-weight:600}
#desk-filters span{font-size:10px;min-width:17px;line-height:17px;text-align:center;background:var(--desk-soft);border-radius:4px;font-weight:400;color:var(--desk-muted)}#desk-count{font-size:11px;white-space:nowrap;color:var(--desk-faint)}
.desk-table-wrap{border:1px solid var(--desk-line);border-radius:7px;overflow:hidden;background:var(--desk-surface)}
.desk-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left}.desk-table th{height:36px;font-size:11px;color:var(--desk-faint);font-weight:500;background:var(--desk-soft);padding:0 16px;border-bottom:1px solid var(--desk-line)}
.desk-table th:nth-child(1){width:39%}.desk-table th:nth-child(2){width:32%}.desk-table th:nth-child(3){width:29%}
.desk-table td{padding:14px 16px;border-bottom:1px solid var(--desk-line);vertical-align:middle}.desk-table tr:last-child td{border-bottom:0}.desk-table tbody tr:hover{background:var(--desk-soft)}
#project-dashboard .desk-project{display:inline-block;border:0;background:none;padding:0;text-align:left;font-size:13px;font-weight:500;color:var(--desk-text);overflow-wrap:anywhere}
.desk-domain{font-size:11px;color:var(--desk-faint);margin-top:4px;overflow-wrap:anywhere}.desk-status{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--desk-muted)}.desk-status i{width:5px;height:5px;border-radius:50%;background:var(--desk-ok);flex:none}.desk-status.is-issue{color:var(--desk-bad)}.desk-status.is-issue i{background:var(--desk-bad)}.desk-status.is-quiet i{background:var(--desk-faint)}
.desk-run{font-size:12px;color:var(--desk-muted)}.desk-run small{display:block;font-size:11px;color:var(--desk-faint);margin-top:3px}.desk-footnote{font-size:10px;color:var(--desk-faint);margin:13px 0 0;line-height:1.6}
.desk-activity{padding-top:3px}.desk-activity-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}#project-dashboard .desk-activity h2{font-size:12px;letter-spacing:0}#project-dashboard .desk-activity-head button{border:0;background:none;padding:4px;color:var(--desk-muted)}
.desk-event{position:relative;padding:0 0 22px 15px}.desk-event:before{content:'';position:absolute;left:0;top:6px;width:5px;height:5px;border-radius:50%;background:var(--desk-line)}.desk-event:not(:last-child):after{content:'';position:absolute;left:2px;top:15px;bottom:5px;width:1px;background:var(--desk-line)}.desk-event strong{display:block;font-size:12px;font-weight:500}.desk-event p{font-size:12px;color:var(--desk-muted);margin:3px 0 0;overflow-wrap:anywhere}.desk-event small{display:block;font-size:11px;color:var(--desk-faint);margin-top:7px}.desk-muted{font-size:12px;color:var(--desk-muted);line-height:1.6;margin:0}
.desk-state{background:var(--desk-surface);border:1px solid var(--desk-line);border-radius:7px;padding:54px 24px;text-align:center;font-size:13px;color:var(--desk-muted)}#project-dashboard .desk-state h3{font-size:15px;color:var(--desk-text);margin:0;font-weight:600}.desk-state p{font-size:12px;max-width:340px;margin:8px auto 18px}
@media(max-width:1180px){#project-dashboard{grid-template-columns:190px minmax(0,1fr)}.desk-header{padding:0 28px}.desk-body{padding:28px}.desk-workspace{grid-template-columns:1fr}.desk-activity{border-top:1px solid var(--desk-line);padding-top:22px}.desk-activity #desk-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}}
@media(max-width:760px){#project-dashboard{display:block}.desk-header{padding:0 18px;height:78px}#project-dashboard h1{font-size:21px}.desk-header .desk-link{font-size:0}.desk-header .desk-link .icon{width:20px;height:20px}.desk-body{padding:24px 18px}.desk-intro{align-items:flex-start}.desk-intro p{font-size:11px;max-width:170px}#project-dashboard .desk-primary{min-height:44px;padding:0 10px;font-size:11px}.desk-toolbar{flex-wrap:wrap;gap:6px}.desk-search{flex-basis:100%;max-width:none;min-height:44px}#project-dashboard .desk-search input{height:42px;font-size:13px}#project-dashboard #desk-sort{min-height:44px}.desk-filter-line{gap:6px}#desk-filters{gap:12px}#project-dashboard #desk-filters button{font-size:11px;min-height:44px}#desk-count{font-size:10px}.desk-table,.desk-table tbody{display:block}.desk-table thead{display:none}.desk-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:8px 12px;padding:14px;border-bottom:1px solid var(--desk-line)}.desk-table tbody tr:last-child{border:0}.desk-table td{display:block;padding:0;border:0}.desk-table td:first-child{grid-column:1;grid-row:1}.desk-table td:nth-child(2){grid-column:1;grid-row:2}.desk-table td:last-child{grid-column:2;grid-row:1 / span 2;text-align:right;padding-top:8px}#project-dashboard .desk-project{font-size:14px;min-height:44px}.desk-domain{margin-top:0}.desk-status{font-size:11px}.desk-run,.desk-run small{font-size:10px}.desk-activity #desk-events{display:block}.desk-workspace{gap:28px}}

.desk-boot{padding:32px;color:var(--desk-muted)}
