/* Мобильные мерки из production d4ce238; новые функции используют ту же систему. */
html:not(.shell-wide) .project-shell{min-width:0;width:100%}
html:not(.shell-wide) .module-name,html:not(.shell-wide) #projectBack{display:none}
html:not(.shell-wide) .project-layout{display:grid;grid-template-columns:var(--shell-list) minmax(0,1fr);gap:var(--shell-gap)}
html:not(.shell-wide) .project-list,html:not(.shell-wide) .project-detail{min-width:0}
html:not(.shell-wide) .project-list-top{flex:none}
html:not(.shell-wide) .search{position:relative;display:block;margin:0 0 12px}
html:not(.shell-wide) .search>span{position:absolute;width:1px;height:1px;overflow:hidden}
html:not(.shell-wide) .search>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
html:not(.shell-wide) .search input{display:block;width:100%;box-sizing:border-box;height:44px;padding:0 12px 0 40px;border:0;border-radius:var(--radius-sm);background:var(--surface-card);font:var(--fs-sub)/var(--lh-sub) Onest,sans-serif;color:var(--text-primary);outline:none;-webkit-appearance:none}
html:not(.shell-wide) .search input:focus{box-shadow:inset 0 0 0 1.5px var(--accent)}
html:not(.shell-wide) .filters{margin:0 0 12px}
html:not(.shell-wide) .pseg button{min-height:36px;font-size:var(--fs-cap)}
html:not(.shell-wide) #projectList{background:var(--surface-card);border-radius:var(--radius-md);overflow:hidden}
html:not(.shell-wide) .project-row{display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:56px;cursor:pointer;border:0;background:none;width:100%;text-align:left;color:inherit;font:inherit;-webkit-tap-highlight-color:transparent}
html:not(.shell-wide) .project-row+.project-row{box-shadow:inset 0 .5px 0 var(--border)}
html:not(.shell-wide) .project-row:active{background:var(--surface-hover)}
html:not(.shell-wide) .project-row.on{background:var(--accent-bg)}
html:not(.shell-wide) .project-row img,html:not(.shell-wide) .project-placeholder{flex:0 0 40px;width:40px;height:40px;border-radius:8px;object-fit:cover;background:var(--surface-sunken)}
html:not(.shell-wide) .project-row>span:last-child{flex:1;min-width:0}
html:not(.shell-wide) .project-row strong{display:block;font-size:var(--fs-sub);line-height:var(--lh-sub);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(.shell-wide) .project-row small{display:block;color:var(--text-secondary);font-size:var(--fs-cap);line-height:var(--lh-cap);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(.shell-wide) .project-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:16px}
html:not(.shell-wide) .project-title h2{font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-weight:700;margin:0 0 8px}
html:not(.shell-wide) .project-title p{margin:0;font-size:var(--fs-sub);line-height:var(--lh-sub)}
html:not(.shell-wide) .project-title .project-stage{position:static;min-width:0;height:auto;padding:0;background:none;border-radius:0;font-size:var(--fs-cap);color:var(--text-secondary);white-space:nowrap;line-height:var(--lh-display)}
html:not(.shell-wide) .tabs{margin:0 0 16px;overflow:auto}
html:not(.shell-wide) .tabs button{white-space:nowrap}
html:not(.shell-wide) .project-choose{margin:24px 0;font-size:var(--fs-sub)}
html:not(.shell-wide) .project-detail .project-card{background:var(--surface-card);border-radius:var(--radius-md);padding:16px;margin-bottom:12px}
html:not(.shell-wide) .project-card h3{font-size:var(--fs-sub);line-height:var(--lh-sub);font-weight:700;color:var(--text-primary);margin:0 0 8px}
html:not(.shell-wide) .project-card p{margin:8px 0}
html:not(.shell-wide) .muted{color:var(--text-secondary);line-height:var(--lh-sub)}
html:not(.shell-wide) .small,html:not(.shell-wide) .project-note{font-size:var(--fs-cap);line-height:var(--lh-cap)}
html:not(.shell-wide) .card-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
html:not(.shell-wide) .card-head h3{margin:0}
html:not(.shell-wide) .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:44px;font-size:var(--fs-sub);margin:0}
html:not(.shell-wide) .btn svg{display:block;flex:none;width:18px;height:18px}
html:not(.shell-wide) .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
html:not(.shell-wide) .work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:not(.shell-wide) .work-tile{position:relative;display:block;min-width:0}
html:not(.shell-wide) .work-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-sm);background:var(--surface-sunken)}
html:not(.shell-wide) .work-tile small{display:block;font-size:var(--fs-cap);color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 0}
html:not(.shell-wide) .work-tile input{position:absolute;top:8px;left:8px;width:20px;height:20px;accent-color:var(--accent)}
html:not(.shell-wide) .empty{padding:24px 16px;text-align:center}
html:not(.shell-wide) .empty svg{color:var(--text-muted)}
html:not(.shell-wide) .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
html:not(.shell-wide) .form-row label,html:not(.shell-wide) .project-kind-field>span,html:not(.shell-wide) .field-label,html:not(.shell-wide) dialog label{display:block;font-size:var(--fs-cap);font-weight:600;color:var(--text-secondary)}
html:not(.shell-wide) .form-row input:not([type=range]),html:not(.shell-wide) .form-row textarea,html:not(.shell-wide) dialog input{display:block;box-sizing:border-box;width:100%;margin-top:4px;padding:12px;border:.5px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-sunken);color:var(--text-primary);font:var(--fs-sub)/var(--lh-sub) Onest,sans-serif;outline:none}
html:not(.shell-wide) .form-row input:focus,html:not(.shell-wide) dialog input:focus{border-color:var(--accent)}
html:not(.shell-wide) .form-row textarea{resize:vertical;min-height:80px}
html:not(.shell-wide) .form-row .stepper{margin-top:4px}
html:not(.shell-wide) .form-row .stepper input{padding:0;margin:0;border:0;background:none}
html:not(.shell-wide) .form-row .pseg{margin:4px 0 0}
html:not(.shell-wide) .form-row .pseg button{white-space:nowrap;padding-inline:8px}
html:not(.shell-wide) .person,html:not(.shell-wide) .document-row{display:flex;align-items:center;gap:12px;padding:12px 0;text-decoration:none;color:inherit}
html:not(.shell-wide) .person+.person,html:not(.shell-wide) .document-row+.document-row{border-top:.5px solid var(--border)}
html:not(.shell-wide) .person strong,html:not(.shell-wide) .person small{display:block}
html:not(.shell-wide) .person small,html:not(.shell-wide) .document-row span{font-size:var(--fs-cap);color:var(--text-secondary)}
html:not(.shell-wide) .avatar{flex:none;width:40px;height:40px;border-radius:50%;background:var(--surface-sunken);display:grid;place-items:center;font-weight:600}
html:not(.shell-wide) .document-row{justify-content:space-between}
html:not(.shell-wide) .project-note{color:var(--text-secondary)}
html:not(.shell-wide) .pick{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
html:not(.shell-wide) .pick button{font-size:var(--fs-cap)}
html:not(.shell-wide) dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));border:0;border-radius:var(--radius-lg);padding:24px;background:var(--surface-card);color:var(--text-primary)}
html:not(.shell-wide) dialog::backdrop{background:var(--overlay,rgba(20,25,35,.3))}
html:not(.shell-wide) .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
html:not(.shell-wide) .dialog-head h2{margin:0;font-size:var(--fs-display);line-height:var(--lh-display)}
html:not(.shell-wide) .icon-close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:var(--surface-sunken);color:inherit;cursor:pointer}
html:not(.shell-wide) .icon-close svg{width:18px;height:18px}
html:not(.shell-wide) .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
html:not(.shell-wide) .error{color:var(--danger)}
html:not(.shell-wide) .project-save-state{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
html:not(.shell-wide) #toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--text-primary);color:var(--surface-card);border-radius:var(--radius-md);padding:12px 20px;z-index:100;max-width:90vw}
html:not(.shell-wide) .project-detail .skline{height:28px;margin-bottom:24px}
html:not(.shell-wide) .project-detail .skblock{height:240px}
html:not(.shell-wide) .project-shell{padding:16px;box-sizing:border-box}
html:not(.shell-wide) .shell-head{margin-bottom:20px}
html:not(.shell-wide) .module-name{display:block;margin:0;font-size:var(--fs-sub)}
html:not(.shell-wide) .project-layout{display:block}
html:not(.shell-wide) .project-detail{display:none}
html:not(.shell-wide) .project-open .project-detail{display:block}
html:not(.shell-wide) .project-open .project-list{display:none}
html:not(.shell-wide) .project-open #projectBack{display:inline-flex}
html:not(.shell-wide) .project-open .module-name{display:none}
html:not(.shell-wide) .shell-head #settings{font-size:0;width:44px;padding:0}
html:not(.shell-wide) .tabs button{flex:none;min-width:72px}
html:not(.shell-wide) .form-row{grid-template-columns:1fr}
html:not(.shell-wide) .form-row:has(#editTitle){grid-template-columns:1fr}
html:not(.shell-wide) .work-preview{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:inherit}
html:not(.shell-wide) .work-preview img{display:block;width:100%}
html:not(.shell-wide) .work-preview:focus-visible{outline:2px solid #405FFF;outline-offset:3px}
html:not(.shell-wide) .project-workspace{position:relative}
html:not(.shell-wide) .workspace-nav{display:block;padding-right:0;margin-bottom:12px}
html:not(.shell-wide) .workspace-nav .workspace-more{position:absolute;right:16px;top:80px}
html:not(.shell-wide) .workspace-actions{min-height:44px;padding-right:48px;margin-bottom:12px}
html:not(.shell-wide) .workspace-nav .worksets{width:100%;box-sizing:border-box}
html:not(.shell-wide) .worksets button{padding-inline:0;gap:4px;min-width:0}
html:not(.shell-wide) .worksets .cnt{min-width:1ch}
html:not(.shell-wide) .project-title{margin-bottom:16px}
html:not(.shell-wide) .project-title .project-facts{font-size:var(--fs-sub);line-height:var(--lh-sub)}
html:not(.shell-wide) .team-member{padding:16px 0}
html:not(.shell-wide) .team-form label{font-size:var(--fs-cap)}
html:not(.shell-wide) .team-share-head{align-items:center;flex-wrap:wrap;gap:8px}
html:not(.shell-wide) .team-share-head .linkbtn{margin-left:auto}
html:not(.shell-wide) .project-pickzone{min-height:200px;padding:24px 16px}
html:not(.shell-wide) dialog{max-height:calc(100dvh - 32px);overflow-y:auto}

html:not(.shell-wide) .project-open #newProject{display:inline-flex}

#projectHome{display:none}
html:not(.shell-wide) #projectHome{display:inline-flex;white-space:nowrap;font-size:var(--fs-cap);padding-inline:12px}
html:not(.shell-wide) .project-open #projectHome{display:none}

html:not(.shell-wide) .project-shell{padding:0}
html:not(.shell-wide) .shell-head #projectHome,html:not(.shell-wide) .shell-head #projectBack,html:not(.shell-wide) .shell-head .module-name,html:not(.shell-wide) .shell-head #settings{display:none!important}
html:not(.shell-wide) .project-title h2{display:none}
