/* A shared layout rhythm; property values and existing handlers remain native. */
body.workspace-refined #rightpanel .row2:has(.field){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;}
body.workspace-refined #rightpanel .field:has(.adjuster-control){display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;}
body.workspace-refined #rightpanel .field:has(.adjuster-control)>label{margin:0;text-transform:none;letter-spacing:normal;color:var(--text-dim);}
body.workspace-refined #rightpanel .field>.adjuster-control{width:100%;box-sizing:border-box;}
body.workspace-refined #rightpanel .row.row-slider{display:grid;grid-template-columns:minmax(40px,1fr) 118px;gap:8px;align-items:center;min-width:0;}
body.workspace-refined #rightpanel .row.row-slider>label{grid-column:1/-1;max-width:none;white-space:normal;}
body.workspace-refined #rightpanel .row.row-slider>.pro-slider-range{grid-column:1;min-width:40px!important;width:100%;}
body.workspace-refined #rightpanel .row.row-slider>.slider-adjuster{grid-column:2;width:118px;min-width:0;}
body.workspace-refined #rightpanel .panel-body{min-width:0;}
body.workspace-refined #rightpanel{container-type:inline-size;container-name:properties-layout;}
body.workspace-refined #bottom-color-controls{height:40px;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;overflow-x:auto;overscroll-behavior-x:contain;}
body.workspace-refined #bottom-color-controls::-webkit-scrollbar{display:block;height:5px;}
body.workspace-refined #bottom-color-controls::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px;}
body.workspace-refined #bottom-color-controls>.btn{min-height:30px;}
body.workspace-refined #bottom-color-controls[data-overflow-end="true"]{box-shadow:inset -8px 0 7px -7px var(--text-dim);}
body.workspace-refined #toolopts{scrollbar-width:thin;overscroll-behavior-x:contain;}
body.workspace-refined #toolopts:focus-visible,body.workspace-refined #bottom-color-controls:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.modal-overlay>.modal{display:flex;flex-direction:column;min-width:0;max-height:calc(100dvh - 32px);overflow:hidden;}
.modal-overlay>.modal>.modal-header,.modal-overlay>.modal>.modal-footer{flex-shrink:0;}
.modal-overlay>.modal>.modal-body{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;}
.modal-overlay>.modal>.modal-footer{flex-wrap:wrap;gap:8px;}
.modal-overlay>.modal>.modal-footer .btn{white-space:normal;min-height:34px;}
.modal-overlay .home-new-form{grid-template-columns:repeat(2,minmax(0,1fr));}
.modal-overlay .home-new-form label,.modal-overlay .home-new-form input,.modal-overlay .home-new-form select{min-width:0;max-width:100%;}
@media(min-width:768px) and (max-width:1439px){body.workspace-refined #topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'brand document actions' 'menus menus menus';height:auto;padding-top:6px;padding-bottom:0;row-gap:5px;}body.workspace-refined #topbar>#logo{grid-area:brand;}body.workspace-refined #topbar>#doc-info{grid-area:document;min-width:0;overflow:hidden;justify-content:flex-end;}body.workspace-refined #topbar>#topbar-right{grid-area:actions;min-width:0;}body.workspace-refined #topbar>#menus{grid-area:menus;width:100%;min-width:0;border-top:1px solid var(--border-soft);overflow-x:auto;}}
@media(min-width:768px) and (max-width:1199px){body.workspace-refined #rightpanel .row2:has(.field .adjuster-control){grid-template-columns:minmax(0,1fr);}}
@media(min-width:901px) and (max-width:1199px) and (pointer:fine){:root:has(body.workspace-refined){--w-rightpanel:288px;}body.workspace-refined #rightpanel .row2:has(.field .adjuster-control){grid-template-columns:repeat(2,minmax(0,1fr));}#rightpanel .adjuster-step{flex-basis:26px;width:26px!important;min-width:26px!important;}#rightpanel .adjuster-control input[type=number]{font-size:13px!important;}}
@container properties-layout (max-width:279px){body.workspace-refined #rightpanel .row2:has(.field .adjuster-control){grid-template-columns:minmax(0,1fr);}}
@media(max-width:767px){body.workspace-refined #rightpanel .row2:has(.field .adjuster-control){grid-template-columns:minmax(0,1fr);}body.workspace-refined #rightpanel .row.row-slider{grid-template-columns:minmax(40px,1fr) 162px;}body.workspace-refined #rightpanel .row.row-slider>.slider-adjuster{width:162px;}.modal-overlay>.modal{max-height:100dvh;}.modal-overlay>.modal>.modal-footer .btn{min-height:44px;}}
@media(max-width:480px){.modal-overlay .home-new-form{grid-template-columns:minmax(0,1fr);}}
