.sidebar{overflow-y:auto}.sidebar nav{flex:none}.sidebar-bottom{padding-top:18px}.sidebar .nav{padding-top:9px;padding-bottom:9px}.sidebar .space-label{margin-top:18px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at top,#eeeafa,#f7f8fc 65%)}.login-card{width:min(440px,100%);padding:35px;background:#fff;border:1px solid #e4dfef;border-radius:16px;box-shadow:0 15px 50px #5140870c}.login-card .brand{padding:0 0 28px}.login-card h1{font-size:25px}.login-card .helper{margin-top:22px}.library-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;align-items:start}.folder-tree{padding:18px 10px}.folder-tree h3{font-size:12px;color:#87839b;margin:0 8px 18px}.folder-node{display:flex;align-items:center;min-width:0}.folder-link{display:flex;gap:8px;align-items:center;padding:10px 8px;border-radius:6px;width:100%;text-align:left;color:#7b7890;font-size:11px;min-width:0}.folder-link span{overflow-wrap:anywhere}.folder-link .icon{width:15px;height:15px}.folder-link.active{background:#f0edff;color:#6355d8}.depth-1{padding-left:10px}.depth-2{padding-left:20px}.depth-3{padding-left:28px}.depth-4,.depth-5{padding-left:34px}.group-heading{padding:15px 20px;background:#f7f5fd;color:#7c709e;font-size:12px}.comment-entry{padding:14px 0;border-bottom:1px solid #eeedf4;font-size:12px;line-height:1.7}.comment-entry p{margin-top:7px;color:#7c7890}.collab-form,.upload-form{display:block;padding:18px 0;border-bottom:1px solid #eee}.collab-form textarea{min-height:65px}.upload-form input[type=file]{font-size:11px;padding:9px;width:100%}.attachment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0}.attachment-row a{display:flex;align-items:center;gap:8px;color:#6355d8;font-size:12px;overflow-wrap:anywhere}.version-entry{border-bottom:1px solid #eee;padding:15px 0;font-size:12px}.version-entry summary{cursor:pointer;color:#74639e;margin-bottom:13px}.version-entry .text-block{margin:8px 0}.checkbox-label{display:flex;align-items:center;gap:10px}.checkbox-label input{width:16px;margin:0}.settings-grid>.full{grid-column:1/-1}.report-options{margin-top:14px;background:white;border:1px solid #e9eaf1;border-radius:7px}.report-options select{max-width:230px;min-width:160px}.profile strong{color:#5d5678}.profile .btn{margin-left:8px}.content{max-width:1700px}.toolbar .search{min-width:190px}.toolbar select{max-width:170px}.library-layout .toolbar select{max-width:150px}.library-layout .toolbar{gap:8px}.main{min-width:0}.content{min-width:0}.panel{min-width:0}
.library-layout th,.library-layout td{padding:14px 12px}.library-layout td:first-child{white-space:nowrap}.library-layout td:nth-child(2){min-width:210px}.library-layout .row-title{line-height:1.65}.library-layout .table-wrap{scrollbar-width:thin}
@media(max-width:1400px){.library-layout th:nth-child(3),.library-layout td:nth-child(3){display:none}.library-layout{grid-template-columns:175px minmax(0,1fr)}}
@media(max-height:760px){.sidebar-bottom{display:none}}
@media(max-width:1150px){.library-layout{grid-template-columns:175px minmax(0,1fr)}.library-layout table th,.library-layout table td{padding:12px 10px}.topbar .breadcrumb{max-width:55%;flex-wrap:wrap}.profile strong{font-size:11px}}
@media(max-width:760px){.library-layout{grid-template-columns:1fr}.folder-tree{max-height:240px;overflow:auto}.sidebar{overflow:visible}.sidebar nav{max-width:100%}.sidebar .nav{flex:none}.topbar{height:auto;min-height:68px;gap:10px}.topbar .breadcrumb{max-width:48%;line-height:1.6}.top-right{min-width:0}.profile{flex-wrap:wrap;gap:6px;justify-content:flex-end}.profile strong{font-size:10px}.profile .btn{margin:0;padding:5px}.profile small{font-size:9px}.settings-grid>.full{grid-column:auto}.attachment-row{align-items:flex-start;flex-direction:column}.login-screen{padding:18px}.login-card{padding:25px}.report-options select{min-width:0;max-width:100%;flex:1}.page-head{flex-wrap:wrap}.step-columns{gap:12px}.form-grid{min-width:0}.content{padding:22px 14px}.run-case{overflow-wrap:anywhere}.report-filter select{min-width:0;max-width:100%}}
/* UX 2.2: compact workspace, real navigation, usable nested folders. */
[hidden]{display:none!important}
.breadcrumb a{color:var(--muted,#746e89);text-decoration:none;border-radius:4px}.breadcrumb a:hover{color:var(--purple,#6355d8);text-decoration:underline}.breadcrumb [aria-current=page]{font-weight:650;color:#332d49}.breadcrumb a:focus-visible,.nav:focus-visible,.row-title:focus-visible{outline:2px solid #6355d8;outline-offset:4px}
.page-head{margin-bottom:22px}.page-head h1{font-size:27px}.eyebrow{font-size:10px;letter-spacing:.1em}.welcome{padding:22px 28px}.welcome h2{font-size:23px}.project-card{padding:22px}.panel{border-radius:10px}.library-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.folder-tree{padding:14px 10px;align-self:start;position:sticky;top:14px;max-height:calc(100vh - 190px);overflow:auto}.folder-tree h3,.folder-tree>.helper{padding:0 8px}.folder-node{position:relative;display:flex;align-items:center;gap:3px}.folder-link{min-width:0;padding:7px 6px;gap:7px;line-height:1.4}.folder-link span{overflow-wrap:anywhere}.folder-toggle{border:0;background:transparent;color:#70668d;cursor:pointer;padding:6px 2px;font-size:15px;flex:none}.folder-node .folder-link{flex:1}.folder-node.depth-1{padding-left:12px}.folder-node.depth-2{padding-left:24px}.folder-node.depth-3{padding-left:36px}.folder-node.depth-4{padding-left:48px}.folder-node.depth-5{padding-left:60px}
.library-layout th,.library-layout td{padding:9px 11px}.library-layout .row-title{line-height:1.4;display:inline;text-decoration:none;text-align:left}.library-layout td .helper{margin-top:4px;font-size:11px}.library-layout .tag{font-size:10px;padding:2px 5px}.toolbar{padding:14px;gap:8px}.collection-tools{padding:12px 0;flex-wrap:wrap}.collection-tools input{max-width:400px;min-width:170px}.collection-tools [role=status]{font-size:12px;color:#746e89}.library-layout .toolbar .search{flex:1 1 100%}.plan-card{padding:16px 18px}.nav{padding-top:9px;padding-bottom:9px}.sidebar .nav.active{border-left:3px solid #6355d8}.step-editor textarea{min-height:85px}.checklist-editor .step-editor .form-grid{grid-template-columns:1fr}.modal-head{position:sticky;top:0;background:white;z-index:2}.modal-footer{position:sticky;bottom:0;background:white;z-index:2}.modal-body{overscroll-behavior:contain}.modal-head h2{font-size:20px}.table-wrap{overscroll-behavior-x:contain}dialog{max-height:90dvh}
@media(max-width:1200px){.library-layout{grid-template-columns:185px minmax(0,1fr)}.library-layout th:nth-child(3),.library-layout td:nth-child(3){display:none}.page-head .actions{flex-wrap:wrap}}
@media(max-width:760px){.library-layout{grid-template-columns:1fr}.folder-tree{position:static;max-height:220px}.breadcrumb{font-size:11px}.topbar .breadcrumb{max-width:100%;width:100%;flex-basis:100%}.topbar{flex-wrap:wrap}.top-right{margin-left:auto}.page-head h1{font-size:23px}.toolbar select{max-width:100%!important;flex:1 1 125px}.page-head .actions{width:100%}.page-head .actions .btn{font-size:11px;padding:9px}.collection-tools input{width:100%;max-width:none;min-width:0}.collection-tools .search{width:100%}.welcome{padding:18px}.project-card{padding:18px}.plan-card{flex-wrap:wrap}.plan-card .actions{width:100%}.modal-body{padding:18px}.modal-footer{gap:8px}.modal-head{padding:16px}.step-editor .form-grid{grid-template-columns:1fr}.run-list{max-height:300px}}
.demo-account{display:inline-block;margin-left:6px;vertical-align:middle;color:#6355d8;background:#f0edff;white-space:nowrap}.sidebar-bottom .local-note{line-height:1.5}.profile .demo-account{font-size:10px;font-weight:500}.footer-note{overflow-wrap:anywhere}
@media(max-width:760px){.breadcrumb .workspace-name{display:inline}.demo-account{font-size:9px}.profile .demo-account{font-size:9px}.topbar .breadcrumb{max-width:100%}}

/* PDF review keeps warning and row counts visible on narrow screens. */
.pdf-row {padding:12px 0;border-bottom:1px solid var(--border,#e5e7eb)}
.pdf-row label {display:block;margin-bottom:8px}
@media(max-width:640px){
 .pdf-preview-table thead{display:none}
 .pdf-preview-table,.pdf-preview-table tbody,.pdf-preview-table tbody tr{display:block!important;width:100%}
 .pdf-preview-table tbody tr{padding:12px 0;border-bottom:1px solid #e5e7eb}
 .pdf-preview-table td{display:block!important;width:auto!important;white-space:normal!important;padding:5px 8px!important}
 .pdf-preview-table td:nth-child(4)::before{content:'Предусловия / шаги / постусловия: ';font-weight:600}
 .pdf-preview-table td:nth-child(5){font-size:12px}
 .pdf-preview-table td button{white-space:normal;text-align:left;max-width:100%;height:auto}
}

.environment-notice{display:flex;gap:8px 16px;flex-wrap:wrap;padding:14px 16px;margin-bottom:24px;border:1px solid #d6d0f5;border-radius:10px;background:#f4f1ff;color:#4c427a;font-size:12px}
.environment-notice strong{font-weight:700}.environment-demo{border-color:#f1d79d;background:#fff9eb;color:#755418}
.nav:not(a),.brand:not(a),.breadcrumb span[aria-current]{cursor:default}
.login-card .environment-notice{margin-top:16px}.migration-stages{display:flex;gap:12px;flex-wrap:wrap;padding-left:20px;color:#69657c}.migration-progress progress{width:100%;margin:10px 0}.migration-ids{max-height:260px;overflow:auto}

.migration-ids table{min-width:640px}.migration-ids th,.migration-ids td{display:table-cell!important;white-space:normal}
