:root {
  color-scheme: light;
  --ink: #242424;
  --accent: #e95420;
  --muted: #696969;
  --line: #ebebeb;
  --bg: #ffffff;
  --white: #fff;
  --amber: #934116;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Malgun Gothic', Arial, sans-serif;
}
html:lang(ko) { --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', Arial, sans-serif; word-break: keep-all; }
html:lang(zh) .wing-korean-name { font-family:Arial, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; word-break:keep-all; }
@media (min-width:701px) { html:lang(zh) { --font:'Apple SD Gothic Neo','Noto Sans KR',Roboto,'Helvetica Neue',Arial,sans-serif; } html:lang(zh) .wing-korean-name { font-family:var(--font); } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: #b83c12; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a.button { cursor: pointer; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #ffe0cf; }
aside { position: fixed; inset: 0 auto 0 0; width: 190px; background: #ffffff; border-right: 1px solid var(--line); padding: 24px 14px 18px; display: flex; flex-direction: column; overflow-y: auto; z-index:20; }
.brand { display: block; padding: 0 14px; color: var(--ink); font-size: 29px; font-weight: 600; letter-spacing: -1px; }
.brand span { font-size: 21px; margin-left: 12px; letter-spacing: 2px; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1.4px; color: var(--muted); margin-top: 8px; }
.workspace { font-size: 11px; letter-spacing: 1.4px; margin: 48px 14px 16px; color: var(--muted); }
nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 4px; border-radius: 7px; color: #606060; font-size: 14px; min-height: 42px; }
nav a:hover { background: #fafafa; }
nav a.active { background: #fff1e9; color: #b83c12; font-weight: 600; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-divider { height: 1px; background: var(--line); margin: 26px 14px; }
.sidebar-bottom { margin-top: auto; padding: 48px 14px 0; color: var(--muted); font-size: 12px; }
.sidebar-bottom small { display: block; font-size: 10px; letter-spacing: .6px; margin-top: 7px; }
.dot { display: inline-block; background: #f36b2b; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; }
main { margin-left: 190px; padding: 0 clamp(24px, 3vw, 48px) 28px; max-width: 1900px; }
header { min-height: 84px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 500; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.header-actions form { margin: 0; }
.quiet { border: 0; background: transparent; color: var(--muted); padding: 10px 4px; min-height: 44px; }
.quiet:hover { color: var(--ink); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 18px; }
h1 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.6px; line-height: 1.4; margin: 8px 0 10px; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; }
p { color: var(--muted); margin: 6px 0; }
.pill, .badge { font-size: 12px; border-radius: 6px; padding: 5px 10px; background: #fff1e9; color: #b83c12; white-space: nowrap; }
.pill { padding: 9px 14px; }
.badge.warn { color: #934116; background: #fff4ed; }
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 28px; }
.date-presets { flex: 0 0 100%; display: flex; gap: 8px; overflow-x: auto; padding-top: 2px; }
.date-presets button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 20px; padding: 7px 13px; font-size: 12px; }
.date-presets button:hover { border-color: #f2b99f; color: #b83c12; background: #fff7f2; }
.filters label { font-size: 13px; color: var(--muted); min-width: 140px; }
.filters input, .filters select { display: block; margin-top: 8px; width: 100%; }
input, select, textarea { border: 1px solid #dedede; background: #fff; border-radius: 7px; padding: 10px 12px; color: var(--ink); max-width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f36b2b; outline-offset: 2px; }
.primary { background: #d84916; border: 1px solid #d84916; color: white; padding: 10px 24px; border-radius: 7px; min-height: 46px; }
.primary:hover { background: #c44316; }
.button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 7px; color: var(--ink); min-height: 42px; font-size: 13px; }
.button:hover { background: #ffffff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.metrics.wing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics article { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-height: 166px; }
.metrics article > span { display: block; font-size: 13px; color: var(--muted); min-height: 42px; }
.metrics strong { display: block; font-size: clamp(23px, 2vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.8px; margin: 10px 0 12px; line-height: 1.3; }
.metrics small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.metrics .highlight { background: #fff6f0; border-color: #f6dfd2; }
.notice { border: 1px solid #ebebeb; background: #fafafa; color: #606060; padding: 14px 18px; margin: 18px 0; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.notice.amber { background: #fff7f2; border-color: #f5e3d8; color: #884323; }
.panel { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 12px; margin: 26px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-title h2 { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 12px; font-weight: 500; background: #fafafa; white-space: nowrap; }
td, th { padding: 16px 14px; border-bottom: 1px solid #eeeeee; }
td { vertical-align: top; line-height: 1.7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
.product-name { min-width: 200px; max-width: 440px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.chart { max-height: 340px; overflow: auto; }
.bar-row { display: flex; align-items: center; gap: 18px; margin: 16px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-row time { width: 86px; flex-shrink: 0; color: var(--muted); }
.bar-track { flex: 1; background: #f5f5f5; height: 10px; border-radius: 3px; }
.bar { height: 10px; background: #f36b2b; border-radius: 3px; }
.bar-row b { width: 104px; flex-shrink: 0; text-align: right; font-weight: 500; }
.pager { text-align: right; padding-top: 20px; color: var(--muted); font-size: 13px; }
.pager a { display: inline-block; padding: 8px 14px; margin-left: 12px; }
.auth-main { margin: 0; max-width: none; }
.login-card { width: 440px; max-width: 100%; margin: 9vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.login-card p { margin-bottom: 30px; }
.login-card label { display: block; margin: 22px 0; font-size: 14px; color: var(--muted); }
.login-card input { display: block; width: 100%; margin-top: 8px; }
.full { width: 100%; margin-top: 12px; }
.edit-form { max-width: 650px; display: grid; gap: 22px; }
.edit-form label { display: grid; gap: 8px; }
.edit-form small { color: var(--muted); font-size: 13px; }
.edit-form textarea { min-height: 100px; }
.template-links { margin-top: 24px; }
.template-links a { display: inline-block; padding: 8px; text-decoration: underline; text-underline-offset: 4px; }
footer { font-size: 12px; color: var(--muted); margin-top: 40px; }
details { padding: 14px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
dt { color: var(--muted); }
dd { margin: 0 0 16px; }
@media (max-width: 1200px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { aside { width: 176px; padding: 22px 12px; } main { margin-left: 176px; padding: 0 22px 24px; } }
@media (max-width: 700px) {
  aside { position:fixed!important; inset:auto 0 0 0!important; z-index:1000; width:100vw; max-width:100%; height:66px; padding:6px 8px; display:block; border-right:0; border-top:1px solid var(--line); overflow:visible; background:rgba(255,255,255,.98); transform:translate3d(0,0,0); }
  aside nav { display:flex; height:100%; justify-content:space-around; gap:2px; }
  aside nav a { flex:1 1 0; min-width:0; min-height:54px; margin:0; padding:5px 2px; flex-direction:column; justify-content:center; gap:2px; font-size:10px; border-radius:7px; white-space:nowrap; }
  aside .nav-icon { display:block; width:19px; height:19px; flex-basis:19px; }
  aside > .account-menu { display:none; }
  main { margin-left:0; padding:0 16px 74px; }
  header { min-height: 68px; flex-wrap: wrap; padding: 12px 0; gap: 6px; }
  header > .eyebrow { display: none; }.header-actions { width: 100%; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
  .page-title { margin:20px 48px 16px 0; align-items:flex-start; }.page-title .pill { margin-top: 8px; padding: 7px 9px; font-size: 11px; }
  .page-title p { font-size: 14px; }
  .metrics { gap: 12px; }.metrics article { padding: 18px 16px; min-height: 160px; }.metrics strong { font-size: 24px; }
  .panel { padding: 20px 16px; }.section-title { flex-wrap: wrap; }
  .filters { gap: 14px 12px; }.filters label { min-width: 0; flex: 1 1 calc(50% - 12px); }.filters .primary { width: 100%; }.date-presets { flex-wrap: nowrap; }
  .bar-row { gap: 10px; font-size: 12px; }.bar-row time { width: 78px; }.bar-row b { width: 80px; }
  .login-card { margin: 36px auto; padding: 30px 24px; }
}
@media (max-width: 380px) { .metrics { grid-template-columns: 1fr; }.metrics article { min-height: auto; }.metrics article > span { min-height: 0; }.page-title { flex-wrap: wrap; } }
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .15s ease, color .15s ease; } }

.product-cell{display:flex;gap:12px;align-items:flex-start}.product-thumb{width:48px;height:48px;flex:0 0 48px;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff}.product-thumb.placeholder{display:flex;align-items:center;justify-content:center;color:var(--muted);background:#fafafa}.login-card h1{font-size:25px;line-height:1.55;margin-bottom:28px}.brand span{margin-left:0}.brand small{letter-spacing:0;font-size:12px}

.metrics.wing.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.product-cell { color: var(--ink); }
.product-cell b { font-weight: 600; }
.compact-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.compact-notice form { margin:0; }
.product-heading { justify-content:flex-start; }
.product-hero { width:88px; height:88px; object-fit:contain; border:1px solid var(--line); border-radius:12px; }
@media (max-width:700px) { .compact-notice { align-items:flex-start; flex-direction:column; } .metrics.wing.compact { grid-template-columns:repeat(2,minmax(0,1fr)); } .product-hero { width:68px; height:68px; } }

/* Compact operations dashboard */
.mobile-account { display:none; }
.account-menu { margin-top:auto; position:relative; border:0; padding:0; }
.account-menu summary { list-style:none; display:flex; align-items:center; gap:10px; padding:10px; border-radius:8px; cursor:pointer; color:var(--ink); }
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu summary:hover { background:#fafafa; }
.account-menu summary > span:last-child { min-width:0; }
.account-menu summary b,.account-menu summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-menu summary b { font-size:13px; font-weight:600; }
.account-menu summary small { color:var(--muted); font-size:11px; }
.account-avatar { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; background:#fff1e9; color:#b83c12; font-weight:600; }
.account-popover { position:absolute; left:0; bottom:52px; width:162px; padding:7px; background:#fff; border:1px solid var(--line); border-radius:9px; box-shadow:0 12px 32px rgba(0,0,0,.1); z-index:30; }
.account-popover form { margin:0; }
.menu-action { display:block; width:100%; border:0; background:#fff; color:var(--ink); padding:9px 10px; text-align:left; border-radius:6px; font-size:13px; min-height:38px; }
.menu-action:hover { background:#fafafa; }
.page-dashboard header { min-height:48px; }
.page-dashboard .dashboard-title { margin:12px 0 10px; }
.dashboard-title h1 { margin:0; font-size:23px; line-height:1.35; }
.data-status { font-size:12px; color:#52705d; padding:6px 10px; background:#f4f8f5; border-radius:6px; white-space:nowrap; }
.data-status.incomplete { color:#9a461f; background:#fff3ec; }
.filter-shell { padding:14px 0 12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
:is(.page-dashboard,.page-profit) .filter-shell { padding:10px 0 9px; }
.filter-toggle { display:none; }
.filter-shell .filters { display:block; margin:0; }
.filter-fields { display:flex; align-items:flex-end; gap:10px; }
.filter-fields label { min-width:130px; font-size:12px; color:var(--muted); }
.filter-fields .product-search { min-width:210px; flex:1 1 240px; max-width:320px; }
.filter-fields input,.filter-fields select { min-height:40px; height:40px; margin-top:5px; padding:8px 10px; border-radius:6px; }
.filter-fields .primary { min-height:40px; height:40px; padding:8px 20px; }
.filter-shell .date-presets { margin-top:10px; padding:0; gap:6px; }
.filter-shell .date-presets button { padding:5px 11px; border-radius:16px; }
.filter-shell .date-presets button.active,.filter-shell .date-presets button[aria-pressed="true"] { color:#b83c12; border-color:#f2b99f; background:#fff1e9; font-weight:600; }
.data-warning { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 12px; margin:12px 0 0; color:#91411c; background:#fff7f2; border-left:3px solid var(--accent); font-size:13px; }
.data-warning form { margin:0; }
.text-action { border:0; background:transparent; padding:4px 2px; color:#b83c12; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.overview-row { display:grid; grid-template-columns:minmax(390px,450px) minmax(0,1fr); gap:18px; align-items:stretch; margin-top:6px; border-bottom:1px solid var(--line); }
.metric-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
.metric-strip article { display:grid; grid-template-rows:auto auto 25px auto; align-content:start; min-width:0; padding:11px 14px 9px 0; }
.metric-strip article + article { border-left:1px solid var(--line); padding-left:18px; }
.metric-strip article > span { display:block; color:var(--muted); font-size:12px; }
.metric-strip .metric-title,.overview-row .trend-section h2 { color:var(--ink); font-size:14px; font-weight:500; line-height:1.5; letter-spacing:-.15px; }
.metric-strip strong { display:block; margin:4px 0 3px; font-size:clamp(22px,1.55vw,26px); line-height:1.22; font-weight:600; letter-spacing:-.55px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.metric-change-slot { display:flex; align-items:flex-start; min-height:25px; }
.metric-average { align-self:start; min-height:41px; font-variant-numeric:tabular-nums; }
.metric-average>span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.metric-average>span+span { margin-top:1px; }
.change-badge { display:inline-flex!important; align-items:center; width:max-content; margin-top:2px; padding:3px 6px; border-radius:4px; font-size:11px!important; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap; }
.change-up { color:#2674d9!important; background:#edf5ff; }
.change-down { color:#e9551b!important; background:#fff0e9; }
.change-flat { color:#6f6f6f!important; background:#f3f3f3; }
.dashboard-section { padding:20px 0; border-bottom:1px solid var(--line); }
.overview-row .trend-section { min-width:0; padding:11px 0 4px; border-bottom:0; }
.overview-row .trend-section .section-title { align-items:flex-start; margin-bottom:2px; }
.chart-toggle { display:flex; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.chart-toggle button { border:0; border-left:1px solid var(--line); padding:7px 11px; color:var(--muted); background:#fff; font-size:12px; }
.chart-toggle button:first-child { border-left:0; }
.chart-toggle button.active { color:#d94714; background:#fff1eb; font-weight:600; }
.dashboard-section .section-title { margin-bottom:12px; }
.dashboard-section h2 { font-size:17px; margin:0; }
.segmented { display:flex; padding:2px; border:1px solid var(--line); border-radius:7px; }
.segmented button { border:0; background:#fff; color:var(--muted); min-height:30px; padding:5px 11px; border-radius:5px; font-size:12px; }
.segmented button.active { color:#b83c12; background:#fff1e9; font-weight:600; }
.sales-trend { position:relative; height:128px; width:100%; overflow:visible; }
.sales-trend svg { width:100%; height:100%; display:block; overflow:visible; }
.chart-grid { stroke:#eeeeee; stroke-width:1; }
.chart-zero { stroke:#d8d8d8; stroke-width:1; }
.chart-line { fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.chart-area { fill:url(#trend-fill); opacity:.9; }
.chart-point { fill:#fff; stroke:var(--accent); stroke-width:2; }
.chart-axis-label { fill:#6d6d6d; font:13px var(--font); }
.chart-hit { fill:transparent; cursor:crosshair; }
.chart-tooltip { position:absolute; pointer-events:none; min-width:142px; padding:8px 10px; background:#242424; color:#fff; border-radius:6px; font-size:12px; line-height:1.55; white-space:pre-line; box-shadow:0 8px 20px rgba(0,0,0,.16); transform:translate(var(--tooltip-x,-50%),-110%); z-index:3; }
.chart-tooltip.below { transform:translate(var(--tooltip-x,-50%),12px); }
.chart-empty { height:100%; display:grid; place-items:center; color:var(--muted); font-size:13px; }
.ranking-section { border-bottom:0; padding-bottom:0; }
.ranking-table th { position:sticky; top:0; z-index:1; }
.ranking-table td,.ranking-table th { padding:10px 12px; }
.ranking-table td { vertical-align:middle; height:66px; }
.ranking-table th:first-child,.ranking-table td:first-child { padding-left:4px; }
.ranking-table th:last-child,.ranking-table td:last-child { padding-right:0; }
.ranking-table .rank-index { width:48px; min-width:48px; padding-right:4px; text-align:center; color:#8a9098; font-variant-numeric:tabular-nums; }
.ranking-table .product-column,.ranking-table .product-name { width:36%; min-width:310px; }
.ranking-table .rank-index + .product-column,.ranking-table .rank-index + .product-name { padding-left:18px; }
.ranking-table th:nth-child(4),.ranking-table td:nth-child(4) { width:11%; }
.ranking-table th:nth-child(5),.ranking-table td:nth-child(5) { width:14%; }
.ranking-table th:nth-child(6),.ranking-table td:nth-child(6) { width:15%; }
.ranking-table th:nth-child(7),.ranking-table td:nth-child(7) { width:12%; }
.ranking-table th:nth-child(8),.ranking-table td:nth-child(8) { width:12%; }
.ranking-table .product-thumb { width:44px; height:44px; flex-basis:44px; }
.ranking-table .product-cell { align-items:center; }
.mobile-thumb-column,.mobile-thumb-cell { display:none; }
.table-subvalue { display:block; margin-top:4px; color:var(--muted); font-size:11px; font-weight:400; line-height:1.25; white-space:nowrap; }
.table-primary-value { font-weight:600; }
.coupon-pending { color:#a4522d; }
.share-value { display:block; margin-bottom:6px; }
.share-track { display:block; width:86px; max-width:100%; height:4px; overflow:hidden; border-radius:2px; background:#f0f0f0; }
.share-fill { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.product-meta { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:400; }
.resale-tag { display:inline-flex; align-items:center; margin-left:5px; padding:2px 5px; border-radius:4px; color:#666; background:#f1f1f1; font-size:10px; font-weight:600; line-height:1.3; white-space:nowrap; }
.seller-tag { color:#2674d9; background:#edf5ff; }
.sort-link { color:var(--muted); }
.sort-link.active { color:var(--ink); font-weight:600; }
.sort-link i { margin-left:3px; color:#9aa2aa; font-size:8px; font-style:normal; }
.sort-link.active i { color:var(--accent); }
.sales-ranking-table thead th { color:var(--muted); }
.sales-ranking-table thead .rank-index { color:var(--muted); }
.sales-ranking-table .sort-link { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.sales-ranking-table .sort-link i { width:auto; height:auto; margin-left:0; border:0; font-size:8px; line-height:1; }
.sales-ranking-table .product-column,.sales-ranking-table .product-name { width:34.5%; }
.sales-ranking-table th:nth-child(n+4),.sales-ranking-table td:nth-child(n+4) { width:13.1%; }
.sales-ranking-table tbody td { height:76px; }
.sales-ranking-table .sales-main-value { font-size:15px; font-weight:400; }
.sales-ranking-table .sales-main-value.table-primary-value { font-weight:600; }
.ranking-section .pager { display:flex; justify-content:flex-end; align-items:center; gap:14px; }
.ranking-section .pager a { margin:0; border:1px solid var(--line); border-radius:6px; padding:6px 10px; color:var(--ink); }
.product-detail-title { align-items:flex-start; margin:12px 0 10px; }
.product-heading-main { display:flex; align-items:center; gap:14px; min-width:0; }
.product-title-copy { min-width:0; }
.product-title-copy h1 { margin:3px 0 2px; font-size:clamp(20px,1.7vw,25px); overflow-wrap:anywhere; }
.product-title-copy p { margin:0; font-size:12px; }
.product-back { display:inline-block; }
.product-detail-title .product-hero { width:64px; height:64px; flex:0 0 64px; border-radius:8px; }
.product-detail-title .product-hero.placeholder { display:grid; place-items:center; color:var(--muted); background:#fafafa; }
.product-overview .metric-strip article { padding-top:11px; }
.product-overview .metric-average + .metric-average { margin-top:3px; }
.sku-ranking-section { padding-top:18px; }
.sku-table .product-column,.sku-table .product-name { width:38%; min-width:330px; }
.sku-table th:nth-child(4),.sku-table td:nth-child(4) { width:10%; }
.sku-table th:nth-child(5),.sku-table td:nth-child(5) { width:14%; }
.sku-table th:nth-child(6),.sku-table td:nth-child(6) { width:15%; }
.sku-table th:nth-child(7),.sku-table td:nth-child(7) { width:11%; }
.sku-table th:nth-child(8),.sku-table td:nth-child(8) { width:12%; }
.wing-settlement { margin-top:10px; padding:16px 0 14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.wing-settlement-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:8px 0 14px; }
.wing-settlement-summary>div { padding:5px 18px; border-left:1px solid var(--line); }
.wing-settlement-summary>div:first-child { padding-left:0; border-left:0; }
.wing-settlement-summary span { display:block; color:var(--muted); font-size:12px; }
.wing-settlement-summary strong { display:block; margin-top:4px; font-size:20px; white-space:nowrap; }
.wing-cost-list { width:340px; max-width:100%; padding:0; border:0; color:#202027; }
.wing-cost-row,.wing-cost-children>div { display:flex; justify-content:space-between; align-items:center; min-height:34px; gap:24px; }
.wing-cost-row span { display:flex; align-items:center; min-height:34px; }
.wing-cost-row b,.wing-cost-children b { font-size:16px; font-weight:400; line-height:34px; white-space:nowrap; }
.wing-cost-children { padding:0 0 4px 50px; color:#717984; font-size:14px; }
.wing-cost-children>div { min-height:29px; }
.wing-cost-row { font-size:16px; line-height:1.35; }
.wing-cost-row.major { font-weight:400; }
.wing-cost-group { margin:0; padding:0; border:0; }
.wing-cost-group summary { list-style:none; cursor:pointer; padding:0; border:0; }
.wing-cost-group summary::-webkit-details-marker { display:none; }
.wing-cost-group .cost-label.no-dot { padding-left:23px; }
.wing-cost-group .cost-chevron { width:7px; height:7px; margin:0 0 4px 8px; border-right:1.5px solid #36506a; border-bottom:1.5px solid #36506a; transform:rotate(45deg); transition:transform .15s ease; }
.wing-cost-group[open] .cost-chevron { margin-bottom:-2px; transform:rotate(225deg); }
.dot { width:12px; height:12px; margin-right:11px; border-radius:50%; background:#999; flex:0 0 12px; }
.dot.cyan{background:#16b8b1}.dot.blue{background:#5564d8}.dot.purple{background:#d06fd2}.dot.orange{background:#ef8a42}.dot.green{background:#55b66b}.dot.gray{background:#888}.dot.pink{background:#e85d91}
.wing-settlement-empty { margin:10px 0 0; color:var(--muted); }
.settlement-reconciliation { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.settlement-reconciliation b { margin-left:4px; color:var(--ink); font-weight:500; }
.cost-state { display:inline-flex; padding:2px 6px; border-radius:4px; font-style:normal; font-size:10px; }
.cost-state.actual { color:#26704a; background:#edf8f1; }
.cost-state.estimated { color:#a45122; background:#fff1e9; }
.cost-state.pending { color:#666; background:#f2f2f2; }

.page-profit .page-title { margin-bottom:10px; }
.inventory-compensation { display:flex; justify-content:space-between; gap:24px; min-height:34px; margin-top:3px; padding-top:3px; border-top:1px solid var(--line); color:#26704a; }
.inventory-compensation b { font-size:16px; font-weight:400; }
.profit-section-divider { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:22px 0 8px; }
.profit-section-divider span { font-size:18px; font-weight:700; }
.profit-section-divider small { color:var(--muted); }
.compact-action { min-height:30px; padding:5px 10px; font-size:12px; }
.profit-product-table .product-cell { min-width:0; }
.profit-product-table td { vertical-align:middle; }
.profit-product-table .table-subvalue,.sku-profit-table .table-subvalue { display:block; margin-top:4px; }
.profit-product-ranking-table .product-column,.profit-product-ranking-table .product-name,
.sku-profit-table .product-column,.sku-profit-table .product-name { width:28%; min-width:280px; }
.profit-product-ranking-table th:not(.rank-index):not(.mobile-thumb-column):not(.product-column),
.profit-product-ranking-table td:not(.rank-index):not(.mobile-thumb-cell):not(.product-name),
.sku-profit-table th:not(.rank-index):not(.mobile-thumb-column):not(.product-column),
.sku-profit-table td:not(.rank-index):not(.mobile-thumb-cell):not(.product-name) { min-width:108px; }
.fee-evidence { padding:0; border-bottom:0; }
.fee-evidence summary { display:inline-flex; align-items:center; gap:4px; cursor:pointer; font-weight:400; white-space:nowrap; list-style:none; }
.fee-evidence summary::-webkit-details-marker,.profit-evidence summary::-webkit-details-marker { display:none; }
.fee-evidence summary::after,.profit-evidence summary::after { content:'⌄'; color:#9aa2aa; font-size:9px; font-weight:400; line-height:1; }
.fee-evidence[open] summary::after,.profit-evidence[open] summary::after { content:'⌃'; }
.fee-evidence[open] { min-width:190px; }
.fee-interval { display:grid; grid-template-columns:auto auto; align-items:center; justify-content:start; gap:7px; padding:2px 0; white-space:nowrap; }
.fee-interval b,.fee-interval span { font-size:11px; line-height:1.3; }
.fee-interval b { color:var(--muted); font-weight:400; }
.fee-interval span { color:var(--text); font-weight:500; }
.fee-estimate-divider { margin-top:3px; padding:3px 0 1px; color:var(--muted); font-size:10px; font-weight:500; }
.seller-delivery-label { color:#6f95bd; }
.fee-estimated { color:#697581; }
.inline-estimate { margin-left:5px; color:var(--muted); font-size:10px; font-weight:400; }
.missing-value { color:#8b929a; }
.read-only-label { display:block; color:#60768b; font-size:11px; font-weight:400; }
.pricing-update-time { color:#7d8791;font-size:12px;margin:8px 0; }

.pricing-refresh-form { display:flex;align-items:center;gap:10px; }
.pricing-refresh-form small { color:#7d8791; }
.pricing-trial[hidden] { display:none!important; }
.pricing-trial td { background:#fff7f0;padding:10px 16px!important; }
.pricing-trial-body { display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;max-width:calc(100vw - 64px); }
.pricing-trial-body>b { color:#bd4318; }
.pricing-trial-body label { display:flex;align-items:center;gap:5px; }
.pricing-trial-body input { width:95px;min-height:28px;padding:3px 6px;background:white;border:1px solid #ead1c7;border-radius:4px; }
.trial-error { color:#bd4318; }
.pricing-actions>.pricing-trial-open { margin-top:5px;cursor:pointer; }
.pricing-table { width:100%; min-width:0; table-layout:fixed; }
.pricing-table .pricing-col-sku { width:23%; }
.pricing-table .pricing-col-price,.pricing-table .pricing-col-fees,.pricing-table .pricing-col-china,.pricing-table .pricing-col-korea,.pricing-table .pricing-col-profit { width:13.6%; }
.pricing-table .pricing-col-actions { width:9%; }
.pricing-table th,.pricing-table td { padding:7px 12px; vertical-align:top; }
.ranking-table.pricing-table th,.ranking-table.pricing-table td { width:auto!important; min-width:0; max-width:none; }
.pricing-table td+td { border-left:1px solid #f0f1f3; }
.pricing-table td:not(.product-name) { white-space:nowrap; }
.pricing-table td small { margin-top:1px; line-height:1.25; }
.ranking-table.pricing-table td.product-name:first-child { width:auto; padding-left:38px; }
.pricing-table td.pricing-actions { padding-left:4px; padding-right:4px; }
.pricing-sku-name { display:flex; align-items:flex-start; gap:9px; }
.pricing-sku-name img { width:44px; height:44px; flex:0 0 auto; object-fit:cover; border-radius:5px; }
.pricing-sku-name>span { min-width:0; }
.pricing-sku-name b { display:block; line-height:1.4; font-size:14px; font-weight:600; }
.pricing-sku-name .product-meta { margin-top:4px; font-size:11.5px; line-height:1.35; }
.pricing-sku-copy { padding-top:1px; }
.pricing-sku-spec { display:block; margin-top:5px !important; color:#89939d; font-size:11.5px; font-weight:400; line-height:1.35; white-space:nowrap; }
.pricing-groups { border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; }
@media (min-width:701px) { .pricing-groups { width:calc(100% + clamp(24px,3vw,48px)); } }
.pricing-product { border-bottom:1px solid var(--line); }
.pricing-product:last-child { border-bottom:0; }
.pricing-bulk-toggle .pricing-product>.table-scroll { display:none !important; }
.pricing-group-head,.pricing-product>summary { display:grid; width:100%; min-width:0; grid-template-columns:2% 21% repeat(5,13.6%) 9%; align-items:center; column-gap:0; }
.pricing-group-head { min-height:42px; padding:0; color:#55606a; background:#f7f8f9; border-bottom:1px solid var(--line); font-size:13px; font-weight:500; }
.pricing-group-head>span,.pricing-product>summary>span { padding-left:12px; padding-right:12px; }
.pricing-product>summary { height:48px; min-height:48px; padding:0; cursor:pointer; list-style:none; background:#fff; }
.pricing-product>summary::-webkit-details-marker { display:none; }
.pricing-product>summary:before { content:'›'; justify-self:center; color:#707983; font-size:22px; line-height:1; transition:transform .15s; }
.pricing-product[open]>summary:before { transform:rotate(90deg); }
.pricing-product[open]>summary { border-bottom:1px solid var(--line); }
.pricing-product-main { display:flex; align-items:center; gap:10px; min-width:0; }
.pricing-product-main img { width:40px; height:40px; border-radius:4px; object-fit:cover; flex:0 0 auto; }
.pricing-product-main>span { min-width:0; }
.pricing-product-main b { display:-webkit-box; overflow:hidden; overflow-wrap:anywhere; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; font-size:14px; font-weight:600; line-height:1.35; }
.pricing-product-main small,.pricing-product-status { display:block; margin-top:2px; color:#818b95; font-size:11.5px; font-weight:400; }
.pricing-product-status { flex:0 0 auto; margin-left:auto; }
.pricing-toolbar { display:flex; justify-content:flex-end; align-items:center; margin:6px 0; color:var(--muted); font-size:12px; }
.pricing-toolbar>div { display:flex; gap:6px; }
.pricing-text-action { padding:0; border:0; background:transparent; color:#276fcd; font:inherit; cursor:pointer; }
.pricing-toggle-all { width:22px; height:28px; padding:0; border:0; background:transparent; cursor:pointer; position:relative; }
.pricing-toggle-all:before { content:'›'; display:block; color:#707983; font-size:24px; line-height:1; transform:rotate(0deg); transition:transform .15s; }
.pricing-toggle-all.expanded:before { transform:rotate(90deg); }
.pricing-summary-stat { display:flex; flex-direction:column; min-width:0; }
.pricing-product>summary>.pricing-summary-stat { padding-left:6px; padding-right:6px; }
.pricing-summary-stat>small { display:none; color:var(--muted); font-size:10px; font-weight:400; }
.pricing-summary-stat>b { font-size:16px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pricing-summary-secondary>b { font-weight:400; }
.pricing-summary-stat>em { margin-top:2px; color:#7d8791; font-size:11.5px; font-style:normal; }
.pricing-summary-price>b,.price-after>strong { color:#d94b18; }
.pricing-summary-profit>em { display:flex; align-items:baseline; margin-top:1px; font-size:16px; line-height:1.1; font-weight:600; font-style:normal; white-space:nowrap; }
.pricing-summary-profit>em i { color:#818b95; font-style:normal; }
.pricing-summary-profit .positive-value { color:#2674d9; }
.pricing-summary-profit .negative-value { color:#e9551b; }
.pricing-summary-pair { gap:3px; }
.pricing-summary-pair>em { margin:0; color:#55606a; white-space:nowrap; }
.metric-detail>strong { display:block; margin-bottom:4px; color:#20272e; font-size:13px; line-height:1.25; font-weight:600; }
.price-after { display:flex; align-items:baseline; justify-content:space-between; gap:9px; min-height:22px; margin-top:1px; color:#7b858f; font-size:12px; }
.price-after>strong { font-size:18px; line-height:1.15; font-weight:600; white-space:nowrap; }
.cost-line { display:flex; justify-content:space-between; gap:8px; min-height:19px; color:#7b858f; font-size:12px; }
.cost-line:last-of-type { margin-bottom:2px; }
.cost-line b { color:inherit; font-weight:500; white-space:nowrap; }
.metric-list { padding-top:7px !important; }
.metric-row { display:flex; align-items:baseline; justify-content:space-between; gap:9px; min-height:19px; color:#7b858f; font-size:12px; line-height:1.35; }
.metric-row b { color:#26313a; font-size:14px; font-weight:500; white-space:nowrap; }
.fee-row>span { display:flex; align-items:baseline; gap:4px; white-space:nowrap; }
.fee-row>span>small { margin:0!important; color:#8a929a; font-size:10.5px; white-space:nowrap; }
.manual-cost .metric-row b { color:#26313a; }
.rg-row b { font-weight:600; }
.profit-row { display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-height:19px; color:#7b858f; font-size:12px; }
.profit-row>span { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.profit-rate strong { font-size:18px; line-height:1.05; font-weight:600; white-space:nowrap; }
.profit-amount strong { font-size:14px; line-height:1.2; font-weight:500; white-space:nowrap; }
.profit-row i { padding:1px 4px; border-radius:3px; background:#fff0e9; color:#c94a1b; font-size:9px; font-style:normal; }
.profit-metric.positive .profit-rate strong { color:#2674d9!important; }
.profit-metric.positive .profit-amount strong { color:#26313a!important; }
.profit-metric.negative .profit-row strong { color:#e9551b!important; }
.profit-delta { display:block; margin-top:2px; color:#2674d9; font-size:11.5px; white-space:nowrap; }
.profit-delta.negative { color:#e9551b; }
.pricing-actions { text-align:center; }
.pricing-edit-link { display:inline-block; padding:4px 6px; border:1px solid #d9dde1; border-radius:5px; color:#59636d; font-size:11px; font-weight:500; background:#fff; }
.pricing-edit-link:hover { border-color:#bfc5ca; background:#f7f8f9; }
.pricing-row-editing td { background:#fffaf7; }
.inline-money { display:flex; align-items:baseline; justify-content:flex-end; gap:2px; color:#59636d; font-size:13px; font-weight:500; white-space:nowrap; }
.inline-money input,.carton-inline input { min-height:0; height:24px; padding:0 3px; border:0; border-bottom:2px solid #df6a3d; border-radius:0; outline:0; background:transparent; color:#26313a; font-size:14px; font-weight:600; line-height:22px; box-shadow:none; }
.inline-money input,.inline-money.cny-input input { width:58px; text-align:right; }
.pricing-table input[type="number"] { -moz-appearance:textfield; appearance:textfield; }
.pricing-table input[type="number"]::-webkit-inner-spin-button,.pricing-table input[type="number"]::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.metric-row .inline-money input[name="category_fee_percent"] { width:48px; }
.inline-money input:focus,.carton-inline input:focus { border-bottom:2px solid #d94712; background:#fff; }
.carton-inline { display:inline-flex; align-items:baseline; gap:3px; margin:3px 6px 0 0; color:#7b838c; font-size:10px; white-space:nowrap; }
.carton-inline input,.carton-inline input[name="carton_quantity"] { width:44px; text-align:center; font-size:12px; font-weight:600; }
.carton-inline i { color:#a1a7ad; font-style:normal; }
.pricing-inline-actions { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.pricing-actions .pricing-inline-actions { align-items:center; }
.pricing-inline-actions button,.pricing-inline-actions a { min-height:0; padding:4px 7px; border:1px solid #ead1c7; border-radius:5px; background:#fff; color:#bd4318; font-size:11px; font-weight:500; line-height:1.25; white-space:nowrap; }
.pricing-inline-actions button[name="apply_selected"] { border-color:#dc4b17; background:#dc4b17; color:#fff; }
.pricing-apply-label { display:none; }
.pricing-product:has(.pricing-apply-check input:checked) .pricing-save-label { display:none; }
.pricing-product:has(.pricing-apply-check input:checked) .pricing-apply-label { display:inline; }
.pricing-inline-actions .pricing-hide-button { border-color:#505861; background:#505861; color:#fff; }
.pricing-inline-actions a { border-color:transparent; color:#707983; }
.pricing-sync-head { text-align:center; }
.pricing-select-all { display:flex; align-items:center; justify-content:center; }
.pricing-select-all input { width:14px; height:14px; margin:0; accent-color:#e84b12; cursor:pointer; }
.pricing-apply-check { display:flex; width:100%; align-items:center; justify-content:center; cursor:pointer; }
.pricing-apply-check input { width:14px; height:14px; margin:0; accent-color:#e84b12; }
.pricing-hidden-section { padding:0; border:0; }
.pricing-hidden-heading { display:flex; align-items:center; gap:8px; padding:15px 10px 12px; border-top:1px solid var(--line); color:#707983; font-size:13px; font-weight:600; list-style:none; }
.pricing-hidden-heading::-webkit-details-marker { display:none; }
.pricing-hidden-heading:before { content:'›'; font-size:19px; line-height:1; transition:transform .15s; }
.pricing-hidden-section[open]>.pricing-hidden-heading:before { transform:rotate(90deg); }
.pricing-product-ended { opacity:.82; }
.pricing-hidden-heading small { color:#9aa1a9; font-size:12px; font-weight:400; }
.sku-editor-backdrop { position:fixed; z-index:100; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; background:#1f293733; }
.sku-editor { width:min(760px,100%); max-height:calc(100vh - 48px); overflow:auto; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 18px 50px #1f29372b; }
.sku-editor-header { position:sticky; z-index:2; top:0; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:16px 20px; border-bottom:1px solid var(--line); background:#fff; }
.sku-editor-header small,.sku-editor-header span { display:block; color:var(--muted); font-size:11px; }
.sku-editor-header h2 { margin:2px 0; font-size:17px; line-height:1.35; }
.sku-editor-header>a { color:#7b838c; font-size:25px; line-height:1; }
.sku-editor-body { padding:0 20px 18px; }
.sku-editor-section { padding:18px 0; }
.sku-editor-section+.sku-editor-section { border-top:1px solid var(--line); }
.sku-editor-section h3 { margin:0 0 12px; font-size:15px; }
.sku-editor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; }
.sku-editor-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sku-editor-grid label { color:var(--muted); font-size:11px; }
.sku-editor-grid input { width:100%; height:36px; margin-top:4px; }
.sku-editor-preview { margin:10px 0 0; color:#697581; font-size:12px; }
.sku-editor-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.sku-editor-actions button { min-height:34px; }
.profit-product-ranking-table,.sku-profit-table { min-width:940px; }
.profit-ranking-table thead th { color:var(--muted); font-size:13px; }
.profit-ranking-table thead .rank-index { color:var(--muted); }
.profit-ranking-table .sort-link { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.profit-ranking-table .sort-link i { width:auto; height:auto; margin-left:0; border:0; font-size:8px; line-height:1; }
.profit-ranking-table tbody td { height:76px; }
.profit-ranking-table tbody .metric-cell { font-size:15px; }
.profit-ranking-table .sales-main-value { font-size:15px; font-weight:400; }
.profit-ranking-table .sales-main-value.table-primary-value { font-weight:600; }
.profit-ranking-table .product-column,.profit-ranking-table .product-name { width:28%; }
.profit-ranking-table th:nth-child(n+4),.profit-ranking-table td:nth-child(n+4) { width:12%; }
.profit-product-ranking-table .product-column,.profit-product-ranking-table .product-name,
.sku-profit-table .product-column,.sku-profit-table .product-name { width:33.5%; }
.profit-product-ranking-table th:nth-child(n+4),.profit-product-ranking-table td:nth-child(n+4),
.sku-profit-table th:nth-child(n+4),.sku-profit-table td:nth-child(n+4) { width:11.08%; }
.profit-share-fill { display:block; height:100%; border-radius:inherit; background:#2674d9; }
.profit-share-cell .share-track { background:#f5f6f7; }
.profit-ranking-table .profit-value { color:var(--ink); font-weight:400; }
.profit-main-line,.value-with-note { position:relative; display:block; width:max-content; max-width:100%; line-height:1.65; }
.profit-main-line > .estimate-warning,.profit-main-line > .coupon-warning,.value-with-note > .estimate-warning { position:absolute; left:100%; top:-3px; margin-left:1px; }
.profit-ranking-table .margin-value { color:var(--ink); font-weight:400; }
.profit-ranking-table .profit-value.negative,.profit-ranking-table .margin-value.negative { color:#e9551b; }
.profit-inline-margin { color:inherit; font-size:inherit; font-weight:inherit; }
.profit-expanded { display:none; }.profit-collapsed { display:block; }.profit-evidence[open] .profit-collapsed { display:none; }.profit-evidence[open] .profit-expanded { display:inline; }
.estimate-warning { display:inline-block; margin-left:3px; color:#77818e; background:none; border:0; font-size:11px; font-style:normal; font-weight:500; line-height:1; vertical-align:super; opacity:1; cursor:help; }
.fee-hint { position:fixed; z-index:1000; max-width:min(320px,calc(100vw - 16px)); padding:10px 12px; border-radius:6px; background:#242424; color:#fff; font-size:13px; line-height:1.6; box-sizing:border-box; white-space:pre-line; overflow-wrap:anywhere; }
.coupon-warning { display:inline-block; margin-left:3px; color:#7f9fc8; background:none; border:0; font-size:9px; font-style:normal; font-weight:400; line-height:1; vertical-align:super; opacity:.95; cursor:help; }
.profit-evidence { padding:0; border-bottom:0; }
.profit-evidence summary { display:inline-flex; align-items:center; gap:4px; cursor:pointer; white-space:nowrap; list-style:none; }
.profit-breakdown { display:grid; grid-template-columns:max-content max-content; gap:3px 5.25px; width:max-content; margin-right:13px; margin-top:6px; padding-top:6px; border-top:1px solid var(--line); color:var(--text); font-weight:400; }
.profit-breakdown span { color:var(--muted); font-size:11px; line-height:1.3; }
.profit-breakdown b { position:relative; text-align:right; font-size:11px; font-weight:500; line-height:1.3; white-space:nowrap; }
.profit-breakdown b > .estimate-warning { position:absolute; left:100%; top:-4px; margin-left:2px; }

@media (max-width:1100px) {
  .filter-fields { flex-wrap:wrap; }
  .filter-fields .product-search { max-width:none; }
  .overview-row { grid-template-columns:1fr; gap:0; }
  .overview-row .metric-strip { border-bottom:1px solid var(--line); }
  .overview-row .trend-section { padding-top:14px; }
  .product-overview { grid-template-columns:1fr; }
}
@media (max-width:900px) {
}
@media (max-width:700px) {
  .coupon-warning { font-size:10px; opacity:.92; }
  .sku-editor-backdrop { align-items:flex-end; padding:0; }
  .sku-editor { width:100%; max-height:88vh; border-radius:12px 12px 0 0; }
  .sku-editor-grid,.sku-editor-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mobile-account { display:none; }
  .mobile-account.account-menu { padding:0; border:0; }
  .mobile-account summary { padding:5px; }
  .mobile-account .account-popover { left:auto; right:0; top:48px; bottom:auto; }
  .dashboard-title { margin-right:0; align-items:center; }
  .page-dashboard header { min-height:42px; }
  .page-dashboard .dashboard-title { margin:10px 0 9px; }
  .dashboard-title h1 { font-size:21px; }
  .data-status { display:none; }
  .filter-shell,:is(.page-dashboard,.page-profit) .filter-shell { padding:8px 0; }
  .filter-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:#fff; padding:8px 2px; color:var(--muted); text-align:left; font-size:12px; }
  .filter-toggle span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .filter-toggle b { color:#b83c12; flex-shrink:0; }
  .filter-shell .filters { display:none; padding-top:10px; }
  .filter-shell.open .filters { display:block; }
  .filter-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; align-items:end; }
  .filter-fields label,.filter-fields .product-search { min-width:0; max-width:none; }
  .filter-fields .product-search { grid-column:1/-1; }
  .filter-fields input,.filter-fields select { width:100%; min-width:0; height:36px; min-height:36px; margin-top:4px; padding:6px 10px; }
  .filter-fields .date-field { display:flex; flex-direction:column; width:100%; min-width:0; overflow:hidden; }
  .filter-fields .date-field input[type="date"] { display:block; align-self:stretch; width:100%; min-width:0; max-width:100%; inline-size:100%; min-inline-size:0; max-inline-size:100%; -webkit-appearance:none; appearance:none; }
  .filter-fields .filter-submit { grid-column:2; justify-self:end; width:92px; min-height:36px; height:36px; padding:5px 14px; }
  .product-detail-filters .fulfillment-field { grid-column:1/-1; }
  .filter-shell .date-presets { overflow:auto; flex-wrap:nowrap; margin-top:7px; }
  .filter-shell .date-presets button { padding:5px 10px; }
  .metric-strip article { padding:11px 10px 10px 0; min-height:104px; }
  .metric-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric-strip article:nth-child(3) { border-left:0; border-top:1px solid var(--line); padding-left:0; }
  .metric-strip article + article { padding-left:12px; }
  .metric-strip strong { font-size:clamp(20px,5.8vw,25px); white-space:nowrap; }
  .change-badge { margin-top:2px; }
  .dashboard-section { padding:17px 0; }
  .sales-trend { height:128px; }
  .ranking-section>.section-title h2 { font-size:14px; font-weight:500; line-height:1.5; letter-spacing:-.15px; }
  .ranking-section .table-scroll { overscroll-behavior-x:contain; scrollbar-width:thin; }
  .ranking-table { min-width:850px; }
  .ranking-table .rank-index { position:sticky; left:0; z-index:2; width:28px; min-width:28px; max-width:28px; padding-left:0; padding-right:0; font-size:12px; background:#fff; }
  .ranking-table thead .rank-index { font-size:0; }
  .ranking-table thead .rank-index::after { content:'#'; font-size:11px; }
  .ranking-table .mobile-thumb-column,.ranking-table .mobile-thumb-cell { display:table-cell; position:sticky; left:28px; z-index:2; width:56px; min-width:56px; max-width:56px; padding:8px 6px; background:#fff; text-align:center; }
  .ranking-table thead .rank-index,.ranking-table thead .mobile-thumb-column { z-index:4; background:#fafafa; }
  .ranking-table .mobile-thumb-cell a { display:block; width:44px; height:44px; }
  .ranking-table .product-column,.ranking-table .product-name { width:190px; min-width:190px; max-width:190px; padding-left:10px; padding-right:10px; box-shadow:none; }
  .ranking-table .desktop-product-thumb { display:none; }
  .ranking-table th:not(.rank-index):not(.mobile-thumb-column):not(.product-column),.ranking-table td:not(.rank-index):not(.mobile-thumb-cell):not(.product-name) { min-width:112px; }
  .ranking-table .product-cell { gap:10px; min-width:0; }
  .ranking-table .product-cell>div { min-width:0; }
  .ranking-table .product-cell b { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; line-height:1.45; }
  .ranking-section .pager { justify-content:center; }
  .product-detail-title { margin-right:0; align-items:flex-start; flex-direction:column; gap:9px; }
  .product-detail-title .product-hero { width:56px; height:56px; flex-basis:56px; }
  .product-title-copy h1 { font-size:18px; line-height:1.4; }
  .sku-table .product-column,.sku-table .product-name { width:210px; min-width:210px; max-width:210px; }
  .pricing-groups { overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
  .pricing-product { width:1180px; min-width:1180px; }
  .pricing-hidden-section,.pricing-hidden-list { width:1180px; min-width:1180px; }
  .pricing-product>.table-scroll { overflow:visible; }
  .pricing-table { min-width:1180px; }
  .pricing-table .pricing-col-sku { width:23%; }
  .pricing-table .pricing-col-price,.pricing-table .pricing-col-fees,.pricing-table .pricing-col-china,.pricing-table .pricing-col-korea,.pricing-table .pricing-col-profit { width:13.6%; }
  .pricing-table .pricing-col-actions { width:9%; }
  .pricing-group-head,.pricing-product>summary { min-width:1180px; grid-template-columns:2% 21% repeat(5,13.6%) 9%; }
  .ranking-table.pricing-table .product-name { width:auto; min-width:0; max-width:none; padding:7px 14px 7px 38px; }
  .pricing-table td { height:auto; padding:7px 18px; }
  .pricing-table td.pricing-actions { padding-left:4px; padding-right:4px; }
  .pricing-table td:not(.product-name) { white-space:nowrap; }
  .pricing-table .metric-row>span:first-child,.pricing-table .cost-line>span:first-child,.price-after>span:first-child { white-space:nowrap; }
  .pricing-table .metric-row { gap:6px; }
  .pricing-product-main>span { min-width:0; }
  .pricing-product-main b { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; line-height:1.35; }
  .pricing-sku-name b { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
  .carton-inline { gap:4px; }
  .carton-inline input { width:44px; }
  .carton-inline input[name="carton_quantity"] { width:60px; }
  .pricing-inline-actions { align-items:center; }
  .wing-settlement-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wing-settlement-summary>div:nth-child(3) { border-left:0; }
}
@media (max-width:380px) {
  .metric-strip { grid-template-columns:1fr; }
  .metric-strip article + article { border-left:0; border-top:1px solid var(--line); padding-left:0; }
}

/* Keep every primary workspace page on the same compact header and section rhythm. */
.page-profit .dashboard-title,
.page-profit-details .dashboard-title,
.page-ads .auxiliary-title,
.page-imports .auxiliary-title,
.page-settings .auxiliary-title { margin:12px 0 10px; }
.page-note { margin:0 0 12px; color:var(--muted); font-size:12px; line-height:1.65; }
.compact-panel { margin:0; padding:18px 0; border:0; border-top:1px solid var(--line); border-radius:0; }
.compact-panel + .compact-panel { margin-top:0; }
.compact-panel > h2,
.compact-panel .section-title h2,
.compact-panel .section-title { margin-bottom:12px; }
.compact-panel table { min-width:640px; }
.compact-panel th,.compact-panel td { padding:10px 12px; }
.compact-panel td { height:58px; vertical-align:middle; }
.compact-panel .empty { height:auto; padding:40px 20px; }
.section-action { margin:0 0 12px; }
.page-imports .edit-form { gap:14px; }
.page-imports .template-links { margin-top:14px; }
.page-settings .settings-form { margin:0 0 12px; }
.page-settings .settings-import-form { margin:0; }
.page-settings .settings-import-form .import-file { flex:1 1 280px; }
.page-settings .template-links { margin-top:10px; color:var(--muted); font-size:12px; }
.page-settings .template-links a { padding:5px 8px; }
.recent-imports { margin-top:10px; padding:0; border:0; }
.recent-imports > summary { width:max-content; color:var(--muted); font-size:12px; cursor:pointer; }
.recent-imports .table-scroll { margin-top:8px; }
.settings-status-table b { font-weight:600; }
.shop-management>.section-title { align-items:center; }
.add-shop { position:relative; }
.add-shop>summary { display:flex; align-items:center; justify-content:center; min-width:92px; min-height:34px; padding:6px 12px; border:1px solid #d84916; border-radius:7px; background:#fff; color:#c94718; font-size:12.5px; font-weight:600; cursor:pointer; list-style:none; }
.add-shop>summary::-webkit-details-marker { display:none; }
.add-shop[open]>summary { background:#fff7f3; }
.add-shop>form { position:absolute; z-index:20; right:0; bottom:41px; width:340px; max-height:calc(100vh - 90px); overflow:auto; display:grid; gap:10px; padding:16px; border:1px solid #e1e4e7; border-radius:10px; background:#fff; box-shadow:0 14px 36px #1f293724; }
.add-shop label { display:grid; gap:4px; color:var(--muted); font-size:11.5px; }
.add-shop input { width:100%; height:36px; }
.add-shop .read-only-confirm { grid-template-columns:16px minmax(0,1fr); align-items:start; gap:8px; color:#5f666d; line-height:1.45; }
.add-shop .read-only-confirm input { width:15px; height:15px; margin-top:1px; accent-color:#d84916; }
.add-shop p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.add-shop button { width:100%; }
.shop-name-line { display:flex; align-items:center; gap:8px; }
.edit-shop { display:inline-block; }
.edit-shop>summary { min-width:0; min-height:28px; padding:3px 8px; font-size:11px; }
.edit-shop>form { position:fixed; top:50%; right:auto; bottom:auto; left:50%; transform:translate(-50%,-50%); }
.pending-cost-entry { display:flex; align-items:center; gap:10px; min-height:48px; margin:0 0 12px; padding:10px 14px; border:1px solid #f0d7cd; border-radius:8px; background:#fff8f5; color:var(--text); }
.pending-cost-entry span { font-weight:600; }.pending-cost-entry b { min-width:24px; padding:2px 7px; border-radius:10px; background:#e95420; color:#fff; text-align:center; font-size:12px; }.pending-cost-entry i { margin-left:auto; color:#a06a57; font-size:20px; font-style:normal; }
.pending-cost-total { color:var(--muted); font-size:12px; }
.pending-cost-group { margin:0 0 12px; padding:15px 17px; }
.pending-cost-head,.pending-cost-title,.pending-cost-row { display:flex; align-items:center; gap:11px; }
.pending-cost-head { justify-content:space-between; }.pending-cost-title { min-width:0; }.pending-cost-title>div { min-width:0; }.pending-cost-title b,.pending-cost-title small { display:block; }.pending-cost-title b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }.pending-cost-title small,.pending-cost-recommend small,.pending-cost-row small { margin-top:3px; color:var(--muted); font-size:11px; }
.cost-safe { color:#26704a; background:#edf7f1; }
.pending-cost-recommend { display:grid; grid-template-columns:105px minmax(0,1fr); gap:3px 10px; margin:13px 0 8px; padding:10px 12px; border-radius:7px; background:#f7f8f9; }.pending-cost-recommend span { color:var(--muted); font-size:12px; }.pending-cost-recommend b { font-size:13px; }.pending-cost-recommend small { grid-column:2; }
.pending-option-list { margin:6px 0 10px; color:var(--muted); font-size:12px; }.pending-option-list summary { width:max-content; cursor:pointer; }.pending-option-list>div { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); }.pending-option-list small { flex-shrink:0; }
.pending-cost-action { display:flex; justify-content:flex-end; }.pending-cost-action button { min-width:100px; }
.pending-cost-warning { margin:12px 0 9px; color:#7b665e; font-size:12px; }
.pending-cost-options { border-top:1px solid var(--line); }.pending-cost-row { display:grid; grid-template-columns:minmax(180px,1fr) minmax(260px,1.3fr) auto; padding:10px 0; border-bottom:1px solid var(--line); }.pending-cost-row>div { min-width:0; }.pending-cost-row b,.pending-cost-row small { display:block; }.pending-cost-row b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.pending-cost-row select { width:100%; min-width:0; height:34px; }.pending-cost-row button { min-height:34px; padding:5px 12px; }
.pending-import-link { display:inline-flex; margin-top:3px; }.pending-cost-empty { padding:28px; text-align:center; color:var(--muted); }
.page-ads .auxiliary-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:10px 0 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.page-ads .auxiliary-metrics article { min-height:90px; padding:13px 16px; border:0; border-left:1px solid var(--line); border-radius:0; }
.page-ads .auxiliary-metrics article:first-child { padding-left:0; border-left:0; }
.page-ads .auxiliary-metrics article > span { min-height:0; font-size:12px; }
.page-ads .auxiliary-metrics strong { margin:6px 0 3px; font-size:21px; font-weight:600; }

@media (max-width:700px) {
  .page-profit .dashboard-title,
  .page-profit-details .dashboard-title,
  .page-ads .auxiliary-title,
  .page-imports .auxiliary-title,
  .page-settings .auxiliary-title { margin:10px 0 9px; }
  .page-note { margin-bottom:9px; font-size:11px; }
  .compact-panel { padding:17px 0; }
  .compact-panel > h2,
  .compact-panel .section-title h2,
  .compact-panel table { min-width:600px; }
  .compact-panel th,.compact-panel td { padding:9px 10px; }
  .page-ads .auxiliary-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-ads .auxiliary-metrics article { min-height:84px; padding:11px 10px; }
  .page-ads .auxiliary-metrics article:nth-child(3) { grid-column:1/-1; min-height:72px; padding-left:0; border-top:1px solid var(--line); border-left:0; }
  .page-imports .edit-form { max-width:none; gap:12px; }
  .pending-cost-group { padding:13px 12px; }.pending-cost-head { align-items:flex-start; }.pending-cost-title b { white-space:normal; line-height:1.4; }.pending-cost-recommend { grid-template-columns:1fr; }.pending-cost-recommend small { grid-column:auto; }.pending-cost-action button { width:100%; }.pending-cost-row { grid-template-columns:1fr auto; gap:7px 8px; }.pending-cost-row>div { grid-column:1/-1; }.pending-cost-row select { min-width:0; }.pending-cost-row button { width:58px; }
  .add-shop>form { position:fixed; top:74px; right:12px; bottom:auto; left:12px; width:auto; }
  .edit-shop>form { transform:none; }
}
.cost-editor { margin-top:7px; }
.rate-editor { margin:8px 0 12px; padding:10px 12px; border:1px solid var(--line); border-radius:7px; }
.rate-editor summary { cursor:pointer; color:#c94718; }
.rate-editor form { display:grid; grid-template-columns:repeat(5,minmax(110px,1fr)) auto; gap:8px; align-items:end; margin-top:10px; }
.rate-editor label { color:var(--muted); font-size:11px; }.rate-editor input { width:100%; height:34px; margin-top:3px; }
@media(max-width:700px){.rate-editor form{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Pricing workbench: compact controls and aligned comparison columns. */
.pricing-page-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:12px 0 10px; }
.page-dashboard .ranking-table th { font-size:13px; }
.pricing-title-line { display:flex; align-items:baseline; gap:12px; }
.pricing-title-line h1 { margin:0; font-size:21px; font-weight:600; }
.pricing-title-line>span { color:var(--muted); font-size:12px; white-space:nowrap; }
.pricing-head-actions { display:flex; align-items:center; gap:8px; }
.pricing-shop-filter label { display:flex; width:142px; height:36px; align-items:center; gap:7px; padding:0 8px 0 10px; border:1px solid #d9dde1; border-radius:7px; background:#fff; color:#68737d; font-size:12.5px; font-weight:500; }
.pricing-shop-filter select { flex:1; width:78px; min-width:0; height:32px; padding:3px 20px 3px 2px; border:0; background-color:transparent; font-size:12.5px; font-weight:500; }
.pricing-shop-filter select:focus { outline:0; box-shadow:none; }
.rate-editor { position:relative; margin:0; padding:0; border:0; border-radius:0; }
.rate-editor>summary { display:flex; width:142px; height:36px; align-items:center; justify-content:center; padding:5px 12px; border:1px solid #d84916; border-radius:7px; background:#d84916; color:#fff; font-size:12.5px; font-weight:600; list-style:none; }
.rate-editor[open]>summary,.rate-editor>summary:hover { background:#c44316; border-color:#c44316; }
.rate-editor>summary::-webkit-details-marker { display:none; }
.rate-editor>form { position:absolute; z-index:20; top:42px; right:0; width:350px; max-height:calc(100vh - 60px); overflow:auto; display:grid; grid-template-columns:1fr; gap:10px; align-items:stretch; margin:0; padding:18px; border:1px solid #e2e5e8; border-radius:10px; background:#fff; box-shadow:0 14px 36px #1f293724; }
.rate-editor label { display:grid; grid-template-columns:minmax(0,1fr) 148px; align-items:center; gap:16px; min-height:36px; color:#4f5a64; font-size:13px; font-weight:500; }
.rate-editor input { width:148px; height:36px; margin:0; padding:6px 9px; border-radius:6px; color:#26313a; font-size:14px; font-weight:500; text-align:right; }
.rate-editor button { display:block; width:100%; height:38px; min-height:38px; justify-self:stretch; margin-top:3px; padding:6px 16px; font-size:13px; font-weight:600; line-height:1; white-space:nowrap; }
.rate-editor-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:3px; }
.rate-editor-actions button { margin:0; }
.rate-editor-section { padding-top:8px; border-top:1px solid var(--line); color:#313b44; font-size:13px; font-weight:600; }
.parameter-history-open { border:1px solid #d9dde1; border-radius:7px; background:#fff; color:#59636d; }
.parameter-history-open:hover { background:#f7f8f9; }
.parameter-history-dialog { width:min(920px,calc(100vw - 32px)); max-width:none; max-height:min(78vh,720px); padding:0; overflow:hidden; border:1px solid #dfe3e6; border-radius:12px; background:#fff; color:var(--ink); box-shadow:0 22px 64px #1f293738; }
.parameter-history-dialog::backdrop { background:#20252a42; }
.parameter-history-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px 13px; border-bottom:1px solid var(--line); }
.parameter-history-head h2 { margin:0; font-size:17px; }
.parameter-history-head span { display:block; margin-top:2px; color:var(--muted); font-size:11.5px; }
.parameter-history-close { width:32px; height:32px; padding:0; border:0; border-radius:6px; background:#f5f6f7; color:#68737d; font-size:22px; line-height:1; }
.parameter-history-scroll { max-height:calc(min(78vh,720px) - 66px); overflow:auto; }
.parameter-history-dialog table { min-width:800px; font-size:13px; }
.parameter-history-dialog th { position:sticky; z-index:1; top:0; padding:9px 12px; font-size:12px; }
.parameter-history-dialog td { height:50px; padding:8px 12px; vertical-align:middle; white-space:nowrap; }
.parameter-history-dialog td:first-child b,.parameter-history-dialog td:first-child small { display:block; }
.parameter-history-dialog td:first-child b { font-size:13px; font-weight:600; }
.parameter-history-dialog td:first-child small { margin-top:1px; color:var(--muted); font-size:10.5px; }
.parameter-history-edit { min-height:28px; padding:4px 8px; border:1px solid #d9dde1; border-radius:5px; background:#fff; color:#59636d; font-size:11px; }
.pricing-sort-link { color:inherit; font:inherit; white-space:nowrap; }
.pricing-sort-link i { margin-left:3px; color:#9aa2aa; font-size:9px; font-style:normal; }
.pricing-sort-link.active i { color:#d94b18; }
.pricing-group-head>span:nth-of-type(n+2):nth-of-type(-n+6) { text-align:right; }
.pricing-product>summary>.pricing-summary-stat { align-items:flex-end; text-align:right; }
.pricing-table th,.pricing-table td { padding-left:10px; padding-right:10px; }
.pricing-table td.metric-detail { padding-left:18px; padding-right:18px; }
.metric-row,.price-after,.profit-row { gap:6px; }
.metric-row>span:first-child,.price-after>span:first-child,.profit-row>span:first-child { color:#858e97; font-weight:400; }
.metric-row b,.profit-amount strong { font-weight:400; }
.rg-row b { font-weight:600; }
.profit-rate { margin-top:4px; }
.missing-dash { color:#e9551b!important; font-weight:500!important; }
@media(max-width:700px){
  .pricing-page-head { align-items:flex-start; gap:10px; }
  .pricing-title-line { flex-direction:column; gap:2px; }
  .pricing-head-actions { flex-wrap:wrap; justify-content:flex-end; }
  .pricing-shop-filter label { width:124px; }
  .pricing-shop-filter label>span { display:none; }
  .rate-editor>summary { width:124px; }
  .rate-editor>form { position:fixed; top:64px; right:12px; width:min(350px,calc(100vw - 24px)); padding:16px; }
  .parameter-history-dialog { width:calc(100vw - 20px); max-height:82vh; }
  .parameter-history-scroll { max-height:calc(82vh - 66px); }
}

/* Balance desktop SKU metrics without moving their row borders. */
@media (min-width: 761px) {
  .sku-profit-table th:nth-child(4) > .sort-link,
  .sku-profit-table td:nth-child(4) > .sales-main-value { position:relative; left:18px; }
  .sku-profit-table th:nth-child(8) > .sort-link,
  .sku-profit-table td:nth-child(8) > .value-with-note { position:relative; left:-18px; }
}

/* Sales/profit product detail share identical filter and summary geometry. */

/* Keep product headings on the same grid, including long names and narrow screens. */
.page-product-detail .product-heading-main{width:100%}
.page-product-detail .product-title-copy{flex:1}
.page-product-detail .product-title-copy p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.profit-overview-row .profit-ad-summary{font-size:12px;color:var(--muted);min-width:0}
.profit-ad-line{display:flex;align-items:center;justify-content:space-between;gap:4px;white-space:nowrap;line-height:20px}
.profit-ad-line>span:first-child{min-width:0;display:flex;align-items:center;gap:3px}
.profit-ad-line b{font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.profit-ad-ratio{flex-shrink:0;color:var(--accent);font-variant-numeric:tabular-nums}
.profit-ad-summary .profit-ad-track{display:block;height:4px;margin-top:4px;background:#f0f0f0;border-radius:2px;overflow:hidden}
.profit-ad-track>span{display:block;height:100%;background:var(--accent);border-radius:2px}


/* Product and option lists share the same section heading geometry. */
:is(.page-dashboard,.page-profit) .ranking-section{padding-top:18px}
:is(.page-dashboard,.page-profit) .ranking-section>.section-title{min-height:30px;margin-bottom:12px}

/* One compact price annotation component for every product chart. */
.price-chart-marker{cursor:pointer;outline:none}
.price-chart-marker:focus rect{stroke:#c46829;stroke-width:2}
.price-history-hint{position:fixed;z-index:1000;width:max-content;min-width:152px;max-width:min(260px,calc(100vw - 16px));max-height:50vh;overflow:auto;padding:2px 9px;background:#fff;border:1px solid #eaded2;border-radius:8px;box-shadow:0 3px 14px #29313b1a;color:var(--ink)}
.price-history-day{padding:6px 0;border-bottom:1px solid var(--line)}
.price-history-day:last-child{border-bottom:0}
.price-history-day>small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-bottom:3px}
.price-history-group+.price-history-group{margin-top:5px}
.price-history-group>b{display:flex;align-items:baseline;white-space:nowrap;font-size:13px;line-height:1.4;font-weight:500;font-variant-numeric:tabular-nums}
.price-history-count{display:inline-flex;align-items:baseline;min-width:0;margin-left:4px;color:var(--muted);font-size:11px;font-weight:400;white-space:nowrap}
.price-history-name{display:inline-block;min-width:0;max-width:75px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.price-history-more{margin-top:4px;background:transparent;color:#c5682a;border:0;padding:6px 0;font-size:12px}

.pricing-update-time .pricing-refresh-form { flex-wrap:wrap;gap:8px;font-size:12px; }
.pricing-update-time button { font-size:12px;padding:0;border:0;background:none; }

.pricing-sku-copy .carton-inline input:not([name="carton_quantity"]) { width:36px; }

.pricing-sku-copy .carton-inline input[name="carton_cbm"] { width:68px; }

/* Shared mobile page titles: opaque viewport bar, including the iPhone safe area. */
@media (max-width:700px) {
  body[class] > main:has(> .dashboard-title > h1), body[class] > main:has(> .ad-heading h1), body[class] > main:has(> .pricing-page-head) {
    padding-top:calc(58px + env(safe-area-inset-top, 0px));
  }
  body[class] > main > .dashboard-title:has(> h1), body[class] > main > .ad-heading h1, body[class] > main > .pricing-page-head h1 {
    position:fixed; top:0; left:0; right:0; z-index:109; isolation:isolate;
    box-sizing:border-box; height:calc(49px + env(safe-area-inset-top, 0px));
    margin:0; padding:calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background:#fff; border-bottom:1px solid var(--line);
    filter:none; -webkit-backdrop-filter:none; backdrop-filter:none;
  }
  body[class] > main > .dashboard-title:has(> h1)::before, body[class] > main > .ad-heading h1::before, body[class] > main > .pricing-page-head h1::before {
    content:""; position:absolute; inset:-10px 0 0; background:#fff;
    z-index:-1; pointer-events:none;
  }
}

@media (max-width:700px) {
  body[class] > main > .ad-heading h1, body[class] > main > .pricing-page-head h1 { font-size:21px; line-height:1.35; }
}
