/* These rules take effect after the live controls have been arranged into the market layout. */
body:has(.s2-market) .container { width:min(1140px,calc(100% - 48px))!important; max-width:100%; min-width:0; padding:0; margin:24px auto 52px; }
.container > .content.s2-market { display:block; box-sizing:border-box; width:100%; margin:0; padding:0; background:none; border:0; font-family:Inter,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; color:#193555; }
.s2-market *, .s2-market *::before, .s2-market *::after { box-sizing:border-box; }
.s2-market [hidden] { display:none!important; }
.market-hero { display:flex; align-items:center; gap:16px; min-width:0; min-height:98px; padding:14px 24px; border:1px solid #d5e3ee; border-radius:14px; background:linear-gradient(105deg,#e3f1fc,#f5faff 66%,#fff); }
.market-intro { min-width:0; flex:1; }
.market-art { flex:none; }
.market-art:empty { display:none; }
.market-art img { display:block; object-fit:contain; width:66px; height:66px; border-radius:12px; }
.market-crumb { display:flex; gap:7px; align-items:center; font-size:12px; line-height:1.4; color:#47627a; }
.market-directory { color:inherit!important; }
.market-separator { color:#8098aa; }
.s2-market .market-name { margin:3px 0 0; color:#15334d; font-size:clamp(23px,2.45vw,34px); line-height:1.18; letter-spacing:-.045em; overflow-wrap:anywhere; word-break:keep-all; font-weight:750; }
.market-register { flex:none; padding:10px 17px; border-radius:8px; background:#235ab0; color:white!important; font-weight:700; font-size:14px; line-height:1.4; }
.market-register::before { content:"+"; margin-right:4px; }
.market-modes { display:flex; align-items:stretch; align-self:stretch; gap:16px; }
.s2-market .market-modes>* { display:flex; align-items:center; padding:0 1px 7px; margin:0 0 -1px; color:#536a7d; font-size:16px; font-weight:700; white-space:nowrap; border-bottom:3px solid transparent; }
.s2-market .market-modes .market-mode-current { color:#214f8d; border-color:#2861b4; }
.market-guides { margin:10px 0 0; border-top:1px solid #e0e9f0; padding:9px 0 0; color:#51677c; }
.market-guides summary { font-size:13px; cursor:pointer; }
.market-guides .s_right { display:flex; flex-wrap:wrap; gap:8px; padding-top:7px; }
.market-guides .prm_btn a { color:#355e86; text-decoration:underline; }
.market-layout { display:grid; grid-template-columns:244px minmax(0,1fr); gap:22px; align-items:start; margin-top:22px; }
.market-layout :is(.market-results,.search_tab) { min-width:0; }
.s2-market .search_tab { position:static; float:none; width:100%; height:auto; padding:17px; margin:0; background:white; border:1px solid #d3e1ef; border-radius:15px; }
.market-filter-title { margin:0 0 13px; color:#193752; font-size:19px; font-weight:750; letter-spacing:-.04em; }
.s2-market .search_tab > ul { display:grid; grid-template-columns:1fr 1fr; gap:5px; position:static; height:auto; width:100%; padding:0; margin:0 0 14px; background:none; border:0; }
.s2-market .search_tab > ul li { display:block; float:none; width:auto!important; height:auto; padding:0; margin:0; border:0; }
.s2-market .search_tab > ul li a { display:block; width:auto; height:auto; line-height:1.5; text-align:center; padding:6px; font-size:13px; font-weight:650; color:#335779; background:#f2f6fb; border:1px solid #d5e1ee; border-radius:7px; }
.s2-market .search_tab > ul li:is(.on,.active,.sel) a,.s2-market .search_tab > ul a[aria-current],.s2-market .search_tab > ul a:hover { color:#194f97; border-color:#8ab0d9; background:#e3effd; }
.s2-market .search_tab form[name=search_form] { position:static; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:7px; width:100%; height:auto; padding:0; margin:0; }
.s2-market form[name=search_form]>label { display:flex; flex-direction:column; align-items:stretch; gap:5px; color:#3f5973; font-size:13px; font-weight:650; }
.s2-market #unified-server-filter { display:block; width:100%; max-width:100%; min-width:0; height:36px; padding:0 5px; color:#263f59; background:#fff; border:1px solid #bfcee0; border-radius:7px; }
.s2-market .search_tab form[name=search_form]>button,.s2-market .search_tab .Sch .schBtn { position:static!important; padding:0 9px!important; width:auto; height:36px; min-height:0; margin:0; font:600 13px/1.3 system-ui; color:#254c76; border:1px solid #c1d3e6!important; border-radius:7px; background:#edf4fb!important; }
.s2-market .search_tab .Sch { position:static!important; grid-column:1/-1; display:flex; gap:6px; align-items:center; width:100%; height:auto; margin:0; padding:0; border:0; background:none; }
.s2-market .search_tab .Sch input { flex:1; height:36px; width:0; min-width:0; border:1px solid #bfcee0; border-radius:7px; padding:0 9px; background:#fff; }
.market-advanced { grid-column:1/-1; margin-top:5px; border-top:1px solid #dfe8f1; }
.market-advanced-label { cursor:pointer; padding:12px 0 4px; font-weight:700; font-size:14px; color:#2e5377; }
.s2-market .search_tab .search_area { display:flex; flex-direction:column; position:static; min-height:0; height:auto; width:100%; max-width:100%; padding:0; background:none; border:0; }
.s2-market .search_area .search_reset { align-self:flex-end; position:static; order:1; width:auto; height:auto; color:#486782; padding:4px 10px; margin:8px 0 0; border:1px solid #c6d7e8; border-radius:6px; background:#fff; }
.s2-market .search_tab .search_row { display:block; width:100%; float:none; padding:0; margin:0; border:0; height:auto; }
.s2-market .search_area .search_row .sTitle { display:block; float:none; width:100%!important; height:auto; line-height:1.4; font-size:12px; color:#526980; margin:9px 0 5px; padding:0; }
.s2-market .search_tab .search_area .search_row > ul { display:flex; flex-wrap:wrap; gap:4px 8px; width:100%!important; height:auto!important; margin:0; padding:0; float:none!important; }
.s2-market .search_row>ul li { display:inline-flex; position:static; flex:none; align-items:center; gap:3px; width:auto; height:auto; margin:0!important; padding:0; float:none; line-height:1.5; color:#344d69; }
.s2-market .search_row input { flex:none; margin:0; accent-color:#245fae; }
.s2-market .search_row label { white-space:normal; font-size:12px; }
.s2-market .search_sub_tit { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; width:100%; min-height:0; height:auto; padding:0; margin:2px 0 9px; background:none; border:0; overflow:visible; }
.s2-market .search_sub_tit .s_left,.s2-market .search_sub_tit .s_right { display:flex; align-items:center; flex-wrap:wrap; gap:5px; width:auto; height:auto; line-height:1.4; padding:0; margin:0; float:none; }
.s2-market .search_sub_tit h4 { color:#193955; font-weight:750; font-size:21px; letter-spacing:-.05em; padding:0; margin:0 10px 0 0; background:none; }
.s2-market .search_sub_tit .opt_list { display:flex; flex-wrap:wrap; gap:2px; align-items:center; padding:0; margin:0; }
.s2-market .search_sub_tit .opt_list li { background:none; margin:0; padding:0; color:#526c83; opacity:1; }
.s2-market .opt_list li a { border-radius:6px; padding:5px 6px; font-size:12px; line-height:1.4; }
.s2-market .opt_list li.active a { background:#e1edf9; color:#214f86!important; font-weight:700; }
.s2-market .search_sub_tit .prm_btn,.s2-market .search_sub_tit .prm_btn a { display:inline-block; width:auto; height:auto; padding:0; margin:0; background:none; border:0; color:#55708c; font-size:12px; line-height:1.4; }
.s2-market .search_sub_tit .prm_btn a { padding:4px; text-decoration:underline; text-underline-offset:3px; }
.s2-market .search_list { width:100%; background:none; border:0; overflow:visible; }
.s2-market .search_list table,.s2-market .search_list #contentList { display:block; width:100%; min-width:0; font-family:inherit; border:0; background:transparent; }
.s2-market .search_list :is(thead,colgroup) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.s2-market .search_list table tbody,.s2-market #contentList tbody { display:grid; grid-template-columns:minmax(0,1fr); gap:0; border:1px solid #d2dfe9; border-radius:12px; background:white; }
.s2-market .search_list table tbody tr,.s2-market #contentList tbody tr { display:grid; grid-template-columns:fit-content(10em) minmax(0,1fr) minmax(105px,26%); grid-template-areas:"product product price" "server trust time"; align-items:baseline; row-gap:7px; column-gap:12px; min-width:0; height:auto!important; padding:15px 19px; color:#253e54; background:transparent!important; border:0; border-bottom:1px solid #e1e9f0; }
.s2-market .search_list table tbody tr:first-child { border-radius:12px 12px 0 0; }
.s2-market .search_list table tbody tr:last-child { border:0; border-radius:0 0 12px 12px; }
.s2-market .search_list table tbody tr:focus-within,.s2-market .search_list table tbody tr:hover { background:#f5f9fd!important; }
.s2-market .search_list table tbody tr:has(td[colspan]) { display:block; }
.s2-market .search_list table tbody td,.s2-market #contentList tbody td { display:block; min-width:0; width:auto; max-width:100%; height:auto; padding:0; margin:0; text-align:left; border:0; background:none; line-height:1.4; }
.s2-market .search_list tbody td:nth-child(1) { grid-area:server; font-size:13px; font-weight:500; color:#4d667a; }
.s2-market .search_list tbody td:nth-child(2),.s2-market #contentList tbody td:nth-child(2) { grid-area:product; }
.s2-market .search_list tbody td:nth-child(3),.s2-market #contentList tbody td:nth-child(3) { grid-area:price; font-size:20px; font-weight:750; letter-spacing:-.035em; font-variant-numeric:tabular-nums; text-align:right; overflow-wrap:anywhere; }
.s2-market .search_list tbody td:nth-child(3) font { color:#194d89!important; }
.market-price-note { font-size:12px; color:#536a80; font-weight:550; letter-spacing:0; }
.s2-market .search_list tbody td:nth-child(4),.s2-market #contentList tbody td:nth-child(4):has(.info_incen),.s2-market #contentList tbody td:nth-child(4) { grid-area:trust; }
.s2-market .search_list tbody td:nth-child(5),.s2-market #contentList tbody td:nth-child(5) { grid-area:time; color:#556c80; font-size:12px; text-align:right; font-variant-numeric:tabular-nums; }
.s2-market .search_list tbody td:nth-child(2) ul,.s2-market .search_list tbody td:nth-child(2) li { width:100%; min-width:0; }
.s2-market .search_list tbody td:nth-child(2) li { display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; }
.s2-market .search_list tbody td:nth-child(2) br { display:none; }
.s2-market .search_list tbody td:nth-child(2) li>span:first-child { color:#405f79!important; border-radius:4px; background:#ecf3f8; font-size:12px; line-height:1.45; padding:2px 5px; }
.s2-market .market-item-link { order:-1; color:#1d354b; min-width:0; }
.s2-market .market-item-link:hover { text-decoration:underline; }
.s2-market .catalog-reference-row td:has(> a[href^="/item/"]) { position:relative; }
.s2-market .catalog-reference-row td > a[href^="/item/"]::after { content:""; position:absolute; inset:0; }
.s2-market .catalog-reference-row td:nth-child(2) > a[href^="/item/"] { display:block; font-weight:700; }
.s2-market .catalog-reference-row .hasScreenshot { position:relative; z-index:1; }
.s2-market .market-item-link font { line-height:1.38; font-family:inherit; font-size:17px; font-weight:700; max-width:100%!important; white-space:normal!important; overflow-wrap:anywhere; }
.s2-market tr.local-listing-completed .market-item-link font { color:#54677a; }
.market-trust { margin:0; padding:0; }
.market-trust>summary,.market-premium-empty>summary { color:#496780; cursor:pointer; font-size:12px; font-weight:550; }
.s2-market .market-trust .info_incen,.s2-market #contentList .market-trust .info_incen { width:100%; display:flex; flex-wrap:wrap; gap:4px; margin:5px 0 0; padding:0; }
.s2-market .market-trust .info_incen li,.s2-market #contentList .market-trust .info_incen li { position:static; display:flex; flex-direction:column; align-items:center; width:auto; min-width:40px; height:auto; line-height:1.3; }
.s2-market .market-trust .info_incen li p { position:static; margin:0; font-size:10px; color:#536d85; line-height:1.3; }
.s2-market .market-trust .info_incen li :is(img,span) { max-height:32px; max-width:32px; margin:0!important; }
.market-premium-empty { margin-top:14px; padding:10px 14px; background:#f8fbff; border:1px solid #dbe6f1; border-radius:9px; }
.market-premium-empty[open]>summary { margin-bottom:10px; }
.s2-market .local-data-empty { background:#f3f8fd; border:0; color:#48627e; padding:17px; }
@media(max-width:1000px) {
 .market-layout { grid-template-columns:215px minmax(0,1fr); gap:14px; }
 .s2-market .search_list table tbody,.s2-market #contentList tbody { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:820px) {
 body:has(.s2-market) .container { width:calc(100% - 24px)!important; margin:12px auto 30px; }
 .market-layout { grid-template-columns:minmax(0,1fr); gap:14px; margin-top:10px; }
 .market-hero { gap:9px; min-height:72px; padding:10px 13px; border-radius:10px; }
 .market-art img { width:43px; height:43px; border-radius:7px; }
 .s2-market .market-name { font-size:clamp(19px,4.8vw,26px); }
 .market-register { padding:8px 9px; font-size:12px; }
 .market-crumb { font-size:11px; }
 .market-modes { gap:10px; }
 .s2-market .market-modes>* { font-size:14px; }
 .s2-market .search_list table tbody tr,.s2-market #contentList tbody tr { grid-template-columns:fit-content(6em) minmax(0,1fr) minmax(76px,28%); column-gap:6px; row-gap:5px; }
 .s2-market .market-item-link font { font-size:15px; }
 .s2-market .search_list tbody td:nth-child(3),.s2-market #contentList tbody td:nth-child(3) { font-size:17px; }
 .s2-market .search_tab { padding:11px 13px; }
 .market-filter-title { font-size:16px; margin-bottom:6px; }
 .s2-market .search_tab>ul { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-height:0; margin:0 0 8px; }
 .s2-market .search_tab>ul li a { padding:4px; font-size:12px; }
 .s2-market .market-advanced-label { padding:6px 0 0; }
 .s2-market .search_list tbody tr,.s2-market #contentList tbody tr { padding:12px; }
}

.s2-market .search_sub_tit .s_left .opt_list { position:static; inset:auto; display:flex; gap:3px; width:auto; height:auto; background:none; margin:0; }
.s2-market .search_sub_tit .opt_list li,.s2-market .search_sub_tit .opt_list li a { float:none; position:static; display:block; width:auto; height:auto; margin:0; background-image:none; }
.s2-market .search_sub_tit .opt_list li::before,.s2-market .search_sub_tit .opt_list li::after { content:none; }
.s2-market .search_sub_tit .s_right .prm_btn a { width:auto; height:auto; line-height:1.5; padding:3px 5px; margin:0; border:0; color:#4f6986; font-size:12px; }
.s2-market .search_list table tr.done:has(.local-sold-badge)::after { content:none; }
.s2-market .search_list tr.done:has(.local-sold-badge) td { opacity:1; }
.s2-market :is(a,button,summary,input,select):focus-visible { outline:2px solid #2866ad; outline-offset:2px; }
@media(max-width:820px) {
 .s2-market .search_sub_tit:has(.opt_list) { gap:3px; margin:0 0 7px; }
 .s2-market .search_sub_tit .s_left:has(.opt_list) { flex:1 0 100%; justify-content:space-between; }
 .s2-market .search_sub_tit h4 { font-size:17px; margin:0; }
 .s2-market .opt_list li a { padding:4px; font-size:11px; }
}
html:has(head style[data-local-legacy-listing-columns]) .s2-market .search_list tr:not(.catalog-reference-row) td:nth-child(n+4) { display:none; }
.s2-market .search_list tbody tr.catalog-reference-row > td:nth-child(n+4),
.s2-market #contentList tbody tr.catalog-reference-row > td:nth-child(n+4) { display:block; }

.s2-market .search_list table tr.done:has(.local-sold-badge)>td::after { content:none!important; }

.s2-market .search_sub_tit:has(.market-modes) { align-items:center; margin:0 0 10px; border-bottom:1px solid #cddce8; min-height:39px; gap:4px 10px; }
.s2-market .search_sub_tit .s_left:has(.opt_list) { width:auto; flex:0 1 auto; }
.s2-market .search_sub_tit .s_left:has(.opt_list)>h4 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.s2-market .search_sub_tit .opt_list li.active a { background:#e6eef7; }
@media(max-width:480px) {
 .s2-market .search_sub_tit:has(.market-modes) { margin:0 0 7px; }
 .s2-market .search_tab form[name=search_form] { grid-template-columns:minmax(0,1.15fr) auto minmax(0,1.3fr); align-items:end; gap:5px; }
 .s2-market .search_tab .Sch { grid-column:3; }
 .s2-market .search_tab .Sch .schBtn { border:0!important; background:#edf3f9!important; color:#284f76; }
 .s2-market .market-guides { display:flex; align-items:baseline; gap:5px; padding:4px 0 0; margin:4px 0 0; }
 .s2-market .market-guides:not([open]) > :not(summary) { display:none; }
 .s2-market .market-trust>summary { font-size:11px; }
}

body:has(.s2-market) #local-chat-button { bottom:max(12px,env(safe-area-inset-bottom))!important; right:12px!important; }
@media(max-width:820px) {
 body:has(.s2-market) #local-chat-button { display:grid!important; place-items:center; width:44px!important; min-width:44px!important; height:44px!important; padding:0!important; border-radius:50%!important; }
 body:has(.s2-market) #local-chat-button .local-chat-button-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
