/* Final responsive layer: keep real content in flow, with no clipped controls. */
.workspace>*{min-width:0}img,video{max-width:100%}dialog .dialog-heading>div{min-width:0}dialog .dialog-heading h2{overflow-wrap:anywhere}dialog .icon-button{flex-shrink:0}.file-metadata{overflow-wrap:anywhere}
@media(max-width:790px){
 .workspace{grid-template-columns:minmax(0,1fr)}.workspace>.catalog{order:0}.workspace>.assistant-panel{order:1;position:static;width:100%;margin-top:16px}
 .shell,main,section,.panel{min-width:0}.shell{margin-left:0}.topbar{height:auto;min-height:64px;padding:12px 16px;gap:10px}.top-actions{min-width:0;gap:8px;flex-wrap:wrap;justify-content:flex-end}.breadcrumb{min-width:0;overflow-wrap:anywhere}
 .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}.sidebar .nav-link{min-width:0;margin:0;gap:5px;padding:9px 3px;font-size:.875rem;text-align:center;justify-content:center}.sidebar .nav-count{display:none}
 .catalog-tabs{gap:12px;flex-wrap:wrap}.catalog-tabs button{min-height:44px;white-space:normal;text-align:left}.catalog-toolbar{align-items:stretch}.filters{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.filters button{min-height:44px;padding:8px;white-space:normal;font-size:.875rem}.catalog-toolbar>#compare-open{min-height:44px;padding:8px 12px;border:1px solid var(--theme-edge);border-radius:9px}
 input:not([type=checkbox]):not([type=range]),select,textarea,.search-row select,.search-field input{font-size:16px!important;min-width:0;max-width:100%}.search-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}.search-row>select{max-width:100%;width:100%;min-height:44px}.search-field{min-height:44px}
 .version-row{flex-wrap:wrap}.version-row .button{margin-left:0;width:100%}.card-facts{flex-wrap:wrap}.equipment-grid,.field-grid{grid-template-columns:minmax(0,1fr)}.hardware-strip{flex-wrap:wrap}.hardware-stat{min-width:0}.hardware-stat b{overflow-wrap:anywhere}.journey-head,.section-heading{flex-wrap:wrap}.saved-tag{white-space:normal}.step-content,.step-content>*{min-width:0}.step-content .actions,.step-content .button{max-width:100%;white-space:normal}.step-list{overflow-x:auto;max-width:100%}
 dialog,#system-dialog,#preferences-dialog,#theme-gallery{box-sizing:border-box;width:calc(100% - 24px);max-width:680px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px;margin:auto;border-radius:16px;overflow:auto;overscroll-behavior:contain}dialog::backdrop{backdrop-filter:none;background:#020912c9}.dialog-heading{gap:12px}.dialog-heading h2{font-size:1.25rem;line-height:1.35;letter-spacing:-.02em}.dialog-heading .icon-button{width:44px;height:44px}.comparison-selects{grid-template-columns:minmax(0,1fr);gap:12px}.comparison-selects select{width:100%}.comparison-tools{gap:12px}.comparison-tools .checkbox-row{min-height:44px}.comparison-tools .text-button{min-height:44px}
 #comparison-table table{min-width:0;display:block}#comparison-table thead,#comparison-table tbody{display:block}#comparison-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--theme-edge)}#comparison-table th,#comparison-table td{width:auto!important;min-width:0;padding:10px 8px;border:0;font-size:.875rem}#comparison-table tbody th{grid-column:1/-1;background:var(--theme-panel);font-size:.875rem}#comparison-table thead th:first-child{display:none}#comparison-table thead th{font-size:.9375rem}#comparison-table tr.comparison-different>th{border-left:3px solid var(--theme-accent)}
 .sound-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.sound-controls label{grid-column:1/-1}.sound-controls input[type=range]{width:100%;min-width:0}.sound-controls button{grid-column:1/-1;width:100%;white-space:normal}.theme-sound-panel{padding:14px}.preference-row>span{min-width:0}.preference-row input{flex-shrink:0}#theme-gallery .dialog-heading{position:static;top:auto;margin:0;padding:0 0 12px}.theme-choice{min-width:0}.theme-choice small{overflow-wrap:anywhere}
 .vfx-dust i:nth-child(n+9){display:none}.aurora-ribbons{filter:none}.welcome-wordmark{font-size:clamp(2.5rem,13vw,5rem)}.welcome-route{flex-wrap:wrap;justify-content:center;gap:16px}.welcome-route li{white-space:nowrap}footer{gap:16px;flex-wrap:wrap}
}
@media(max-width:540px){
 main{padding:20px 14px 0}.topbar{padding:10px 12px}.topbar .breadcrumb{display:none}.topbar .top-actions{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between}.top-actions .language-control{flex:1;min-width:0}.top-actions select{width:100%;min-width:0}.theme-shortcut{flex-shrink:0;min-height:44px;font-size:.875rem!important}.top-actions .icon-button{min-width:44px;min-height:44px}.is-welcome .topbar{gap:8px}.is-welcome .top-actions{width:auto;flex:1}.is-welcome .welcome-brand{flex-shrink:0}.sidebar{padding:8px 10px}.os-grid{grid-template-columns:minmax(0,1fr)}.intro{padding:22px 18px}.intro h1{font-size:clamp(1.7rem,8vw,2.3rem)}.os-card{padding:18px}.assistant-panel{padding:18px}.detail-summary dl{grid-template-columns:minmax(0,1fr)}.theme-choice{padding:10px}.theme-choice b{font-size:.875rem}.theme-sound-panel .preference-row{gap:10px}
}
@media(max-width:360px){#theme-gallery .theme-grid{grid-template-columns:minmax(0,1fr)}.sidebar .nav-link{font-size:.8125rem}.top-actions .theme-shortcut{font-size:.8125rem!important;padding:8px}.theme-preview{height:100px}.resume-meter{width:60px}.resume-copy{flex-basis:calc(100% - 75px)}}
