.item-market-compare-modes { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px; }
.item-market-compare-modes button,.item-market-compare-categories button { border:1px solid #dbe3df; background:#fff; color:#43574c; border-radius:8px; padding:8px 12px; font:inherit; cursor:pointer; }
.item-market-compare-modes button[aria-pressed="true"],.item-market-compare-categories button[aria-pressed="true"] { color:#fff; background:#16724c; border-color:#16724c; }
.item-market-compare-panel { min-width:0; }
.item-market-compare-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.item-market-compare-controls label { display:grid; gap:6px; flex:1 1 220px; color:#40534a; font-size:14px; min-width:0; }
.item-market-compare-controls input,.item-market-compare-controls select { width:100%; min-width:0; max-width:100%; font:inherit; border:1px solid #ccd9d0; border-radius:8px; background:#fff; padding:10px; min-height:42px; }
.item-market-compare-servers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.item-market-compare-server { display:grid; min-width:0; gap:7px; }
.item-market-compare-server strong { font-size:14px; }
.item-market-compare-categories { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.item-market-compare-categories button { font-size:13px; padding:6px 9px; }
.item-market-compare-note { color:#697c70; font-size:13px; line-height:1.7; margin:12px 0; }
.item-market-compare-state { padding:25px 12px; text-align:center; background:#f4f8f5; border-radius:10px; }
.item-market-compare-results { position:relative; --compare-columns:2; }
#item-market-view .item-market-compare-results { --compare-columns:1; }
@container market-results (min-width:560px) {
  #item-market-view .item-market-compare-results { --compare-columns:2; }
}
.item-market-compare-card { position:absolute; box-sizing:border-box; min-width:0; border:1px solid #dce5df; border-radius:12px; overflow:hidden; background:white; }
.item-market-compare-card h3 { margin:0; background:#f0f6f2; padding:9px 10px; font-size:16px; color:#23563c; }
.item-market-compare-scroll { box-sizing:border-box; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; }
.item-market-compare-scroll:focus-visible { outline:2px solid #16724c; outline-offset:-2px; }
.item-market-compare-table { width:100%; border-collapse:collapse; table-layout:auto; font-size:12px; line-height:1.3; }
.item-market-compare-name-column { width:28%; }
.item-market-compare-price-column { width:18%; }
.item-market-compare-table th,.item-market-compare-table td { box-sizing:border-box; padding:5px 4px; border-bottom:1px solid #e6ece8; vertical-align:middle; }
.item-market-compare-table-head { background:#f8fbf9; color:#53695a; font-size:11px; }
.item-market-compare-table-head th { font-weight:600; text-align:center; overflow-wrap:anywhere; }
.item-market-compare-table-head tr:first-child th { border-bottom-color:#dce8df; }
.item-market-compare-table-head tr:first-child th:first-child { text-align:left; }
.item-market-compare-product { height:34px; }
.item-market-compare-name { background:#f3f8f4; color:#24563a; font-weight:600; text-align:left; overflow-wrap:anywhere; }
.item-market-compare-price { text-align:right; color:#304739; }
.item-market-compare-price strong { white-space:nowrap; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.item-market-compare-unit { white-space:nowrap; font-size:11px; font-weight:400; color:#617568; }
.item-market-compare-higher { background:#fff3df; color:#8a3b12; }
.item-market-compare-higher .item-market-compare-unit { color:inherit; }
.item-market-compare-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.item-market-compare-rank-row small { display:block; font-size:11px; line-height:1.6; color:#738276; margin-top:4px; }
.item-market-compare-warning { display:block; font-size:11px; color:#946127; margin-top:3px; line-height:1.4; font-weight:400; }
.item-market-compare-rank-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:12px; border-top:1px solid #e6ece8; font-size:14px; }
@media(max-width:1100px) { .item-market-compare-results { --compare-columns:2; } }
@media(max-width:760px) { .item-market-compare-results { --compare-columns:1; } }
@media(max-width:480px) {
 .item-market-compare-servers { grid-template-columns:1fr; }
 .item-market-compare-modes { gap:5px; }
 .item-market-compare-modes button { padding:8px; font-size:13px; flex:1 1 auto; }
}
.item-market-compare-dialog {
 width:min(760px,calc(100vw - 20px)); max-width:none; max-height:calc(100dvh - 20px);
 margin:auto; padding:0; border:1px solid #cfdfd3; border-radius:16px; background:#fff; color:#263b2d;
 box-shadow:0 25px 70px #17362644;
}
.item-market-compare-dialog::backdrop { background:#12261bcc; }
.item-market-compare-dialog-panel { display:flex; flex-direction:column; gap:12px; min-width:0; max-height:calc(100dvh - 20px); padding:18px; }
.item-market-compare-dialog-panel header { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.item-market-compare-dialog-panel header > div:first-child { min-width:0; }
.item-market-distribution-actions { display:flex; flex:0 0 auto; gap:5px; }
.item-market-compare-dialog-panel h2 { margin:0; font-size:20px; color:#24563a; }
.item-market-compare-dialog-panel p { margin:0; color:#63756a; font-size:13px; line-height:1.5; }
.item-market-compare-dialog-panel header button,.item-market-distribution-sides button,.item-market-compare-dialog-panel #item-market-distribution-retry {
 min-height:36px; border:1px solid #bfd4c4; border-radius:8px; background:#f4faf5; color:#2f6240; padding:5px 12px; font:inherit; cursor:pointer;
}
.item-market-compare-dialog-panel header button { flex-shrink:0; white-space:nowrap; }
.item-market-distribution-share-fallback textarea,#item-market-distribution-share-link { width:100%; min-width:0; border:1px solid #bfd4c4; border-radius:8px; font:inherit; }
.item-market-compare-dialog-panel input { width:100%; min-height:42px; border:1px solid #bfd4c4; border-radius:8px; padding:8px 10px; font:inherit; }
.item-market-compare-picker-list,.item-market-distribution-results { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.item-market-compare-picker-list { display:grid; gap:5px; }
.item-market-compare-picker-list button { text-align:left; border:1px solid #dce8df; border-radius:8px; background:#fff; padding:10px; color:#344d3b; font:inherit; cursor:pointer; }
.item-market-compare-picker-list button[aria-selected="true"] { border-color:#2f8856; background:#e8f5eb; }
.item-market-distribution-sides { display:flex; gap:7px; }
.item-market-distribution-sides button[aria-pressed="true"] { background:#16724c; border-color:#16724c; color:white; }
.item-market-distribution-results { display:grid; gap:14px; }
.item-market-distribution-chart { display:grid; }
.item-market-distribution-row { display:grid; grid-template-columns:minmax(110px,170px) minmax(0,1fr); gap:12px; min-width:0; padding:10px 2px; border-bottom:1px solid #e6eee8; }
.item-market-distribution-server,.item-market-distribution-figure { min-width:0; overflow-wrap:anywhere; }
.item-market-distribution-server strong,.item-market-distribution-figure strong { display:block; font-size:14px; }
.item-market-distribution-server small,.item-market-distribution-figure small { display:block; color:#6a7d70; font-size:11px; margin-top:3px; line-height:1.5; }
.item-market-distribution-bar { min-width:0; height:11px; margin:0 0 5px; border-radius:4px; background:#388c61; }
.item-market-distribution-bar[style*="width: 0%"] { height:2px; background:transparent; }
.item-market-distribution-missing { border-top:1px solid #d9e5dc; padding-top:10px; }
.item-market-distribution-missing h3 { margin:0 0 7px; font-size:14px; }
.item-market-distribution-missing ul { margin:0; padding-left:20px; display:flex; flex-wrap:wrap; gap:4px 20px; font-size:13px; }
#item-market-distribution-state { padding:10px; background:#f4f8f5; border-radius:8px; }
#item-market-distribution-state[hidden] { display:none; }
#item-market-distribution-historical { padding:7px 10px; background:#fff5e8; color:#825122; border-radius:8px; }
@media(max-width:480px) {
 .item-market-compare-dialog-panel { padding:13px; }
 .item-market-compare-dialog-panel header button { padding:5px 7px; font-size:12px; }
 .item-market-distribution-row { grid-template-columns:minmax(0,1fr); gap:5px; }
 .item-market-distribution-server small { display:inline; margin-left:5px; }
}
