/* Выпуск 0.5: доступность и управляемые панели. */
html[data-large-text=true]{font-size:200%}
.operation-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px 15px}
.operation-groups details{min-width:0;border:1px solid var(--line);border-radius:7px}
.operation-groups summary{cursor:pointer;padding:10px;font-size:.6875rem;min-height:44px;line-height:1.5}
.group-steps{display:flex;flex-direction:column;gap:3px;padding:4px 8px 8px}
.group-steps button{display:flex;align-items:center;gap:8px;text-align:left;min-height:44px;padding:7px 9px;border:1px solid transparent;border-radius:5px;background:#f6f8f2;font-size:.6875rem;line-height:1.5;overflow-wrap:anywhere}
.group-steps button[aria-current=step]{background:#e2eedc;border-color:#7d9a70;color:#234c35}
.group-steps .group-result{background:white;border-color:#cdd8c7;color:#28563f;font-weight:600}
button,select,input{max-width:100%}button{overflow-wrap:anywhere}h1,h2,h3,p{overflow-wrap:anywhere}
.card-scroll,.tree-scroll,.dialog-body,.search-results{overscroll-behavior:contain}
.card-scroll{overflow-x:hidden;scroll-padding-block:12px}
.workspace-header,.topbar,.scene-top,.viewer-toolbar,.workspace-footer{min-width:0}
.viewer-toolbar{flex-wrap:wrap;height:auto}
.viewer-tool-group{min-width:0;flex-wrap:wrap}
.floating-tool-panel{max-height:calc(100% - 12px);overflow:auto}
dialog{overflow:auto;scroll-padding-block:12px}
.dialog-buttons{flex-wrap:wrap}
dialog .dialog-head{position:sticky;top:0;background:var(--panel);z-index:1}
.search-result,.tree-select{height:auto}
.learning-question .learning-buttons{flex-wrap:wrap}
html[data-large-text=true] .workspace{height:auto;min-height:100dvh;grid-template-rows:auto auto minmax(420px,1fr) auto auto}
html[data-large-text=true] .topbar,html[data-large-text=true] .workspace-header{height:auto;min-height:84px;flex-wrap:wrap}
html[data-large-text=true] .workspace-header{display:flex;padding-block:12px}
html[data-large-text=true] .mode-tabs{flex-wrap:wrap;min-width:0}
html[data-large-text=true] .mode-tabs button{white-space:normal;min-height:44px}
html[data-large-text=true] .project-heading b{max-width:100%;white-space:normal}
html[data-large-text=true] .workspace-footer{flex-wrap:wrap;min-height:36px;padding-block:8px}
html[data-large-text=true] .viewer-layout{min-height:70dvh}
html[data-large-text=true] .scene-column{min-height:420px}
html[data-large-text=true] .mode-panel{max-height:45dvh}
html[data-large-text=true] .tree-panel,html[data-large-text=true] .component-panel{min-height:0}
html[data-large-text=true] .panel-title{flex-wrap:wrap}
html[data-large-text=true] .topbar-actions{flex-wrap:wrap;gap:4px}
html[data-large-text=true] .icon-button{min-width:44px;min-height:44px}
html[data-large-text=true] .scene-top{flex-wrap:wrap}
html[data-large-text=true] .floor-chips{flex-wrap:wrap}
@media(max-width:700px){
 .operation-groups{grid-template-columns:1fr;padding-inline:10px}
 .workspace .topbar{height:auto;min-height:57px}
 .topbar-actions{gap:0}
 .floating-tool-panel{max-width:calc(100% - 16px)}
 .workspace-footer{overflow:auto}
 .mobile-nav{padding-bottom:env(safe-area-inset-bottom)}
 .tree-panel,.component-panel{padding-bottom:env(safe-area-inset-bottom)}
 html[data-large-text=true] .workspace-header{display:flex}
 html[data-large-text=true] .viewer-layout{min-height:75dvh}
 html[data-large-text=true] .scene-column{height:75dvh}
 html[data-large-text=true] .mode-tabs{width:100%}
 html[data-large-text=true] .mode-tabs button{flex:1 1 100%}
 html[data-large-text=true] .topbar{padding-block:8px;gap:4px}
 html[data-large-text=true] .brand{white-space:normal}
 html[data-large-text=true] .brand small{letter-spacing:.5px}
 html[data-large-text=true] .section-label{flex-wrap:wrap;gap:8px}
 html[data-large-text=true] .hero-meta{flex-wrap:wrap;gap:8px}
 html[data-large-text=true] .continue-button{min-width:0;width:100%}
 html[data-large-text=true] .radio-cards{grid-template-columns:1fr}
 html[data-large-text=true] .config-heading h1{font-size:1.5rem}
}
@media(max-height:500px){
 .mode-panel{max-height:45%;overflow:auto}
 .mobile-nav{min-height:44px}
 .scene-hint{display:none}
}

@media(max-height:500px){.camera-tools{flex-direction:row;right:8px;bottom:6px;padding:1px}.camera-tools .icon-button{width:36px;height:36px}.axis-indicator{display:none}.scene-label{top:8px;left:12px;max-width:45%}.scene-label strong{font-size:.625rem}.scene-label>span{display:none}.floating-tool-panel{top:4px}.mode-panel{max-height:44%}}
