:root {
  --ink: #1b2025;
  --muted: #70777f;
  --line: #e6e9ec;
  --surface: #ffffff;
  --canvas: #f3f5f6;
  --sidebar: #17201e;
  --sidebar-soft: #24302d;
  --accent: #ee6a3a;
  --accent-soft: #fff0ea;
  --green: #208665;
  --green-soft: #eaf7f1;
  --red: #c43c42;
  --red-soft: #fff0f1;
  --amber: #b67713;
  --amber-soft: #fff7e5;
  --shadow: 0 18px 45px rgba(24, 32, 31, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 1080px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.eyebrow { margin: 0 0 8px; color: #87908f; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow.accent, .accent { color: var(--accent); }
.muted { color: var(--muted); }

.login-layout { display: grid; grid-template-columns: minmax(480px, 1.2fr) minmax(460px, .8fr); min-height: 100vh; }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 10vw; color: #fff; background: var(--sidebar); }
.login-intro::before, .login-intro::after { content: ""; position: absolute; border-radius: 999px; filter: blur(1px); }
.login-intro::before { width: 430px; height: 430px; right: -150px; top: -120px; border: 1px solid rgba(238,106,58,.45); box-shadow: 0 0 100px rgba(238,106,58,.12) inset; }
.login-intro::after { width: 260px; height: 260px; left: -110px; bottom: -80px; background: rgba(32,134,101,.14); }
.login-intro h1 { position: relative; margin: 18px 0 26px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 5vw, 78px); font-weight: 500; line-height: 1.14; letter-spacing: -.04em; }
.login-copy { position: relative; max-width: 520px; margin: 0; color: #b9c3c0; font-size: 17px; line-height: 1.9; }
.privacy-note { position: relative; display: flex; gap: 10px; align-items: center; margin-top: 64px; color: #aeb8b5; font-size: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #42c491; box-shadow: 0 0 0 5px rgba(66,196,145,.1); }
.muted-dot { background: #9ca4a8; box-shadow: none; }
.brand-mark { position: relative; width: 48px; height: 48px; margin-bottom: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; transform-origin: left; background: var(--accent); }
.brand-mark::before { transform: rotate(0deg); }.brand-mark::after { transform: rotate(120deg); }.brand-mark span { transform: rotate(240deg); }
.brand-mark.small { width: 36px; height: 36px; margin: 0; background: #fff; border: 0; }
.brand-mark.small::before, .brand-mark.small::after, .brand-mark.small span { width: 13px; }
.login-panel { display: grid; place-items: center; padding: 60px; background: #f7f8f8; }
.login-card { display: grid; gap: 24px; width: min(420px, 100%); padding: 44px; border: 1px solid rgba(27,32,37,.06); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.login-card h2, .dialog-card h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.03em; }
label { display: grid; gap: 8px; color: #4b535a; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 13px; color: var(--ink); border: 1px solid #dce0e3; border-radius: 9px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,106,58,.11); }
.button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; font-weight: 750; transition: transform .12s, opacity .12s, background .12s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { color: #fff; background: var(--accent); box-shadow: 0 8px 22px rgba(238,106,58,.2); }
.button.danger { color: #fff; background: var(--red); box-shadow: 0 8px 22px rgba(196,60,66,.16); }
.button.secondary { color: #3d474a; border: 1px solid #dce1e1; background: #fff; }
.button.ghost { min-height: 34px; color: #60696e; border: 1px solid var(--line); background: #fff; }
.button.wide { width: 100%; min-height: 48px; }
.form-footnote { margin: -8px 0 0; color: #969da2; font-size: 12px; line-height: 1.6; text-align: center; }
.form-error, .global-error { margin: 0; padding: 10px 12px; color: #9e2d33; border: 1px solid #f5c9cc; border-radius: 8px; background: var(--red-soft); font-size: 13px; }

.console-layout { display: grid; grid-template-columns: 238px minmax(840px, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 26px 18px; color: #fff; background: var(--sidebar); }
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 34px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }.sidebar-brand strong { font-size: 17px; }.sidebar-brand small { margin-top: 2px; color: #94a09d; font-size: 11px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; min-height: 46px; padding: 0 12px; color: #aeb8b5; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }.nav-item.active { color: #fff; background: var(--sidebar-soft); }
.nav-item.pending-nav { cursor: help; opacity: .58; }.nav-item.pending-nav:hover { color: #fff; background: rgba(255,255,255,.04); }.nav-item.pending-nav small { font-size: 9px; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--accent); font-weight: 900; }
.nav-badge { min-width: 22px; padding: 2px 6px; color: #fff; border-radius: 20px; background: var(--red); font-size: 11px; text-align: center; }
.nav-badge.amber { background: var(--amber); }
.sidebar-foot { display: grid; gap: 16px; margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.service-state { display: flex; gap: 10px; align-items: center; color: #9ca8a5; font-size: 12px; }
.text-button { padding: 0; color: #aeb8b5; border: 0; background: none; font-weight: 700; text-align: left; }
.text-button:hover { color: var(--accent); }

.workspace { min-width: 0; padding: 34px 42px 50px; }
.topbar { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.topbar h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.refresh-meta { display: grid; gap: 2px; color: #92999e; font-size: 11px; text-align: right; }.refresh-meta time { color: #535b61; font-size: 12px; font-weight: 700; }
.global-error { margin-bottom: 20px; }
.page-section { min-width: 0; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; margin: 0 0 14px; }
.section-title-row h2 { margin: 0; color: #30383d; font-size: 18px; }
.section-title-row.compact-title { margin-top: 30px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.business-metric-grid { grid-template-columns: repeat(3, 1fr); }
.metric-card, .panel { border: 1px solid rgba(25,38,35,.07); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 30px rgba(24,32,31,.035); }
.metric-card { min-height: 152px; padding: 22px; }
.metric-card.emphasis { background: linear-gradient(145deg, #fff 35%, #fff4ef); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: #687177; font-size: 12px; font-weight: 750; }
.metric-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 900; }.metric-icon.danger { color: var(--red); background: var(--red-soft); }.metric-icon.success { color: var(--green); background: var(--green-soft); }.metric-icon.neutral { color: #6d777b; background: #f0f2f3; }
.metric-card strong { display: block; margin: 17px 0 7px; font-family: Georgia, serif; font-size: 40px; font-weight: 500; line-height: 1; }
.metric-card p { margin: 0; color: #959ca1; font-size: 11px; line-height: 1.5; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.span-two { grid-column: span 2; }.span-three { grid-column: span 3; }
.panel { min-width: 0; padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }.panel-heading h2 { margin: 0; font-size: 18px; }.panel-hint { color: #9aa1a5; font-size: 11px; }
.bar-list { display: grid; gap: 13px; min-height: 150px; align-content: center; }.bar-row { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr 40px; gap: 14px; align-items: center; font-size: 12px; }.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4e575c; }.bar-track { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 10px; appearance: none; background: #eef0f1; }.bar-track::-webkit-progress-bar { border-radius: 10px; background: #eef0f1; }.bar-track::-webkit-progress-value { border-radius: 10px; background: var(--accent); }.bar-track::-moz-progress-bar { border-radius: 10px; background: var(--accent); }.bar-value { color: #6e777c; font-variant-numeric: tabular-nums; text-align: right; }.empty-inline { color: #9aa1a5; font-size: 12px; text-align: center; }
.status-list { margin: 0; }.status-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }.status-list > div:last-child { border: 0; }.status-list dt { color: #7d858a; font-size: 12px; }.status-list dd { display: flex; gap: 8px; align-items: center; margin: 0; color: #3e474c; font-size: 12px; font-weight: 700; text-align: right; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.filter-bar label { font-size: 11px; }.filter-bar input, .filter-bar select { min-height: 38px; padding: 7px 10px; font-size: 12px; }.filter-button { min-height: 38px; }
.order-filter-bar { grid-template-columns: .9fr .9fr 1.1fr 1.2fr 1.2fr 1.2fr auto; }
.table-wrap { min-width: 0; overflow: auto; }.table-wrap.compact { max-height: 340px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
#orders-view table { min-width: 1180px; }
th { padding: 0 12px 10px; color: #90979b; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: left; white-space: nowrap; }
td { max-width: 300px; padding: 14px 12px; color: #50595e; border-bottom: 1px solid #eff1f2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fafbfb; }
.cell-title { display: block; overflow: hidden; color: #283035; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.cell-subtitle { display: block; overflow: hidden; max-width: 360px; margin-top: 3px; color: #90979c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-address-cell { min-width: 220px; }.order-address-cell .cell-title { overflow: visible; text-overflow: clip; white-space: normal; }
.code-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #596369; font-size: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 850; text-transform: uppercase; }.badge.critical, .badge.failure, .badge.error, .badge.cancelled, .badge.rejected { color: var(--red); background: var(--red-soft); }.badge.warn, .badge.accepted, .badge.pending, .badge.pending_review, .badge.refund_pending { color: var(--amber); background: var(--amber-soft); }.badge.success, .badge.resolved, .badge.sent, .badge.paid, .badge.preparing, .badge.pickup_ready, .badge.delivering, .badge.completed, .badge.approved { color: var(--green); background: var(--green-soft); }.badge.open { color: var(--red); background: var(--red-soft); }.badge.neutral, .badge.refunded, .badge.withdrawn { color: #687176; background: #f0f2f3; }
.row-button { padding: 5px 8px; color: var(--accent); border: 0; background: transparent; font-size: 11px; font-weight: 800; }
.empty-row td { padding: 48px; color: #969da1; text-align: center; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; color: #8d959a; border-top: 1px solid var(--line); font-size: 11px; }.pagination > div { display: flex; gap: 8px; }

.dialog-card { width: min(720px, calc(100vw - 60px)); max-height: calc(100vh - 70px); padding: 28px; overflow: auto; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(17,27,25,.28); }.dialog-card::backdrop { background: rgba(13,22,20,.58); backdrop-filter: blur(3px); }.dialog-card.narrow { width: 460px; }.dialog-card.narrow form { display: grid; gap: 18px; }
.dialog-card.order-dialog { width: min(920px, calc(100vw - 60px)); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }.icon-button { width: 34px; height: 34px; color: #697277; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }
.detail-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }.detail-fields > div { padding: 12px; background: #fff; }.detail-fields dt, .detail-label { margin: 0 0 5px; color: #91989c; font-size: 10px; font-weight: 800; text-transform: uppercase; }.detail-fields dd { margin: 0; overflow-wrap: anywhere; color: #3f484d; font-size: 12px; }
.dialog-loading { padding: 52px 0; color: #899196; text-align: center; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.detail-block { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfb; }
.detail-copy { color: #3f484d; font-size: 12px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.detail-pre { margin: 0; color: #3f484d; font-size: 12px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.order-detail-card { min-width: 0; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfb; }
.order-detail-card h3 { margin: 0 0 12px; color: #30383d; font-size: 13px; }
.order-detail-card label { display: grid; gap: 8px; color: #596267; font-size: 11px; font-weight: 700; }
.order-items, .refund-list { display: grid; gap: 10px; }
.order-item, .refund-row { display: flex; justify-content: space-between; gap: 24px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-item:last-child, .refund-row:last-child { padding-bottom: 0; border-bottom: 0; }
.order-item-main { min-width: 0; }
.order-item-main strong { display: block; color: #30383d; font-size: 13px; }
.order-item-main span { display: block; margin-top: 4px; color: #858d92; font-size: 11px; line-height: 1.5; }
.order-item-price { flex: none; color: #3f484d; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.65; text-align: right; white-space: pre-line; }
.refund-row { color: #4f585d; font-size: 12px; line-height: 1.6; }
.order-action-bar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 16px; padding: 16px; border-radius: 9px; background: #fff8f4; }
.order-action-bar p { margin: 0; }
.order-actions { display: flex; flex: none; gap: 10px; }
.small-text { margin: 3px 0 0 !important; font-size: 11px; line-height: 1.5; }
pre { max-height: 320px; margin: 0; padding: 16px; overflow: auto; color: #cbd8d4; border-radius: 9px; background: #17201e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.inline-actions, .dialog-actions > div { display: flex; gap: 10px; align-items: center; }
.catalog-heading { align-items: center; }
.admin-heading { align-items: center; }
.catalog-heading p { margin-bottom: 0; }
.catalog-filter-bar { grid-template-columns: 1.4fr 1fr 1fr auto; }
.member-filter-bar { grid-template-columns: 1.4fr 1fr 1fr auto; }
.audit-filter-bar { grid-template-columns: repeat(3, minmax(130px, 1fr)) repeat(3, minmax(150px, 1fr)) auto; }
.order-operations-filter-bar { grid-template-columns: 1fr 1.2fr 1.3fr 1fr 1fr auto; }
.customer-notifications-filter-bar { grid-template-columns: repeat(4, minmax(125px, 1fr)); }
.left-note { margin: -8px 0 0; text-align: left; }
.credential-result { display: grid; gap: 16px; }
.credential-warning { margin: 0; padding: 12px 14px; color: #81550f; border: 1px solid #f1d79c; border-radius: 9px; background: var(--amber-soft); font-size: 12px; line-height: 1.65; }
.detail-fields.single-column { grid-template-columns: 1fr; margin-bottom: 0; }
.credential-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 750; letter-spacing: .04em; }
.catalog-table td:nth-child(2) { min-width: 220px; }
.select-column { width: 38px; min-width: 38px; text-align: center; }
.select-column input, .catalog-select { width: 17px; min-height: 17px; }
.catalog-row-selected { background: #fff8f4; }
.catalog-bulk-bar { position: sticky; z-index: 4; bottom: 12px; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 14px; padding: 13px 15px; border: 1px solid #f0d2c4; border-radius: 10px; background: rgba(255,249,246,.97); box-shadow: 0 12px 30px rgba(65,42,30,.12); backdrop-filter: blur(8px); }
.catalog-bulk-bar[hidden] { display: none; }
.catalog-bulk-bar strong, .catalog-bulk-bar span { display: block; }
.catalog-bulk-bar strong { color: #343c40; font-size: 12px; }
.catalog-bulk-bar span { margin-top: 3px; color: #8b9397; font-size: 10px; }
.product-cell { display: flex; gap: 12px; align-items: center; }
.product-thumb { width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #f3f5f4; object-fit: cover; }
.product-thumb-placeholder { display: grid; place-items: center; color: #9aa29f; font-size: 9px; text-align: center; }
.dialog-card.product-dialog { width: min(1080px, calc(100vw - 40px)); }
.dialog-card.category-dialog { width: min(820px, calc(100vw - 40px)); }
.catalog-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 16px; }
.form-section { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfc; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
.section-heading h3 { margin: 0; color: #30383d; font-size: 15px; }
.section-heading p { margin: 4px 0 0; color: #8b9397; font-size: 11px; line-height: 1.55; }
.field-grid { display: grid; gap: 14px; }
.field-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .span-two { grid-column: span 2; }
.check-field { display: flex; flex-direction: row; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.check-field input { width: 17px; height: 17px; min-height: 0; margin-top: 2px; }
.check-field span { display: grid; gap: 3px; }
.check-field small { color: #8d9599; font-size: 10px; font-weight: 500; }
.upload-block { margin-top: 18px; }
.upload-copy { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; color: #4f585d; font-size: 11px; }
.upload-copy span { color: #90979b; }
.upload-drop { display: flex; justify-content: center; gap: 5px; align-items: center; min-height: 64px; padding: 12px; color: #858e92; border: 1px dashed #cdd4d1; border-radius: 9px; background: #fff; font-size: 11px; }
.upload-drop.drag-over { border-color: var(--accent); background: #f0fbf7; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 12px; }
.image-card { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: #eef1f0; }
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.image-remove { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; border: 0; border-radius: 50%; background: rgba(24,31,29,.72); font-size: 16px; }
.store-product-section { align-self: start; }
.options-section { margin-top: 16px; }
.option-groups { display: grid; gap: 12px; }
.option-group { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.option-group-head { display: grid; grid-template-columns: minmax(140px, 2fr) 1fr 1fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.option-values { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.option-value { display: grid; grid-template-columns: minmax(140px, 2fr) 1fr 90px 85px 95px auto; gap: 9px; align-items: center; }
.option-group input, .option-group select { min-height: 36px; padding: 7px 9px; font-size: 11px; }
.option-group .check-field { padding: 7px; }
.option-group-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.mini-button { min-height: 34px; padding: 6px 9px; color: #697276; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 750; }
.mini-button.danger-text, .danger-text { color: var(--red); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.split-actions { justify-content: space-between; }
.category-form { display: grid; gap: 14px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; }
.category-fields { grid-template-columns: 2fr 1fr 1fr; }
.category-icon-editor { display: flex; gap: 14px; align-items: center; }
.category-icon-placeholder { display: grid; place-items: center; width: 62px; height: 62px; overflow: hidden; color: #8e969a; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 10px; }
.category-icon-placeholder.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,106,58,.11); }
.category-icon-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.category-list { max-height: 360px; }
.dialog-card.catalog-import-dialog, .dialog-card.catalog-bulk-dialog { width: min(960px, calc(100vw - 40px)); }
.catalog-import-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.import-file-field { min-width: 0; padding: 14px; border: 1px dashed #ccd4d1; border-radius: 9px; background: #fafbfb; }
.import-file-field input { width: 100%; min-height: 38px; padding: 7px; background: #fff; }
.import-file-field small { display: block; overflow: hidden; margin-top: 7px; color: #899196; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.import-tools { margin-top: 13px; }
.import-tools code { color: #5c655f; font-size: 10px; }
.import-progress, .catalog-scope-note { margin: 14px 0 0; padding: 10px 12px; color: #655242; border: 1px solid #efd9c9; border-radius: 8px; background: #fff9f4; font-size: 11px; line-height: 1.6; }
.catalog-preview { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; }
.catalog-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.catalog-summary > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.catalog-summary strong, .catalog-summary span { display: block; }
.catalog-summary strong { color: #30383c; font-size: 18px; }
.catalog-summary span { margin-top: 3px; color: #8a9296; font-size: 9px; }
.catalog-preview td { max-width: 260px; font-size: 11px; overflow-wrap: anywhere; }
.catalog-bulk-dialog .field-grid { margin-bottom: 12px; }
.catalog-bulk-dialog #catalog-bulk-value { display: block; }
.catalog-bulk-dialog #catalog-bulk-value > input,
.catalog-bulk-dialog #catalog-bulk-value > select { width: 100%; }

.campaign-layout { display: grid; gap: 18px; }
.campaign-heading { align-items: flex-start; }
.campaign-defaults {
  max-width: 430px;
  padding: 10px 13px;
  border: 1px solid #f0d8cb;
  border-radius: 9px;
  background: #fff8f4;
  color: #80533f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}
.campaign-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.campaign-card { min-height: 220px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfb; }
.campaign-card-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.campaign-card-heading strong { display: block; color: #30383c; font-size: 14px; }
.campaign-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.campaign-card-metrics div { padding: 10px; border-right: 1px solid var(--line); text-align: center; }
.campaign-card-metrics div:last-child { border-right: 0; }
.campaign-card-metrics strong, .campaign-card-metrics span { display: block; }
.campaign-card-metrics strong { color: #2f373b; font-size: 18px; }
.campaign-card-metrics span { margin-top: 3px; color: #8a9296; font-size: 9px; }
.campaign-ranking { display: grid; max-height: 210px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.campaign-ranking li { display: flex; gap: 12px; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); color: #4c555a; font-size: 10px; }
.campaign-ranking li span:last-child { flex: none; color: #879095; }
.campaign-actions { min-height: 36px; margin-top: 14px; }
.campaign-actions .button { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.campaign-create-form { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 14px; align-items: end; }
.campaign-create-action { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.campaign-create-action .button { flex: none; }
.campaign-catalog-wrap { max-height: 520px; }
.campaign-catalog-table input[type="checkbox"] { width: 17px; min-height: 17px; }
.campaign-number { width: 74px; min-height: 34px; padding: 6px 7px; }
.production-plan { display: grid; gap: 9px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.production-plan-heading { display: flex; justify-content: space-between; gap: 12px; color: #7e898d; font-size: 9px; }
.production-plan-heading strong { color: #343d40; font-size: 12px; }
.production-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.production-plan-row div, .production-plan-row strong, .production-plan-row span { display: block; min-width: 0; }
.production-plan-row strong { color: #414a4e; font-size: 10px; }
.production-plan-row span { margin-top: 3px; color: #818b90; font-size: 8px; line-height: 1.5; }
.production-plan-row input { min-height: 34px; padding: 6px; text-align: center; }
.production-plan-save { justify-self: end; min-height: 34px; padding: 7px 11px; font-size: 10px; }

.style-studio {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.15fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 92px;
}
.style-studio > .panel { padding: 18px; }
.style-studio-sidebar, .style-properties { max-height: calc(100vh - 178px); overflow-y: auto; }
.style-studio-group + .style-studio-group, .style-asset-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.style-studio-group h2, .style-properties h2, .style-asset-section h2 {
  margin: 0;
  color: #30383d;
  font-size: 15px;
}
.style-segmented, .style-asset-filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 9px;
  background: #eef1f0;
}
.style-segmented button, .style-asset-filters button {
  min-height: 34px;
  color: #70797d;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.style-segmented button.active, .style-asset-filters button.active {
  color: #29332f;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,32,31,.08);
}
.style-asset-filters { grid-template-columns: repeat(3, 1fr); }
.style-theme-list { display: grid; gap: 8px; margin-top: 12px; }
.style-theme-option {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 11px;
  color: #4d5659;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
}
.style-theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,106,58,.09); }
.style-theme-swatch { width: 25px; height: 25px; border-radius: 50%; background: #f5f5f1; box-shadow: inset 0 0 0 8px #20201e; }
.style-theme-option[data-theme="chunshan"] .style-theme-swatch { background: #eee5d4; box-shadow: inset 0 0 0 8px #284737; }
.style-theme-option[data-theme="moli"] .style-theme-swatch { background: #f7f5ee; box-shadow: inset 0 0 0 8px #849576; }
.style-theme-option small { color: #98a09f; font-size: 9px; }
.style-group-heading, .style-property-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.style-history-list { display: grid; gap: 8px; margin-top: 12px; }
.style-history-item { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfb; }
.style-history-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.style-history-item strong, .style-history-item span { display: block; }
.style-history-item strong { color: #3d474a; font-size: 11px; }
.style-history-item span { margin-top: 4px; color: #8b9497; font-size: 9px; line-height: 1.45; }
.style-history-item button { margin-top: 8px; }

.style-preview-panel {
  position: sticky;
  top: 22px;
  min-width: 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(25,38,35,.07);
  border-radius: 12px;
  background: #e9eceb;
}
.style-preview-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.style-preview-toolbar strong, .style-preview-toolbar span { display: block; }
.style-preview-toolbar strong { color: #333d3a; font-size: 13px; }
.style-preview-toolbar span { margin-top: 3px; color: #7f8885; font-size: 9px; }
.style-preview-toolbar label { width: 112px; gap: 4px; font-size: 9px; }
.style-preview-toolbar select { min-height: 32px; padding: 5px 8px; font-size: 10px; }
.style-phone-stage { display: grid; place-items: center; min-height: 590px; padding: 18px 0; overflow: hidden; }
.style-phone {
  position: relative;
  width: 292px;
  height: 598px;
  padding: 9px;
  overflow: hidden;
  border: 4px solid #252c2a;
  border-radius: 38px;
  background: #252c2a;
  box-shadow: 0 25px 55px rgba(27,36,33,.22);
}
.style-phone.device-android { width: 286px; height: 610px; border-radius: 25px; }
.style-phone-speaker {
  position: absolute;
  z-index: 5;
  top: 13px;
  left: 50%;
  width: 70px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #252c2a;
  transform: translateX(-50%);
}
.device-android .style-phone-speaker { width: 8px; height: 8px; border-radius: 50%; }
.style-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border-radius: 27px;
  background: #f5f5f1;
  scrollbar-width: none;
}
.style-phone-screen::-webkit-scrollbar { display: none; }
.device-android .style-phone-screen { border-radius: 16px; }
.style-preview-empty { display: grid; place-items: center; height: 100%; color: #89918e; font-size: 11px; }
.style-preview-note { margin: 0; color: #7c8582; font-size: 9px; line-height: 1.6; text-align: center; }
.style-clickable { cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s; }
.style-clickable:hover, .style-clickable.selected { outline-color: var(--accent); }

.style-loading-preview { position: relative; width: 100%; height: 100%; min-height: 570px; overflow: hidden; }
.style-loading-preview img { width: 100%; height: 100%; object-fit: cover; }
.style-loading-shade { position: absolute; inset: 0; pointer-events: none; }
.style-design-copy { position: absolute; z-index: 3; cursor: move; touch-action: none; user-select: none; }
.style-design-copy strong, .style-design-copy span { display: block; }
.style-loading-name { color: #20201e; font-size: 15px; font-weight: 400; letter-spacing: 4px; text-align: center; }
.theme-chunshan .style-loading-preview { background: #284737; }
.theme-chunshan .style-loading-shade { background: linear-gradient(180deg, rgba(24,36,29,.08), rgba(24,36,29,.74)); }
.theme-chunshan .style-loading-name { color: #fbf4e6; font-family: Georgia, "Songti SC", serif; text-align: left; }
.theme-xicha .style-loading-shade { background: linear-gradient(180deg, rgba(250,250,247,.08), rgba(250,250,247,.76)); }
.theme-moli .style-loading-preview { background: #f7f5ee; }
.theme-moli .style-loading-shade { background: linear-gradient(180deg, rgba(255,253,247,.02), rgba(255,253,247,.5)); }
.theme-moli .style-loading-name { color: #536145; font-family: Georgia, "Songti SC", serif; text-align: left; }

.style-home-preview { min-height: 100%; padding-bottom: 34px; background: #f5f5f1; }
.style-home-carousel { position: relative; height: 202px; overflow: hidden; background: #ddd; }
.style-home-carousel img { width: 100%; height: 100%; object-fit: cover; }
.style-home-carousel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(20,20,18,.58)); pointer-events: none; }
.style-home-copy { position: absolute; z-index: 2; color: #fff; cursor: move; touch-action: none; user-select: none; }
.style-home-copy strong, .style-home-copy span { display: block; }
.style-home-copy strong { font-size: 17px; font-weight: 500; letter-spacing: 3px; }
.style-home-copy span { margin-top: 5px; color: rgba(255,255,255,.82); font-size: 9px; letter-spacing: 1px; }
.style-preview-panel .style-font-system-sans strong, .style-preview-panel .style-font-system-sans span { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.style-preview-panel .style-font-system-serif strong, .style-preview-panel .style-font-system-serif span { font-family: Georgia, "Songti SC", STSong, serif; }
.style-preview-panel .style-font-system-rounded strong, .style-preview-panel .style-font-system-rounded span { font-family: "Arial Rounded MT Bold", "PingFang SC", -apple-system, sans-serif; }
.style-text-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: none;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(0,0,0,.28);
  cursor: nwse-resize;
}
.style-clickable.selected .style-text-resize-handle { display: block; }
.style-text-guide { position: absolute; z-index: 4; display: block; pointer-events: none; background: #ff744f; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.style-text-guide[hidden] { display: none; }
.style-text-guide-vertical { top: 0; bottom: 0; width: 1px; }
.style-text-guide-horizontal { right: 0; left: 0; height: 1px; }
.style-carousel-tabs { display: flex; gap: 5px; padding: 8px 10px; background: #fff; }
.style-carousel-tabs button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 5px; background: #d6d9d7; }
.style-carousel-tabs button.active { background: var(--accent); }
.style-carousel-tabs .style-carousel-add { display: grid; width: 20px; height: 20px; margin-top: -8px; color: #fff; border-radius: 50%; background: var(--accent); font-size: 13px; place-items: center; }
.style-home-fulfillment { display: grid; grid-template-columns: 1fr 1fr; }
.style-home-fulfillment button {
  display: grid;
  min-height: 94px;
  padding: 14px;
  color: #20201e;
  border: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fafaf7;
  place-items: center;
}
.style-home-fulfillment button + button { border-left: 1px solid #ddd; }
.style-home-fulfillment img { width: 38px; height: 38px; object-fit: contain; }
.style-home-fulfillment span { font-size: 12px; font-weight: 750; letter-spacing: 2px; }
.style-home-activity { position: relative; height: 104px; overflow: hidden; color: #fff; }
.style-home-activity img { width: 100%; height: 100%; object-fit: cover; }
.style-home-activity::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(20,22,20,.34); }
.style-activity-copy strong { font-size: 14px; letter-spacing: 2px; }
.style-gallery-item { position: relative; overflow: hidden; }
.style-home-gallery img { display: block; width: 100%; height: auto; min-height: 90px; object-fit: cover; background: #ddd; }
.style-gallery-copy { color: #fff; }
.style-gallery-copy strong { font-size: 15px; letter-spacing: 2px; }
.style-gallery-copy span { margin-top: 4px; font-size: 9px; letter-spacing: 1px; }
.style-gallery-add { width: 100%; min-height: 42px; color: var(--accent); border: 1px dashed #d6b9aa; background: #fffaf7; font-size: 10px; }
.style-dragging { opacity: .42; }
.style-drag-target { outline-color: #ff744f !important; box-shadow: inset 0 0 0 2px #ff744f; }
.theme-chunshan .style-home-preview { background: #eee5d4; color: #26352c; }
.theme-chunshan .style-home-carousel { height: 206px; background: #284737; }
.theme-chunshan .style-home-fulfillment button:first-child { color: #fbf4e6; background: #314f3f; }
.theme-chunshan .style-activity-copy strong { font-family: Georgia, "Songti SC", serif; }
.theme-moli .style-home-preview { background: #f2f0e7; color: #536145; }
.theme-moli .style-home-carousel { background: #849576; }
.theme-moli .style-home-fulfillment button { background: #f7f5ee; }

.style-property-editor { display: grid; gap: 12px; min-height: 120px; margin-top: 14px; }
.style-property-editor label { font-size: 11px; }
.style-property-editor input, .style-property-editor select { min-height: 38px; padding: 8px 10px; font-size: 11px; }
.style-editor-section-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 5px; border-top: 1px solid var(--line); }
.style-editor-section-heading strong { color: #48514f; font-size: 11px; }
.style-range-field > span { display: flex; align-items: center; justify-content: space-between; }
.style-range-field output { color: var(--accent); font-size: 10px; font-weight: 800; }
.style-property-editor .style-range-field input[type="range"] { width: 100%; min-height: 24px; padding: 0; accent-color: var(--accent); }
.style-checkbox-field { display: flex; gap: 8px; align-items: center; }
.style-property-editor .style-checkbox-field input { width: 18px; min-height: 18px; margin: 0; padding: 0; }
.style-color-field > span:last-child { display: flex; gap: 10px; align-items: center; }
.style-property-editor .style-color-field input[type="color"] { width: 52px; min-height: 36px; padding: 3px; }
.style-color-field code { color: #6d7774; font-size: 10px; }
.style-item-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.style-item-actions .button { min-height: 34px; padding: 6px; font-size: 9px; }
.style-current-image { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfb; }
.style-current-image img { width: 72px; height: 62px; object-fit: cover; border-radius: 6px; background: #e7eae8; }
.style-current-image code { overflow-wrap: anywhere; color: #78817e; font-size: 8px; }
.style-asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 330px; margin-top: 12px; overflow-y: auto; }
.style-asset-card { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #e8ebe9; aspect-ratio: 1; }
.style-asset-card.selected { border-color: var(--accent); }
.style-asset-card img { width: 100%; height: 100%; object-fit: cover; }
.style-asset-card span { position: absolute; right: 3px; bottom: 3px; padding: 2px 4px; color: #fff; border-radius: 4px; background: rgba(25,31,29,.68); font-size: 7px; }
.style-asset-hide { position: absolute; z-index: 2; top: 3px; right: 3px; display: grid; width: 20px; height: 20px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: rgba(155,42,46,.82); place-items: center; }
.style-upload-button { display: block; }
.style-upload-button .button { display: grid; place-items: center; }
.style-action-bar {
  position: fixed;
  z-index: 18;
  right: 42px;
  bottom: 18px;
  left: 280px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid #ead9d0;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(35,43,40,.16);
  backdrop-filter: blur(10px);
}
.style-action-bar strong, .style-action-bar span { display: block; }
.style-action-bar strong { color: #3f4946; font-size: 11px; }
.style-action-bar span { margin-top: 3px; color: #8b9391; font-size: 9px; }

.settings-layout { display: grid; gap: 18px; padding-bottom: 82px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.business-hours-editor { display: grid; gap: 8px; }
.business-hour-row { display: grid; grid-template-columns: 70px 90px minmax(120px, 1fr) minmax(120px, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.business-hour-row:last-child { border-bottom: 0; }
.business-hour-row strong { color: #4c555a; font-size: 12px; }
.business-hour-row input[type="time"] { min-height: 38px; }
.inline-check { display: flex; grid-template-columns: none; gap: 7px; align-items: center; font-size: 11px; }
.inline-check input { width: 16px; min-height: 16px; }
.sticky-save-bar { position: sticky; z-index: 5; bottom: 16px; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 14px 16px; border: 1px solid #f2d6c9; border-radius: 11px; background: rgba(255,249,246,.96); box-shadow: 0 14px 38px rgba(55,38,28,.12); backdrop-filter: blur(8px); }
.sticky-save-bar p { margin: 0 !important; }
.sticky-save-bar .button { flex: none; }

@media (max-width: 1180px) {
  body { min-width: 920px; }
  .console-layout { grid-template-columns: 210px minmax(710px, 1fr); }
  .workspace { padding: 30px 26px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .business-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .order-filter-bar { grid-template-columns: repeat(3, 1fr); }
  .catalog-form-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-filter-bar, .order-operations-filter-bar, .customer-notifications-filter-bar { grid-template-columns: repeat(2, 1fr); }
  .campaign-cards { grid-template-columns: 1fr; }
  .campaign-create-form { grid-template-columns: repeat(2, 1fr); }
  .style-studio { grid-template-columns: 220px minmax(340px, 1fr); }
  .style-properties { grid-column: 1 / -1; max-height: none; }
}

@media (max-width: 760px) {
  body { min-width: 0; }
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { min-height: 300px; padding: 46px 28px; }
  .login-intro h1 { margin: 8px 0 16px; font-size: 40px; }
  .brand-mark { margin-bottom: 20px; }
  .privacy-note { margin-top: 28px; }
  .login-panel { padding: 28px 18px; }
  .login-card { padding: 28px; }
  .console-layout { display: block; min-height: 100vh; }
  .sidebar { position: sticky; z-index: 20; width: 100%; height: auto; padding: 12px; }
  .sidebar-brand { padding: 0 8px 12px; }
  .sidebar nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .nav-item { display: flex; flex: none; min-height: 40px; padding: 0 10px; white-space: nowrap; }
  .nav-icon { width: 18px; }
  .pending-nav { display: none; }
  .sidebar-foot { display: flex; justify-content: space-between; padding: 10px 8px 0; }
  .workspace { padding: 24px 14px 38px; }
  .topbar { align-items: start; flex-direction: column; gap: 18px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .refresh-meta { margin-right: auto; text-align: left; }
  .metric-grid, .business-metric-grid, .overview-grid, .order-detail-grid { grid-template-columns: 1fr; }
  .span-two, .span-three { grid-column: auto; }
  .filter-bar, .order-filter-bar, .catalog-filter-bar, .member-filter-bar, .audit-filter-bar, .order-operations-filter-bar, .customer-notifications-filter-bar { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .dialog-card, .dialog-card.order-dialog, .dialog-card.narrow { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 20px; }
  .order-action-bar { align-items: stretch; flex-direction: column; }
  .order-actions { flex-wrap: wrap; }
  .dialog-card.product-dialog, .dialog-card.category-dialog,
  .dialog-card.catalog-import-dialog, .dialog-card.catalog-bulk-dialog { width: calc(100vw - 20px); }
  .field-grid.two-columns, .category-fields { grid-template-columns: 1fr; }
  .field-grid .span-two { grid-column: auto; }
  .option-group-head, .option-value { grid-template-columns: 1fr; }
  .dialog-actions, .split-actions, .upload-copy { align-items: stretch; flex-direction: column; }
  .catalog-import-inputs, .catalog-summary { grid-template-columns: 1fr; }
  .catalog-bulk-bar { position: static; align-items: stretch; flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr; }
  .business-hour-row { grid-template-columns: 1fr 1fr; }
  .sticky-save-bar { align-items: stretch; flex-direction: column; }
  .campaign-heading, .campaign-create-action { align-items: stretch; flex-direction: column; }
  .campaign-create-form { grid-template-columns: 1fr; }
  .style-studio { grid-template-columns: 1fr; }
  .style-studio-sidebar, .style-properties { max-height: none; }
  .style-preview-panel { position: static; }
  .style-action-bar { right: 14px; bottom: 12px; left: 14px; align-items: stretch; flex-direction: column; }
  .style-action-bar .inline-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
}
