body:has(#constructorView:not([hidden])) { height:100vh; height:var(--gp-available-height,100dvh); overflow:hidden; }
#constructorView.constructor-shell { height:calc(100vh - var(--gp-header-height,72px)); height:calc(var(--gp-available-height,100dvh) - var(--gp-header-height,72px)); min-height:0; display:flex; flex-direction:column; overflow:hidden; }
#constructorView[hidden] { display:none; }
#constructorView .constructor-header { flex:0 0 auto; }
#constructorView #constructorFrame,#constructorView.has-family-configurator #constructorFrame { flex:1 1 0; min-height:0; height:0; }
.materials-dialog { width:min(960px,calc(100% - 32px)); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); padding:20px; color:#eee; background:#141519; border:1px solid #806b43; border-radius:6px; overflow:auto; }
.materials-dialog::backdrop { background:rgba(0,0,0,.72); }
.materials-dialog-close { display:flex; justify-content:flex-end; margin:0; }
.materials-dialog-close button { width:44px; height:44px; padding:0; background:#141519; color:#b8bdc5; border:1px solid #37383c; border-radius:4px; font-size:24px; cursor:pointer; }
.materials-dialog-close button:hover { color:#f2f3f5; border-color:#77705e; background:#202228; }
.materials-dialog .materials-section { padding:0; }
.materials-dialog .section-heading { display:block; }
.materials-dialog .section-heading h2 { margin-bottom:16px; }
.materials-dialog .material-market-grid article { min-height:0; padding:16px 0; border:0; border-top:1px solid #37383c; border-radius:0; background:transparent; box-shadow:none; }
.materials-dialog h2 { font-size:24px; }
.materials-dialog .material-market-grid { display:block; }
.materials-dialog .material-market-grid article { display:block; padding:16px 0; }
.materials-dialog .material-market-grid h3 { font-size:17px; color:#ead7af; margin:0 0 6px; }
.materials-dialog .material-market-grid p { font-size:14px; color:#bac0c5; }
.materials-dialog .section-note { max-width:none; padding:0; border:0; background:none; font-size:14px; color:#bac0c5; }
.materials-dialog .material-photo { width:100%; height:160px; display:block; object-fit:cover; object-position:center; margin:18px 0 8px; border-radius:4px; }
.materials-dialog { width:min(720px,calc(100% - 32px)); }
.material-request { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-top:18px; border-top:1px solid #37383c; }
.material-request .button { min-height:44px; max-width:100%; padding:0 13px; font:inherit; font-size:12px; font-weight:600; line-height:20px; color:#d8c296; background:rgba(198,170,111,.045); border:1px solid rgba(198,170,111,.28); border-radius:6px; box-shadow:none; cursor:pointer; transition:background 150ms ease,border-color 150ms ease,color 150ms ease; }
.material-request #requestMaterial { width:248px; }
.material-request .button:hover { color:#ead7af; background:rgba(198,170,111,.09); border-color:rgba(218,188,128,.48); transform:none; box-shadow:none; }
.material-request .button[aria-pressed="true"] { background:rgba(198,170,111,.09); border-color:rgba(218,188,128,.48); color:#ead7af; }
.material-request #cancelMaterialRequest { background:transparent; color:#abb1b9; border-color:#37383c; }
.material-request #cancelMaterialRequest:hover { background:#202228; color:#f2f3f5; border-color:#646970; }
.material-request .button:focus-visible,.materials-dialog-close button:focus-visible { outline:2px solid #c6a15f; outline-offset:3px; }
.material-request p { margin:0; width:100%; font-size:13px; color:#bac0c5; }
/* Match the shared header's navigation breakpoint, not the legacy 1120px toggle. */
.site-header.gp-app-header .mobile-toggle { display:none; }
.site-header.gp-app-header + .mobile-panel { display:none; }
@media (max-width:860px) {
  .site-header.gp-app-header .mobile-toggle { display:grid; }
  .site-header.gp-app-header + .mobile-panel {
    position:fixed;
    top:56px;
    left:0;
    right:0;
    z-index:2147480999;
  }
  .site-header.gp-app-header + .mobile-panel.is-open { display:grid; }
}
@media (max-width:1100px) {
  .materials-dialog { padding:16px; }
  .materials-dialog .material-market-grid { grid-template-columns:minmax(0,1fr); }
  html,body { min-width:0; }
  .gp-app-header { --gp-header-height:56px; height:56px; min-height:56px; padding-inline:12px; gap:8px; }
  .gp-app-brand-name { font-size:18px; }
  .gp-app-header .gp-app-brand-mark { width:32px; height:32px; }
  .site-header.gp-app-header { grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:56px; padding:0 12px; gap:8px; }
  .site-header.gp-app-header .desktop-nav { grid-column:2; grid-row:1; width:auto; min-width:0; margin:0; }
  .site-header.gp-app-header .header-actions { grid-column:3; grid-row:1; min-width:0; }
  .site-header.gp-app-header .brand { grid-column:1; grid-row:1; min-width:0; gap:8px; }
  .site-header.gp-app-header .brand-text strong { font-size:18px; }
  .site-header.gp-app-header .brand-logo { width:32px; height:32px; }
  .site-header.gp-app-header [data-cart-link] { min-height:44px; }
  .site-header.gp-app-header [data-cart-link] > span { display:none; }
  .site-header.gp-app-header .mobile-toggle { width:44px; height:44px; min-width:44px; }
  .mobile-panel { max-height:calc(100dvh - 56px); overflow:auto; overscroll-behavior:contain; }
  .gp-service-menu,.gp-contact-menu { max-height:calc(100dvh - 76px); }
  .request-modal-close { min-width:44px; min-height:44px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea { font-size:16px; }
  body:has(#constructorView:not([hidden])) { height:100vh; height:var(--gp-available-height,100dvh); overflow:hidden; }
  #constructorView.constructor-shell { height:calc(100vh - 56px); height:calc(var(--gp-available-height,100dvh) - 56px); min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  #constructorView[hidden] { display:none; }
  #constructorView .constructor-header { flex:0 0 48px; height:48px; min-height:48px; padding:4px 10px; display:flex; gap:10px; overflow:hidden; }
  #constructorView .constructor-identity { flex:1; display:block; min-width:0; }
  #constructorView .constructor-identity strong { display:block; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #constructorView .constructor-identity span { display:none; }
  #constructorView .manual-review-toolbar { display:none; }
  #constructorView #backToCatalog { flex:none; min-height:40px; padding:0 10px; font-size:12px; white-space:nowrap; }
  #constructorView #constructorFrame,#constructorView.has-family-configurator #constructorFrame { flex:1 1 0; width:100%; min-height:0; height:0; }
  #constructorView .family-configurator { position:static!important; width:auto!important; min-width:0!important; min-height:0!important; max-height:148px; padding:8px 10px; flex:0 0 auto; overflow:auto; display:block; }
  #constructorView .family-configurator[hidden] { display:none!important; }
  #constructorView .family-configurator__identity,#constructorView .family-configurator__state { display:none; }
  #constructorView .family-configurator__controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  #constructorView .family-configurator__controls button { min-height:40px; padding:5px 8px; font-size:12px; }
  .catalog-shell { padding:18px 12px; }
  .catalog-header { padding-bottom:16px; }
  .catalog-header .eyebrow,.catalog-header p,.category-browser { display:none; }
  .catalog-header h1 { margin:0; font-size:26px; }
  .catalog-toolbar { min-width:0; grid-template-columns:minmax(0,1fr); padding:16px 0; }
  .catalog-toolbar .filter-field:has(#categoryFilter) { display:grid; }
  .catalog-toolbar input,.catalog-toolbar select { font-size:16px; min-height:44px; }
  .model-card,.card-content { min-width:0; }
  .card-actions { display:grid; grid-template-columns:minmax(0,1fr); }
  .card-actions a { min-height:44px; white-space:normal; text-align:center; }
}
