/* Scoped to catalog pages: the private full Admin keeps its own navigation. */
.catalog-ops, .catalog-workspace-page {
  --primary: #76445b; --secondary: #63364b; --accent: #ffffff;
  --body-bg: #f6f5f1; --body-fg: #302d32; --body-quiet-color: #706b70;
  --body-loud-color: #302d32; --header-bg: #ffffff; --header-color: #302d32;
  --header-branding-color: #76445b; --header-link-color: #76445b;
  --link-fg: #76445b; --link-hover-color: #4e2639; --link-selected-fg: #63364b;
  --darkened-bg: #f1eee9; --selected-bg: #eee6e8; --selected-row: #f5edf1;
  --hairline-color: #ece7e3; --border-color: #ded7d5;
  --button-bg: #76445b; --button-hover-bg: #63364b; --default-button-bg: #76445b;
  --default-button-hover-bg: #63364b; --close-button-bg: #706b70;
  --error-fg: #b12233; --message-success-bg: #e9f3ed;
  background: var(--body-bg); color: var(--body-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.catalog-ops #header {border-bottom: 1px solid var(--border-color); padding: 22px 36px; gap: 16px;}
.catalog-ops #site-name a {display: flex; gap: 14px; align-items: center; text-decoration: none; color: #76445b;}
.ops-wordmark {font: bold 32px Georgia, serif; letter-spacing: -1px;}
.ops-brand-label {font-size: 13px; color: #706b70; border-left: 1px solid #ded7d5; padding-left: 14px;}
.catalog-ops #user-tools {font-size: 12px; letter-spacing: 0; color: #706b70;}
.catalog-ops .theme-toggle {display: none;}
.ops-nav {display: flex; align-items: center; gap: 6px; background: #fff; border-bottom: 1px solid #e8e2df; padding: 10px 36px; flex-wrap: wrap;}
.ops-nav a {padding: 12px 18px; min-height: 44px; box-sizing: border-box; border-radius: 9px; font-size: 14px; font-weight: 600; color: #706b70;}
.ops-nav a:hover, .ops-nav a[aria-current] {background: #f2e9ee; color: #63364b;}
.ops-nav .ops-nav-add {margin-inline-start: auto; color: #76445b;}
.catalog-ops #content, .catalog-workspace-page #content {padding: 30px 36px; box-sizing: border-box; width: 100%;}
.catalog-ops .colMS {margin-right: 0;}
.catalog-ops #content-main {min-width: 0;}
.catalog-ops h1, .catalog-workspace h1 {color: #302d32; font-size: 28px; font-weight: 650; margin: 0 0 10px; line-height: 1.4;}
.catalog-ops input, .catalog-ops select, .catalog-ops textarea {font-size: 16px; border-radius: 8px;}
.catalog-ops input:not([type=checkbox]):not([type=radio]), .catalog-ops select {min-height: 42px; box-sizing: border-box;}
.catalog-ops .module, .catalog-ops #changelist {border-radius: 12px;}
.catalog-ops #changelist .actions, .catalog-ops #changelist #toolbar {padding: 16px;}
.catalog-ops #changelist table thead th {background: #f1eee9; padding: 14px 10px;}
.catalog-ops #changelist table tbody th, .catalog-ops #changelist table tbody td {padding: 16px 10px; line-height: 1.6;}
.catalog-ops #changelist .results {overflow-x: auto;}
.catalog-ops .object-tools a {border-radius: 8px; padding: 12px 18px; background: #76445b;}
.catalog-ops .messagelist li {padding: 16px 36px 16px 58px; background-position: 36px 18px;}
.catalog-ops :focus-visible, .catalog-workspace :focus-visible {outline: 3px solid #af7a94; outline-offset: 3px;}
.ops-dashboard, .catalog-workspace {max-width: 1180px; margin: 0 auto;}
.ops-eyebrow {font-size: 11px; letter-spacing: 1.8px; color: #8b6173; font-weight: 600; margin: 0 0 12px;}
.ops-welcome {display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 0 32px;}
.ops-welcome p:not(.ops-eyebrow) {color: #706b70; line-height: 1.8;}
.ops-card {background: #fff; border: 1px solid #e5dedb; border-radius: 16px; box-sizing: border-box; overflow-wrap: anywhere;}
.dashboard-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;}
.dashboard-card {padding: 26px; color: #302d32 !important; transition: border-color 150ms;}
.dashboard-card:hover {border-color: #a97a91; box-shadow: 0 4px 18px #63364b08;}
.dashboard-icon {display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #f2e9ee; color: #76445b; font-size: 26px; border-radius: 12px; margin-bottom: 20px;}
.dashboard-card h2 {font-size: 20px; margin: 0 0 10px;}.dashboard-card h2 span {float: right; color: #a48b96;}
.dashboard-card p {color: #706b70; line-height: 1.8; margin-bottom: 22px;}.ops-link {color: #76445b; font-weight: 600;}
.ops-note {border-left: 3px solid #b49a7a; padding: 8px 20px; margin-top: 32px;}.ops-note p {color: #706b70; line-height: 1.8; margin-bottom: 0;}
.workspace-heading {display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px;}
.workspace-columns {display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start;}
.workspace-main {min-width: 0;}.workspace-main .ops-card {margin-bottom: 18px;}
.form-section {padding: 24px; scroll-margin-top: 20px;}
.section-heading {display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-start;}
.section-number {border-radius: 9px; background: #f4ede6; color: #8c6850; font-size: 12px; font-weight: bold; padding: 9px;}
.catalog-workspace h2 {font-size: 18px; margin: 0 0 6px; color: #302d32;}
.section-heading p {margin: 0; color: #706b70; font-size: 13px; line-height: 1.7;}
.ops-muted, .catalog-workspace .helptext {color: #706b70; font-size: 13px; line-height: 1.7; font-weight: normal;}
.field-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;}
.ops-field {margin-bottom: 20px; min-width: 0;}
.ops-field label {display: block; font-weight: 600; margin: 0 0 8px; font-size: 14px; line-height: 1.7;}
.required-mark {color: #a14962;}
.catalog-workspace input:not([type=checkbox]):not([type=hidden]), .catalog-workspace select, .catalog-workspace textarea {box-sizing: border-box; width: 100%; max-width: 100%; min-height: 46px; font-size: 16px; padding: 11px 12px; border: 1px solid #dcd4d2; border-radius: 8px; color: #302d32; background: #fff;}
.catalog-workspace textarea {resize: vertical; min-height: 82px;}
.catalog-workspace input:disabled, .catalog-workspace select:disabled {background: #f6f4f2; color: #706b70;}
.catalog-workspace input::placeholder {color: #999096;}
.catalog-workspace .helptext {display: block; margin-top: 6px;}
.catalog-workspace .checkbox-field label {display: flex; gap: 10px; align-items: center; min-height: 44px;}
.catalog-workspace input[type=checkbox] {width: 18px; height: 18px; accent-color: #76445b; flex-shrink: 0;}
.ops-card summary {padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; min-height: 24px;}
.ops-card summary::after {content: '+'; color: #76445b; font-size: 20px; flex-shrink: 0;}.ops-card[open] > summary::after {content: '−';}
.ops-card summary::-webkit-details-marker {display: none;}
.merchant-panel form, .optional-details > .field-grid {padding: 4px 24px 20px;}
.inline-status {font-size: 13px; line-height: 1.7; margin: 12px 0 0; color: #396652;}.inline-status:empty {display: none;}
.ops-button, a.ops-button:link, a.ops-button:visited {display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #76445b; color: #fff; border: 1px solid #76445b; border-radius: 9px; min-height: 46px; padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer; box-sizing: border-box; text-decoration: none; flex-shrink: 0;}
.ops-button:hover, a.ops-button:hover {background: #63364b;}.ops-button:disabled {opacity: .6; cursor: wait;}
.ops-button.ops-button-secondary {background: #fff; color: #76445b; border-color: #d6c4cd;}.ops-button-secondary:hover {background: #f5eef2;}
.upload-zone {border: 1px dashed #c7aeba; border-radius: 12px; background: #fcf9fb; padding: 18px; margin-bottom: 20px;}.upload-zone .ops-field {margin-bottom: 4px;}
.upload-zone p {margin-bottom: 0;}.catalog-workspace input[type=file] {padding: 8px; font-size: 13px;}
.catalog-workspace input::file-selector-button {background: #f2e9ee; border: 0; border-radius: 6px; padding: 10px 12px; color: #63364b; margin-right: 10px; cursor: pointer;}
.image-preview {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px;}.image-preview:empty {display: none;}
.image-preview figure {margin: 0; min-width: 0;}.image-preview img {width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f3f0eb; border-radius: 8px;}.image-preview figcaption {font-size: 11px; color: #706b70; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 5px;}
.camera-trigger {margin-top: 10px;}.camera-trigger[hidden], #camera-file[hidden] {display: none;}
.image-preview .remove-photo {background: #fff; color: #76445b; border: 1px solid #d6c4cd; border-radius: 6px; padding: 8px; min-height: 44px; width: 100%; margin-top: 6px; cursor: pointer;}
.saved-images {margin-bottom: 16px;}.image-records {margin: 14px 0 20px;}.image-records summary {padding: 10px 0;}.image-records a {display: inline-block; padding: 10px 0; font-size: 13px;}
.workspace-save {position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid #e5dedb; box-shadow: 0 4px 24px #4e263914; border-radius: 12px; padding: 16px 20px;}
.workspace-save strong {font-size: 13px;}.workspace-save small {display: block; color: #706b70; font-size: 12px; margin-top: 4px;}
.workspace-aside {position: sticky; top: 24px;}.workspace-guide {padding: 22px; margin-bottom: 18px;}.workspace-guide nav {display: flex; flex-direction: column; margin: 14px 0;}.workspace-guide nav a {padding: 12px 0; font-size: 13px;}.workspace-guide p {margin-bottom: 0;}
.recent-products summary {padding: 18px;}.recent-products summary a {font-size: 12px; margin-left: auto;}.recent-products ul {padding: 0 18px; margin: 0; list-style: none;}.recent-products li {display: flex; gap: 8px; align-items: center; padding: 14px 0; border-top: 1px solid #eee8e5;}.recent-products li a {min-width: 0; flex: 1;}.recent-products li strong {font-size: 13px; font-weight: 600; display: block; line-height: 1.6;}.recent-products li .ops-muted {display: block; font-size: 11px;}
.status-pill {background: #f1eee8; color: #80674c; border-radius: 30px; padding: 5px 9px; font-size: 11px; white-space: nowrap;}.status-active {background: #e7f2eb; color: #396652;}
.ops-inline-actions {display: flex; gap: 16px; align-items: center; flex-wrap: wrap;}
.ops-error-summary {padding: 20px; background: #fff0ef; border: 1px solid #edb7b6; border-radius: 12px; margin-bottom: 18px; color: #a22031;}.ops-error-summary li {margin: 8px 0;}.has-error input, .has-error textarea {border-color: #b12233 !important;}
.catalog-upload-form {max-width: 700px; padding: 24px; background: #fff; border: 1px solid #e5dedb; border-radius: 16px;}.catalog-upload-form label {display: block; margin-bottom: 8px;}.catalog-upload-form .helptext {display: block;}
.catalog-ops.login #container {border: 1px solid #e5dedb; border-radius: 18px; box-shadow: 0 12px 48px #63364b0d;}.catalog-ops.login #header {padding: 24px;}.catalog-ops.login #content {padding: 24px;}.catalog-ops.login .submit-row {padding: 12px 0 0;}.catalog-ops.login input[type=submit] {width: 100%;}
@media (max-width: 1000px) {.workspace-columns {grid-template-columns: minmax(0, 1fr) 220px; gap: 18px;}.catalog-ops #content, .catalog-workspace-page #content {padding: 24px;}}
@media (max-width: 767px) {
  .catalog-ops #header {padding: 16px; align-items: flex-start;}.catalog-ops #branding {width: auto;}.catalog-ops #user-tools {margin: 0; text-align: start; line-height: 2;}.ops-wordmark {font-size: 28px;}
  .ops-nav {padding: 8px; gap: 2px;}.ops-nav a {padding: 12px 10px; font-size: 13px;}.ops-nav .ops-nav-add {margin-left: auto;}
  .catalog-ops #content, .catalog-workspace-page #content {padding: 20px 16px;}.catalog-workspace-page #content {padding-bottom: 120px;}
  .catalog-ops h1, .catalog-workspace h1 {font-size: 24px;}.ops-welcome, .workspace-heading {align-items: flex-start; flex-direction: column; gap: 14px;}.ops-welcome {padding: 6px 0 24px;}.ops-welcome .ops-button {width: 100%;}
  .dashboard-grid {gap: 12px;}.dashboard-card {padding: 18px;}.dashboard-card h2 {font-size: 16px;}.dashboard-card p {font-size: 12px;}.dashboard-icon {margin-bottom: 14px;}.dashboard-card .ops-link {font-size: 12px;}
  .workspace-columns {grid-template-columns: 1fr;}.workspace-aside {position: static;}.workspace-guide {display: none;}.form-section {padding: 20px 16px;}.field-grid {grid-template-columns: 1fr;}.section-heading {margin-bottom: 20px;}
  .ops-card summary {padding: 18px 16px; flex-wrap: wrap;}.merchant-panel form, .optional-details > .field-grid {padding: 0 16px 18px;}.optional-details summary .ops-muted {font-size: 12px;}
  .workspace-save {position: fixed; bottom: 0; left: 0; right: 0; border-radius: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));}.workspace-save .ops-button {padding: 12px 16px;}.workspace-save small {font-size: 11px;}.workspace-save strong {font-size: 12px;}
  .ops-field {scroll-margin-bottom: 140px;}.image-preview {grid-template-columns: repeat(3, minmax(0, 1fr));}.catalog-ops .messagelist li {padding-left: 36px; background-position: 16px 18px;}
  .catalog-ops #changelist #toolbar form input[type=submit] {padding: 8px 16px;}.catalog-ops .change-form .aligned label {width: auto;}.catalog-ops .change-form .aligned .form-row input:not([type=checkbox]), .catalog-ops .change-form textarea {max-width: 100%;}
}
@media (max-width: 359px) {.ops-nav .ops-nav-add {margin-inline-start: 0;}.workspace-save {gap: 8px; padding-inline: 12px;}.workspace-save .ops-button {font-size: 13px; padding-inline: 12px;}.dashboard-grid {grid-template-columns: 1fr;}}
@media (prefers-reduced-motion: reduce) {.dashboard-card {transition: none;}}
