/* Shared density refinements. ARIA's colors, radius, typography and focus remain. */
:where(main,dialog) button{min-height:42px;padding:9px 14px;line-height:1.3;align-self:start}:where(main,dialog) button.button-compact{min-height:36px;padding:7px 11px}:where(main,dialog) button.button-large{min-height:48px}:where(main,dialog) .field{gap:6px;margin-bottom:6px}:where(main,dialog) .fields{gap:16px;align-items:start}:where(main,dialog) .field input,:where(main,dialog) select{min-height:42px;padding:9px 11px}:where(main,dialog) .card{padding:22px}:where(main,dialog) .toggle{padding:10px 0;min-height:44px;gap:16px;align-items:center}.product-editor .toggle{max-width:100%;min-height:44px}.product-editor .drop-zone{min-height:140px;padding:14px}.product-editor .drop-zone img{height:88px;width:88px;object-fit:contain}.product-editor .image-control{width:100%;max-width:360px}.product-editor .toolbar{padding-bottom:0;margin-bottom:10px;border:0}.product-editor .save-bar .primary{min-width:150px}.product-editor textarea{min-height:96px}.product-editor [hidden]{display:none!important}.human-inbox .toolbar{align-items:center;gap:10px}#human-reply button{min-height:42px}#human-detail .human-bubble{padding:11px 14px}#human-detail .human-bubble.system{padding:4px 8px}@media(max-width:430px){:where(main,dialog) .card{padding:18px}dialog>div{padding:18px}dialog>header{padding:16px 18px}.product-editor .fields{grid-template-columns:1fr}}
/* Unequal sections flow together instead of forcing an empty row beside Price. */
dialog:has(.product-editor){max-width:980px}.product-editor .product-grid{grid-template-areas:"information price" "information availability" "details presentation";align-items:start}.product-editor .form-section:nth-child(1){grid-area:information}.product-editor .form-section:nth-child(2){grid-area:price}.product-editor .form-section:nth-child(3){grid-area:availability}.product-editor .form-section:nth-child(4){grid-area:presentation}.product-editor .form-section:nth-child(5){grid-area:details}.product-editor .form-section:first-child .field:first-child{grid-column:1/-1}.product-editor .form-section:nth-child(2) .fields{grid-template-columns:minmax(100px,1fr) minmax(0,1.8fr)}@media(max-width:768px){.product-editor .product-grid{grid-template-areas:"information" "price" "availability" "presentation" "details"}.product-editor .form-section:nth-child(2) .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.product-editor .form-section:nth-child(2) .fields{grid-template-columns:1fr}}

.human-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.human-toolbar>label{margin:0;display:block;flex:0 0 auto}.human-toolbar>select,.human-toolbar>button{height:42px;min-height:42px;margin:0;border-radius:10px;padding:8px 12px;align-self:center;width:auto}.human-toolbar>select{min-width:150px}.human-toolbar>#ai-history{background:var(--brand-surface);color:inherit;border:1px solid var(--border)}
@media(max-width:430px){.human-toolbar>label{flex-basis:100%}.human-toolbar>select,.human-toolbar>button{flex:1 1 auto;min-width:0}}

.human-toolbar>#human-filter,.human-toolbar>#ai-history{box-sizing:border-box;min-height:42px;height:42px}

.human-toolbar>label{width:auto;min-width:0;max-width:none}

#human-reply #human-message{box-sizing:border-box;display:block;width:100%;height:44px;min-height:44px;max-height:148px;padding:10px 12px;line-height:22px;resize:none;overflow-y:hidden}
