/* General-product mode controls; apparel and administration are outside these scopes. */
.pgm-mode-bar,.pgm-picker{--pgm-ink:#30483f;--pgm-muted:#6b7a70;--pgm-line:#d9dfd4;--pgm-soft:#eef2e9;--pgm-green:#617d68;color:var(--pgm-ink)}
.pgm-mode-bar{display:block;padding:22px 24px;margin-bottom:16px;border:1px solid var(--pgm-line);border-radius:18px;background:#f6f5ef}
.pgm-mode-bar>p,.pgm-picker>p{font-size:14px;line-height:1.7;color:var(--pgm-muted);margin:8px 0 18px}
.pgm-mode-card{position:relative;display:block;width:100%;box-sizing:border-box;padding:18px 38px 16px 18px;border:1px solid var(--pgm-line);border-radius:13px;background:#fffef9;color:var(--pgm-ink);font:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.pgm-mode-card strong{display:block;font-size:17px;font-weight:600;line-height:1.4}.pgm-mode-card small{color:var(--pgm-muted);font-size:12px;line-height:1.6}
.pgm-mode-card[aria-pressed=true]{background:var(--pgm-soft);border-color:#8da38c;box-shadow:inset 0 0 0 1px #8da38c}
.pgm-mode-card[aria-pressed=true]::after{content:'✓';position:absolute;right:14px;top:16px;font-size:15px;font-weight:700;color:var(--pgm-green)}
.pgm-mode-card:hover:not(:disabled){background:#f0f4eb;border-color:#8da38c}.pgm-mode-card:disabled{opacity:.55;cursor:not-allowed}
.pgm-mode-card:focus-visible{outline:3px solid #436b59;outline-offset:3px}
.pgm-mode-card-compact{width:auto;min-width:210px;max-width:100%;padding:15px 40px 13px 17px}.pgm-mode-description{font-size:14px;line-height:1.7;margin:10px 0;min-height:48px;color:var(--pgm-muted)}
.pgm-action.ant-btn,.pgm-tab.ant-btn{font-family:inherit;font-size:14px;height:auto;min-height:38px;padding:7px 15px;line-height:1.5;border:1px solid #cfd8cc;border-radius:10px;background:#fffef9;color:#405b4c;box-shadow:none;transform:none}
.pgm-action.ant-btn:hover:not(:disabled),.pgm-tab.ant-btn:hover:not(:disabled){border-color:#8da38c;background:#eef2e9;color:#304f3d;transform:none;box-shadow:none}
.pgm-tab.ant-btn.is-active{background:#e6ecdf;border-color:#9baa91;color:#2e4e3a;font-weight:600}
.pgm-action.ant-btn-primary{background:#617d68;border-color:#617d68;color:white}.pgm-action.ant-btn-primary:hover:not(:disabled){background:#4c6853;color:white}
.pgm-action.ant-btn:focus:not(:focus-visible),.pgm-tab.ant-btn:focus:not(:focus-visible){outline:none;box-shadow:none}.pgm-action.ant-btn:focus-visible,.pgm-tab.ant-btn:focus-visible{outline:3px solid #436b59;outline-offset:3px}
.pgm-action.ant-btn:disabled,.pgm-tab.ant-btn:disabled{color:#9ba59a;background:#f3f4ee;border-color:#dfe3da;cursor:not-allowed;opacity:.7}
.pmm-workbench input[type=file]::file-selector-button,.pgm-factory-form input[type=file]::file-selector-button{font:inherit;font-size:14px;color:#405b4c;border:1px solid #cfd8cc;border-radius:9px;padding:8px 14px;margin-right:12px;background:#f6f8f1;cursor:pointer}
.pmm-workbench .pst-template-grid input[type=checkbox]{accent-color:#617d68;width:17px;height:17px}
.pgm-mode-finish .pgm-action{margin:18px 0}.pgm-mode-finish>p{max-width:650px;margin:12px auto 24px;line-height:1.8}
@media(max-width:600px){.pgm-mode-bar{padding:18px 16px}.pgm-mode-card-compact{flex:1 1 160px;min-width:0}.pgm-mode-card strong{font-size:16px}.pgm-picker .pgm-mode-description{min-height:0}.pgm-mode-card{padding-right:34px}.pgm-action.ant-btn,.pgm-tab.ant-btn{min-height:42px}}
@media(prefers-reduced-motion:reduce){.pgm-mode-card{transition:none}}

.agent-product-master-panel .agent-factory-copy .pgm-action.ant-btn{padding:7px 15px!important;min-height:38px;height:auto;border-radius:10px;line-height:1.5;box-shadow:none}.agent-product-master-panel .pcw-cover-empty{font-size:13px;white-space:nowrap}.agent-product-master-panel .agent-factory-copy .pgm-action.ant-btn:focus-visible{outline:3px solid #436b59;outline-offset:3px}
