.admin-shell { --admin-type-body: 13px; --admin-type-note: 12px; --admin-type-micro: 11px; min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0, 1fr); font-size: var(--admin-type-body); line-height: 1.45; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; transition: grid-template-columns .2s ease; }
.admin-shell.sidebar-collapsed { grid-template-columns: 62px minmax(0, 1fr); }
.unified-sidebar { position: sticky; top: 0; z-index: 4; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; background: #202321; border-right: 1px solid #343836; box-shadow: 6px 0 20px rgba(11,13,12,.08); }
.unified-brand { min-height: 58px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid #343836; }
.unified-brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; background: #fff; box-shadow: 0 6px 16px rgba(255,138,0,.18); }
.unified-brand b,.unified-brand span { display: block; white-space: nowrap; }
.unified-brand b { color: #fff; font-size: 13px; }
.unified-brand span { margin-top: 1px; color: #8f9a94; font-size: 9px; letter-spacing: .08em; }
.unified-nav { display: grid; gap: 3px; padding: 8px 7px; }
.nav-section { display: grid; gap: 2px; }
.nav-group-button { min-height: 38px; display: grid; grid-template-columns: 24px minmax(0,1fr) 16px; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #a8afab; text-align: left; }
.nav-group-button b { font-size: 11px; font-weight: 700; }
.nav-group-button em { color: #737d77; font-size: 13px; font-style: normal; text-align: center; }
.nav-group-button:hover,.nav-section.active > .nav-group-button { background: #2b302d; color: #fff; border-color: #3a403c; }
.nav-section.active > .nav-group-button { color: var(--brand-lime); box-shadow: inset 3px 0 0 var(--brand-lime); }
.nav-children { display: none; gap: 2px; padding: 1px 0 5px 14px; }
.nav-section.active .nav-children { display: grid; }
.nav-section-direct .nav-group-button { grid-template-columns:24px minmax(0,1fr); }
.nav-children button { min-height: 34px; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9ca6a0; text-align: left; font-size: 11px; }
.nav-children button:hover { background: #292e2b; color: #fff; }
.nav-children button.active { background: #f6fff0; color: var(--brand-deep); border-color: #c8e49e; font-weight: 800; }
.nav-svg { width: 18px; height: 18px; display: block; }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; color: currentColor; }
.nav-icon .nav-svg { width: 17px; height: 17px; }
.unified-sidebar-foot { display: flex; align-items: center; gap: 7px; margin: auto 9px 10px; padding: 8px 9px; border: 1px solid #343b37; border-radius: 9px; color: #9ca6a0; font-size: 9px; }
.unified-sidebar-foot span { padding: 2px 5px; border-radius: 5px; background: var(--brand-lime);color:var(--brand-on-bright); font-weight: 900; }
.unified-sidebar-foot b { white-space: nowrap; }
.sidebar-collapsed .unified-brand { grid-template-columns: 38px; padding-inline: 11px; }
.sidebar-collapsed .unified-brand > div,.sidebar-collapsed .nav-group-button b,.sidebar-collapsed .nav-group-button em,.sidebar-collapsed .nav-section.active .nav-children,.sidebar-collapsed .unified-sidebar-foot b { display: none; }
.sidebar-collapsed .unified-nav { padding-inline: 6px; }
.sidebar-collapsed .nav-group-button { grid-template-columns: 1fr; place-items: center; padding-inline: 6px; }
.sidebar-collapsed .unified-sidebar-foot { justify-content: center; margin-inline: 8px; padding-inline: 4px; }
.workspace { min-width: 0; }
.global-top { min-height: 62px; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.global-search { width: min(360px, 34vw); display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #f4f7f5; color: var(--muted); }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.announcement { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.announcement b { color: var(--brand-deep); }
.global-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.global-actions button { padding: 7px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.admin-main { min-width: 0; padding: 22px 24px 40px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.admin-head h1 { margin: 4px 0 3px; color: var(--brand-deep); font-size: 24px; }
.admin-head p { margin: 0; color: var(--muted); font-size: 11px; }
.eyebrow, .panel-kicker, .workspace-notice > div > span, .disabled-module > span { color: var(--brand-deep); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.eyebrow::before, .panel-kicker::before { content: ""; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 99px; background: var(--brand-lime);color:var(--brand-on-bright)}
.head-actions { display: flex; align-items: center; gap: 9px; }
.admin-search { min-width: 230px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbf9; }
.admin-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.user-chip { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand-deep); font-size: 11px; font-weight: 700; }
.workspace-intro { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: end; gap: 24px; min-height: 178px; padding: 28px; border-radius: 18px; background: var(--brand-deep);color:var(--brand-on-deep); }
.workspace-intro::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; bottom: -150px; border-radius: 50%; background: var(--brand-lime);color:var(--brand-on-bright)}
.workspace-intro > * { position: relative; z-index: 1; }
.workspace-intro > div > span { color: var(--brand-lime); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.workspace-intro h2 { max-width: 560px; margin: 12px 0 8px; font-size: 28px; }
.workspace-intro p { margin: 0; color: #dce8e3; font-size: 12px; }
.intro-summary { min-width: 130px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.intro-summary b, .intro-summary span { display: block; }
.intro-summary b { color: var(--brand-lime); font-size: 36px; }
.intro-summary span { font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.metric { padding: 15px; border: 1px solid #e8ede9; border-radius: 13px; background: #fff; }
.metric span, .metric strong, .metric small { display: block; }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { margin-top: 7px; color: var(--brand-deep); font-size: 26px; }
.metric small { margin-top: 5px; color: #939b95; font-size: 9px; }
.brief-panel, .panel { margin-top: 12px; padding: 16px; border: 1px solid #e7ece8; border-radius: 14px; background: #fff; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.panel-head.padded { padding: 16px 16px 0; }
.panel-head h2 { margin: 2px 0 0; color: var(--brand-deep); font-size: 16px; }
.panel-head span { color: var(--muted); font-size: 10px; }
.text-action { border: 0; background: transparent; color: var(--brand-deep); font-size: 11px; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.module-grid article { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.module-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-lime);color:var(--brand-on-bright); font-weight: 800; }
.module-grid strong, .module-grid span { display: block; }
.module-grid strong { color: var(--brand-deep); font-size: 11px; }
.module-grid span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.page-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.page-toolbar strong, .page-toolbar span { display: block; }
.page-toolbar strong { color: var(--brand-deep); }
.page-toolbar span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.toolbar-tags { display: flex; gap: 6px; }
.toolbar-tags span { margin: 0; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--brand-deep); }
.info-strip { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 10px 13px; border-radius: 9px; background: #eef7ff; color: #526875; font-size: 10px; }
.info-strip b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #3a8ee6; color: #fff; }
.product-tabs { display: flex; align-items: end; gap: 20px; min-height: 44px; border-bottom: 1px solid var(--line); }
.product-tabs > button { align-self: stretch; padding: 0 4px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #65756d; font-size: 11px; font-weight: 700; }
.product-tabs > button.active { border-color: var(--brand-deep); color: var(--brand-deep); }
.product-tabs > button span { color: #8c9791; font-weight: 400; }
.product-tabs > div { display: flex; gap: 5px; margin: 0 0 8px auto; }
.product-tabs > div button { padding: 5px 8px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.product-filters { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto auto; gap: 9px; align-items: end; margin-top: 12px; padding: 14px; border-radius: 11px; background: #fff; }
.product-filters label { display: grid; gap: 6px; color: #62736a; font-size: 9px; }
.product-filters input, .product-filters select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #e3e9e5; border-radius: 8px; background: #f8faf9; color: var(--ink); font-size: 10px; }
.product-filters > button { min-height: 36px; padding: 7px 14px; border-radius: 9px; font-size: 10px; }
.filter-search { border: 0; background: var(--brand-deep);color:var(--brand-on-deep); font-weight: 700; }
.filter-clear { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.batch-toolbar { display: flex; align-items: center; gap: 7px; margin: 10px 0; }
.batch-toolbar button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #53645c; font-size: 10px; }
.batch-toolbar button:disabled { opacity: .45; }
.batch-toolbar .publish-action { border-color: var(--brand-deep); background: var(--brand-deep);color:var(--brand-on-deep); font-weight: 700; }
.batch-toolbar span { margin-left: 8px; color: var(--muted); font-size: 10px; }
.product-table-panel { margin-top: 0; }
.product-table { min-width: 1050px; }
.product-table th:first-child, .product-table td:first-child { width: 38px; text-align: center; }
.product-table tr.selected { background: #f5ffd9; }
.admin-product { min-width: 260px; display: flex; align-items: center; gap: 10px; }
.admin-product-art { flex: 0 0 62px; height: 50px; display: grid; place-items: center; border-radius: 9px; background: var(--soft); color: var(--brand-deep); font-size: 9px; font-weight: 700; }
.admin-product strong, .admin-product small, .admin-product em { display: block; }
.admin-product small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.admin-product em { margin-top: 4px; color: #829087; font-size: 8px; font-style: normal; }
.quality { color: #6f7f76; font-weight: 700; }
.quality.good { color: #15845f; }
.quality.warn { color: #c47500; }
.row-actions { display: grid; gap: 3px; }
.row-actions button { min-height: auto; padding: 1px 0; border: 0; background: transparent; color: #1a67ad; font-size: 9px; text-align: left; }
.row-actions .warning-action { color: #a36200; }
.row-actions .danger-action { color: #a33a26; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #edf1ee; text-align: left; vertical-align: top; font-size: 11px; }
.data-table th { background: #fafcfb; color: var(--muted); font-size: 10px; font-weight: 600; }
.data-table td strong { color: var(--brand-deep); }
.data-table tbody tr:hover { background: #fbfdfb; }
.data-table button { min-height: 32px; padding: 5px 9px; }
.status-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.pill-warning { background: #fff1d6; color: #8c6500; }
.compliance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compliance-card { position: relative; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.compliance-card.pending { border-left: 4px solid var(--brand-deep); }
.compliance-card strong, .compliance-card > span, .compliance-card small { display: block; }
.compliance-card strong { margin: 7px 0; color: var(--brand-deep); }
.compliance-card > span:not(.category-order), .compliance-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.category-order { color: #9aa29c; font-size: 9px; }
.workspace-notice { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px; border-radius: 16px; background: var(--brand-deep);color:var(--brand-on-deep); }
.workspace-notice h2 { margin: 8px 0 6px; font-size: 21px; }
.workspace-notice p { max-width: 720px; margin: 0; color: #dce8e3; font-size: 11px; line-height: 1.6; }
.workspace-notice button, .workspace-notice a { flex: 0 0 auto; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--brand-lime);color:var(--brand-on-bright); font-size: 11px; font-weight: 700; text-decoration: none; }
.workspace-notice button:disabled { opacity: .68; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.review-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.review-art { height: 74px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: var(--brand-deep); font-weight: 700; }
.review-card strong { color: var(--brand-deep); }
.review-card p { color: var(--muted); font-size: 10px; }
.review-card button { padding: 8px; border: 0; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 9px; }
.content-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.layout-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.layout-list li { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 8px; padding: 10px; border-radius: 9px; background: #f8faf8; }
.layout-list b { color: var(--brand-deep); font-size: 10px; }
.layout-list span { font-size: 11px; }
.layout-list em { color: var(--muted); font-size: 9px; font-style: normal; }
.brand-swatches { display: flex; gap: 8px; }
.brand-swatches span { padding: 28px 12px 10px; border-radius: 11px; background: var(--swatch); color: var(--swatch); box-shadow: inset 0 -25px 0 rgba(255,255,255,.92); font-size: 10px; font-weight: 700; }
.location-list { display: grid; gap: 8px; }
.location-list article { padding: 12px; border-radius: 10px; background: #f8faf8; }
.location-list strong, .location-list span, .location-list small { display: block; }
.location-list strong { color: var(--brand-deep); }
.location-list span, .location-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.location-list div { display: flex; gap: 5px; margin-top: 8px; }
.location-list i { padding: 5px 7px; border-radius: 999px; background: var(--soft); color: var(--brand-deep); font-size: 9px; font-style: normal; }
.delivery-layout{grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);align-items:start}.pickup-editor-list{display:grid;gap:12px}.pickup-point-editor{display:grid;gap:12px;padding:14px;border:1px solid #dfe8dc;border-radius:14px;background:#f8faf7}.pickup-editor-head,.pickup-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.pickup-editor-head strong{color:var(--brand-deep);font-size:15px}.pickup-editor-head .check-row{width:auto;margin:0}.pickup-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pickup-editor-grid label{display:grid;align-content:start;gap:5px;color:var(--muted);font-size:11px}.pickup-editor-grid label.wide{grid-column:1/-1}.pickup-editor-grid input{width:100%;height:36px;padding:0 10px;border:1px solid #d6dfd3;border-radius:9px;background:#fff;color:var(--ink);box-sizing:border-box}.pickup-editor-grid .check-row{display:flex;align-items:center;align-self:end;min-height:36px;color:var(--ink)}.pickup-editor-grid .check-row input{width:auto;height:auto}.pickup-editor-actions span{color:var(--muted);font-size:10px}.pickup-editor-actions button{width:auto;margin:0}@media(max-width:980px){.delivery-layout{grid-template-columns:1fr}.pickup-editor-grid{grid-template-columns:1fr}.pickup-editor-grid label.wide{grid-column:auto}}
.rule-card { padding: 18px; border-radius: 12px; background: var(--brand-lime);color:var(--brand-on-bright); }
.rule-card span, .rule-card strong, .rule-card small { display: block; }
.rule-card strong { margin: 7px 0; font-size: 28px; }
.disabled-module { max-width: 880px; padding: 36px; border: 1px solid #dbe5dc; border-radius: 18px; background: linear-gradient(135deg,#fff,#f4ffd5); }
.disabled-module.warning { background: linear-gradient(135deg,#fff,#fff5e5); }
.disabled-module h2 { margin: 12px 0 8px; color: var(--brand-deep); font-size: 26px; }
.disabled-module p { max-width: 720px; color: var(--muted); line-height: 1.8; }
.disabled-module div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.disabled-module div b, .disabled-module div span { padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 10px; }
.disabled-module div b { background: var(--brand-deep);color:var(--brand-on-deep); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.role-grid article { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.role-grid strong { color: var(--brand-deep); text-transform: uppercase; }
.role-grid p { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
.role-grid span { padding: 4px 6px; border-radius: 7px; background: var(--soft); color: #53645c; font-size: 8px; }
.json-note { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

/* M33 operations cockpit: compact, stable and backed by current business data. */
.global-top { position: sticky; top: 0; z-index: 20; min-height: 58px; gap: 10px; padding: 8px 16px; box-shadow: 0 3px 14px rgba(77,128,49,.04); }
.global-search { flex: 0 1 300px; width: 300px; min-width: 190px; padding: 7px 10px; border-radius: 9px; }
.workspace-jumps { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.workspace-jumps a { min-height: 32px; display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand-deep); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.workspace-jumps a:hover { border-color: var(--brand-deep); background: var(--soft); }
.global-actions { min-width: 0; }
.global-actions button { min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.user-chip { max-width: 160px; overflow: hidden; padding: 7px 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { padding: 14px 16px 32px; scrollbar-gutter: stable; }
.admin-head { margin-bottom: 10px; }
.admin-head h1 { margin-block: 2px; font-size: 22px; }
.admin-head p { font-size: 11px; }

.operations-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.operations-kpis article { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(77,128,49,.035); }
.operations-kpis span,.operations-kpis strong,.operations-kpis small { display: block; }
.operations-kpis span { color: var(--muted); font-size: 11px; }
.operations-kpis strong { margin-top: 4px; overflow: hidden; color: var(--brand-deep); font-size: 24px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.operations-kpis small { margin-top: 3px; color: #8a958f; font-size: 10px; }
.operations-primary-grid { display:grid; grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,.85fr)); gap:8px; margin-top:8px; align-items:start; }
.operations-grid { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(2,minmax(240px,.85fr)); gap: 8px; margin-top: 8px; align-items: stretch; }
.ops-card { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.ops-card > header { min-height: 34px; display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ops-card > header b,.ops-card > header span { display: block; }
.ops-card > header b { color: var(--brand-deep); font-size: 13px; }
.ops-card > header span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.ops-card > header em { padding: 3px 6px; border-radius: 6px; background: #f3f6f4; color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.ops-card > header button { padding: 4px 6px; border: 0; background: transparent; color: #1b6b5b; font-size: 10px; font-weight: 700; }
.sales-trend-card { grid-column: auto; }
.sales-trend { height: 92px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; align-items: end; padding-top: 4px; border-top: 1px solid #edf1ee; }
.sales-trend > div { min-width: 0; height: 100%; display: grid; grid-template-rows: 13px minmax(36px,1fr) 16px 13px; gap: 1px; text-align: center; }
.sales-trend span,.sales-trend strong,.sales-trend small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sales-trend span,.sales-trend small { color: var(--muted); }
.sales-trend strong { color: var(--brand-deep); }
.sales-trend i { min-height: 36px; display: flex; align-items: end; justify-content: center; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top,#f4f7f5,#fff); }
.sales-trend i b { width: min(18px,48%); min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#A2CF01,var(--brand-deep));color:var(--brand-on-deep)}
.sales-inventory-summary { margin-top:9px; padding-top:8px; border-top:1px solid #edf1ee; }
.sales-inventory-summary > header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.sales-inventory-summary > header div { min-width:0; display:flex; align-items:baseline; gap:6px; }
.sales-inventory-summary > header b { color:var(--brand-deep); font-size:12px; }
.sales-inventory-summary > header span { color:var(--muted); font-size:11px; }
.sales-inventory-summary > header button { padding:0; border:0; background:transparent; color:#1b6b5b; font-size:11px; font-weight:700; }
.task-list { display: grid; gap: 3px; }
.task-list button,.recent-operations > div > button { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border: 1px solid #edf1ee; border-radius: 8px; background: #fafcfb; color: inherit; text-align: left; }
.task-list button:hover,.recent-operations > div > button:hover { border-color: #b8d58f; background: #f7ffe8; }
.task-list button span,.task-list button b,.task-list button small,.recent-operations span,.recent-operations b,.recent-operations small { min-width: 0; display: block; }
.task-list button b,.recent-operations b { overflow: hidden; color: var(--brand-deep); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-list button small,.recent-operations small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-list button > strong { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #eef2ef; color: #718078; font-size: 11px; }
.task-list button > strong.has-task { background: #fff0df; color: #b35518; }
.finance-card dl { display: grid; gap: 5px; margin: 0; }
.finance-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #edf1ee; }
.finance-card dt { color: var(--muted); font-size: 10px; }
.finance-card dd { margin: 0; color: var(--brand-deep); font-size: 11px; font-weight: 750; }
.finance-card .finance-net { padding: 7px; border: 0; border-radius: 7px; background: var(--soft); }
.finance-breakdown { display:flex; flex-wrap:wrap; gap:3px 7px; margin-top:7px; color:var(--muted); font-size:8px; }
.finance-card p { margin: 8px 0 0; color: #a05d2f; font-size: 9px; line-height: 1.45; }
.product-health { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.product-health button { min-width: 0; padding: 9px 4px; border: 1px solid #edf1ee; border-radius: 8px; background: #fafcfb; }
.product-health strong,.product-health span { display: block; }
.product-health strong { color: var(--brand-deep); font-size: 18px; }
.product-health strong.warn { color: #ba5b17; }
.product-health span { margin-top: 2px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.top-products-card ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.top-products-card li { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 6px; }
.top-products-card li > i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #f0f4f1; color: var(--brand-deep); font-size: 9px; font-style: normal; font-weight: 800; }
.top-products-card li span,.top-products-card li b,.top-products-card li em { min-width: 0; display: block; }
.top-products-card li b { overflow: hidden; color: #405048; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.top-products-card li em { height: 4px; margin-top: 3px; overflow: hidden; border-radius: 9px; background: #edf1ee; }
.top-products-card li u { height: 100%; display: block; border-radius: inherit; background: var(--brand-lime);color:var(--brand-on-bright)}
.top-products-card li > strong { color: var(--brand-deep); font-size: 9px; white-space: nowrap; }
.recent-operations { grid-column: span 2; }
.recent-operations > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.recent-operations > div > button > strong { color: var(--brand-deep); font-size: 10px; white-space: nowrap; }
.empty-row { color: var(--muted); font-size: 10px; }

.product-tabs { min-height: 36px; gap: 13px; }
.product-tabs > button { padding: 0 2px; font-size: 11px; }
.product-tabs > button span { display: inline-grid; min-width: 18px; margin-left: 3px; padding: 1px 4px; border-radius: 7px; background: #f0f3f1; font-size: 9px; }
.product-tabs > div { margin-bottom: 5px; }
.product-tabs > div button { min-height: 27px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--brand-deep); }
.product-filters { position: sticky; top: 58px; z-index: 12; grid-template-columns: minmax(180px,1.5fr) 130px 150px 130px 56px; gap: 6px; margin-top: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 14px rgba(77,128,49,.05); }
.product-filters label { min-width: 0; gap: 2px; font-size: 9px; }
.product-filters input,.product-filters select { min-width: 0; min-height: 31px; padding: 5px 7px; border-radius: 6px; font-size: 11px; box-sizing: border-box; }
.product-filters > button { min-height: 31px; padding: 5px 8px; border-radius: 6px; }
.product-command-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.product-command-bar > div { display: flex; align-items: center; gap: 7px; }
.product-command-bar button { min-height: 31px; padding: 5px 9px; border: 0; border-radius: 7px; background: var(--brand-deep);color:var(--brand-on-deep); font-size: 11px; font-weight: 750; }
.product-command-bar span,.product-command-bar small { color: var(--muted); font-size: 9px; }
.product-command-bar b { padding: 3px 6px; border-radius: 6px; background: var(--soft); color: var(--brand-deep); font-size: 9px; }
.product-table { width: 100%; min-width: 780px; table-layout: fixed; }
.product-table .col-check { width: 34px; }
.product-table .col-product { width: 38%; }
.product-table .col-price { width: 13%; }
.product-table .col-stock { width: 12%; }
.product-table .col-status { width: 17%; }
.product-table .col-actions { width: 17%; }
.product-table th,.product-table td { padding: 5px 7px; vertical-align: middle; font-size: 10px; }
/* M39: keep the product header in normal flow. Sticky cells inside the
   horizontal table wrapper could detach from the table and cover product rows. */
.product-table th { position: static; background: #f8faf9; font-size: 9px; }
.product-table td > small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.admin-product { min-width: 0; gap: 7px; }
.admin-product > div { min-width: 0; }
.admin-product-art { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 6px; font-size: 8px; object-fit: cover; }
.admin-product strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-product small,.admin-product em { margin-top: 1px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.compact-status { display: grid; gap: 2px; }
.compact-status span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.compact-status .quality { font-size: 9px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; }
.row-actions button { padding: 0; font-size: 9px; line-height: 1.35; white-space: nowrap; }
.product-table .quality { font-size: 9px; }

/* M40: new-product editor and pending warehouse are independent workspaces. */
.pending-workspace-panel { padding:14px 16px; }
.pending-draft-list { max-height:none; overflow:visible; }
.pending-draft-list > article { min-height:58px; }
.pending-draft-list article > div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.pending-draft-list button { padding:7px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--brand-deep); font-size:12px; }
.pending-bulk-bar { display:flex; align-items:center; gap:12px; min-height:38px; padding:6px 0; border-bottom:1px solid var(--line); }
.pending-bulk-bar label { display:flex; align-items:center; gap:6px; color:var(--brand-deep); font-size:12px; font-weight:700; }
.pending-bulk-bar span { margin-right:auto; color:var(--muted); font-size:11px; }
.pending-bulk-bar input,.draft-select-cell input { width:16px; height:16px; min-height:0; margin:0; accent-color:var(--brand-deep); }
.pending-draft-list > article { transition:background-color .15s ease; }
.pending-draft-list > article.selected { background:var(--soft); }
.draft-select-cell { display:flex; flex:0 0 20px; align-items:center; justify-content:center; }
.draft-summary { flex:1 1 auto; min-width:0; }
.pending-bulk-bar .danger-action,.pending-draft-list .danger-action { border-color:#e8b8b2; background:#fff7f5; color:#a53a2d; }

/* M42: large decorative page-intro banners are removed; controls live in module headers. */
.workspace-notice { display:none; }
.relocated-page-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
.relocated-page-actions > a,
.relocated-page-actions > button { min-height:30px; padding:6px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--brand-deep); font-size:11px; font-weight:700; text-decoration:none; }
.relocated-page-actions > .ai-provider { padding:5px 8px; border-radius:7px; background:var(--soft); color:var(--brand-deep); font-size:11px; font-weight:700; }
@media (max-width:720px) { .relocated-page-actions { width:100%; margin-left:0; } }

@media (max-width: 1180px) {
  .global-search { flex-basis: 220px; width: 220px; }
  .user-chip { display: none; }
  .operations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recent-operations { grid-column: span 2; }
  .product-filters { grid-template-columns: minmax(170px,1.4fr) repeat(3,minmax(110px,1fr)) 52px; }
}

@media (max-width: 860px) {
  .workspace-jumps a { padding-inline: 6px; font-size: 9px; }
  .operations-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-primary-grid,.operations-grid { grid-template-columns: 1fr; }
  .sales-trend-card,.recent-operations { grid-column: auto; }
  .recent-operations > div { grid-template-columns: 1fr; }
  .product-filters { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-filters .product-keyword { grid-column: span 2; }
}

/* Shared workbench typography standard: body 13, notes 12, micro labels 11. */
.global-search input, .admin-search input, .global-actions button, .text-action,
.product-tabs > button, .product-filters input, .product-filters select,
.product-filters > button, .batch-toolbar button, .row-actions button,
.workspace-notice button, .workspace-notice a, .review-card button {
  font-size: var(--admin-type-body);
  line-height: 1.45;
}
.announcement, .admin-head p, .panel-head span, .page-toolbar span,
.info-strip, .product-tabs > div button, .product-filters label,
.batch-toolbar span, .admin-product small, .admin-product em,
.data-table th, .metric small, .module-grid span, .workspace-notice p,
.review-card p, .layout-list em, .location-list span, .location-list small,
.location-list i, .disabled-module div b, .disabled-module div span,
.role-grid span, .sidebar-foot, .user-chip {
  font-size: var(--admin-type-note);
  line-height: 1.45;
}
.eyebrow, .panel-kicker, .workspace-intro > div > span,
.workspace-notice > div > span, .disabled-module > span,
.category-order {
  font-size: var(--admin-type-micro);
  line-height: 1.4;
}
.admin-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.panel-head h2 { font-size: 17px; line-height: 1.35; }
.metric span, .page-toolbar strong, .module-grid strong,
.layout-list span, .layout-list b, .location-list strong,
.review-card strong, .role-grid strong { font-size: 13px; line-height: 1.4; }
.workspace-intro p { font-size: 13px; line-height: 1.55; }
.intro-summary span { font-size: 12px; }
.admin-product-art { font-size: 11px; }
.data-table th { font-weight: 700; }
.data-table td { font-size: 13px; line-height: 1.45; }
.pill, .quality { font-size: 12px; line-height: 1.3; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 70% 20%, #A2CF01 0 12%, transparent 32%), #4D8031;color:var(--brand-on-deep)}
.admin-login > section { width: min(430px, 100%); padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.login-logo { width: 76px; height: 76px; display: block; object-fit: cover; border: 1px solid var(--line); border-radius: 20px; }
.admin-login > section > span { display: block; margin-top: 20px; color: #4D8031; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.admin-login h1 { margin: 8px 0; color: #4D8031; font-size: 28px; }
.admin-login p, .admin-login small { color: #6e756f; }
.admin-login form, .page-editor { display: grid; gap: 13px; margin-top: 22px; }
.admin-login label, .page-editor label, .product-editor label { display: grid; gap: 6px; color: #53645c; font-size: 13px; }
.admin-login input, .page-editor input, .page-editor select, .product-editor input, .product-editor select, .product-editor textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.login-error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff0ee; color: var(--danger); }
.draft-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 12px; margin-top: 12px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-grid .wide { grid-column: 1 / -1; }
.product-editor textarea { min-height: 82px; resize: vertical; }
.product-editor .detail-field textarea { min-height: 112px; line-height: 1.6; }
.product-editor label small { color: var(--muted); font-size: 11px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.asset-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #f5f8f5; color: var(--muted); }
.asset-preview figure { width: 120px; margin: 0; }
.asset-preview img { width: 120px; height: 90px; object-fit: cover; border-radius: 9px; }
.asset-preview figcaption { margin-top: 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.editor-section-tabs { position:sticky; top:54px; z-index:8; display:flex; align-items:center; gap:3px; margin:-4px -2px 12px; padding:0 8px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(10px); }
.editor-section-tabs a { min-height:40px; display:grid; place-items:center; padding:0 14px; border-bottom:3px solid transparent; color:#53645c; font-size:12px; text-decoration:none; }
.editor-section-tabs a:hover,.editor-section-tabs a:focus { border-color:var(--brand-deep); color:var(--brand-deep); }
.editor-section-tabs span { margin-left:auto; color:var(--muted); font-size:10px; }
.compact-product-form .editor-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.compact-product-form .editor-grid .wide { grid-column:1/-1; }
.compact-product-form label { gap:4px; font-size:11px; }
.compact-product-form input,.compact-product-form select,.compact-product-form textarea { min-height:36px; padding:7px 9px; border-radius:7px; font-size:12px; }
.compact-product-form .detail-field { grid-column:span 1; }
.compact-product-form .detail-field textarea { min-height:92px; line-height:1.45; }
.compact-product-form .asset-preview { max-height:210px; overflow:auto; gap:7px; margin-top:10px; padding:9px; }
.compact-product-form .asset-preview figure,.compact-product-form .asset-preview img { width:92px; }
.compact-product-form .asset-preview img { height:69px; border-radius:7px; }
.sticky-editor-actions { position:sticky; z-index:9; bottom:0; align-items:center; margin:12px -16px -16px; padding:10px 16px; border-top:1px solid var(--line); background:rgba(255,255,255,.97); box-shadow:0 -8px 22px rgba(77,128,49,.06); }
.sticky-editor-actions > span { margin-right:auto; color:var(--muted); font-size:10px; }
.merchant-admin select,.merchant-admin input { width:100%; min-width:140px; min-height:32px; margin-bottom:5px; padding:5px 7px; border:1px solid var(--line); border-radius:7px; }
.merchant-admin button { padding:6px 9px; border:0; border-radius:7px; background:var(--brand-deep);color:var(--brand-on-deep); font-size:10px; }
.merchant-admin td { max-width:270px; }
.editor-command-bar,.content-command-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.editor-command-bar > div,.content-command-bar > div { display:flex; align-items:center; gap:8px; }
.editor-command-bar > div:first-child,.content-command-bar > div:first-child { align-items:baseline; }
.editor-command-bar span,.content-command-bar span { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.12em; }
.editor-command-bar strong,.content-command-bar strong { color:var(--brand-deep); font-size:15px; }
.editor-command-bar button,.content-command-bar button,.content-command-bar a { min-height:30px; padding:6px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--brand-deep); font-size:11px; text-decoration:none; }
.editor-command-bar .button-primary { border-color:var(--brand-deep); background:var(--brand-deep);color:var(--brand-on-deep); }
.compact-draft-drawer { margin-bottom:10px; padding:10px 12px; }
.compact-draft-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:8px; }
.compact-draft-list article { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 9px; border:1px solid var(--line); border-radius:8px; background:#f8faf7; }
.compact-draft-list strong,.compact-draft-list span { display:block; }
.compact-draft-list strong { font-size:11px; }
.compact-draft-list span { margin-top:2px; color:var(--muted); font-size:9px; }
.compact-draft-list article > div:last-child { display:flex; gap:4px; }
.compact-draft-list button { padding:5px 7px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--brand-deep); font-size:9px; }
.product-editor-m12 { padding:0 14px 14px; }
.product-editor-m12 .editor-section-tabs { top:54px; margin:0 -14px 8px; }
.editor-block { scroll-margin-top:104px; margin-top:8px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fbfcfa; }
.editor-block-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.editor-block-title b,.editor-block-title span { display:block; }
.editor-block-title b { color:var(--brand-deep); font-size:13px; }
.editor-block-title span { margin-top:2px; color:var(--muted); font-size:9px; }
.editor-block-title em { padding:4px 7px; border-radius:999px; background:#e8f1cc; color:var(--brand-deep); font-size:9px; font-style:normal; font-weight:800; }
.media-input-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.media-input-row label { padding:10px; border:1px dashed #aabeb3; border-radius:10px; background:#fff; }
.media-upload-field b,.media-upload-field small { display:block; }
.media-upload-field b { margin-bottom:6px; color:var(--brand-deep); font-size:11px; }
.media-upload-field small { margin-top:5px; color:var(--muted); font-size:9px; line-height:1.5; }
.media-input-row input[type="file"] { min-height:30px; padding:4px; background:#f5f8f5; }
.detail-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:10px; margin-top:9px; align-items:start; }
.media-groups { display:grid; gap:10px; min-width:0; }
.media-group { padding:8px; border:1px solid #e1e9e4; border-radius:9px; background:#f8faf8; }
.media-group > header { display:flex; justify-content:space-between; gap:8px; margin-bottom:7px; }
.media-group > header b { color:var(--brand-deep); font-size:10px; }
.media-group > header span { color:var(--muted); font-size:9px; }
.detail-media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:7px; max-height:390px; min-height:130px; overflow:auto; }
.detail-media-grid > .media-empty { grid-column:1 / -1; }
.detail-media-card { position:relative; min-width:0; margin:0; padding:5px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.detail-media-card img { width:100%; aspect-ratio:3/4; border-radius:6px; object-fit:cover; background:#eef2ee; }
.primary-media-card img { aspect-ratio:1/1; }
.detail-media-card figcaption { display:grid; grid-template-columns:auto 1fr; gap:2px 4px; margin-top:4px; }
.detail-media-card figcaption b { grid-row:1/3; display:grid; place-items:center; width:19px; height:19px; border-radius:50%; background:var(--brand-deep);color:var(--brand-on-deep); font-size:9px; }
.detail-media-card figcaption span { color:var(--brand-deep); font-size:9px; font-weight:800; }
.detail-media-card figcaption small { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.media-sort { display:flex; gap:3px; margin-top:4px; }
.media-sort button { flex:1; min-height:22px; padding:2px; border:1px solid var(--line); border-radius:5px; background:#f6f8f5; color:var(--brand-deep); }
.media-sort .media-remove { border-color:#f2c2b7; background:#fff4f1; color:#a23a21; }
.media-sort button:disabled { opacity:.3; }
.media-empty { display:grid; place-items:center; min-height:100px; padding:14px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); font-size:10px; text-align:center; }
.detail-page-phone { overflow:hidden; max-height:400px; border:6px solid #17211e; border-radius:22px; background:#fff; box-shadow:0 10px 24px rgba(77,128,49,.12); }
.detail-page-phone header { position:sticky; top:0; z-index:1; padding:9px 10px 7px; border-bottom:1px solid var(--line); background:#fff; }
.detail-page-phone header span,.detail-page-phone header b { display:block; }
.detail-page-phone header span { color:var(--muted); font-size:8px; }
.detail-page-phone header b { margin-top:2px; overflow:hidden; color:var(--brand-deep); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.detail-page-phone > div { max-height:346px; overflow:auto; padding:5px; }
.detail-page-phone > div img { display:block; width:100%; height:auto; margin:0; border-radius:4px; }
.detail-page-phone > div small { display:block; padding:3px 5px 6px; color:var(--muted); font-size:8px; }
.detail-page-phone > div[data-detail-page-preview] { display:flex; flex-direction:column; gap:0; padding:0; line-height:0; background:#17211e; }
.detail-page-phone > div[data-detail-page-preview] > img { flex:0 0 auto; margin:0; border:0; border-radius:0; vertical-align:top; }
.editor-inline-error { margin:8px 0 10px; padding:10px 12px; border:1px solid #e3584b; border-radius:8px; background:#fff1ef; color:#9e251d; font-size:11px; font-weight:800; line-height:1.55; }
.editor-inline-error[hidden] { display:none; }
.editor-block.has-editor-error { outline:2px solid rgba(211,55,43,.45); outline-offset:-2px; }
.editor-block [aria-invalid="true"] { border-color:#d3372b !important; box-shadow:0 0 0 3px rgba(211,55,43,.12); }
.content-version-drawer { margin-bottom:9px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.content-version-drawer > summary,.compact-config-card > summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; }
.content-version-drawer > summary { justify-content:space-between; min-height:36px; padding:7px 11px; color:var(--brand-deep); font-size:11px; font-weight:800; }
.content-version-drawer > summary::-webkit-details-marker,.compact-config-card > summary::-webkit-details-marker { display:none; }
.content-version-drawer > summary::before,.compact-config-card > summary::before { content:'›'; color:var(--muted); font-size:15px; transition:transform .15s; }
.content-version-drawer[open] > summary::before,.compact-config-card[open] > summary::before { transform:rotate(90deg); }
.content-version-drawer > summary b { margin-left:auto; font-size:9px; }
.version-drawer-body { padding:0 10px 9px; }
.compact-version-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; max-height:190px; overflow:auto; }
.compact-version-list article { padding:6px 7px; border:1px solid var(--line); border-radius:7px; }
.compact-version-list article span { font-size:8px; }
.compact-version-list button { padding:4px 6px; font-size:9px; }
.compact-content-panel { padding:10px 12px 0; }
.compact-page-editor { display:grid; gap:7px; }
.compact-config-card { border:1px solid var(--line); border-radius:9px; background:#f9fbf8; }
.compact-config-card > summary { min-height:36px; padding:6px 9px; }
.compact-config-card > summary span { color:var(--brand-deep); font-size:11px; font-weight:800; }
.compact-config-card > summary small { overflow:hidden; margin-left:auto; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.compact-config-card > summary button { margin-left:6px; padding:3px 6px; border:0; border-radius:5px; background:#fff0ec; color:#b43b22; font-size:8px; }
.compact-field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:8px 9px 9px; border-top:1px solid var(--line); }
.compact-field-grid label { gap:3px; font-size:9px; }
.compact-field-grid input,.compact-field-grid select,.compact-field-grid textarea { min-height:31px; padding:5px 7px; border-radius:6px; font-size:10px; }
.compact-field-grid textarea { min-height:54px; }
.config-section-head { display:flex; align-items:center; justify-content:space-between; min-height:30px; padding:3px 2px; }
.config-section-head b,.config-section-head span { display:block; }
.config-section-head b { color:var(--brand-deep); font-size:11px; }
.config-section-head span { margin-top:1px; color:var(--muted); font-size:8px; }
.config-section-head em { color:var(--muted); font-size:9px; font-style:normal; }
.compact-empty { padding:10px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); font-size:9px; text-align:center; }
.fixed-ad-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:8px; border-top:1px solid var(--line); }
.fixed-ad-editor fieldset { gap:5px; padding:7px; border-radius:7px; }
.fixed-ad-editor label { gap:3px; font-size:9px; }
.fixed-ad-editor input,.fixed-ad-editor select { min-height:30px; padding:5px 7px; font-size:10px; }
.source-badge-editor { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; padding:8px; border-top:1px solid var(--line); }
.source-badge-editor label { gap:3px; font-size:9px; }
.source-badge-editor input { min-height:30px; padding:4px 6px; }
.draft-queue { align-self: start; max-height: 760px; overflow: auto; }
.draft-view-tabs { display: flex; gap: 6px; padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
.draft-view-tabs button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.draft-view-tabs button.active { border-color: var(--brand-deep); background: var(--brand-deep);color:var(--brand-on-deep); }
.draft-queue > article, .version-list article, .account-list article { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.draft-queue strong, .draft-queue span, .draft-queue small, .version-list strong, .version-list span, .account-list strong, .account-list span { display: block; }
.draft-queue span, .draft-queue small, .version-list span, .account-list span, .account-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.draft-queue article > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.draft-queue button, .version-list button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand-deep); font-size: 12px; }
.page-editor { margin-top: 0; }
.page-editor textarea { min-height: 84px; resize: vertical; }
.page-editor fieldset { display: grid; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; }
.page-editor legend { padding: 0 7px; color: var(--brand-deep); font-size: 11px; font-weight: 800; }
.page-editor .check-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.page-editor .check-row input { width: 18px; min-height: 18px; }
.content-editor-layout { grid-template-columns: minmax(460px, 1.3fr) minmax(300px, .7fr); align-items: start; }
.admin-product-art.actual { object-fit: cover; border: 0; }
.category-manage-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 12px; }
.category-admin-list { display: grid; }
.category-admin-list article { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.category-admin-list article.disabled { opacity: .55; }
.category-admin-list strong, .category-admin-list span, .category-admin-list small { display: block; }
.category-admin-list strong { color: var(--brand-deep); font-size: 14px; }
.category-admin-list strong i { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 8px; background: var(--brand-lime); font-size: 10px; font-style: normal;color:var(--brand-on-bright)}
.category-admin-title { display: flex !important; align-items: center; gap: 8px; }
.category-admin-title img { width: 34px; height: 34px; padding: 4px; border-radius: 11px; background: #f4f7f3; object-fit: contain; box-sizing: border-box; }
.category-admin-title span { margin: 0; color: var(--brand-deep); font-size: 14px; }
.category-admin-list article.subcategory-row { padding-left: 20px; background: #fafcf8; }
.category-admin-list span, .category-admin-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.category-sequence, .category-actions { display: flex; gap: 5px; }
.category-sequence button, .category-actions button { min-width: 29px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand-deep); font-size: 11px; }
.category-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.category-icon-upload { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #eef5eb; color: var(--brand-deep); font-size: 11px; cursor: pointer; }
.category-sequence button:disabled { opacity: .35; }
.category-create { align-self: start; }

/* M33 review guidance and compact category assignment workspace. */
.review-path { display:flex; align-items:center; gap:10px; margin:10px 0; padding:10px 12px; border:1px solid #d7e5cf; border-radius:10px; background:#f3faee; }
.review-path b { flex:0 0 auto; color:var(--brand-deep); font-size:12px; }
.review-path span { flex:1; color:#52645b; font-size:11px; line-height:1.55; }
.review-path button { padding:7px 10px; border:0; border-radius:8px; background:var(--brand-deep);color:var(--brand-on-deep); font-size:10px; font-weight:800; }
.review-workflow { display:flex; align-items:center; gap:7px; margin-bottom:10px; padding:9px 10px; border-radius:9px; background:#f3faee; color:#52645b; font-size:10px; }
.review-workflow b { color:var(--brand-deep); }
.review-workflow i { color:#8a9a92; font-style:normal; }
.category-workspace-notice { margin-bottom:10px; }
.category-create-compact { margin-bottom:10px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.category-create-compact > summary { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding:7px 12px; cursor:pointer; list-style:none; }
.category-create-compact > summary::-webkit-details-marker { display:none; }
.category-create-compact > summary span { color:var(--brand-deep); font-size:12px; font-weight:900; }
.category-create-compact > summary small { color:var(--muted); font-size:9px; }
.category-create-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:9px 12px 12px; border-top:1px solid var(--line); }
.category-create-grid label { display:grid; gap:4px; color:var(--muted); font-size:9px; }
.category-create-grid input,.category-create-grid select { min-height:32px; padding:5px 7px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.category-create-grid button { align-self:end; min-height:32px; }
.category-manager { padding:11px 12px; }
.category-family-list { display:grid; gap:8px; }
.category-family { overflow:hidden; border:1px solid #dfe8e2; border-radius:11px; background:#fff; }
.category-row { display:grid; grid-template-columns:58px minmax(180px,1fr) auto; align-items:center; gap:9px; padding:9px 10px; }
.category-row.root { background:#f5f9f2; }
.category-row.child { padding-left:26px; border-top:1px solid #edf1ee; background:#fff; }
.category-row.disabled { opacity:.55; }
.category-row-main strong,.category-row-main > span,.category-row-main > small { display:block; }
.category-row-main > span { margin-top:2px; color:#52645b; font-size:10px; }
.category-row-main > small { margin-top:2px; color:var(--muted); font-size:9px; }
.category-child-list { border-top:1px solid #dfe8e2; }
.category-no-children { padding:8px 26px; color:var(--muted); font-size:9px; background:#fbfcfb; }
.category-product-picker { margin:0 10px 10px; padding:10px; border:1px solid #cbded1; border-radius:9px; background:#f8fbf7; }
.category-product-picker > header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.category-product-picker > header b,.category-product-picker > header span { display:block; }
.category-product-picker > header b { color:var(--brand-deep); font-size:12px; }
.category-product-picker > header span { margin-top:3px; color:var(--muted); font-size:9px; }
.category-product-picker > header button { padding:5px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--brand-deep); }
.category-current-products { margin-top:8px; }
.category-current-products > b { color:var(--brand-deep); font-size:9px; }
.category-current-products > div { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.category-current-products span { padding:3px 6px; border-radius:999px; background:#e8f1e7; color:#355449; font-size:8px; }
.category-current-products small { color:var(--muted); font-size:9px; }
.category-product-search { display:grid; gap:4px; margin-top:9px; color:var(--muted); font-size:9px; }
.category-product-search input { min-height:32px; padding:6px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.category-product-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; max-height:220px; margin-top:7px; overflow:auto; }
.category-product-options > label { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:6px; padding:7px; border:1px solid #e0e8e2; border-radius:8px; background:#fff; cursor:pointer; }
.category-product-options > label[hidden] { display:none; }
.category-product-options > label.locked { opacity:.55; cursor:not-allowed; }
.category-product-options input { width:15px; min-height:15px; margin:1px 0 0; }
.category-product-options b,.category-product-options small { display:block; }
.category-product-options b { overflow:hidden; color:var(--brand-deep); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.category-product-options small { margin-top:2px; color:var(--muted); font-size:8px; line-height:1.4; }
.category-product-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.category-product-actions span { color:#8b5a16; font-size:9px; }
.category-product-actions button { flex:0 0 auto; }

/* M9 membership operations: compact brand-colour journey and editable rewards. */
.membership-flow-board { position: relative; overflow: hidden; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 12px; padding: 24px; border: 1px solid #dce7dc; border-radius: 22px; background: linear-gradient(120deg, #f6ffe0 0%, #eef8ec 58%, #fff 100%); }
.membership-flow-board::after { content: ""; position: absolute; right: -54px; top: -72px; width: 190px; height: 190px; border-radius: 50%; background: rgba(162,207,1,.42); }
.flow-heading { position: relative; z-index: 1; }
.flow-heading span { color: var(--brand-deep); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.flow-heading h2 { margin: 7px 0; color: var(--brand-deep); font-size: 22px; }
.flow-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.flow-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flow-track article { position: relative; min-height: 108px; padding: 14px; border: 1px solid rgba(77,128,49,.09); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 10px 26px rgba(77,128,49,.06); }
.flow-track article:not(:last-child)::after { content: "›"; position: absolute; z-index: 2; right: -8px; top: 42px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-lime);color:var(--brand-on-bright); font-weight: 900; }
.flow-track i, .flow-track strong, .flow-track small { display: block; }
.flow-track i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-deep);color:var(--brand-on-deep); font-size: 10px; font-style: normal; font-weight: 900; }
.flow-track strong { margin-top: 11px; color: var(--brand-deep); font-size: 13px; }
.flow-track small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.membership-layout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.membership-layout .data-table th, .membership-layout .data-table td { padding: 10px 9px; }
.redemption-list { display: grid; }
.redemption-list article { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.redemption-list article:last-child { border-bottom: 0; }
.redemption-list strong, .redemption-list span, .redemption-list b, .redemption-list small { display: block; }
.redemption-list strong { color: var(--brand-deep); font-size: 13px; }
.redemption-list span, .redemption-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.redemption-list article > div:last-child { flex: 0 0 auto; text-align: right; }
.redemption-list b { color: var(--brand-deep); font-size: 12px; }
.membership-settings { margin-top: 12px; }
.membership-form { gap: 16px; }
.rule-editor-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tier-editor-grid, .reward-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.page-editor .tier-editor { align-content: start; border-top: 4px solid var(--brand-lime); background: linear-gradient(180deg, #fff, #f7faf5); }
.tier-editor:nth-child(2) { border-top-color: #ffad3d; }
.tier-editor:nth-child(3) { border-top-color: #64aa73; }
.tier-editor:nth-child(4) { border-top-color: var(--brand-deep); }
.reward-editor-card { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf5; }
.reward-editor-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reward-editor-card > div > span { color: var(--brand-deep); font-size: 12px; font-weight: 800; }
.reward-editor-card .switch-label { display: flex; grid-template-columns: none; align-items: center; gap: 6px; font-size: 10px; }
.reward-editor-card .switch-label input { width: 16px; min-height: 16px; }

@media (max-width: 1100px) { .admin-shell { grid-template-columns: 190px minmax(0, 1fr); } .admin-shell.sidebar-collapsed { grid-template-columns:62px minmax(0,1fr); } .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module-grid, .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid { grid-template-columns: 1fr; } .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .membership-flow-board { grid-template-columns: 1fr; } .rule-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tier-editor-grid, .reward-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .admin-shell,.admin-shell.sidebar-collapsed { grid-template-columns: 1fr; } .unified-sidebar { position: static; height: auto; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: start; overflow: visible; } .unified-brand { min-height: 48px; grid-template-columns: 34px; padding: 7px 8px; border: 0; } .unified-brand img { width:34px; height:34px; } .unified-brand > div,.unified-sidebar-foot { display:none; } .unified-nav { display:flex; align-items:flex-start; gap:3px; min-width:0; padding:6px 8px 6px 0; overflow-x:auto; } .nav-section { flex:0 0 auto; display:flex; align-items:flex-start; gap:3px; } .nav-group-button { min-width:58px; min-height:36px; grid-template-columns:18px auto; gap:4px; padding:5px 7px; } .nav-group-button b { display:block!important; font-size:10px; } .nav-group-button em { display:none; } .nav-section.active .nav-children { display:flex; padding:0; } .sidebar-collapsed .nav-section.active .nav-children { display:none; } .nav-children button { min-width:max-content; min-height:36px; grid-template-columns:17px auto; padding:5px 7px; } .global-top { padding: 8px 12px; } .global-search { width: 100%; } .announcement, .global-actions { display: none; } .admin-main { padding: 16px; } .admin-head { margin-bottom: 14px; } .head-actions { display: none; } .content-layout { grid-template-columns: 1fr; } .product-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } .membership-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dashboard-grid, .module-grid, .compliance-grid, .role-grid { grid-template-columns: 1fr; } .workspace-intro, .workspace-notice { align-items: start; display: grid; } .intro-summary { display: none; } .review-card { grid-template-columns: 64px 1fr; } .review-card button { grid-column: 1 / -1; } }

@media (max-width: 820px) { .draft-layout, .category-manage-layout { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .compact-product-form .editor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .compact-product-form .detail-field { grid-column:1/-1; } .detail-editor-layout { grid-template-columns:1fr; } .detail-page-phone { max-width:320px; } .compact-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .source-badge-editor { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width: 900px) { .category-create-grid,.category-product-options { grid-template-columns:repeat(2,minmax(0,1fr)); } .category-row { grid-template-columns:52px minmax(0,1fr); } .category-row .category-actions { grid-column:1/-1; justify-content:flex-start; } .review-workflow { align-items:flex-start; flex-wrap:wrap; } }
@media (max-width: 520px) { .review-path { align-items:flex-start; flex-direction:column; } .category-create-grid,.category-product-options { grid-template-columns:1fr; } .category-row.child { padding-left:14px; } .category-product-actions { align-items:flex-start; flex-direction:column; } }

.ai-provider{align-self:center;padding:8px 12px;border-radius:999px;background:#eef3ef;color:#52645b;font-size:12px;font-weight:800}.ai-provider.live{background:#fff1cf;color:#865600}.ai-upload-panel{margin-bottom:14px}.ai-upload-form{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1.4fr) auto;align-items:end;gap:12px}.ai-upload-form label{display:grid;gap:6px;color:#53645c;font-size:12px}.ai-upload-form input[type=file]{padding:9px;border:1px solid var(--line);border-radius:10px;background:#f8faf7}.ai-confirm{display:flex!important;align-items:flex-start;gap:8px;color:#53645c!important;font-size:12px!important}.ai-confirm input{flex:0 0 auto;width:18px!important;min-height:18px!important;margin-top:1px}.ai-job-list{display:grid;gap:14px}.ai-job-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.ai-job-card>header{display:flex;justify-content:space-between;align-items:start;gap:12px}.ai-job-card h3{margin:4px 0 0;color:var(--brand-deep);font-size:17px}.ai-job-card header span{color:var(--muted);font-size:11px}.ai-job-source{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px;border-radius:12px;background:#f7faf5}.ai-job-source img{width:86px;height:72px;border-radius:9px;object-fit:cover}.ai-job-source span,.ai-job-source small{display:block}.ai-job-source small{margin-top:4px;color:var(--muted);font-size:11px}.ai-scene-plan{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.ai-scene-plan div{display:grid;gap:5px;padding:10px;border:1px solid #dfe8e2;border-radius:10px;background:#f7faf5}.ai-scene-plan b{color:var(--brand-deep);font-size:11px}.ai-scene-plan span{color:var(--muted);font-size:10px;line-height:1.5}.ai-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.ai-asset-grid figure{margin:0}.ai-asset-grid img{width:100%;aspect-ratio:1/1;border-radius:10px;object-fit:cover}.ai-asset-grid figure.detail img{aspect-ratio:2/3}.ai-asset-grid figcaption{display:grid;gap:3px;margin-top:4px;color:var(--muted);font-size:10px}.ai-asset-grid figcaption b{color:var(--brand-deep);font-size:10px}.ai-asset-grid figcaption small{font-size:9px}.ai-warnings{margin:12px 0;padding:10px 10px 10px 28px;border-radius:10px;background:#fff8df;color:#755500;font-size:11px}.ai-job-actions{display:flex;gap:8px;margin-top:12px}.ai-result-form{display:grid;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.ai-result-form textarea{min-height:76px;resize:vertical}.ai-result-form input,.ai-result-form select,.ai-result-form textarea{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-sizing:border-box}.ai-result-form label{display:grid;gap:5px;color:#53645c;font-size:11px}.ai-result-form .wide{grid-column:1/-1}
@media (max-width:900px){.ai-upload-form{grid-template-columns:1fr}.ai-scene-plan{grid-template-columns:1fr}.ai-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 520px) { .editor-grid { grid-template-columns: 1fr; } .editor-grid .wide { grid-column: auto; } }
@media (max-width: 520px) { .flow-track, .rule-editor-grid, .tier-editor-grid, .reward-editor-grid { grid-template-columns: 1fr; } }
.order-admin-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:140px}.order-admin-actions button{padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--brand-deep);font-size:10px}.order-admin-actions .danger-action{border-color:#f2b7a8;background:#fff1ed;color:#8b2e16}.order-row-danger{background:#fff8f5}.stockout-reason{display:block;max-width:240px;margin-top:5px;color:#8b2e16;line-height:1.4}.fulfillment-form{gap:10px}.fulfillment-form .check-row{padding:8px;border-radius:9px;background:#f7faf5}

/* Final compact overrides intentionally live after the shared typography rules. */
.admin-shell .product-filters label,.admin-shell .product-filters input,.admin-shell .product-filters select,.admin-shell .product-filters button { font-size:10px; line-height:1.3; }
.admin-shell .product-table th { font-size:9px; line-height:1.3; }
.admin-shell .product-table td { padding:5px 7px; font-size:10px; line-height:1.3; }
.admin-shell .product-table .admin-product strong { font-size:10px; line-height:1.3; }
.admin-shell .product-table .admin-product small,.admin-shell .product-table .admin-product em,.admin-shell .product-table td > small,.admin-shell .compact-status span { font-size:8px; line-height:1.25; }
.admin-shell .product-table .quality,.admin-shell .product-table .row-actions button { font-size:9px; line-height:1.3; }
@media (max-width:1180px) and (min-width:821px) { .admin-shell .product-filters { grid-template-columns:minmax(170px,1.4fr) repeat(3,minmax(105px,1fr)) 52px; } }
@media (max-width:820px) { .global-top { flex-wrap:wrap; } .workspace-jumps { order:3; width:100%; display:flex; padding-left:40px; } .workspace-jumps a { flex:1; justify-content:center; } .admin-shell .product-filters { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-shell .product-filters .product-keyword { grid-column:span 2; } }

/* M33 readable compact standard: no operational text below 11px. */
.admin-shell { --admin-type-body:13px; --admin-type-note:12px; --admin-type-micro:11px; }
.unified-brand span,.unified-sidebar-foot { font-size:11px; line-height:1.4; }
.nav-group-button b,.nav-children button { font-size:12px; }
.global-search input,.workspace-jumps a,.global-actions button,.user-chip { font-size:12px; }
.admin-main *,.admin-main *::before,.admin-main *::after { box-sizing:border-box; }
.admin-main :is(input,select,textarea,button) { min-width:0; max-width:100%; font-size:12px; line-height:1.4; }
.admin-main label,.admin-main small { font-size:12px; line-height:1.45; }
.admin-main em { font-size:11px; line-height:1.4; }
.admin-main :is(.panel,.ops-card,.content-layout,.draft-layout,.category-manage-layout,.membership-layout,.table-wrap) { min-width:0; max-width:100%; }
.admin-main .table-wrap { overflow-x:auto; }

.operations-kpis span,.operations-kpis small { font-size:12px; }
.ops-card > header span,.ops-card > header em,.ops-card > header button { font-size:11px; }
.sales-trend span,.sales-trend strong,.sales-trend small { font-size:11px; }
.task-list button b,.recent-operations b { font-size:12px; }
.task-list button small,.recent-operations small { font-size:11px; }
.finance-card dt,.finance-card dd { font-size:12px; }
.finance-breakdown,.finance-card p,.product-health span,.top-products-card li > i,.top-products-card li b,.top-products-card li > strong,.recent-operations > div > button > strong,.empty-row { font-size:11px; }

.product-tabs > button,.product-tabs > div button { font-size:12px; }
.product-tabs > button span,.product-filters label,.product-command-bar span,.product-command-bar small,.product-command-bar b { font-size:11px; }
.admin-shell .product-filters input,.admin-shell .product-filters select,.admin-shell .product-filters button { font-size:12px; }
.admin-shell .product-table th { font-size:11px; line-height:1.35; }
.admin-shell .product-table td { font-size:12px; line-height:1.35; }
.admin-shell .product-table .admin-product-art,.admin-shell .product-table .admin-product small,.admin-shell .product-table .admin-product em,.admin-shell .product-table td > small,.admin-shell .compact-status span,.admin-shell .product-table .quality,.admin-shell .product-table .row-actions button { font-size:11px; line-height:1.35; }
.admin-shell .product-table .admin-product strong { font-size:12px; line-height:1.35; }

.editor-section-tabs span,.sticky-editor-actions > span,.editor-command-bar span,.content-command-bar span,.compact-draft-list span,.compact-draft-list button,.editor-block-title span,.editor-block-title em,.media-upload-field small,.media-group > header span,.detail-media-card figcaption b,.detail-media-card figcaption span,.detail-media-card figcaption small,.media-empty,.detail-page-phone header span,.detail-page-phone > div small { font-size:11px; }
.compact-product-form label,.media-upload-field b,.media-group > header b,.detail-page-phone header b,.editor-inline-error { font-size:12px; }
.merchant-admin button,.review-path button,.review-workflow { font-size:12px; }

.content-command-bar strong,.config-section-head b,.compact-config-card > summary span,.content-version-drawer > summary { font-size:13px; }
.content-version-drawer > summary b,.compact-version-list article span,.compact-version-list button,.compact-config-card > summary small,.compact-config-card > summary button,.config-section-head span,.config-section-head em,.compact-empty { font-size:11px; }
.compact-field-grid label,.fixed-ad-editor label,.source-badge-editor label { font-size:12px; }
.compact-field-grid input,.compact-field-grid select,.compact-field-grid textarea,.fixed-ad-editor input,.fixed-ad-editor select,.source-badge-editor input { font-size:12px; }

.category-create-compact > summary small,.category-row-main > span,.category-row-main > small,.category-no-children,.category-product-picker > header span,.category-current-products > b,.category-current-products span,.category-current-products small,.category-product-search,.category-product-options b,.category-product-options small,.category-product-actions span { font-size:11px; }
.category-create-grid label,.category-create-grid input,.category-create-grid select,.category-sequence button,.category-actions button,.category-icon-upload { font-size:12px; }
.flow-heading span,.flow-track i,.flow-track small,.redemption-list span,.redemption-list small,.reward-editor-card .switch-label { font-size:12px; }
.location-list i,.layout-list em,.category-order { font-size:11px; }

.ai-job-card header span,.ai-job-source small,.ai-scene-plan b,.ai-scene-plan span,.ai-asset-grid figcaption,.ai-asset-grid figcaption b,.ai-asset-grid figcaption small { font-size:11px; }
.ai-result-form label,.ai-upload-form label,.ai-confirm { font-size:12px; }

.membership-layout,.membership-layout > .panel { min-width:0; }
.membership-layout .table-wrap { width:100%; max-width:100%; overflow-x:auto; }

@media (max-width:820px) {
  .fixed-ad-editor { grid-template-columns:1fr; }
  .source-badge-editor { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .compact-version-list { grid-template-columns:1fr; }
  .editor-command-bar,.content-command-bar,.panel-head { flex-wrap:wrap; }
  .membership-layout { width:100%; grid-template-columns:minmax(0,1fr); }
  .membership-layout > .panel { width:100%; }
  .rule-editor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* M33 PC information architecture and aligned product workspace. */
.unified-sidebar { background:#f6f7f4; border-right:1px solid #dfe4df; box-shadow:none; }
.unified-brand.cat-head-only { display:grid; grid-template-columns:1fr; place-items:center; min-height:76px; padding:10px; border-bottom:1px solid #e2e6e1; }
.unified-brand.cat-head-only img { width:48px; height:48px; border-radius:50%; object-fit:cover; }
.nav-group-button { color:#4b5650; border-radius:7px; }
.nav-group-button:hover,.nav-section.active > .nav-group-button { color:#4D8031; background:#e9ede9; border-color:transparent; }
.nav-section.active > .nav-group-button { box-shadow:none; font-weight:800; }
.nav-children button { color:#657069; border-radius:7px; }
.nav-children button:hover { color:#4D8031; background:#ecefec; }
.nav-children button.active {color:var(--brand-on-deep); background:#4D8031; border-color:#4D8031; box-shadow:none; }
.sidebar-collapse-bottom { margin:auto 10px 6px; min-height:32px; border:1px solid #d9dfda; border-radius:7px; background:#fff; color:#536159; font-size:11px; }
.unified-sidebar-foot { margin-top:0; border-color:#d9dfda; color:#6e7772; }
.sidebar-collapsed .sidebar-collapse-bottom { width:42px; margin-inline:auto; padding:0; font-size:10px; }
.sidebar-collapsed .unified-brand.cat-head-only { padding-inline:7px; }
.sidebar-collapsed .unified-brand.cat-head-only img { width:40px; height:40px; }

.store-tabs { display:flex; gap:6px; margin-bottom:10px; padding:5px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.store-tabs button { min-height:34px; padding:6px 18px; border:0; border-radius:7px; background:transparent; color:#5e6a63; font-size:12px; font-weight:700; }
.store-tabs button.active { background:#4D8031;color:var(--brand-on-deep); }

/* M73: compact payment channel control and reconciliation snapshot. */
.payment-management{display:grid;gap:10px}
.payment-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.payment-summary-grid article{display:grid;gap:3px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}
.payment-summary-grid article>span{margin:0;color:var(--muted);font-size:11px}
.payment-summary-grid article>strong{font-size:20px;color:var(--brand-deep)}
.payment-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.payment-method-card{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8faf7}
.payment-method-card.active{border-color:#8fb479;background:#f4faef}
.payment-method-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.payment-method-card header div{display:grid;gap:3px;min-width:0}
.payment-method-card header b{font-size:13px;color:var(--ink)}
.payment-method-card header span{font-size:11px;line-height:1.45;color:var(--muted)}
.payment-method-card header em{flex:0 0 auto;padding:3px 7px;border-radius:99px;background:#ecefec;color:#707a73;font-size:10px;font-style:normal;font-weight:800}
.payment-method-card header em.ready{background:#e3f0da;color:#386521}
.payment-method-switch{display:flex!important;grid-template-columns:none!important;align-items:center;gap:7px!important;color:var(--ink)!important}
.payment-method-switch input{width:16px!important;min-height:16px!important}
.payment-policy-fields{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:10px}
.payment-policy-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--line)}
.payment-policy-actions span{font-size:11px;color:var(--muted)}
.payment-policy-actions button{flex:0 0 auto}
@media(max-width:900px){.payment-summary-grid,.payment-method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-policy-fields{grid-template-columns:1fr}}
.compact-category-manager { margin-top:8px; }

.product-tabs { align-items:stretch; gap:12px; overflow-x:auto; }
.product-tabs > button { flex:0 0 auto; }
.product-tabs > .product-queue-tab { margin-left:0; padding-inline:4px; border:0; border-bottom:3px solid transparent; background:transparent; color:#65756d; }
.product-tabs > .product-queue-tab:first-of-type { margin-left:auto; }
.product-command-bar > .publish-action { margin-left:auto; }
.product-command-bar .danger-action { background:#9a3427; color:#fff; }
.product-table { width:100%; min-width:900px; table-layout:fixed; }
.product-table .col-check { width:42px; }
.product-table .col-product { width:38%; }
.product-table .col-price { width:14%; }
.product-table .col-stock { width:13%; }
.product-table .col-status { width:16%; }
.product-table .col-actions { width:19%; }
.product-table th,.product-table td { text-align:left; vertical-align:middle; }
.product-table th:first-child,.product-table td:first-child { text-align:center; }
.product-table .row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.product-table .row-actions button { min-height:28px; padding:4px 7px; white-space:nowrap; }
.product-table .compact-status { display:grid; gap:4px; align-items:start; justify-items:start; }
.product-table .admin-product { width:100%; }
.order-filter-bar { display:grid; grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(130px,.7fr)) auto; gap:8px; align-items:end; margin-bottom:10px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.order-filter-bar label { display:grid; gap:4px; color:#617068; font-size:11px; }
.order-filter-bar input,.order-filter-bar select,.order-filter-bar button { min-height:34px; padding:6px 9px; border:1px solid #dfe5e0; border-radius:7px; background:#f8faf8; color:#4D8031; }
.admin-order-table { min-width:1080px; }
.admin-order-table th:first-child,.admin-order-table td:first-child { width:84px; text-align:center; }
.admin-order-product { min-width:250px; display:flex; align-items:center; gap:8px; }
.admin-order-product > img,.admin-order-product > span { flex:0 0 46px; width:46px; height:46px; border-radius:7px; object-fit:cover; display:grid; place-items:center; background:#eef2ed; color:#486158; font-size:10px; }
.admin-order-product > div { min-width:0; }
.admin-order-product strong,.admin-order-product small,.admin-order-product em,.admin-order-table td > small { display:block; }
.admin-order-product strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#4D8031; font-size:12px; }
.admin-order-product small,.admin-order-product em,.admin-order-table td > small { margin-top:3px; color:#758078; font-size:10px; font-style:normal; }
.admin-order-product small b { font-size:9px; font-weight:600; }
.priority-control { --priority-color:#7c8882; display:inline-grid; grid-template-columns:15px minmax(0,1fr); align-items:center; width:74px; min-height:28px; padding:0 3px 0 5px; border:1px solid #dfe5e0; border-radius:7px; background:#f8faf8; color:var(--priority-color); }
.priority-current { font-size:14px; line-height:1; }
.priority-control select { width:100%; min-height:26px; padding:0 13px 0 2px; border:0; outline:0; background:transparent; color:var(--priority-color); font-size:11px; font-weight:700; cursor:pointer; }
.priority-control:focus-within { border-color:var(--priority-color); box-shadow:0 0 0 2px color-mix(in srgb,var(--priority-color) 14%,transparent); }
.priority-control.priority-1 { --priority-color:#c86f5c; background:#fff8f5; }
.priority-control.priority-2 { --priority-color:#c44735; background:#fff4f1; }
.priority-control.priority-3 { --priority-color:#91271e; background:#fff0ee; }
@media (max-width:1000px) { .order-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.insight-range { display:flex; justify-content:flex-end; align-items:end; gap:8px; margin-bottom:10px; padding:9px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.insight-range label { display:grid; gap:3px; color:#657169; font-size:11px; }
.insight-range input,.insight-range button { min-height:33px; padding:5px 9px; border:1px solid #dfe5e0; border-radius:7px; background:#f8faf8; }
.coverage-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:10px 0; }
.coverage-strip article { padding:12px; border:1px solid #e2e6e2; border-radius:10px; background:#f7f8f6; }
.coverage-strip article.ready { border-color:#b8d7c7; background:#eef9f2; }
.coverage-strip b,.coverage-strip span { display:block; }
.coverage-strip b { color:#4D8031; font-size:12px; }
.coverage-strip span { margin-top:4px; color:#768078; font-size:11px; }
.finance-layout { margin-bottom:10px; }
.finance-ledger { display:grid; gap:7px; margin:0; }
.finance-ledger div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid #edf0ed; }
.finance-ledger dt { color:#647068; }.finance-ledger dd { margin:0; color:#4D8031; font-weight:800; }
@media (max-width:820px) { .coverage-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }.insight-range { align-items:stretch; flex-direction:column; } }
.print-command { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.print-command div { display:flex; align-items:center; gap:9px; }
.print-command b { color:#4D8031; }.print-command span { color:#758078; font-size:11px; }
.print-command button { min-height:34px; padding:6px 12px; border:1px solid #dce3de; border-radius:7px; background:#fff; color:#4D8031; }
.print-command button.button-primary { background:#4D8031;color:var(--brand-on-deep); }

/* M52 palette contrast policy: deep panels always carry white text. */
.workspace-intro > div > span,
.intro-summary b {
  color: var(--brand-on-deep);
}
.print-order-table { min-width:960px; table-layout:fixed; }
.print-order-table th:first-child,.print-order-table td:first-child { width:42px;text-align:center; }
.print-order-table th:nth-child(2),.print-order-table td:nth-child(2) { width:188px; }
.print-order-table th:nth-child(3),.print-order-table td:nth-child(3) { width:290px; }
.print-order-identity { display:grid; align-content:start; gap:4px; min-width:0; }
.print-order-identity strong { display:block; overflow-wrap:anywhere; color:var(--brand-deep); font-size:11px; line-height:1.35; }
.print-order-identity time { display:block; color:#758078; font-size:10px; line-height:1.35; white-space:nowrap; }

/* M43: complete procurement, trip and monthly operating-cost accounting. */
.finance-readiness { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:10px; padding:12px 14px; border:1px solid #efc8bc; border-radius:10px; background:#fff4ef; }
.finance-readiness.ready { border-color:#b8d7c7; background:#eef9f2; }
.finance-readiness b,.finance-readiness span { display:block; }
.finance-readiness b { color:#9b321f; font-size:13px; }
.finance-readiness.ready b { color:#4D8031; }
.finance-readiness span { margin-top:3px; color:#6e766f; font-size:11px; }
.finance-readiness ul { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin:0; padding:0; list-style:none; }
.finance-readiness li { padding:5px 8px; border-radius:999px; background:#fff; color:#5d6a62; font-size:10px; font-weight:700; }
.monthly-cost-form,.finance-trip-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.monthly-cost-form label,.finance-trip-form label { display:grid; gap:4px; color:#607068; font-size:11px; }
.monthly-cost-form .wide,.finance-trip-form .wide { grid-column:1/-1; }
.monthly-cost-form input,.monthly-cost-form textarea,.finance-trip-form input,.finance-trip-form select { min-width:0; min-height:35px; padding:7px 9px; border:1px solid #dfe5e0; border-radius:7px; background:#fff; color:#4D8031; }
.monthly-cost-form textarea { min-height:66px; resize:vertical; }
.monthly-cost-form .check-row { display:flex; align-items:center; }
.monthly-cost-form .check-row input { min-height:auto; }
.monthly-cost-form > button,.finance-trip-form > button { justify-self:start; }
.finance-trip-table { min-width:820px; }
.finance-month-table { min-width:900px; }
.finance-incomplete { border-color:#f0c1b5; background:#fff0eb; color:#b13d28; }
.missing-cost-panel { margin-bottom:10px; }
.missing-cost-form { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(180px,1.3fr) auto; gap:7px; align-items:center; }
.missing-cost-form input { min-width:0; min-height:33px; padding:6px 8px; border:1px solid #dfe5e0; border-radius:7px; }
.missing-cost-form button { white-space:nowrap; }
@media (max-width:820px) { .finance-readiness { align-items:flex-start; flex-direction:column; }.finance-readiness ul { justify-content:flex-start; }.monthly-cost-form,.finance-trip-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .monthly-cost-form,.finance-trip-form { grid-template-columns:1fr; }.monthly-cost-form .wide,.finance-trip-form .wide { grid-column:auto; } }

/* M35: aligned navigation labels and built-in category artwork library. */
.nav-group-button .nav-icon,.nav-children button .nav-icon{align-self:center;justify-self:center;line-height:0}
.nav-group-button b,.nav-children button>span:last-child{align-self:center;display:flex;align-items:center;min-height:20px;line-height:20px}
.nav-icon .nav-svg{display:block}
.category-icon-library{grid-column:1/-1;display:grid;gap:9px;padding:10px 12px;border-top:1px solid #e1e8e2;background:#fbfcfa}
.category-icon-library>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.category-icon-library>header div{min-width:0}.category-icon-library>header b,.category-icon-library>header span{display:block}.category-icon-library>header b{color:#4D8031;font-size:12px}.category-icon-library>header span{margin-top:2px;color:#6c786f;font-size:10px}.category-icon-library>header button{padding:5px 9px;border:1px solid #dce4dd;border-radius:7px;background:#fff;color:#526158;font-size:11px}
.category-icon-library>div{display:grid;grid-template-columns:repeat(9,minmax(58px,1fr));gap:7px}
.category-icon-library>div>button{min-width:0;display:grid;justify-items:center;gap:4px;padding:7px 4px;border:1px solid #e1e7e2;border-radius:9px;background:#fff;color:#4f6158;font-size:10px}
.category-icon-library>div>button:hover,.category-icon-library>div>button.active{border-color:#4D8031;background:#eff7f1;color:#4D8031;box-shadow:inset 0 0 0 1px #4D8031}
.category-icon-library img{width:38px;height:38px;object-fit:contain}.category-icon-library span{overflow:hidden;width:100%;text-align:center;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.category-icon-library>div{grid-template-columns:repeat(5,minmax(58px,1fr))}}
@media(max-width:620px){.category-icon-library>div{grid-template-columns:repeat(3,minmax(58px,1fr))}}

/* M44: shared compact-density baseline for the PC workbench. */
.admin-shell { --admin-section-gap:8px; --admin-card-pad-y:10px; --admin-card-pad-x:12px; --admin-row-pad-y:5px; }
.admin-main .ops-card,
.admin-main .panel:not(.panel-flush) { padding:var(--admin-card-pad-y) var(--admin-card-pad-x); }
.admin-main .panel-head { gap:8px; margin-bottom:8px; }
.admin-main :is(.page-toolbar,.editor-command-bar,.content-command-bar,.print-command,.finance-readiness) { margin-bottom:var(--admin-section-gap); padding:8px 10px; }
.admin-main :is(.operations-kpis,.operations-primary-grid,.operations-grid,.content-layout,.draft-layout,.category-manage-layout,.membership-layout) { gap:var(--admin-section-gap); }
.operations-primary-grid .ops-card > header { min-height:26px; margin-bottom:5px; }
.operations-primary-grid .task-list button { padding:var(--admin-row-pad-y) 7px; }
.operations-primary-grid .task-list button > b { overflow:hidden; color:var(--brand-deep); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.operations-primary-grid .finance-card dl { gap:2px; }
.operations-primary-grid .finance-card dl div { padding:3px 0; }
.operations-primary-grid .finance-card .finance-net { padding:5px 6px; }
.operations-primary-grid .finance-card p { margin-top:5px; }
.sales-inventory-summary { margin-top:6px; padding-top:6px; }
.sales-inventory-summary > header { margin-bottom:4px; }
.sales-inventory-summary .product-health button { padding:5px 3px; }
.sales-inventory-summary .product-health strong { font-size:15px; }
.recent-order-row { padding:6px!important; }
.recent-operations .recent-order-product { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:7px; }
.recent-operations .recent-order-product > img,
.recent-operations .recent-order-product > i { width:38px; height:38px; display:grid; place-items:center; border-radius:6px; background:#eef2ed; color:#53655c; font-size:9px; font-style:normal; object-fit:cover; }
.recent-operations .recent-order-product > span { min-width:0; }
.recent-operations .recent-order-product em { display:block; margin-top:1px; overflow:hidden; color:#89938d; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.recent-operations .recent-order-result { flex:0 0 auto; text-align:right; }
.recent-operations .recent-order-result strong { display:block; color:var(--brand-deep); font-size:12px; white-space:nowrap; }
.recent-operations .recent-order-result small { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* M45: bounded forms and compact store-management layouts. */
.store-management { width:min(1180px,100%); margin:0; }
.store-management .store-tabs,
.store-management .content-actions-only,
.store-management .content-version-drawer,
.store-management .compact-content-panel { width:min(1040px,100%); }
.content-actions-only { justify-content:flex-end; min-height:0; padding:0 0 6px!important; border:0; background:transparent; }
.content-actions-only > div { margin-left:auto; }
.store-management .compact-config-card > summary small,
.store-management .category-create-compact > summary small { display:none; }
.store-management .compact-field-grid { grid-template-columns:repeat(3,minmax(200px,320px)); justify-content:start; }
.store-management .compact-field-grid > label { width:100%; max-width:320px; }
.store-management .compact-field-grid > label:has(textarea) { grid-column:span 2; max-width:647px; }
.store-management .compact-field-grid input:not([type="checkbox"]):not([type="color"]),
.store-management .compact-field-grid select,
.store-management .compact-field-grid textarea { width:100%; }
.store-management .fixed-ad-editor { grid-template-columns:repeat(2,minmax(260px,400px)); justify-content:start; }
.store-management .source-badge-editor { grid-template-columns:repeat(auto-fit,minmax(140px,180px)); justify-content:start; }
.store-management .sticky-editor-actions { justify-content:flex-end; }
.store-accounts-layout { grid-template-columns:minmax(320px,560px) minmax(280px,440px); justify-content:start; }
.compact-category-manager { width:min(1140px,100%); }
.compact-category-manager .panel-head > div { display:flex; align-items:center; gap:10px; }
.category-family { width:min(1120px,100%); }
.category-row { grid-template-columns:58px minmax(260px,360px) auto; justify-content:start; }
.category-row .category-actions { justify-content:flex-start; }
.category-create-grid { grid-template-columns:repeat(3,minmax(200px,280px)); justify-content:start; }

.compact-product-form .editor-grid { grid-template-columns:repeat(3,minmax(220px,320px)); justify-content:start; }
.compact-product-form .editor-grid .wide { grid-column:span 2; width:100%; max-width:649px; }
.media-input-row { grid-template-columns:repeat(2,minmax(260px,380px)); justify-content:start; }
.detail-editor-layout { grid-template-columns:minmax(0,820px) 250px; justify-content:start; }
.detail-media-grid:has(> .media-empty) { min-height:64px; }
.detail-media-grid > .media-empty { min-height:48px; padding:8px; }

@media (max-width:1180px) {
  .store-management .compact-field-grid { grid-template-columns:repeat(2,minmax(200px,320px)); }
  .compact-product-form .editor-grid { grid-template-columns:repeat(2,minmax(220px,320px)); }
  .compact-product-form .editor-grid .wide { grid-column:span 2; }
  .detail-editor-layout { grid-template-columns:minmax(0,720px) 250px; }
}
@media (max-width:900px) {
  .category-row { grid-template-columns:52px minmax(0,1fr); }
  .category-row .category-actions { grid-column:1/-1; }
  .detail-editor-layout { grid-template-columns:minmax(0,1fr); }
  .media-input-row { grid-template-columns:minmax(0,380px); }
}
@media (max-width:720px) {
  .store-management .compact-field-grid,
  .store-management .fixed-ad-editor,
  .store-accounts-layout,
  .compact-product-form .editor-grid { grid-template-columns:minmax(0,1fr); }
  .store-management .compact-field-grid > label:has(textarea),
  .compact-product-form .editor-grid .wide { grid-column:auto; max-width:100%; }
}

/* M52: procurement-brand badge colors are visible, editable and previewed in place. */
.store-management .source-badge-settings { border-color:#cfdbd1; background:#fff; }
.store-management .source-badge-editor { grid-template-columns:repeat(auto-fit,minmax(235px,280px)); gap:8px; justify-content:start; }
.source-badge-item { display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; padding:10px; border:1px solid #dfe7e1; border-radius:9px; background:#f8faf8; }
.source-badge-identity { grid-column:1/-1; display:flex; align-items:center; gap:8px; min-height:30px; }
.source-badge-identity b { overflow:hidden; color:var(--brand-deep); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.source-badge-preview { min-width:38px; max-width:68px; display:inline-grid; place-items:center; padding:6px 9px; border-radius:9px; background:var(--badge-preview,#4D8031); color:var(--badge-preview-text,#fff); font-size:11px; font-weight:900; white-space:nowrap; }
.source-badge-item > label { min-width:0; display:grid; gap:4px; color:var(--muted); font-size:11px; }
.source-badge-item > label > input { width:100%; min-height:32px; }
.source-badge-color-control { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr); gap:5px; }
.source-badge-color-control input[type="color"] { width:38px; min-height:32px; padding:2px; cursor:pointer; }
.source-badge-color-control .source-badge-hex { width:100%; min-width:0; min-height:32px; padding:5px 7px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; text-transform:uppercase; }
.source-badge-item .source-home-toggle { grid-column:1/-1; display:flex; align-items:center; gap:7px; }
.source-badge-item .source-home-toggle input { width:16px; min-height:16px; }
.source-badge-item > .content-media-field { grid-column:1/-1; grid-template-columns:minmax(150px,1fr) 110px; width:100%; padding:7px; }
.source-badge-item > .content-media-field .content-media-preview { width:110px; aspect-ratio:2; }
.source-badge-item > .content-media-field .content-media-control small { font-size:9px; }
@media (max-width:720px) {
  .store-management .source-badge-editor { grid-template-columns:minmax(0,1fr); }
  .source-badge-item { max-width:320px; }
}

/* M67: compact media-led store editor with pre-upload crop and live preview. */
.store-management .content-actions-only > div{display:flex;flex-wrap:wrap;gap:6px}
.store-management .content-actions-only button,.store-management .content-actions-only a{min-height:32px;padding:6px 10px;border:1px solid #dce4dd;border-radius:7px;background:#fff;color:#4D8031;font-size:11px;font-weight:750;text-decoration:none}
.store-management .config-section-head{margin-top:5px}
.store-management .image-only-config{grid-template-columns:minmax(520px,720px) minmax(200px,300px)}
.content-media-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(260px,1fr) 220px;gap:12px;align-items:start;width:min(720px,100%);padding:9px;border:1px solid #dfe6e0;border-radius:9px;background:#fff}
.content-media-control{display:grid;gap:7px;align-content:start}
.content-media-control label{display:grid;gap:4px;color:#53645c;font-size:12px}
.content-media-control input[type=file]{min-height:34px;padding:5px 7px}
.content-media-control small{color:#748078;font-size:10px;line-height:1.5}
.content-media-control button{justify-self:start;min-height:29px;padding:4px 8px}
.content-media-preview{position:relative;overflow:hidden;display:grid;place-items:center;width:220px;aspect-ratio:2.4;border:1px dashed #cfd9d1;border-radius:10px;background:#f3f6f3;color:#849087;font-size:11px}
.content-media-preview img,.content-media-preview video{width:100%;height:100%;display:block;object-fit:cover}
.announcement-media-field .content-media-preview{aspect-ratio:3/2}
.fixed-ad-editor fieldset .content-media-field{grid-template-columns:minmax(190px,1fr) 130px;width:100%;padding:7px}
.fixed-ad-editor fieldset .content-media-preview{width:130px;aspect-ratio:5/3}
.fixed-ad-editor legend{display:flex;align-items:center;gap:7px}
.fixed-ad-editor legend button{padding:2px 6px;border:0;border-radius:5px;background:#fff0ec;color:#b43b22;font-size:9px}
.navigation-choice{display:grid;grid-template-columns:repeat(2,minmax(220px,320px));gap:8px;padding:9px;border-top:1px solid var(--line)}
.navigation-choice label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #dce4dd;border-radius:9px;background:#fff;cursor:pointer}
.navigation-choice input{width:17px;min-height:17px}
.navigation-choice span{display:grid;gap:2px}.navigation-choice b{color:#304d3d;font-size:12px}.navigation-choice small{color:#748078;font-size:10px}
.source-badge-settings>.source-badge-editor{padding:8px;border-top:1px solid var(--line)}
.source-badge-item{grid-template-columns:minmax(90px,1fr) minmax(100px,1.2fr);padding:8px}
.source-badge-identity{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(100px,1fr) auto;gap:7px}
.source-badge-identity label{display:grid;gap:2px;color:#728078;font-size:10px}
.source-badge-identity input{min-height:29px;padding:4px 6px}
.source-badge-identity>button{padding:4px 7px;border:0;border-radius:6px;background:#fff0ec;color:#ad3b27;font-size:9px}
.content-image-editor-backdrop{position:fixed;z-index:9999;inset:0;display:grid;place-items:center;padding:24px;background:rgba(15,24,19,.72)}
.content-image-editor{width:min(680px,100%);display:grid;gap:12px;padding:16px;border-radius:14px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.content-image-editor>header,.content-image-editor>footer{display:flex;align-items:center;gap:9px}.content-image-editor>header>div{display:grid;gap:2px;flex:1}.content-image-editor>header b{color:#304d3d;font-size:16px}.content-image-editor>header span,.content-image-editor>footer small{color:#758078;font-size:11px}.content-image-editor>header>button{width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#eef2ee;color:#304d3d;font-size:18px}
.content-crop-stage{position:relative;overflow:hidden;width:100%;max-height:430px;border-radius:10px;background:#1d251f;touch-action:none;cursor:grab}.content-crop-stage:active{cursor:grabbing}.content-crop-stage img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;user-select:none;pointer-events:none}
.content-crop-zoom{display:grid;grid-template-columns:auto 1fr 52px;align-items:center;gap:10px;color:#607068;font-size:11px}.content-crop-zoom input{width:100%;min-height:auto}.content-crop-zoom b{text-align:right;color:#304d3d}
.content-image-editor>footer{justify-content:flex-end}.content-image-editor>footer small{margin-right:auto}
@media(max-width:820px){.store-management .image-only-config{grid-template-columns:1fr}.content-media-field,.fixed-ad-editor fieldset .content-media-field{grid-template-columns:1fr}.content-media-preview,.fixed-ad-editor fieldset .content-media-preview{width:100%;max-width:320px}.navigation-choice{grid-template-columns:1fr}}

/* M82 social-commerce moderation: compact, operational, no oversized blank areas. */
.social-admin{display:grid;gap:12px}.social-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.social-metrics article{display:grid;gap:4px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#fff}.social-metrics span{color:var(--muted);font-size:11px}.social-metrics strong{color:#304d3d;font-size:24px}.social-metrics strong.warn{color:#d86619}.social-settings form{display:grid;grid-template-columns:repeat(4,minmax(130px,180px)) auto;gap:9px;align-items:end;padding:12px}.social-settings form>label{display:grid;gap:4px;color:#5e6b64;font-size:11px}.social-settings form>label:first-child{display:flex;align-items:center;gap:7px;align-self:center}.social-settings input{width:100%;min-height:34px}.social-settings input[type=checkbox]{width:16px;min-height:16px}.social-settings .social-wide{grid-column:1/5}.social-settings form>button{align-self:end;min-height:34px}.social-table{min-width:700px}.social-table td{vertical-align:middle}.social-table td:first-child{width:135px}.social-table td:nth-child(2){min-width:260px}.social-table td:nth-child(3){width:110px}.social-table td:last-child{width:180px}.social-table td>b,.social-table td>span,.social-table td>small{display:block}.social-table td>small{margin-top:3px;color:var(--muted);font-size:10px}.social-status{width:max-content;padding:4px 7px;border-radius:99px;background:#eef2ee;color:#53635a;font-size:10px}.social-status.pending,.social-status.open{background:#fff1dc;color:#b65b18}.social-status.approved,.social-status.resolved{background:#e7f2e4;color:#3f742a}.social-status.rejected,.social-status.hidden{background:#fff0ec;color:#ad402c}.social-row-actions{display:flex;flex-wrap:wrap;gap:5px}.social-row-actions button{min-height:29px;padding:4px 8px;border:1px solid #dbe3dc;border-radius:7px;background:#fff;color:#43564b;font-size:10px}.social-row-actions button.button-primary{border-color:#4D8031;background:#4D8031;color:#fff}.social-row-actions button.danger{border-color:#f0c5ba;color:#ae3c28}.social-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.social-review-grid .panel{min-width:0}
@media(max-width:1050px){.social-metrics{grid-template-columns:repeat(3,1fr)}.social-settings form{grid-template-columns:repeat(2,minmax(130px,1fr))}.social-settings .social-wide{grid-column:1/3}.social-review-grid{grid-template-columns:1fr}}

/* M83 field-photo reserve assortment: capture first, complete later. */
.reserve-workspace{display:grid;gap:14px}.reserve-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.reserve-metrics article{display:grid;gap:3px;padding:14px 16px;border:1px solid #dce5df;border-radius:14px;background:#fff}.reserve-metrics span{color:#63726a;font-size:12px}.reserve-metrics strong{color:#173c2b;font-size:24px}.reserve-intake{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);gap:18px;align-items:start;padding:18px}.reserve-intake h2{margin:0 0 6px;color:#173c2b;font-size:18px}.reserve-intake p{margin:0;color:#63726a;font-size:13px;line-height:1.6}.reserve-intake form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.reserve-intake label{display:grid;gap:6px;color:#526159;font-size:12px}.reserve-intake input,.reserve-intake select{min-width:0;height:38px;padding:0 10px;border:1px solid #d3ddd7;border-radius:10px;background:#f8faf8}.reserve-intake input[type=file]{padding:7px 9px}.reserve-intake .reserve-safe{grid-column:1/4;align-self:center;display:flex}.reserve-intake button{min-height:38px;align-self:end}.reserve-list{overflow:hidden}.reserve-list .panel-head{padding:16px 18px}.reserve-rows{border-top:1px solid #e5ebe7}.reserve-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 18px;border-bottom:1px solid #edf1ee}.reserve-row:last-child{border-bottom:0}.reserve-row>img{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#eef3ef}.reserve-row-main{display:grid;gap:4px;min-width:0}.reserve-row-main>div{display:flex;align-items:center;gap:9px;min-width:0}.reserve-row-main b{overflow:hidden;color:#173c2b;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.reserve-row-main small{overflow:hidden;color:#748078;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.reserve-row-main em{color:#a14937;font-size:12px;font-style:normal}.reserve-status{flex:none;padding:3px 8px;border-radius:99px;background:#eef3ef;color:#4d8031;font-size:11px;font-weight:700}.reserve-status.status-ready{background:#e8f0bd;color:#365f22}.reserve-status.status-failed{background:#fde9e4;color:#9b3f31}.reserve-status.status-converted{background:#e7eef5;color:#345770}.reserve-row-actions{display:flex;align-items:center;gap:8px}.reserve-row-actions button{min-width:88px;padding:8px 11px}.text-danger{color:#a14937!important}.ai-job-card.selected{outline:2px solid #a2cf01;outline-offset:2px}
.reserve-intake label small{color:#77847d;font-size:10px}.reserve-thumb-stack{position:relative;width:72px;height:72px}.reserve-thumb-stack img{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#eef3ef}.reserve-thumb-stack>b{position:absolute;right:4px;bottom:4px;padding:3px 6px;border-radius:99px;background:rgba(23,60,43,.86);color:#fff;font-size:10px}.ai-source-gallery{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px;margin-top:12px;padding:10px;border-radius:12px;background:#f7faf5}.ai-source-gallery figure{min-width:0;margin:0}.ai-source-gallery img{display:block;width:100%;aspect-ratio:1;border-radius:9px;object-fit:cover}.ai-source-gallery figcaption{display:grid;gap:2px;margin-top:4px}.ai-source-gallery b{color:#31513f;font-size:10px}.ai-source-gallery small,.ai-source-time{color:#758078;font-size:10px}.ai-source-gallery small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-source-time{display:block;margin-top:6px}
.reserve-archive{overflow:hidden}.reserve-archive>summary{padding:13px 18px;color:#526159;font-size:13px;font-weight:700;cursor:pointer}.reserve-row.archived{opacity:.82}
@media(max-width:1100px){.reserve-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.reserve-intake{grid-template-columns:1fr}.reserve-intake form{grid-template-columns:repeat(2,minmax(0,1fr))}.reserve-intake .reserve-safe{grid-column:1/-1}}
@media(max-width:900px){.ai-source-gallery{grid-template-columns:repeat(3,minmax(80px,1fr))}}

/* M84 Alibaba Cloud AI attribute judgements and dashboard readability. */
.ai-upload-form{grid-template-columns:minmax(260px,1fr) auto}
.reserve-intake form>button{grid-column:1/-1;width:100%}
.ai-judgement-panel{display:grid;gap:9px;margin-top:12px;padding:12px;border:1px solid #dce6df;border-radius:12px;background:#f8faf8}.ai-judgement-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.ai-judgement-panel>header b{color:#244b37;font-size:13px}.ai-judgement-panel>header span{color:#748078;font-size:12px}.ai-judgement-panel>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ai-judgement{display:grid;gap:4px;padding:9px 10px;border-radius:9px;background:#fff}.ai-judgement>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-judgement b{color:#304d3d;font-size:12px}.ai-judgement em{color:#4d8031;font-size:11px;font-style:normal;font-weight:700}.ai-judgement span{color:#65736b;font-size:12px;line-height:1.45}.ai-judgement.must-human{background:#fff8e4}.ai-judgement.must-human em{color:#9a5b18}.operations-kpis span,.operations-kpis small,.ops-card>header span,.sales-trend span,.sales-trend strong,.sales-trend small,.recent-operations b,.recent-operations small,.recent-operations em,.recent-operations strong,.task-list b,.task-list small,.finance-breakdown b,.finance-breakdown small{font-size:12px}
@media(max-width:900px){.ai-judgement-panel>div{grid-template-columns:1fr}}

/* M96: guarded CSV product intake. */
.product-import-panel,.product-import-result{display:grid;gap:14px;padding:18px}.product-import-guide{display:grid;gap:7px;padding:13px 15px;border:1px solid #dce6df;border-radius:11px;background:#f7faf7;color:#526159}.product-import-guide>b{color:#244b37;font-size:13px}.product-import-guide>span{font-size:11px}.product-import-guide ol{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0;padding-left:18px;font-size:12px}.product-import-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.product-import-picker label{display:grid;gap:6px;color:#43564b;font-size:12px}.product-import-picker input[type=file]{min-height:40px;padding:7px 9px;border:1px solid #d3ddd7;border-radius:9px;background:#fff}.product-import-picker small{color:#748078;font-size:10px}.product-import-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.product-import-metrics article{display:grid;gap:3px;padding:12px 14px;border:1px solid #dce6df;border-radius:10px;background:#f8faf8}.product-import-metrics span{color:#66756d;font-size:11px}.product-import-metrics strong{color:#315f20;font-size:21px}.product-import-metrics .has-error strong{color:#ad402c}.product-import-alert{margin:0;padding:10px 12px 10px 30px;border-radius:9px;font-size:11px;line-height:1.55}.product-import-alert.error{background:#fff0ec;color:#963d2d}.product-import-alert.warning{background:#fff8e9;color:#80551d}.product-import-table-wrap{overflow:auto;border:1px solid #dde5df;border-radius:11px}.product-import-table{width:100%;min-width:760px;border-collapse:collapse;background:#fff}.product-import-table th,.product-import-table td{padding:9px 11px;border-bottom:1px solid #e9eeea;text-align:left;vertical-align:top;font-size:11px}.product-import-table th{position:sticky;top:0;background:#f1f5f2;color:#526159}.product-import-table td b,.product-import-table td span,.product-import-table td small{display:block}.product-import-table td small{margin-top:3px;color:#748078}.product-import-table tr:last-child td{border-bottom:0}.product-import-table .import-row-error{background:#fff8f5}.import-row-messages{display:grid;gap:3px;color:#a33f2e}.import-row-ready{color:#3f742a;font-weight:700}.product-import-commit{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #cfe0ca;border-radius:11px;background:#f4f9f1}.product-import-commit label{display:flex;align-items:center;gap:8px;color:#42574a;font-size:12px}.product-import-commit input{width:17px;min-height:17px}.product-import-blocked{padding:12px 14px;border-radius:9px;background:#fff0ec;color:#963d2d;font-size:12px}@media(max-width:760px){.product-import-picker{grid-template-columns:1fr}.product-import-picker button{width:100%}.product-import-metrics{grid-template-columns:1fr}.product-import-commit{align-items:stretch;flex-direction:column}.product-import-commit button{width:100%}}

.product-reference-block{display:grid;gap:10px;background:#f7faf7}.product-reference-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px}.product-reference-row input{min-width:0;height:38px;padding:0 11px;border:1px solid #d3ddd7;border-radius:9px;background:#fff}.reference-preview{display:grid;grid-template-columns:72px minmax(0,1fr);gap:11px;align-items:center;padding:10px;border:1px solid #dce6df;border-radius:11px;background:#fff}.reference-preview img{width:72px;height:72px;border-radius:9px;object-fit:cover;background:#eef3ef}.reference-preview>div{display:grid;gap:4px;min-width:0}.reference-preview b{overflow:hidden;color:#244b37;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.reference-preview span,.reference-preview small,.reference-boundary{color:#6a7870;font-size:11px;line-height:1.5}.reference-rights{display:flex!important;align-items:center;gap:7px;color:#526159;font-size:11px}.reference-rights input{width:16px;min-height:16px}.reference-mini-note{display:grid;gap:5px;padding:10px 12px;border:1px solid #efd9b4;border-radius:11px;background:#fff8e9}.reference-mini-note b{color:#87521e;font-size:12px}.reference-mini-note span{color:#755f46;font-size:11px;line-height:1.55}@media(max-width:700px){.product-reference-row{grid-template-columns:1fr}.reference-preview{grid-template-columns:58px minmax(0,1fr)}.reference-preview img{width:58px;height:58px}}
