.goods-page { --goods-primary:#0f7868; --goods-secondary:#36a893; --goods-muted:#4e5969; --goods-paper:#fff; --goods-line:#e5e6eb; --goods-soft:#e9f6f2; background:#f7f8fa; color:#1d2129; letter-spacing:0; }
.goods-page button,.goods-page input { font:inherit; color:inherit; }
.goods-page button { -webkit-tap-highlight-color:transparent; }
.goods-page :focus-visible { outline:2px solid var(--goods-primary); outline-offset:3px; }
.goods-page ::selection { background:#b2dfd4; }
.goods-page svg,.bottom-nav svg { flex-shrink:0; }
.goods-selector,.goods-section { padding:20px 16px; background:var(--goods-paper); }
.goods-section { margin-top:8px; }
.goods-section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:14px; }
.goods-section-head h1,.goods-section-head h2 { margin:0; font-size:18px; font-weight:600; }
.goods-section-head h2 { font-size:16px; }
.goods-text-button { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 0; border:0; background:none; color:var(--goods-primary)!important; font-size:12px!important; }
.goods-icon-button { display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:6px; background:none; color:var(--goods-muted); }
.goods-product-picker { display:flex; gap:8px; padding-bottom:4px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#b2dfd4 transparent; }
.goods-product-picker button { flex:0 0 128px; min-height:64px; padding:8px 12px; border:1px solid var(--goods-line); border-radius:8px; background:white; text-align:left; }
.goods-product-picker strong { display:block; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.goods-product-picker small { display:block; margin-top:5px; color:var(--goods-muted); font-size:10px; }
.goods-product-picker [aria-pressed="true"] { background:var(--goods-soft); border-color:var(--goods-primary); color:var(--goods-primary); }
.goods-muted { margin:8px 0 0; color:var(--goods-muted); font-size:12px; }
.goods-models,.goods-segments { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:3px; border-radius:6px; background:#f0f2f4; }
.goods-models { margin-top:16px; }
.goods-models button,.goods-segments button { min-height:36px; padding:5px 8px; border:0; border-radius:4px; background:transparent; color:var(--goods-muted); font-size:12px; }
.goods-models [aria-pressed="true"],.goods-segments [aria-pressed="true"] { background:white; color:var(--goods-primary); font-weight:600; box-shadow:0 1px 3px #1d212910; }
.goods-segments { grid-template-columns:repeat(2,minmax(0,1fr)); flex-shrink:0; }
.goods-segments button:disabled { opacity:.5; cursor:default; }
.goods-perspectives { margin-bottom:14px; }
.goods-summary { padding:20px 16px 16px; background:var(--goods-primary); color:white; }
.goods-summary-title { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:14px; }
.goods-summary-title small { color:#d4efe7; font-size:11px; }
.goods-summary-numbers { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:16px; margin-top:20px; }
.goods-summary-numbers > div { min-width:0; }
.goods-summary-numbers small { display:block; font-size:12px; color:#d4efe7; }
.goods-summary-numbers strong { display:block; margin-top:6px; font-size:25px; line-height:1.45; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.goods-summary-numbers .goods-quantity { font-size:17px; }
.goods-summary-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:18px; padding-top:12px; border-top:1px solid #ffffff30; color:#d4efe7; font-size:10px; }
.goods-quality { display:flex; align-items:flex-start; gap:8px; padding:12px 16px; background:#fff6e8; color:#775323; font-size:12px; line-height:1.7; }
.goods-quality svg { margin-top:3px; }
.goods-search { display:flex; align-items:center; gap:8px; min-height:40px; padding:0 12px; border:1px solid var(--goods-line); border-radius:6px; background:#f7f8fa; color:var(--goods-muted); }
.goods-search:focus-within { border-color:var(--goods-primary); }
.goods-search input { width:100%; min-width:0; height:40px; border:0; outline:0; background:none; font-size:12px; caret-color:var(--goods-primary); }
.goods-search input::placeholder { color:var(--goods-muted); }
.goods-rankings { margin-top:16px; display:grid; gap:8px; }
.goods-rankings h3 { margin:16px 0 4px; color:var(--goods-muted); font-size:12px; font-weight:600; }
.goods-rankings h3:first-child { margin-top:0; }
.goods-rank-card { display:grid; grid-template-columns:30px minmax(0,1fr) 16px; align-items:center; gap:10px; width:100%; min-height:100px; padding:14px 12px; border:0; border-radius:8px; background:#f7f8fa; text-align:left; transition:background .15s ease; }
.goods-rank-card:not(:disabled):hover { background:#edf3f1; }
.goods-rank-card:disabled { cursor:default; opacity:1; }
.goods-rank-card > svg { color:var(--goods-muted); }
.goods-medal { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#e5e8ec; color:var(--goods-muted); font-weight:600; }
.goods-medal-1 { background:#eab644; color:#382b0a; }
.goods-medal-2 { background:#c1c9d3; color:#354152; }
.goods-medal-3 { background:#c68b61; color:#352519; }
.goods-rank-main { min-width:0; }
.goods-rank-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:6px 8px; }
.goods-rank-head strong { min-width:0; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.goods-rank-head b { margin-left:auto; font-size:17px; line-height:1.4; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.goods-rank-detail { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin-top:6px; color:var(--goods-muted); font-size:11px; line-height:1.5; }
.goods-rank-detail > span { margin-left:auto; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.goods-bar,.goods-bar > span { display:block; height:6px; border-radius:6px; }
.goods-bar { overflow:hidden; margin-top:12px; background:#e2e8e5; }
.goods-bar > span { background:var(--goods-secondary); }
.goods-empty { padding:40px 16px; background:white; color:var(--goods-muted); text-align:center; font-size:13px; line-height:1.7; }
.goods-empty strong { color:#1d2129; }
.goods-empty p { margin:8px 0; }
.goods-skeleton { display:grid; gap:12px; padding:20px 16px; color:var(--goods-muted); font-size:12px; }
.goods-skeleton div { min-height:100px; border-radius:8px; background:#e8eceb; }
.goods-product-result { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; padding:14px 0; border:0; border-bottom:1px solid var(--goods-line); background:white; text-align:left; }
.goods-product-result strong,.goods-product-result small { display:block; overflow-wrap:anywhere; }
.goods-product-result strong { font-size:13px; }
.goods-product-result small { margin-top:6px; color:var(--goods-muted); font-size:11px; }
.goods-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:16px; font-size:12px; }
.goods-pagination button { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--goods-line); border-radius:6px; background:white; }
.goods-pagination button:disabled { opacity:.4; }
.workbench .bottom-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
.workbench .bottom-nav button > svg { width:20px; height:20px; margin-bottom:4px; }
.workbench.goods-active { --primary:#0f7868; --primary-soft:#e9f6f2; }
@media(min-width:768px) {
  .goods-selector,.goods-section,.goods-summary { padding:24px 32px; }
  .goods-summary-numbers { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .goods-rank-card { min-height:110px; padding:16px; }
  .goods-summary-numbers strong { font-size:28px; }
}
@media(prefers-reduced-motion:reduce) { .goods-rank-card { transition:none; } }
.goods-admin { --blue:#0f7868; }
.goods-admin .page-head h1 { font-size:22px; }
.goods-admin-search { display:grid; grid-template-columns:160px 160px minmax(160px,1fr) auto; align-items:end; gap:12px; margin-bottom:20px; }
.goods-manual { display:flex; align-items:end; gap:12px; margin:0 0 16px; }
.goods-manual label { flex:1; max-width:360px; min-width:0; }
.goods-admin-rows { background:#fff; }
.goods-admin-row { display:flex; align-items:center; gap:16px; padding:16px; border-bottom:1px solid #e5e6eb; }
.goods-admin-row:nth-child(even) { background:#f7f8fa; }
.goods-admin-product { flex:1; min-width:0; }
.goods-admin-product strong,.goods-admin-product small { display:block; overflow-wrap:anywhere; }
.goods-admin-product strong { font-size:14px; }
.goods-admin-product small { margin-top:6px; color:#4e5969; font-size:12px; }
.goods-admin-actions { display:flex; flex-shrink:0; gap:6px; }
.goods-admin .goods-enable { display:flex; flex-shrink:0; align-items:center; gap:6px; }
.goods-enable input { width:18px; min-height:18px; margin:0; accent-color:#0f7868; }
.goods-admin .button svg { width:16px; height:16px; }
.goods-admin .icon-button:disabled { opacity:.35; cursor:default; }
@media(max-width:1100px) { .goods-admin-search { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) {
  .goods-admin-row { flex-wrap:wrap; gap:12px; padding:16px 12px; }
  .goods-admin-product { flex-basis:calc(100% - 80px); }
  .goods-admin-actions { margin-left:auto; }
  .goods-manual { gap:8px; }
  .goods-manual .button { padding:0 10px; }
}
