*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:#f5f4ef;color:#18392f;font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #82a451;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;margin-bottom:8px;line-height:1.35}h2{font-size:19px;margin:0;line-height:1.5}h3{font-size:16px;margin:0;line-height:1.5}small{font-size:12px}.admin-shell{width:min(1280px,calc(100% - 64px));margin:auto}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0;border-bottom:1px solid #d9ddd4}.admin-brand{display:flex;align-items:center;gap:18px;min-width:0;font-size:17px;font-weight:600}.admin-brand img{width:100px;height:auto}.brand-sub{display:block;font-size:9px;letter-spacing:1.4px;color:#6a7c65;font-weight:400}.header-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:13px}.header-actions form{margin:0}.account{color:#657368}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:32px 0 26px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:600;color:#6a7c65;margin-bottom:8px}.muted{color:#657368;margin-bottom:0;overflow-wrap:anywhere}.panel{background:#f9f8f3;border:1px solid #d9ddd2;border-radius:12px;padding:24px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.panel-heading .help{margin-bottom:0}.help,.field small{font-size:12px;color:#6a7666;line-height:1.7;margin:8px 0 0}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #173d32;background:#183d32;color:#fff;border-radius:7px;line-height:1.5;font-weight:600;text-align:center}.button:hover{background:#285342}.button.secondary{background:#eeeee6;color:#18392f;border-color:#d1d8c9}.button.secondary:hover{background:#e2e8d8}.button.small{font-size:12px;padding:8px 13px;min-height:40px}.button.full{width:100%}.button.danger{background:#993d34;border-color:#993d34}.field{display:flex;flex-direction:column;gap:7px;margin:0 0 18px;min-width:0;font-weight:600;font-size:13px}.field small{font-weight:400;margin:0}.field input:not([type=checkbox]),.field select,.field textarea{width:100%;min-height:44px;border:1px solid #cdd5c7;border-radius:6px;padding:10px 12px;background:#fff;color:#18392f;font-weight:400;min-width:0}.field input[type=file]{padding:8px;font-size:12px}.field input::file-selector-button{border:0;border-radius:4px;background:#eeeee6;color:#18392f;padding:6px 10px;margin-right:10px;font:inherit;cursor:pointer}.field textarea{resize:vertical;min-height:120px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.required{color:#9a3a32}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{padding:18px 22px;background:#eeeee6}.stat span,.stat small{display:block;color:#657368}.stat strong{display:block;font-size:30px;line-height:1.4;margin:5px 0 2px}.stat:hover{border-color:#82a451}.filters{display:grid;grid-template-columns:minmax(210px,1.7fr) repeat(3,minmax(140px,1fr)) auto;gap:12px;align-items:end;padding:18px;background:#eeeee6;border:1px solid #d9ddd2;border-radius:8px;margin-bottom:20px}.filters .field{margin:0}.filter-actions{display:flex;gap:8px}.list-head{display:grid;grid-template-columns:minmax(270px,2fr) minmax(130px,1fr) 110px 186px;gap:20px;font-size:12px;color:#6a7666;padding:10px 16px}.product-row{display:grid;grid-template-columns:minmax(270px,2fr) minmax(130px,1fr) 110px 186px;gap:20px;align-items:center;border:1px solid #dfe3d8;background:#fff;border-radius:8px;padding:16px;min-width:0}.product-row+.product-row{margin-top:10px}.row-product{display:flex;gap:16px;align-items:center;min-width:0}.row-product img{width:88px;height:72px;object-fit:contain;background:#f5f4ef;border:1px solid #e6e9e0;border-radius:5px;flex-shrink:0}.row-product>div{min-width:0;overflow-wrap:anywhere}.row-product p{font-size:12px;color:#657368;margin:5px 0}.row-product small{font-size:11px;color:#7b887b}.row-category p,.row-status p{font-size:12px;color:#6a7666;margin:7px 0 0;overflow-wrap:anywhere}.badge{display:inline-flex;font-size:11px;line-height:1.6;padding:3px 8px;border-radius:4px;border:1px solid #d4dec8;background:#e2e8d8;color:#526f3a}.badge.neutral,.badge.draft{background:#f0f0e9;border-color:#dfe2d5;color:#657368}.badge.deleted{color:#8b473e;border-color:#e6cfc7;background:#f8eeeb}.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.delete-link{display:inline-flex;align-items:center;min-height:40px;color:#994c43;padding:6px}.text-link{font-size:13px;white-space:nowrap;min-height:44px;display:flex;align-items:center}.pagination{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#657368;margin-top:24px}.pagination>div{display:flex;gap:10px}.empty{padding:40px 20px;text-align:center;border:1px dashed #d1d8c9;border-radius:8px;color:#657368}.empty p{margin:10px 0 20px}.alert{border:1px solid #cbdcbd;background:#eaf1e1;color:#3d642d;border-radius:8px;padding:14px 18px;margin:0 0 22px;overflow-wrap:anywhere}.alert.error{border-color:#e4c4b7;background:#fbefea;color:#8c4532}.editor-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}.editor-column{display:flex;flex-direction:column;gap:24px;min-width:0}.spec-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr) auto;gap:12px;align-items:end;padding:14px;background:#eeeee6;border:1px solid #d9ddd2;border-radius:7px;margin-bottom:12px}.spec-row .field{margin:0}.remove-spec{border:0;background:transparent;color:#994c43;min-height:44px;padding:8px 4px;font-size:12px}.main-image-preview{height:250px;background:#eeeee6;border:1px solid #d9ddd2;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:18px}.main-image-preview img{width:100%;height:100%;object-fit:contain}.main-image-preview p{color:#6a7666;margin:0}.gallery-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.gallery-tile{background:#eeeee6;border:1px solid #d9ddd2;border-radius:6px;overflow:hidden;min-width:0}.gallery-tile img{width:100%;height:100px;object-fit:contain;display:block;background:#fff}.gallery-tile span{display:flex;align-items:center;gap:5px;padding:8px;font-size:11px;min-height:42px;overflow-wrap:anywhere}.gallery-tile input{accent-color:#173d32;width:16px;height:16px;flex-shrink:0}.publish-panel{background:#eeeee6}.cancel-link{display:block;text-align:center;color:#657368;font-size:12px;padding:12px;min-height:44px}.login-panel{max-width:450px;margin:64px auto 100px;padding:34px}.login-panel .muted{margin-bottom:24px;font-size:13px}.confirm-panel{max-width:660px;margin:56px auto;padding:32px}.confirm-panel>p:not(.eyebrow){line-height:1.8;margin:20px 0}.delete-product{display:flex;align-items:center;gap:20px;border:1px solid #d9ddd2;background:#eeeee6;border-radius:8px;padding:16px;margin:24px 0;overflow-wrap:anywhere}.delete-product img{object-fit:contain;flex-shrink:0}.confirm-actions{display:flex;gap:12px;flex-wrap:wrap}.admin-footer{margin-top:40px;padding:22px 0;border-top:1px solid #d9ddd4;color:#7b887b;font-size:11px}.skip{position:absolute;top:-80px;left:16px;padding:10px;background:#173d32;color:white}.skip:focus{top:8px}
@media(max-width:1100px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters .search{grid-column:span 2}.list-head,.product-row{grid-template-columns:minmax(230px,1.5fr) minmax(120px,1fr) 95px 150px;gap:14px}.row-actions{gap:4px}.button.small{padding:8px 9px}.editor-columns{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.panel{padding:20px}.gallery-editor{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.list-head{display:none}.product-row{grid-template-columns:minmax(0,1fr) minmax(120px,.55fr);gap:14px}.row-product{grid-column:1/-1}.row-actions{grid-column:1/-1;border-top:1px solid #e6e9e0;padding-top:12px;gap:10px}.row-status{text-align:right}.editor-columns{grid-template-columns:1fr}.stats{gap:12px}.stat{padding:16px}.field-grid{gap:14px}.row-category p{display:inline;margin-left:10px}.gallery-editor{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.admin-shell{width:calc(100% - 32px)}.admin-header{flex-wrap:wrap;gap:16px;padding:18px 0}.admin-brand{gap:12px;font-size:15px}.admin-brand img{width:88px}.header-actions{width:100%;justify-content:space-between;gap:12px}.page-heading{align-items:flex-start;gap:16px;flex-direction:column;margin:26px 0 22px}.page-heading>.button{align-self:flex-start}h1{font-size:25px}.panel{padding:18px;border-radius:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:14px 16px}.stat strong{font-size:26px}.filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.filters .search{grid-column:1/-1}.filter-actions{align-self:end;flex-wrap:wrap}.filter-actions .button{flex:1;padding:10px 12px}.panel-heading{gap:12px;flex-wrap:wrap}h2{font-size:18px}.product-row{padding:14px;gap:12px}.row-product{gap:12px}.row-product img{width:74px;height:66px}.row-product h3{font-size:15px}.row-category p{display:block;margin:7px 0 0}.pagination{align-items:flex-start;gap:12px;flex-wrap:wrap}.spec-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:10px}.remove-spec{grid-column:1/-1;justify-self:end;min-height:40px;padding:0 6px}.spec-row .field{font-size:12px}.spec-row input{padding:9px}.field-grid{grid-template-columns:1fr;gap:0}.gallery-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-tile img{height:110px}.main-image-preview{height:220px}.editor-column,.editor-columns{gap:18px}.login-panel{margin:30px auto 60px;padding:24px}.confirm-panel{margin:30px auto;padding:24px}.delete-product{gap:12px;padding:12px}.delete-product img{width:86px;height:80px}.button.small,.delete-link,.remove-spec{min-height:44px}.admin-footer{margin-top:28px}}

@media(max-width:600px){.spec-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr) 32px}.remove-spec{grid-column:auto;justify-self:end;padding:4px;align-self:end}.spec-row .field{overflow-wrap:anywhere}}

/* AM default-language settings: group fields and save action together. */
.language-setting-row{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap}.language-setting-row .field{flex:1;max-width:620px;min-width:200px;margin:0}.language-setting-row>.button{margin-top:26px}.language-setting-help{margin-top:22px;padding:18px;border:1px solid #d9ddd2;border-radius:8px;background:#eeeee6;line-height:1.8}.language-setting-help h3{font-size:14px;margin:0}.language-setting-help p{font-size:13px;color:#657368;margin:8px 0 0}.language-settings form{min-width:0}@media(max-width:600px){.language-setting-row{gap:14px}.language-setting-row .field{min-width:0;flex-basis:100%}.language-setting-row>.button{margin-top:0}.language-setting-help{padding:14px}.language-settings .badge{white-space:normal;overflow-wrap:anywhere}}

/* AM suite panels */
.compact-search{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:20px 0}.compact-search .field{flex:1;min-width:180px;margin:0}.management-list{display:flex;flex-direction:column;gap:12px}.management-row{display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid #d9ddd2;background:#fff;border-radius:8px;padding:16px;min-width:0}.management-row>div{min-width:0;overflow-wrap:anywhere}.parameter-group{padding:16px;border:1px solid #d9ddd2;border-radius:8px;background:#eeeee6;margin-top:16px}.parameter-group h3{margin-bottom:14px}.module-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.module-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #d9ddd2;border-radius:7px;background:#eeeee6;padding:12px;min-width:0}.module-option input{width:18px;height:18px;flex-shrink:0;accent-color:#173d32;margin-top:3px}.module-option strong{font-size:13px}.module-option small{display:block;margin-top:5px;font-size:11px;line-height:1.7;color:#657368}.theme-swatches{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.swatch{padding:7px 12px;border-radius:6px;color:#fff;font-size:12px}.swatch.forest{background:#173d32}.swatch.ocean{background:#1f607c}.swatch.earth{background:#795534}.swatch.midnight{background:#203037}@media(max-width:600px){.module-options{grid-template-columns:1fr}.management-row{align-items:flex-start;flex-wrap:wrap}.compact-search .field{flex-basis:100%;min-width:0}.management-row>.row-actions{border-top:0;padding-top:0}}
.category-tree-admin{display:flex;flex-direction:column;gap:20px}.category-family{margin-bottom:0}.category-family .panel-heading{align-items:flex-start;gap:16px}.category-family h2{margin:8px 0}.category-counts{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:#63766a}.category-children{background:#f1f3ed;border:1px solid #dde2d6;border-radius:12px;padding:8px 18px}.category-children .management-row{background:transparent}.category-children h3{margin:6px 0}.category-empty{margin:14px 0}.category-controls .field-grid{margin-bottom:0}.category-sync-status:empty{display:none}.category-family .row-actions{flex-wrap:wrap;flex-shrink:0}@media(max-width:680px){.category-family .panel-heading{flex-direction:column}.category-family .row-actions{width:100%;justify-content:flex-start}.category-children{padding:4px 12px}.category-counts{gap:6px 12px}}
.site-review-details{margin:0}.site-review-details>div{padding:10px 0;border-bottom:1px solid #d9ddd2}.site-review-details dt{font-size:12px;color:#657368}.site-review-details dd{margin:6px 0 0;overflow-wrap:anywhere;white-space:pre-line}.site-review-details .text-link{white-space:normal;overflow-wrap:anywhere;display:inline;line-height:1.8}

/* AM footer configuration: compact, visibly grouped, responsive. */
.contact-qr-preview img{width:160px;height:160px;object-fit:contain;background:#fff;border:1px solid var(--line,#d9ded4);border-radius:8px;max-width:100%}.contact-upload-rules{padding:16px;margin:16px 0;border:1px solid var(--line,#d9ded4);border-radius:12px;background:var(--soft,#f2f3ed)}.contact-upload-rules h3{margin:0 0 10px}.contact-upload-rules p{margin:6px 0;overflow-wrap:anywhere}

.profile-image-preview{padding:16px;border:1px solid #d9ddd2;border-radius:8px;background:#eeeee6;margin-bottom:16px}.profile-image-preview img{display:block;max-width:100%;height:auto;object-fit:contain}.logo-preview img{width:auto;max-width:200px;max-height:110px}.banner-preview img{width:100%;aspect-ratio:8/3}.product-visibility{display:inline-flex}

/* am-product-groups-v1: bounded visibility sections, with lighter product rows. */
/* am-product-heading-toggle-v1: a single full-width heading control. */
.product-groups{display:flex;flex-direction:column;gap:22px}.product-group{min-width:0;border:1px solid #cfd8c8;border-radius:10px;background:#f0f2e9;overflow:hidden;scroll-margin-top:16px}.product-group-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px}.product-group-intro{min-width:0}.product-group-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-group-title h3{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.product-group-heading .help{margin-top:5px}.group-count{display:inline-flex;align-items:center;font-size:12px;white-space:nowrap;border-radius:20px;padding:2px 10px;background:#fff;border:1px solid #d7ddcf;color:#607353}.product-group-heading[role=button]{cursor:pointer;user-select:none}.product-group-heading[role=button]:hover{background:#e7ecdf}.product-group-heading[role=button]:focus-visible{outline:3px solid #82a451;outline-offset:-3px}.product-group-body[hidden]{display:none}.group-chevron{display:none;flex-shrink:0;font-size:18px;line-height:1;transform:rotate(0deg)}.product-group-heading[role=button] .group-chevron{display:inline-block}.product-group-heading[aria-expanded=false] .group-chevron{transform:rotate(180deg)}.product-group-body{padding:0 16px 16px;border-top:1px solid #dae1d1}.product-group-body .pagination{margin-top:16px}.product-group .row-product h4{font-size:16px;line-height:1.5;margin:0}.product-group[data-product-group=draft]{background:#f2f1ea;border-color:#d8d8cc}.group-empty{margin-top:16px;background:#fafaf6;padding:24px 16px}.group-empty h4{font-size:15px;margin:0}.group-empty p{margin-bottom:0}.product-group .list-head,.product-group .product-row{grid-template-columns:minmax(0,2fr) minmax(100px,1fr) 100px 186px}
@media(max-width:1100px){.product-group .list-head,.product-group .product-row{grid-template-columns:minmax(0,1.5fr) minmax(90px,1fr) 90px 150px;gap:14px}}
@media(max-width:850px){.product-group .product-row{grid-template-columns:minmax(0,1fr) minmax(100px,.55fr);gap:14px}.product-group-body{padding-top:14px}}
@media(max-width:600px){.product-groups{gap:18px}.product-group-heading{padding:14px 12px;gap:10px;align-items:flex-start}.product-group-title{gap:6px}.product-group-title h3{font-size:16px}.group-chevron{margin-top:4px}.product-group-body{padding:12px 10px}.product-group .product-row{grid-template-columns:minmax(0,1fr) minmax(70px,.5fr);padding:12px;gap:12px}.product-group .row-product h4{font-size:15px}.group-count{font-size:11px;padding:1px 8px}.group-empty{margin-top:0;padding:20px 12px}}

/* am-guiji-admin-privacy-v1: a main-site-only published policy utility. */
.privacy-policy-panel{scroll-margin-top:20px}.privacy-policy-panel>.help{margin:0 0 14px}.privacy-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:14px}.privacy-public-url{display:block;min-width:0;padding:12px 14px;background:#fff;border:1px solid #d9ddd2;border-radius:7px;color:#183d32;font-size:13px;line-height:1.65;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.privacy-copy-status{margin:0 0 14px;color:#183d32}.privacy-copy-status:empty{display:none}
@media(max-width:600px){.privacy-link-row{grid-template-columns:1fr}.privacy-link-row>.button{justify-self:start}.privacy-public-url{padding:10px 12px}}

/* am-bulk-product-visibility-v1: group actions and a dedicated selection column. */
.bulk-visibility-form{display:inline-flex;align-items:center;margin:0;min-width:0}.bulk-selection-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 4px 10px}.bulk-selection-tools .help{margin:0}.bulk-select-page{display:inline-flex;align-items:center;gap:9px;cursor:pointer;min-height:32px;font-size:13px}.row-select{display:flex;align-items:center;justify-content:center;min-width:0}.row-select input,.bulk-select-page input{width:19px;height:19px;margin:0;accent-color:#173d32;cursor:pointer;flex-shrink:0}.row-select input:disabled{cursor:default}.product-group .list-head,.product-group .product-row{grid-template-columns:28px minmax(0,2fr) minmax(100px,1fr) 100px 166px}.product-group .row-product{min-width:0}.product-group .row-product>div{min-width:0;overflow-wrap:anywhere}.bulk-visibility-form .button{white-space:nowrap}
@media(max-width:1100px){.product-group .list-head,.product-group .product-row{grid-template-columns:28px minmax(0,1.5fr) minmax(90px,1fr) 90px 150px;gap:14px}}
@media(max-width:850px){.product-group .product-row{grid-template-columns:28px minmax(0,1fr) auto;gap:12px}.product-group .row-select{grid-column:1;grid-row:1;align-self:start;padding-top:20px}.product-group .row-product{grid-column:2/-1;grid-row:1}.product-group .row-category{grid-column:2;grid-row:2}.product-group .row-status{grid-column:3;grid-row:2}.product-group .row-actions{grid-column:2/-1;grid-row:3}.bulk-selection-tools{padding-top:0}}
@media(max-width:600px){.product-group .product-row{grid-template-columns:24px minmax(0,1fr) auto;gap:10px}.product-group .row-product img{width:64px;height:60px}.product-group .row-category p{font-size:12px}.bulk-visibility-form .button{padding:8px 12px}.bulk-selection-tools{gap:8px 14px}.bulk-select-page{min-height:40px}.product-group .row-status{font-size:12px}.product-group .row-product{gap:10px}}

/* am-product-category-buttons-v1: compact live category filters belong to the product heading. */
.product-group-intro{flex:1}.product-category-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0;max-width:100%}.product-category-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;max-width:100%;padding:5px 12px;border:1px solid #ccd6c4;border-radius:6px;background:#fff;color:#365846;font-size:13px;line-height:1.5;overflow-wrap:anywhere;text-decoration:none;user-select:text}.product-category-button:hover{background:#e0e9d7;border-color:#9cb589}.product-category-button.is-active{background:#173d32;border-color:#173d32;color:#fff;font-weight:700}.product-category-button:focus-visible{outline:3px solid #82a451;outline-offset:2px}
@media(max-width:600px){.product-category-buttons{flex-basis:100%;gap:6px}.product-category-button{min-height:38px;padding:6px 10px;font-size:12px}.product-group-title>[data-category-buttons]{order:1}.product-group-title>.bulk-visibility-form{order:2}}

/* am-product-toolbar-v1: same-row controls with clear selection and category boundaries. */
.product-toolbar{gap:12px 16px;min-width:0}.toolbar-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-page-status{font-size:12px;white-space:nowrap}.is-disabled{opacity:.5;cursor:default}.page-size-form{display:flex;align-items:center;gap:8px;margin:0;min-width:0}.page-size-form label{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.page-size-form select{width:auto;min-width:74px;min-height:38px;padding:6px 8px;border:1px solid #cdd7c5;border-radius:7px;background:#fff;color:#18392f}.page-size-form.auto-submit .page-size-apply{display:none}.category-visibility-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;margin:0;padding-left:16px;border-left:1px solid #d3ddca}.category-visibility-state{font-size:12px;color:#657368;overflow-wrap:anywhere;min-width:0}.category-visibility-form .button{white-space:nowrap}.row-status .badge+.badge{margin-top:5px}
@media(max-width:850px){.product-toolbar{padding-top:12px}.category-visibility-form{padding-left:0;border-left:0}}
@media(max-width:600px){.product-toolbar{gap:10px;align-items:flex-start}.toolbar-pagination{gap:6px;max-width:100%}.toolbar-pagination .button{padding:7px 10px;font-size:12px}.page-size-form{max-width:100%}.category-visibility-form{width:100%;padding-top:10px;border-top:1px solid #d3ddca}.category-visibility-state{flex:1;min-width:90px}}

.category-confirm[hidden]{display:none}.category-confirm{flex-basis:100%;min-width:0;padding:12px;background:#fff8e8;border:1px solid #dec99a;border-radius:8px}.category-confirm p{font-size:12px;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}.category-confirm>div{display:flex;gap:8px;flex-wrap:wrap}

/* am-home-blocks-v1: extend the existing module panel without merging control groups. */
.home-block-header-actions{display:flex;gap:8px;flex-wrap:wrap}.home-module-options .home-module-card{display:block;min-width:0}.home-module-switch{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.home-module-switch input{flex-shrink:0}.home-module-switch span{min-width:0;overflow-wrap:anywhere}.home-module-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #d5ddce;margin-top:12px;padding-top:10px}.home-position{display:flex;align-items:center;gap:6px;font-size:12px}.home-position input{width:72px;min-height:36px;border:1px solid #cdd6c5;border-radius:6px;padding:5px 8px;background:#fff;color:#18392f}.home-module-tools .delete-link{padding:0;min-height:36px}.home-module-tools .text-link{font-size:12px}.home-quick-moves{display:flex;flex-direction:column;gap:8px;padding-top:18px;margin-top:18px;border-top:1px solid #d3ddca}.home-quick-moves>div,.home-block-recovery>div{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}.home-quick-moves span,.home-block-recovery span{font-size:12px;overflow-wrap:anywhere}.home-quick-moves form{display:flex;gap:6px;margin:0;flex-shrink:0}.home-block-recovery{padding:16px;border:1px solid #d4d8ca;border-radius:8px;background:#eeeee6;margin-top:18px}.home-block-recovery>div{margin-top:10px}.home-visible-checkbox{display:flex;align-items:center;gap:8px;font-size:13px;padding-top:14px}.home-image-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.home-image-editor label{min-width:0;background:#eeeee6;border:1px solid #d6ddce;border-radius:8px;overflow:hidden}.home-image-editor img{display:block;width:100%;height:130px;object-fit:contain;background:#fff}.home-image-editor span{display:flex;align-items:center;gap:6px;font-size:12px;padding:10px}.home-translation-fields{border-top:1px solid #d5ddce;margin-top:14px;padding-top:14px}.home-block-editor textarea{resize:vertical}
@media(max-width:600px){.home-module-options{grid-template-columns:1fr}.home-module-tools{gap:10px}.home-quick-moves .button{padding:7px 10px}.home-block-header-actions{width:100%}.home-image-editor{grid-template-columns:1fr}.home-visible-checkbox{padding:8px 0 14px}}

.home-move-form{display:none}.home-module-tools .button{padding:4px 8px;min-height:36px}.home-module-switch strong{display:block}.home-module-switch small{display:block;margin-top:5px;color:#6a7666}


/* am-home-block-drag-v1: a quiet grip belongs to each card, separate from its actions. */
.home-module-card-heading{display:flex;align-items:flex-start;gap:10px}.home-module-card-heading .home-module-switch{flex:1;min-width:0}.home-drag-handle{display:flex;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:44px;flex-shrink:0;color:#607461;border-radius:5px;font-size:11px;cursor:grab;touch-action:none;user-select:none}.home-drag-handle:hover{background:#e0e5d8;color:#173d32}.home-drag-handle:focus-visible{outline:3px solid #82a451;outline-offset:2px}.home-drag-handle svg{flex-shrink:0}.home-module-card.is-dragging{border:1px dashed #406b51;opacity:.45;background:#dbe6d5}.home-block-dragging,.home-block-dragging .home-drag-handle{cursor:grabbing;user-select:none}.home-drag-ghost{position:fixed;z-index:10000;pointer-events:none;max-width:min(240px,calc(100vw - 32px));padding:12px 18px;border:1px solid #739065;border-radius:8px;background:#fff;color:#173d32;font-size:13px;font-weight:700;box-shadow:0 8px 24px #173d3228;overflow-wrap:anywhere}.home-drag-status:empty{display:none}.home-drag-status{margin:-6px 0 16px;color:#315b3f}.home-utility-settings{border-top:1px solid #d5ddce;padding-top:16px;margin:0 0 20px}.home-utility-settings h3{font-size:13px;margin:0 0 10px}.home-utility-settings .module-options{margin:0}.home-module-tools{justify-content:flex-end;gap:16px}.home-module-tools .text-link,.home-module-tools .delete-link{display:inline-flex;align-items:center;min-height:32px;padding:0}.home-module-card [data-home-position]{display:none}
@media(max-width:600px){.home-module-card-heading{gap:6px}.home-drag-handle{min-width:44px;flex-direction:column;gap:0}.home-module-tools .text-link,.home-module-tools .delete-link{min-height:44px}.home-module-tools{margin-top:8px;padding-top:4px}}

/* am-block-fields-v1: content switches belong to headings, field rows are a lighter level. */
.home-part-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.home-part-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;min-height:32px;cursor:pointer;white-space:nowrap}.home-part-toggle input,.home-field-boolean input{width:18px;height:18px;min-height:0;padding:0;margin:0;flex-shrink:0;accent-color:#173d32}.home-part-toggle .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.home-fields-list{display:flex;flex-direction:column;gap:14px;margin:14px 0}.home-field-row{min-width:0;background:var(--am-surface,#f1f3eb);border:1px solid var(--am-border,#d8dece);border-radius:8px;padding:14px}.home-field-row-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.home-field-row-heading strong{font-size:13px;min-width:0;overflow-wrap:anywhere}.home-field-row-heading>div{display:flex;align-items:center;gap:12px}.home-field-row .field-grid{margin:0}.home-field-row .field:last-child{margin-bottom:0}.home-field-row .field>span{display:block;margin-bottom:7px}.home-field-options[hidden],.home-fields-empty[hidden]{display:none}.home-field-boolean{display:flex;align-items:center;gap:8px;font-size:12px;min-height:40px}.home-field-image-preview{display:block;width:auto;height:auto;max-width:100%;max-height:150px;object-fit:contain;margin:10px 0;border:1px solid #d8dece;border-radius:6px;background:white}.home-fields-panel [data-home-field-status]:empty{display:none}.home-fields-panel .help{overflow-wrap:anywhere}.home-business-content .help{margin-bottom:0}
@media(max-width:600px){.home-part-toggle{min-height:44px}.home-part-heading-actions{gap:6px}.home-field-row{padding:12px}.home-field-row-heading{gap:6px}.home-field-row-heading>div{gap:8px}.home-field-row .field-grid{grid-template-columns:1fr}}

.home-block-save{margin-top:20px}

/* am-product-category-hierarchy-v1: category boundaries are stronger than inner product states. */
.category-regions{display:flex;flex-direction:column;gap:24px}.category-region{border:1px solid #bacbb2;border-radius:12px;background:#edf1e7;min-width:0;scroll-margin-top:16px;overflow:hidden}.category-region[data-category-region=hidden]{background:#f0eee7;border-color:#d4ccb9}.category-region-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;list-style:none;cursor:pointer}.category-region-heading::-webkit-details-marker{display:none}.category-region-heading:hover{background:#e4ebda}.category-region-heading:focus-visible{outline:3px solid #82a451;outline-offset:-3px}.category-region-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.category-region-title h3{font-size:21px;font-weight:700;overflow-wrap:anywhere}.category-region-heading .help{margin-top:6px}.region-chevron{font-size:18px;flex-shrink:0;transform:rotate(180deg)}.category-region[open]>.category-region-heading .region-chevron{transform:none}.category-region-body{border-top:1px solid #cbd8c0;padding:18px;min-width:0}.category-region-body>.product-category-buttons{margin-bottom:18px}.category-region .product-groups{gap:14px}.category-region .product-group{background:#f9faf5;border-color:#dce2d4;border-radius:8px}.category-region .product-group[data-product-status=draft]{background:#f9f8f3}.category-region .product-group-title h4{font-size:17px;font-weight:600;margin:0;line-height:1.5;overflow-wrap:anywhere}.category-region .product-group-heading{padding:13px 15px}.category-region .product-group-body{border-top-color:#e1e6da}.category-empty{padding:18px;background:#fafbf7}.category-empty p{margin:0}.category-regions~[data-category-refresh]{margin:18px 0 0}.category-regions~[data-category-refresh] .text-link{display:inline;padding:0 4px;text-decoration:underline}
@media(max-width:600px){.category-regions{gap:18px}.category-region-heading{padding:14px 12px;gap:10px;align-items:flex-start}.category-region-title{gap:6px}.category-region-title h3{font-size:18px;flex-basis:100%}.category-region-body{padding:12px 8px}.category-region .product-group-heading{padding:12px 10px}.category-region .product-group-title h4{font-size:15px}.category-region .product-group-body{padding:10px 8px}.category-region .product-toolbar{gap:8px}.category-region .toolbar-pagination .button{padding:6px 8px}.category-region .category-visibility-form .button{white-space:normal}}

.category-region .row-product h5{font-size:16px;line-height:1.5;margin:0;overflow-wrap:anywhere}@media(max-width:600px){.category-region .row-product h5{font-size:15px}}

/* am-admin-navigation-settings-v1: one settings entry in the header, grouped links inside settings. */
.admin-header-compact{gap:20px}.admin-account-actions{gap:16px;justify-content:flex-end}.admin-settings-entry{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}.admin-navigation-panel{scroll-margin-top:20px}.admin-navigation-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-navigation-links>a{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:70px;padding:11px 13px;border:1px solid #d9dfd2;border-radius:7px;background:#f0f2e9;overflow-wrap:anywhere}.admin-navigation-links>a:hover{border-color:#9cb589;background:#e6eddc}.admin-navigation-links strong{font-size:14px;font-weight:600;line-height:1.5}.admin-navigation-links small{font-size:11px;color:#6a7666;line-height:1.6}.admin-navigation-links>a:focus-visible{outline:3px solid #82a451;outline-offset:2px}
@media(max-width:600px){.admin-header-compact{gap:10px;align-items:flex-start}.admin-account-actions{width:auto;gap:8px;justify-content:flex-start;flex-wrap:wrap}.admin-account-actions .account{font-size:12px}.admin-account-actions .button{padding:8px 12px}.admin-navigation-links{grid-template-columns:1fr;gap:8px}.admin-navigation-links>a{min-height:62px;padding:10px 12px}}

/* am-field-editor-v2: compact controls, lighter field rows and recoverable deletion. */
.home-block-editor .editor-columns{gap:16px}.home-block-editor .editor-column{gap:16px}.home-block-editor .panel{padding:18px}.home-block-editor .panel-heading{margin-bottom:12px;gap:10px}.home-block-editor .field{margin-bottom:10px;gap:5px}.home-block-editor .field-grid{gap:10px}.home-block-editor .field input:not([type=checkbox]),.home-block-editor .field select,.home-block-editor .field textarea{min-height:38px;padding:7px 10px}.home-block-editor .field textarea{min-height:72px}.home-block-editor .home-visible-checkbox{padding-top:4px}.home-block-editor .contact-qr-preview{display:flex;align-items:center;gap:12px;margin:0 0 12px}.home-block-editor .contact-qr-preview img{width:128px;height:128px;flex-shrink:0}.home-block-editor .contact-upload-rules{padding:10px 12px;margin:0 0 12px}.home-block-editor .contact-upload-rules summary{font-size:12px;font-weight:600;cursor:pointer}.home-block-editor .contact-upload-rules p{font-size:11px;margin:7px 0 0}.home-block-editor .home-fields-list{gap:10px;margin:10px 0}.home-block-editor .home-field-row{padding:10px}.home-block-editor .home-field-row-heading{gap:7px;flex-wrap:nowrap;margin-bottom:8px}.home-block-editor .home-field-row-heading>strong{flex:1;font-size:12px}.home-block-editor .home-field-row-heading>div{gap:7px;flex-wrap:wrap;justify-content:flex-end}.home-block-editor .home-field-row-heading .delete-link{min-height:32px;padding:4px;font-size:12px}.field-row-controls{border:0;min-width:0;padding:0;margin:0}.field-row-controls .field:last-child{margin-bottom:0}.field-drag-handle{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;min-height:34px;padding:3px 5px;font-size:11px;color:#6a7666;cursor:grab;touch-action:none;user-select:none;border-radius:4px}.field-drag-handle:focus-visible{outline:3px solid #82a451;outline-offset:1px}.field-drag-handle:active{cursor:grabbing}.is-field-dragging{opacity:.5;border-style:dashed!important}.field-dragging{user-select:none;cursor:grabbing}.field-drag-ghost{position:fixed;z-index:9999;pointer-events:none;max-width:220px;padding:10px 14px;border:1px solid #87a571;border-radius:7px;background:#f1f5eb;color:#173d32;font-size:13px;box-shadow:0 4px 14px #0002;overflow-wrap:anywhere}.field-recovery{margin-top:12px;padding:10px 12px;border:1px solid #d9d9cf;border-radius:7px;background:#f6f5ef}.field-recovery>summary{cursor:pointer;font-size:12px;font-weight:600}.field-recovery[hidden]{display:none}.field-recovery [data-deleted-field-list]{display:flex;flex-direction:column;gap:7px;margin-top:8px}.is-field-deleted [data-field-controls],.is-field-deleted .field-drag-handle,.is-field-deleted .home-part-toggle{display:none!important}.is-field-deleted .home-field-row-heading{margin:0}.home-block-editor [data-delete-field][hidden],.home-block-editor [data-restore-field][hidden]{display:none}.native-fields-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.native-field-row{min-width:0;padding:10px;border:1px solid #d8dece;border-radius:7px;background:#f1f3eb}.native-field-label{display:flex;align-items:flex-end;gap:6px;margin-bottom:7px}.native-field-label>label{flex:1;min-width:0;font-size:10px;font-weight:500;color:#6a7666}.native-field-label input{width:100%;min-width:0;min-height:30px;padding:4px 7px;border:1px solid #d3dbc9;border-radius:5px;background:#fff;color:#18392f;font:inherit;font-size:12px;margin-top:3px}.native-field-label .badge{flex-shrink:0;font-size:10px}.home-block-editor .native-field-row .field{margin:0}.home-block-editor .native-field-row .field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:600px){.home-block-editor .panel{padding:14px}.home-block-editor .editor-columns,.home-block-editor .editor-column{gap:12px}.home-block-editor .home-field-row .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-block-editor .home-field-row .field{font-size:11px}.home-block-editor .home-field-row-heading{flex-wrap:wrap}.home-block-editor .home-field-row-heading>div{gap:5px}.native-fields-list{grid-template-columns:1fr}.field-drag-handle{min-height:40px}.home-block-editor .home-part-toggle{min-height:36px}.home-block-editor .contact-qr-preview img{width:108px;height:108px}}
@media(max-width:380px){.home-block-editor .home-field-row .field-grid{grid-template-columns:1fr}.native-field-label .badge{max-width:70px;white-space:normal}}

/* Combine native field names and actions in one row instead of duplicating the heading. */
.home-block-editor .native-field-row .home-field-row-heading{gap:6px}.native-field-name-label{flex:1;min-width:0}.native-field-name-label input{width:100%;min-width:0;min-height:32px;padding:4px 7px;border:1px solid #d3dbc9;border-radius:5px;background:#fff;color:#18392f;font:inherit;font-size:12px;font-weight:600}.native-field-value-line{display:flex;align-items:flex-start;gap:6px;min-width:0}.native-field-value-line>.field{flex:1;min-width:0}.native-field-value-line>.badge{flex-shrink:0;max-width:46px;white-space:normal;line-height:1.4;font-size:10px;margin-top:5px;padding:3px 5px}.home-block-editor .native-field-row>.home-field-row-heading>[data-home-field-caption]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.home-block-editor .is-field-deleted .native-field-name-label{display:none}.home-block-editor .is-field-deleted>.home-field-row-heading>[data-home-field-caption]{position:static;width:auto;height:auto;clip-path:none;white-space:normal;overflow:visible;flex:1}

.home-block-editor .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Custom fields use the full editor width in two compact columns; saved reading order stays row-major. */
.home-block-editor>.home-fields-panel{margin-top:16px}.home-block-editor>.home-fields-panel .home-fields-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.home-block-editor>.home-fields-panel .field-row-controls .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-block-editor>.home-fields-panel .home-field-row .field>span{margin-bottom:4px}
@media(max-width:850px){.home-block-editor>.home-fields-panel .home-fields-list{grid-template-columns:1fr}.home-block-editor>.home-fields-panel{margin-top:12px}}
@media(max-width:380px){.home-block-editor>.home-fields-panel .field-row-controls .field-grid{grid-template-columns:1fr}}

/* am-home-block-buttons-v1: compact button controls belong to their own panel. */
.home-buttons-list{display:flex;flex-direction:column;gap:10px;margin:10px 0}.home-buttons-panel .help{margin-bottom:0}.home-button-icon-controls{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-top:8px}.home-button-icon-preview{width:38px;height:38px;object-fit:contain;border:1px solid #d8dece;border-radius:5px;background:#fff;flex-shrink:0}.home-button-icon-controls>.field{flex:1;min-width:145px;margin:0}.home-button-icon-controls>.home-button-icon-upload{flex:2;min-width:210px}.home-block-editor .home-button-icon-upload input{font-size:11px}.home-button-translations{margin-top:8px;font-size:11px}.home-button-translations summary{cursor:pointer;color:#657368}.home-button-translation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.home-buttons-panel [data-home-buttons-empty][hidden]{display:none}
@media(max-width:600px){.home-buttons-panel .home-button-row .field-grid{grid-template-columns:1fr}.home-button-icon-controls>.field,.home-button-icon-controls>.home-button-icon-upload{min-width:0;flex-basis:100%}.home-button-translation-grid{grid-template-columns:1fr}.home-button-icon-controls{gap:8px}}

/* am-block-image-visibility-v1: hidden frontend pictures remain available in the editor. */
.home-image-editor .home-image-entry{display:block;min-width:0}
.home-image-entry .home-image-toggle{display:flex;align-items:center;gap:9px;padding:10px 12px;font-size:13px;font-weight:700}
.home-image-toggle input{width:18px;height:18px;flex-shrink:0;accent-color:#173d32}
.home-image-toggle .home-image-state-off{display:none;color:#8a5b26}
.home-image-toggle input:not(:checked)~.home-image-state-on{display:none}
.home-image-toggle input:not(:checked)~.home-image-state-off{display:inline}
.home-image-entry:has(.home-image-toggle input:not(:checked))>img{opacity:.48}

/* am-compact-empty-fields-v1 */
.field textarea.am-content-textarea{height:60px;min-height:60px;max-height:320px;line-height:1.6;overflow-y:auto;resize:vertical}

/* am-admin-compact-batch-v1 */
.stats .stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;min-height:62px}.stats .stat span{font-size:13px;margin:0}.stats .stat strong{font-size:26px;line-height:1.2;margin:0}
.page-heading .product-management-heading{gap:10px}.page-heading h1{margin:0}.product-heading-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.catalogue-panel[data-product-management]{padding-top:20px}
.product-editor-compact .editor-columns,.product-editor-compact .editor-column{gap:14px}.product-editor-compact .panel{padding:16px 18px}.product-editor-compact .panel-heading{margin-bottom:12px}.product-editor-compact .field{gap:5px;margin-bottom:12px}.product-editor-compact .field:last-child{margin-bottom:0}.product-editor-compact .field-grid{gap:12px}.product-editor-compact .category-controls{padding:12px;margin:0 0 12px}.product-editor-compact .category-controls h3{margin:0 0 10px}.product-editor-compact .category-controls .field-grid{margin:0}.product-editor-compact .category-sync-status:empty{display:none}.product-editor-compact .category-sync-status{margin:8px 0 0}.product-editor-compact .main-image-preview{height:190px;margin-bottom:12px}.product-editor-compact .gallery-editor{gap:8px;margin-bottom:12px}.product-editor-compact .gallery-tile img{height:88px}.product-editor-compact .publish-panel h2{font-size:18px}
.spec-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #d5ddce;border-radius:7px}.spec-table{width:100%;border-collapse:collapse;table-layout:fixed}.spec-table th{font-size:12px;text-align:left;background:#eeeee6;padding:8px}.spec-table th:first-child{width:38%}.spec-table th:last-child{width:54px}.spec-table .spec-row{display:table-row;background:transparent;border:0;padding:0;margin:0}.spec-table td{padding:5px 7px;border-top:1px solid #e0e5d9}.spec-table input{width:100%;min-width:0;min-height:36px;border:1px solid #cdd5c7;border-radius:4px;padding:7px 8px;background:#fff;color:#18392f}.spec-table .remove-spec{min-height:36px;padding:4px;font-size:12px}.product-autosave-status{min-height:0;margin:0 0 12px;color:#52664c;font-size:13px}.product-autosave-status:empty{display:none}.product-autosave-status[role=alert]{color:#994c43}.product-autosave-status button{margin-left:12px}
@media(max-width:600px){.stats .stat{padding:10px;gap:7px;min-height:52px}.stats .stat span{font-size:12px}.stats .stat strong{font-size:23px}.product-editor-compact .panel{padding:13px}.product-editor-compact .editor-columns,.product-editor-compact .editor-column{gap:12px}.product-editor-compact .field-grid{gap:0}.product-editor-compact .main-image-preview{height:170px}.product-heading-actions{gap:10px}.spec-table th{font-size:11px;padding:7px 5px}.spec-table td{padding:4px}.spec-table th:last-child{width:42px}.spec-table input{font-size:12px;padding:6px}.spec-table .remove-spec{font-size:11px;padding:2px}}

/* am-product-secondary-create-v1: category creation stays inside the product category group. */
.category-controls .category-create-open{margin-top:10px}
.category-controls .category-quick-create{margin-top:10px;padding:12px;border:1px solid #d7dfce;border-radius:8px;background:#f9faf6;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.category-controls .category-quick-create[hidden]{display:none}
.category-quick-create>.field{flex:1 1 220px;min-width:0;margin:0}
.category-create-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.category-controls .category-create-status{flex-basis:100%;margin:0;font-size:12px;overflow-wrap:anywhere}
.category-create-status:empty{display:none}
.category-create-status[role=alert]{color:#a13b29}
@media(max-width:500px){.category-quick-create>.field{flex-basis:100%}.category-create-actions{width:100%}.category-create-actions .button{flex:1}}

/* am-category-cascade-v1: red confirmation with compact recovery fields. */
.category-cascade-warning{flex-basis:100%;margin:0 0 10px;color:#b42318!important;font-weight:700;overflow-wrap:anywhere}.cascade-restore-category{max-width:240px;min-width:0;margin:0 0 6px}.cascade-restore-category select{max-width:100%;min-width:0}

/* am-contact-field-row-v1: one contact field per row; original controls and bindings remain. */
.home-block-editor .native-fields-list{grid-template-columns:minmax(0,1fr)}
.home-block-editor .native-field-row{display:grid;grid-template-columns:max-content minmax(0,.9fr) max-content minmax(0,1.6fr) max-content;align-items:center;gap:8px;padding:8px}
.home-block-editor .native-field-row>.home-field-row-heading,.home-block-editor .native-field-row>.field-row-controls,.home-block-editor .native-field-row>.field-row-controls>.native-field-value-line{display:contents}
.home-block-editor .native-field-row .field-drag-handle{grid-column:1;grid-row:1}
.home-block-editor .native-field-row .native-field-name-label{grid-column:2;grid-row:1}
.home-block-editor .native-field-row .native-field-value-line>.badge{grid-column:3;grid-row:1;max-width:none;white-space:nowrap;margin:0;font-size:10px;padding:3px 5px}
.home-block-editor .native-field-row .native-field-value-line>.field{grid-column:4;grid-row:1;margin:0!important;min-width:0}
.home-block-editor .native-field-row>.home-field-row-heading>[data-delete-field],.home-block-editor .native-field-row>.home-field-row-heading>[data-restore-field]{grid-column:5;grid-row:1;white-space:nowrap;min-height:38px;padding:4px 6px;font-size:12px}
.home-block-editor .native-field-row .native-field-name-label input{height:38px;min-height:38px;padding:7px 8px}
.home-block-editor .native-field-row .native-field-value-line textarea{height:38px;min-height:38px;max-height:38px;resize:none}
.home-block-editor .is-field-deleted>.home-field-row-heading>[data-home-field-caption]{grid-column:1/5;grid-row:1}
@media(max-width:600px){.home-block-editor .native-field-row{gap:3px;padding:5px}.home-block-editor .native-field-row .field-drag-handle{min-width:22px;justify-content:center;padding:3px 1px}.home-block-editor .native-field-row .field-drag-handle>span{display:none}.home-block-editor .native-field-row .native-field-name-label input,.home-block-editor .native-field-row .native-field-value-line input,.home-block-editor .native-field-row .native-field-value-line textarea{font-size:11px;padding:7px 4px}.home-block-editor .native-field-row .native-field-value-line>.badge{font-size:9px;padding:3px}.home-block-editor .native-field-row>.home-field-row-heading>[data-delete-field],.home-block-editor .native-field-row>.home-field-row-heading>[data-restore-field]{font-size:11px;padding:4px 2px}}

/* am-compact-block-tools-v1: title, visibility and add action share a compact toolbar. */
.home-block-editor .home-editor-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;margin-bottom:0!important}
.home-editor-toolbar>h2{margin:0;white-space:nowrap;min-width:0}
.home-editor-toolbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.home-editor-toolbar-actions>.button{white-space:nowrap;min-height:38px;padding:7px 10px}
.home-block-editor .home-buttons-list:empty,.home-block-editor>.home-fields-panel .home-fields-list:empty{display:none;margin:0}
.home-buttons-panel>[data-field-status]:empty,.home-fields-panel>[data-field-status]:empty{display:none;margin:0}
.home-buttons-panel>[data-field-status]:not(:empty),.home-fields-panel>[data-field-status]:not(:empty){margin:8px 0 0}
.home-block-editor .home-images-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;min-width:0}
.home-block-editor .home-images-title,.home-block-editor .home-images-toolbar [data-banner-ratio-editor],.home-block-editor .home-images-toolbar [data-banner-ratio-editor]>.field-grid{display:contents!important}
.home-images-title>h2{margin:0;white-space:nowrap}
.home-block-editor .home-images-toolbar .field{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0!important;font-size:12px;white-space:nowrap;min-width:0}
.home-block-editor .home-images-toolbar [data-banner-ratio-editor] .field{flex:0 1 110px}
.home-block-editor .home-images-toolbar [data-banner-ratio-editor] input{width:56px;flex:1;min-width:40px}
.home-block-editor .home-images-toolbar>.home-images-upload{flex:1 1 220px}
.home-block-editor .home-images-toolbar>.home-images-upload{flex-wrap:wrap}
.home-block-editor .home-images-upload>input{flex:1;min-width:0;width:100%;font-size:11px}
.home-block-editor .home-images-upload>.am-image-tools{flex-basis:100%;min-width:0}
.home-block-editor .home-images-panel>.home-image-editor{margin:10px 0 0}
@media(max-width:600px){.home-block-editor .home-editor-toolbar{gap:4px}.home-block-editor .home-editor-toolbar>h2{font-size:12px!important}.home-editor-toolbar-actions{gap:5px}.home-editor-toolbar-actions>.home-part-toggle{font-size:11px;gap:4px}.home-editor-toolbar-actions>.button{font-size:11px;padding:6px;min-height:36px}.home-block-editor .home-images-toolbar{gap:8px}.home-block-editor .home-images-toolbar>.home-images-upload{flex-basis:100%}}

/* am-profile-module-editor-v1: the identity editor belongs to the frontend module manager. */
.home-profile-module{display:block;margin:12px 0;padding:12px 14px;min-width:0}
.home-profile-module>summary{cursor:pointer;font-size:14px;font-weight:700;min-height:36px;align-content:center;overflow-wrap:anywhere}
.home-profile-module[open]>summary{margin-bottom:10px}
.home-profile-module>.settings-inline-editor{min-width:0}
.profile-identity-editor>.editor-columns{grid-template-columns:minmax(0,1fr)}

/* am-settings-hierarchy-v1: outer area -> module -> detail, dark to light. */
:root{--am-area-bg:#cdd8c1;--am-module-bg:#e0e7d7;--am-detail-bg:#f2f5ec;--am-area-border:#b1c09f;--am-module-border:#c6d2b9;--am-detail-border:#d7e0cd}
.integrated-settings.panel{background:var(--am-area-bg);border-color:var(--am-area-border)}
[data-settings-layout] .panel[data-settings-panel]{background:var(--am-area-bg);border-color:var(--am-area-border)}
[data-settings-layout] .home-module-card,[data-settings-layout] .home-navigation-module{background:var(--am-module-bg);border-color:var(--am-module-border)}
[data-home-navigation] .homepage-navigation-row,[data-settings-layout] .admin-navigation-links>a{background:var(--am-detail-bg);border-color:var(--am-detail-border)}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form){background:var(--am-module-bg);border:1px solid var(--am-module-border);border-radius:9px;padding:12px;min-width:0}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form) .panel{background:var(--am-detail-bg);border-color:var(--am-detail-border)}
.home-block-editor :is(.home-field-row,.home-button-row,.native-field-row){background:#fff;border-color:var(--am-detail-border)}
/* am-settings-inline-fields-v1: readable field names and controls share available width. */
:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) label.field:not(.native-field-row .field,.home-images-toolbar .field){display:grid;grid-template-columns:minmax(5em,max-content) minmax(0,1fr);align-items:center;gap:8px 12px;min-width:0}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) label.field:not(.native-field-row .field,.home-images-toolbar .field)>:is(input:not([type="hidden"]),textarea,select){grid-column:2;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) label.field:not(.native-field-row .field,.home-images-toolbar .field)>:is(small,.field-error,.settings-field-status){grid-column:2;min-width:0;overflow-wrap:anywhere}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) label.field:not(.native-field-row .field,.home-images-toolbar .field)>span:not(.sr-only){grid-column:1}
:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) .field[hidden]{display:none!important}
@media(max-width:600px){:is(.home-block-editor,#profile-settings-form,#contact-settings-form){padding:9px}:is(.home-block-editor,#profile-settings-form,#contact-settings-form,[data-settings-panel="language"]) label.field:not(.native-field-row .field,.home-images-toolbar .field){grid-template-columns:5em minmax(0,1fr);column-gap:8px}.home-block-editor .field-grid{grid-template-columns:minmax(0,1fr)}}

/* am-image-toolbar-sizing-v1: keep numeric defaults readable and upload/actions bounded. */
.home-block-editor .home-images-toolbar{gap:10px 14px;align-items:center}
.home-block-editor .home-images-toolbar [data-banner-ratio-editor] .field{flex:0 0 auto;gap:8px}
.home-block-editor .home-images-toolbar [data-banner-ratio-editor] input{flex:0 0 100px;width:100px;min-width:100px;max-width:100px;font-size:13px;font-variant-numeric:tabular-nums;padding:7px 10px}
.home-block-editor .home-images-toolbar>.home-images-upload{flex:0 1 340px;width:340px;max-width:100%;flex-wrap:wrap;gap:6px 8px;align-items:center}
.home-block-editor .home-images-toolbar>.home-images-upload>input[type=file]{flex:1 0 240px;width:240px;min-width:0;max-width:100%;font-size:12px;padding:4px 6px;min-height:38px;line-height:1.5}
.home-block-editor .home-images-upload>input[type=file]::file-selector-button{font:inherit;line-height:1.5;padding:4px 8px;margin-inline-end:8px;border:1px solid #ced8c5;border-radius:5px;background:#f3f5ef;color:inherit;cursor:pointer}
.home-block-editor .home-images-upload>.am-image-tools:has(>.am-image-file-list:empty):has(>.am-image-crop-status:empty){display:none}
.home-block-editor .home-images-toolbar :is(.button,button){flex:0 0 auto;width:auto;max-width:100%;min-height:36px;padding:6px 10px;white-space:nowrap}
@media(max-width:600px){.home-block-editor .home-images-toolbar{gap:10px 12px}.home-block-editor .home-images-toolbar>.home-images-upload{flex-basis:340px;width:340px}.home-block-editor .home-images-toolbar [data-banner-ratio-editor] .field{gap:8px}}

/* am-responsive-layout-v1: portrait management keeps the desktop functions and readable controls. */
@media(max-width:760px){
 .admin-shell{width:calc(100% - 24px);min-width:0}
 .admin-header{flex-wrap:wrap;gap:12px;padding:18px 0}
 .admin-header>.admin-brand,.admin-header>.header-actions{min-width:0;max-width:100%}
 .admin-header>.header-actions{flex-wrap:wrap;gap:8px 12px}
 .admin-header .account{overflow-wrap:anywhere}
 #admin-main,.editor-column,.field-grid,.field,.settings-inline-editor,.workspace-frame{min-width:0;max-width:100%}
 .field input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.field select,.field textarea{min-width:0;max-width:100%;font-size:16px;min-height:44px}
 .field input[type=file]{width:100%;max-width:100%;min-width:0;white-space:normal}
 .field label,.field>span{overflow-wrap:anywhere}
 .button,.button.small,.delete-link{min-height:44px}
 .home-block-editor .field input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.home-block-editor .field select,.home-block-editor .field textarea{font-size:16px;min-height:44px}
 .home-block-editor .home-images-toolbar [data-banner-ratio-editor] input{width:110px;min-width:110px;max-width:110px;flex-basis:110px;font-size:16px}
 .home-block-editor .home-images-toolbar>.home-images-upload{max-width:100%}
 .home-block-editor .home-images-toolbar>.home-images-upload>input[type=file]{font-size:14px;min-height:44px}
 .home-block-editor .field-grid,.home-button-translation-grid{grid-template-columns:minmax(0,1fr)}
 .home-block-editor .native-field-row{grid-template-columns:32px minmax(0,1fr) max-content;gap:8px}
 .home-block-editor .native-field-row .field-drag-handle{grid-column:1;grid-row:1/3}
 .home-block-editor .native-field-row .native-field-name-label{grid-column:2;grid-row:1}
 .home-block-editor .native-field-row>.home-field-row-heading>[data-delete-field],.home-block-editor .native-field-row>.home-field-row-heading>[data-restore-field]{grid-column:3;grid-row:1}
 .home-block-editor .native-field-row .native-field-value-line>.badge{grid-column:1;grid-row:3;max-width:100%;white-space:normal}
 .home-block-editor .native-field-row .native-field-value-line>.field{grid-column:2/4;grid-row:2;min-width:0}
 .home-block-editor .native-field-row .native-field-name-label input{height:44px;min-height:44px;font-size:16px}
 .home-block-editor .native-field-row .native-field-value-line textarea{height:auto;min-height:60px;max-height:240px;resize:vertical}
 .home-block-editor .native-field-row.is-field-deleted>.home-field-row-heading>[data-home-field-caption]{grid-column:1/3;grid-row:1}
 .home-block-editor .home-images-toolbar :is(.button,button),.home-block-editor .home-editor-toolbar-actions>.button{min-height:44px}
 .settings-subpanel-handle{min-height:44px;min-width:40px}
 .admin-footer{overflow-wrap:anywhere}
}

/* am-product-inline-fields-v1: each product field keeps its label and control on one row. */
form.product-editor-compact label.field{display:grid;grid-template-columns:9.8em minmax(0,1fr);align-items:center;gap:8px 12px;min-width:0}
form.product-editor-compact label.field>:is(input:not([type=hidden]),select,textarea){grid-column:2;grid-row:1;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
form.product-editor-compact label.field>span{grid-column:1;grid-row:1;min-width:0}
form.product-editor-compact .category-controls .field-grid,form.product-editor-compact .publish-panel .field-grid{grid-template-columns:minmax(0,1fr);gap:10px}
form.product-editor-compact .field-grid>label.field{margin-bottom:0}
form.product-editor-compact label.field>input[type=file]{width:100%;max-width:340px;justify-self:start}
form.product-editor-compact label.field>input:is([name=price],[name=sort_order]){max-width:260px;justify-self:start}
@media(max-width:760px){
 form.product-editor-compact label.field{grid-template-columns:8.4em minmax(0,1fr);gap:8px;font-size:13px}
 form.product-editor-compact label.field>:is(input:not([type=hidden]),select,textarea){font-size:16px;min-height:44px}
}
@media(max-width:380px){
 form.product-editor-compact label.field{grid-template-columns:minmax(0,1fr);gap:5px}
 form.product-editor-compact label.field>:is(input:not([type=hidden]),select,textarea){grid-column:1;grid-row:2}
}

/* am-product-checkout-fields-v1: compact editable field rows and grouped purchase inputs. */
.product-checkout-editor{container-type:inline-size;min-width:0}
.product-checkout-editor .panel-heading h2{margin:0}
.checkout-config-head,.checkout-config-row{display:grid;grid-template-columns:24px minmax(0,1fr) 96px 30px 30px 40px;align-items:center;gap:6px;min-width:0}
.checkout-config-head{font-size:12px;font-weight:600;padding:0 8px 6px}
.checkout-config-row{background:#fff;border:1px solid #dce3d6;border-radius:7px;padding:8px;margin-bottom:8px}
.checkout-config-row :is(input:not([type=checkbox]),select,textarea){min-width:0;width:100%;max-width:100%;box-sizing:border-box;font:inherit;font-size:13px;min-height:38px;padding:6px}
.checkout-config-row input[type=checkbox]{width:18px;height:18px;accent-color:#173d32}
.checkout-config-toggle{display:flex;align-items:center;justify-content:center;gap:4px;min-height:38px;cursor:pointer}
.checkout-config-toggle>span{display:none}
.checkout-config-row button{min-height:38px;padding:4px;border:0;background:transparent;cursor:pointer;color:#173d32;font:inherit;font-size:12px}
.checkout-config-row .checkout-config-remove{color:#a33d2c}
.checkout-config-handle{font-size:24px!important;touch-action:none;cursor:grab!important}
.checkout-config-options{grid-column:2/-1;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:center;font-size:12px}
.checkout-config-options[hidden],.checkout-config-remove[hidden]{display:none!important}
.checkout-config-status:empty{display:none}
.is-checkout-dragging{opacity:.55;outline:2px solid #789c4c}
.checkout-form-fields{display:grid;gap:12px;min-width:0}
.checkout-form-fields .field{display:grid;grid-template-columns:minmax(0,10em) minmax(0,1fr);align-items:center;gap:8px;margin:0;min-width:0}
.checkout-form-fields .field>span{overflow-wrap:anywhere;min-width:0}
.checkout-form-fields .field>:is(input,select,textarea){min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.checkout-form-product{padding:12px;border:1px solid #d5ded0;border-radius:8px;display:grid;gap:12px;min-width:0}
.checkout-form-product h3{margin:0;font-size:16px;overflow-wrap:anywhere}
.checkout-fields-error:empty{display:none}
@container(max-width:440px){.checkout-config-head{display:none}.checkout-config-row{grid-template-columns:24px minmax(0,1fr) 48px 48px;gap:6px}.checkout-config-handle{grid-column:1;grid-row:1/4;align-self:stretch}.checkout-config-name{grid-column:2/-1;grid-row:1}.checkout-config-type{grid-column:2/-1;grid-row:2}.checkout-config-toggle{grid-row:3}.checkout-config-toggle:nth-of-type(1){grid-column:2}.checkout-config-toggle:nth-of-type(2){grid-column:3}.checkout-config-toggle>span{display:inline;font-size:11px}.checkout-config-remove{grid-column:4;grid-row:3}.checkout-config-options{grid-column:2/-1;grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.checkout-config-row :is(input:not([type=checkbox]),select,textarea){font-size:16px;min-height:44px}.checkout-config-row :is(button,.checkout-config-toggle){min-height:44px}.checkout-form-fields .field{grid-template-columns:minmax(0,1fr)}.checkout-form-fields .field>:is(input,select,textarea){font-size:16px;min-height:44px}.checkout-form-product{padding:10px}}

/* am-compact-settings-rows-v1: grouped controls use content-sized columns, then wrap on narrow containers. */
.contact-information-panel:not([data-field-manager]),.contact-qr-panel:not([data-field-manager]),.profile-logo-panel{container-type:inline-size}
.settings-inline-parameter-row{display:grid;align-items:start;gap:12px;margin-block:12px 0;min-width:0}
.contact-address-parameter-row{grid-template-columns:minmax(160px,.5fr) minmax(240px,1.4fr) minmax(260px,1fr)}
.contact-qr-parameter-row{grid-template-columns:minmax(260px,1fr) minmax(320px,1.15fr) minmax(210px,.8fr) minmax(280px,1fr)}
.profile-logo-parameter-row{grid-template-columns:minmax(270px,1fr) minmax(310px,1.05fr) minmax(280px,1.2fr)}
.settings-inline-parameter-row>label.field{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;column-gap:8px;row-gap:4px;margin:0!important;min-width:0}
.settings-inline-parameter-row>label.field>:is(input,select,textarea){grid-column:2;grid-row:1;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.settings-inline-parameter-row>label.field>span{grid-column:1;grid-row:1;white-space:nowrap}
.settings-inline-parameter-row>label.field>small{grid-column:2;grid-row:2;min-width:0;overflow-wrap:anywhere}
.settings-inline-parameter-row small:empty{display:none}
.settings-inline-parameter-row>label.field>input[type=file]{max-width:340px;justify-self:start}
.settings-inline-parameter-row>label.field>.am-image-tools{grid-column:1/-1;grid-row:3;min-width:0}
.settings-inline-parameter-row>label.field>.am-image-tools:not(:has(.am-image-file,.am-image-crop-status:not(:empty))){display:none}
.contact-address-parameter-row>label.field>textarea{height:44px;min-height:44px;max-height:240px;resize:vertical}
@container(max-width:1105px){.contact-qr-parameter-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:900px){.profile-logo-parameter-row{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-logo-parameter-row>label:last-child{grid-column:1/-1}}
@container(max-width:740px){.contact-address-parameter-row{grid-template-columns:minmax(160px,.65fr) minmax(0,1fr)}.contact-address-parameter-row>label:last-child{grid-column:1/-1}}
@container(max-width:620px){.contact-qr-parameter-row,.profile-logo-parameter-row,.contact-address-parameter-row{grid-template-columns:minmax(0,1fr)}.settings-inline-parameter-row>label.field{grid-column:1;grid-template-columns:minmax(5em,max-content) minmax(0,1fr)}}
@media(max-width:760px){.settings-inline-parameter-row>label.field>:is(input,select,textarea){font-size:16px;min-height:44px}.settings-inline-parameter-row>label.field{grid-template-columns:7em minmax(0,1fr);align-items:center}.settings-inline-parameter-row>label.field>span{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:380px){.settings-inline-parameter-row>label.field{grid-template-columns:minmax(0,1fr);gap:5px}.settings-inline-parameter-row>label.field>:is(input,select,textarea){grid-column:1;grid-row:2}.settings-inline-parameter-row>label.field>small{grid-column:1;grid-row:3}.settings-inline-parameter-row>label.field>.am-image-tools{grid-row:4}}

/* am-site-favicon-v1: title and compact icon upload share one responsive row. */
.profile-basics-panel{container-type:inline-size}
.profile-title-icon-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,.65fr) auto;align-items:start;gap:12px;min-width:0;margin-bottom:14px}
.profile-title-icon-row>label.field{margin:0!important;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:6px 8px;min-width:0}
.profile-title-icon-row>label.field>input{grid-column:2;grid-row:1;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.profile-title-icon-row>label.field>span{grid-column:1;grid-row:1}
.profile-title-icon-row>label.field>small{grid-column:2;grid-row:2;overflow-wrap:anywhere;min-width:0}
.profile-title-icon-row [data-favicon-status]:empty{display:none}
.profile-title-icon-row input[type=file]{max-width:340px;justify-self:start}
.profile-favicon-preview{align-self:center;object-fit:contain;width:28px;height:28px}
@container(max-width:740px){.profile-title-icon-row{grid-template-columns:minmax(0,1fr) auto}.profile-title-icon-row>label:first-child{grid-column:1/-1}.profile-title-icon-row>label.field{grid-template-columns:8em minmax(0,1fr)}}
@media(max-width:760px){.profile-title-icon-row>label.field>input{font-size:16px;min-height:44px}}
@media(max-width:380px){.profile-title-icon-row{grid-template-columns:minmax(0,1fr)}.profile-title-icon-row>label.field{grid-template-columns:minmax(0,1fr);gap:5px}.profile-title-icon-row>label.field>input{grid-column:1;grid-row:2}.profile-title-icon-row>label.field>small{grid-column:1;grid-row:3}}

/* am-product-name-style-v1: compact named controls wrap as groups on narrow screens. */
.product-name-style-editor h3{font-size:14px;margin:0 0 10px}
.product-name-style-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.editor-form .product-name-style-controls>label.field{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;flex:0 1 auto;min-width:0}
.product-name-style-controls>label.field>span{white-space:nowrap;flex:none}
form.product-editor-compact .product-name-style-controls>label.field>input[type=number]{width:100px;min-width:100px;max-width:100px;flex:0 0 100px}
form.product-editor-compact .product-name-style-controls>label.field>input[type=color]{width:56px;min-width:56px;max-width:56px;flex:0 0 56px;height:44px;padding:4px;cursor:pointer}
form.product-editor-compact .product-name-style-controls>label.field>select{width:115px;min-width:115px;max-width:115px;flex:0 0 115px}
.product-name-style-controls .name-theme-color{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}
@media(max-width:760px){.product-name-style-controls input,.product-name-style-controls select{font-size:16px;min-height:44px}}

/* am-product-editor-collapse-v1: real closed sections, preserved form controls and full header hit areas. */
form.product-editor-compact details[data-product-editor-section]{padding:0;min-width:0}
form.product-editor-compact details[data-product-editor-section]>summary.panel-heading{display:flex;align-items:center;gap:12px;margin:0;padding:18px 20px;min-height:60px;list-style:none;cursor:pointer;user-select:none}
details[data-product-editor-section]>summary::-webkit-details-marker{display:none}
details[data-product-editor-section]>summary.panel-heading>:first-child{flex:1;min-width:0}
details[data-product-editor-section]>summary.panel-heading h2{font-size:17px;line-height:1.5;margin:0;overflow-wrap:anywhere}
details[data-product-editor-section]>summary::after{content:"";width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 3px 4px 2px}
details[data-product-editor-section][open]>summary::after{transform:rotate(225deg);margin-bottom:-4px}
details[data-product-editor-section]>summary:focus-visible{outline:3px solid #82a451;outline-offset:-3px;border-radius:10px}
details[data-product-editor-section]>.product-editor-section-body{padding:20px;border-top:1px solid #d9ddd2;min-width:0}
details[data-product-editor-section]:not([open])>.product-editor-section-body{display:none}
@media(max-width:760px){form.product-editor-compact details[data-product-editor-section]>summary.panel-heading{padding:14px 16px;min-height:54px;gap:8px}details[data-product-editor-section]>.product-editor-section-body{padding:16px}details[data-product-editor-section]>summary.panel-heading h2{font-size:16px}}

/* am-banner-carousel-v1: short named parameters keep usable widths beside multi-image uploads. */
.home-block-editor .home-images-toolbar>.banner-carousel-editor{display:contents}
.home-block-editor .banner-carousel-editor .field{flex:0 0 auto}
.home-block-editor .banner-carousel-editor select{width:90px;min-width:90px;max-width:90px;flex:none}
.home-block-editor .banner-carousel-editor input[type=number]{width:92px;min-width:92px;max-width:92px;flex:none}
@media(max-width:760px){.home-block-editor .banner-carousel-editor input,.home-block-editor .banner-carousel-editor select{font-size:16px;min-height:44px}}

/* am-contact-text-language-v1: real parent groups and readable compact field rows. */
.home-block-editor .contact-information-combined,.home-block-editor .contact-actions-combined{background:#e0e7d5!important;min-width:0}
.home-block-editor>.editor-columns{grid-template-columns:minmax(0,1fr)}
.home-block-editor .contact-subgroup{background:#f2f5ec;border:1px solid #d7dfcb;border-radius:10px;padding:14px;margin:0 0 14px;min-width:0}
.home-block-editor .contact-subgroup:last-child{margin-bottom:0}
.home-block-editor .contact-subgroup>.panel-heading{margin-bottom:12px}
.home-block-editor .contact-subgroup .native-field-row,.home-block-editor .contact-subgroup .home-field-row{background:#fff}
.home-block-editor .home-text-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.home-block-editor .home-text-toolbar h2{font-size:18px;margin:0;flex:none}
.home-block-editor .home-text-toolbar>.field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0!important;min-width:0}
.home-block-editor .home-text-toolbar .home-text-title{flex:1 1 240px}
.home-block-editor .home-text-toolbar .home-text-body{flex:2 1 300px}
.home-block-editor .home-text-toolbar .home-text-title input,.home-block-editor .home-text-toolbar .home-text-body textarea{flex:1;min-width:100px;width:0;min-height:44px;margin:0}
.home-block-editor .home-text-toolbar .home-text-body textarea{height:44px;resize:vertical}
.home-block-editor .home-text-toolbar .home-part-toggle,.home-block-editor .home-text-toolbar .home-visible-checkbox{flex:none;margin:0;white-space:nowrap}
.home-block-editor .contact-field-search{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.home-block-editor .contact-field-search input{width:320px;max-width:100%;flex:0 1 320px}
.home-block-editor label.contact-field-search{white-space:nowrap;grid-template-columns:max-content minmax(0,320px)!important;justify-content:start}
.home-block-editor .contact-field-search input{max-width:320px!important}
.home-block-editor [data-contact-information-combined] [data-field-row][hidden]{display:none!important}
@media(max-width:760px){.home-block-editor .home-text-toolbar>.field{flex:1 1 100%}.home-block-editor .home-text-toolbar .home-text-title input,.home-block-editor .home-text-toolbar .home-text-body textarea{font-size:16px}.home-block-editor .contact-subgroup{padding:10px}.home-block-editor .contact-field-search{flex-wrap:wrap}.home-block-editor .contact-field-search input{flex:1 1 200px}}
@media(max-width:760px){.home-block-editor .contact-subgroup .native-field-value-line>.badge{grid-column:2/4!important;justify-self:start;white-space:nowrap!important}.home-block-editor .contact-subgroup .home-field-row>.home-field-row-heading{flex-wrap:wrap}.home-block-editor .contact-subgroup .home-field-row>.home-field-row-heading>strong{flex:1 1 calc(100% - 60px);min-width:0;overflow-wrap:anywhere}.home-block-editor .contact-subgroup .home-field-row>.home-field-row-heading>div{margin-left:auto}.home-block-editor label.contact-field-search{grid-template-columns:max-content minmax(0,1fr)!important}}

/* am-language-visibility-v1: compact named options and independent display switches. */
.language-settings label.field:has(>select[name=default_language]){grid-template-columns:max-content minmax(0,1fr)!important}
.language-visibility-editor{border:0;padding:0;margin:12px 0 0;min-width:0}
.language-visibility-editor legend{font-size:13px;font-weight:600;margin-bottom:8px}
.language-visibility-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:8px}
.language-visibility-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #d7e0cd;border-radius:7px;background:#f5f7ef;cursor:pointer}
.language-visibility-option>span:first-child{min-width:0;overflow-wrap:anywhere}
.language-visibility-switch{display:flex;align-items:center;gap:6px;white-space:nowrap;flex:none}
.language-visibility-switch input{width:18px;height:18px;accent-color:#173d32}
.language-visibility-switch small{font-size:11px;color:#617254}
.language-visibility-switch small[hidden]{display:none}
@media(max-width:600px){.language-visibility-list{grid-template-columns:minmax(0,1fr)}.language-visibility-option{padding:8px 10px;font-size:13px}}

/* am-product-buy-visibility-v1: price, Buy display and cart stay above the checkout field editor. */
form.product-editor-compact .product-purchase-controls>label.field{margin-bottom:12px}
form.product-editor-compact .product-purchase-controls>label.field>select{max-width:150px;justify-self:start}
.product-checkout-field-title{font-size:15px;margin:16px 0 12px;padding-top:14px;border-top:1px solid #d9e0d1}

/* am-product-parameters-v1: type/name/value/action columns, grouped controls on phones. */
.product-parameter-add{position:relative;flex:none}.parameter-type-choices{position:absolute;right:0;top:100%;z-index:5;display:flex;gap:6px;padding:8px;background:#f8faf5;border:1px solid #c6d2b8;border-radius:8px;box-shadow:0 4px 12px #18392f22;white-space:nowrap}.parameter-type-choices[hidden]{display:none!important}
form.product-editor-compact [data-parameter-editor]>.parameter-display-control{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:12px;margin:0 0 12px}.parameter-display-control>span{flex:none;white-space:nowrap}form.product-editor-compact .parameter-display-control>select{flex:0 1 150px;width:150px;min-width:135px;max-width:150px;height:44px;min-height:44px;align-self:center}
[data-parameter-editor] .spec-table th:first-child{width:115px}[data-parameter-editor] .spec-table th:nth-child(2){width:30%}[data-parameter-editor] .spec-table th:last-child{width:52px}[data-parameter-editor] .spec-table select{width:100%;min-width:0;min-height:36px;padding:7px 8px;font-size:13px}
@media(max-width:760px){[data-parameter-editor] .spec-table-wrap{overflow:visible;border:0}[data-parameter-editor] .spec-table,[data-parameter-editor] .spec-table tbody{display:block}[data-parameter-editor] .spec-table thead{display:none}[data-parameter-editor] .spec-table .spec-row{display:grid;grid-template-columns:125px minmax(0,1fr) 48px;gap:6px;margin-bottom:10px;padding:8px;border:1px solid #d5ddce;border-radius:7px;background:#fff}[data-parameter-editor] .spec-table td{padding:0;border:0;min-width:0}[data-parameter-editor] .spec-row td:nth-child(2){grid-column:1/3;grid-row:2}[data-parameter-editor] .spec-row td:nth-child(3){grid-column:1/3;grid-row:3}[data-parameter-editor] .spec-row td:last-child{grid-column:3;grid-row:1}[data-parameter-editor] .spec-table input,[data-parameter-editor] .spec-table select,[data-parameter-editor] .spec-table button{font-size:16px;min-height:44px}.parameter-type-choices{right:0;max-width:calc(100vw - 40px)}.parameter-type-choices button{min-height:44px}}

/* am-parameter-alignment-v1: related display/alignment controls remain compact and wrap by group. */
.parameter-layout-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin-bottom:12px;min-width:0}
form.product-editor-compact [data-parameter-editor] .parameter-layout-controls>label.field{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:10px;margin:0;min-width:0;flex:0 1 auto}
.parameter-layout-controls>label.field>span{flex:none;white-space:nowrap}
form.product-editor-compact [data-parameter-editor] .parameter-layout-controls>label.field>select{flex:0 1 auto;width:150px;min-width:135px;max-width:150px;height:44px;min-height:44px;align-self:center}
form.product-editor-compact [data-parameter-editor] .parameter-layout-controls>.parameter-align-control>select{width:125px;min-width:115px;max-width:125px}
@media(max-width:760px){.parameter-layout-controls select{font-size:16px}}

/* am-subtitle-style-v1: two owning groups, with style controls below their own named field. */
form.product-editor-compact .product-text-editor{margin-top:12px;background:#eeeee6;border:1px solid #d5ddce;border-radius:10px;padding:14px;min-width:0}
form.product-editor-compact .product-text-editor>label.field{margin:0 0 12px}
.product-text-editor .product-name-style-editor,.product-text-editor .product-subtitle-style-editor{border:0;padding:0;margin:0;min-width:0;background:transparent}
.product-text-editor .product-name-style-controls{gap:10px 14px}
@media(max-width:760px){form.product-editor-compact .product-text-editor{padding:10px}.product-text-editor .product-name-style-controls{gap:10px}.product-text-editor .product-name-style-controls input,.product-text-editor .product-name-style-controls select{font-size:16px;min-height:44px}}

/* am-language-presentation-v1: one compact settings row, natural grouped reflow. */
.language-settings-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin:0 0 16px}
.language-settings-toolbar h2{font-size:16px;flex:none;margin:0}
.language-settings-toolbar>label.field{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px;flex:0 1 auto;margin:0;min-width:0;font-size:13px;white-space:nowrap}
.language-settings-toolbar .language-default-control select{width:160px;min-width:140px;flex:none}
.language-settings-toolbar .language-style-control select{width:190px;min-width:170px;flex:none}
.language-settings-toolbar .language-number-control input{width:86px;min-width:86px;flex:none}
.language-settings-toolbar>.badge{margin:0 0 0 auto;flex:none}
@media(max-width:680px){.language-settings-toolbar{gap:10px 14px}.language-settings-toolbar>label.field{flex-wrap:wrap;white-space:normal}.language-settings-toolbar select,.language-settings-toolbar input{font-size:16px}.language-settings-toolbar>.badge{margin-left:0}}

/* am-contact-controls-v1: one compact parent, shared row treatment and grouped mobile reflow. */
.contact-controls .contact-control-kind{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0!important}
.contact-controls .contact-control-kind select{width:130px;min-width:130px}
.contact-controls .home-editor-toolbar-actions{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:flex-start}
.contact-controls .contact-controls-manager{min-width:0;border:0;padding:0;margin:0}
.contact-controls [hidden]{display:none!important}
.contact-controls .home-field-row{background:#fff;padding:12px;margin:0 0 10px;border:1px solid #d7dfca;border-radius:8px}
.contact-controls .home-field-row-heading>.badge{flex:none}
.contact-controls .home-field-row-heading>strong{min-width:0;overflow-wrap:anywhere}
.contact-controls .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.contact-controls .field{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
.contact-controls .field>input,.contact-controls .field>textarea,.contact-controls .field>select{flex:1;min-width:0}
.contact-controls .field textarea{min-height:44px!important}
.contact-controls .home-button-icon-controls,.contact-control-image-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0}
.contact-controls .home-button-icon-controls .field,.contact-control-image-row .field{flex:0 1 auto;white-space:nowrap}
.contact-controls [name^=button_icon_action_],.contact-controls [name=qr_action]{width:190px;flex:none!important}
.contact-controls [type=file]{width:340px;max-width:100%;flex:none!important}
.contact-controls input::file-selector-button{white-space:nowrap}
.contact-control-image-preview,.contact-controls .home-button-icon-preview{width:90px;max-height:90px;height:auto;object-fit:contain;border-radius:5px}
.contact-control-text-flags{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.contact-controls [data-field-status]:empty,.contact-controls [data-contact-controls-status]:empty{display:none}
@media(max-width:680px){.contact-controls .field-grid{grid-template-columns:minmax(0,1fr)}.contact-controls .field{flex-wrap:wrap}.contact-controls [type=file]{width:min(340px,100%)}.contact-controls .home-field-row-heading{flex-wrap:wrap}.contact-controls input,.contact-controls select,.contact-controls textarea{font-size:16px!important}.contact-controls .home-field-row-heading>div{margin-left:auto}}
