/* SkiWiki market. Colors come from the shell tokens (layouts/skiportal/css/layout.css); badges use the shared .sw-badge. */

/* ---------------------------------------------------------------- base (all market pages) */
.sm-wrap{max-width:1160px;margin:0 auto;padding:16px 18px;border:1px solid var(--sw-line,#dde2e8);border-radius:var(--sw-radius,4px);background:#fff;color:var(--sw-ink,#1b2430);font-size:13px;line-height:1.55;box-sizing:border-box}
.sm-wrap *{box-sizing:border-box}
.sm-wrap h1{margin:0 0 6px;color:var(--sw-navy,#132b4a);font-size:20px}
/* plain (class-less) links are blue; links that carry a component class (.sw-btn, .sw-badge, ...) keep their own color */
.sm-wrap a:where(:not([class])){color:var(--sw-blue,#1b69c7)}
.sm-primary,.sm-wrap button:not(.sw-btn,.sc-button){display:inline-block;border:0;border-radius:3px;background:var(--sw-blue,#1b69c7);color:#fff;padding:9px 14px;text-decoration:none;cursor:pointer}
.sm-wrap .sm-primary{color:#fff}
.sm-wrap input,.sm-wrap select,.sm-wrap textarea{width:100%;min-height:32px;border:1px solid var(--sw-line-strong,#c9d1da);border-radius:3px;background:#fff;padding:7px;color:var(--sw-ink,#1b2430)}
.sm-wrap input:focus,.sm-wrap select:focus,.sm-wrap textarea:focus{border-color:var(--sw-blue,#1b69c7);outline:0}
.sm-empty{margin:0;padding:48px 16px;border-bottom:1px solid var(--sw-line-soft,#eceff3);color:var(--sw-muted,#808a96);text-align:center}
.sm-form label{display:block;font-weight:600}
.sm-form form{margin-top:12px;border-top:1px solid #adb6bf}
.sm-form form>label,.sm-form fieldset{display:block;margin:14px 0}
.sm-form fieldset{margin:0;padding:0;border:0}
.sm-form fieldset legend{width:100%;padding:9px 10px;border-bottom:1px solid #dfe3e8;background:#f4f6f8;font-weight:700}
.sm-check{display:flex!important;align-items:center;gap:6px}
.sm-check input{width:auto;min-height:auto}
.sm-gallery{display:flex;gap:10px;overflow-x:auto;margin:20px 0}
.sm-gallery img{max-width:460px;max-height:420px;object-fit:contain;background:#f2f3f5}
.sm-spec{display:grid;grid-template-columns:140px 1fr;border-top:1px solid #ccd2d8}
.sm-spec dt,.sm-spec dd{margin:0;padding:10px;border-bottom:1px solid #e1e4e8}
.sm-spec dt{font-weight:700;background:#f6f7f8}
.sm-content{padding:25px 5px;border-block:1px solid #d7dce1;margin:20px 0}
.sm-owner,.sm-offer{border:1px solid #d7dce1;padding:14px;margin:10px 0}
.sm-owner form{display:inline-flex;width:auto}
.sm-product strong em{font-style:normal;font-weight:400;color:#626b76}
.sm-admin-table{width:100%;border-collapse:collapse}
.sm-admin-table th,.sm-admin-table td{border:1px solid #d8dde3;padding:7px;text-align:left}
.sm-direct-form{max-width:980px}
.sm-direct-form>h1{margin-bottom:10px}
.sm-direct-form .sm-form-section{margin:0 0 10px;padding:0 12px 12px;border:1px solid #d8dde3}
.sm-direct-form .sm-form-section legend{width:auto;padding:0 6px;border:0;background:#fff;color:#26384e;font-size:14px}
.sm-direct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
.sm-direct-field{display:block;min-width:0}
.sm-direct-field>label:first-child{display:block;margin-bottom:3px;color:#4e5863;font-size:12px;font-weight:650}
.sm-direct-field input,.sm-direct-field select{min-height:34px}
.sm-direct-field.sm-field-wide{grid-column:1/-1}
.sm-direct-field .sm-inline,.sm-direct-field .sm-methods{display:flex;align-items:center;gap:10px}
.sm-direct-field .sm-inline>input{flex:1 1 auto}
.sm-direct-form .sm-check-box{min-height:34px;padding:6px 9px;border:1px solid #c9ced5;background:#fafbfc}
.sm-direct-form .sm-photo-field,.sm-direct-form .sm-editor-field{margin-top:8px}
.sm-direct-form .sm-photo-field>span{display:flex;align-items:center;gap:10px}
.sm-direct-form .sm-photo-field input{width:auto}
.sm-direct-form .sm-editor{min-width:0}
.sm-direct-form .sm-editor .rx_editor_wrapper{max-width:100%}
@media(max-width:700px){
 .sm-wrap{width:100%;margin:0;padding:10px;border-right:0;border-left:0;border-radius:0;overflow-x:hidden}
 .sm-gallery img{width:86vw;max-height:340px}
 .sm-spec{grid-template-columns:105px minmax(0,1fr)}
 .sm-detail h1{font-size:22px}
 .sm-owner form{display:flex;margin:6px 0}
 .sm-admin-table{display:block;overflow-x:auto}
 .sm-product em{display:block}
 .sm-direct-form{padding:8px}
 .sm-direct-form .sm-direct-grid{grid-template-columns:1fr;gap:7px}
 .sm-direct-form .sm-field-wide{grid-column:auto}
 .sm-direct-form .sm-form-section{padding:0 8px 9px}
 .sm-direct-field .sm-inline{align-items:flex-start;flex-direction:column;gap:5px}
 .sm-direct-field .sm-methods{flex-wrap:wrap}
 .sm-direct-form .sm-photo-field>span{align-items:flex-start;flex-direction:column}
 .sm-direct-form .sm-editor{overflow:hidden}
}

/* ---------------------------------------------------------------- list page */
.sm-market-index{max-width:none}
.sm-market-index .sm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:2px 1px 12px;border-bottom:2px solid var(--sw-navy,#132b4a)}
.sm-market-index .sm-head h1{margin:0;font-size:20px;line-height:1.3;letter-spacing:-.02em}
.sm-market-index .sm-head p{margin:3px 0 0;color:var(--sw-muted);font-size:12px}
.sm-actions{display:flex;flex:0 0 auto;gap:6px}
/* list + detail sit in the shared content+sidebar grid (.sw-layout); a centered max-width card would shrink to its content there */
.sm-layout>.sm-wrap{max-width:none;margin:0}

.sm-category-nav{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 0}
.sm-wrap .sm-category-nav a{padding:4px 11px;border:1px solid var(--sw-line);border-radius:14px;color:var(--sw-ink-2);font-size:12px;text-decoration:none}
.sm-wrap .sm-category-nav a:hover{border-color:var(--sw-blue-line);color:var(--sw-blue)}
.sm-wrap .sm-category-nav a.is-active{border-color:var(--sw-navy);background:var(--sw-navy);color:#fff}

.sm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 8px}
.sm-count{margin:0;color:var(--sw-ink-2);font-size:13px}
.sm-count b{color:var(--sw-navy);font-weight:700}
.sm-wrap .sm-search-reset{margin-left:8px;color:var(--sw-muted);font-size:12px;text-decoration:underline}
.sm-search{display:flex;flex:0 0 auto;gap:4px}
.sm-wrap .sm-search select,.sm-wrap .sm-search input{width:auto;height:32px;min-height:32px;padding:4px 8px;font-size:12px}
.sm-wrap .sm-search select{width:96px}
.sm-wrap .sm-search input{width:220px}
.sm-wrap .sm-search button{height:32px;padding:0 13px;border:1px solid var(--sw-navy);background:var(--sw-navy);font-size:12px;font-weight:600}
.sm-wrap .sm-search button:hover{background:var(--sw-navy-2)}

/* rows: [photo] title / spec / tags / meta ........ price */
.sm-market-list{border-top:1px solid var(--sw-line-strong)}
.sm-wrap .sm-row{display:grid;grid-template-columns:104px minmax(0,1fr) 140px;grid-template-areas:"thumb title price" "thumb spec price" "thumb tags price" "thumb meta price";column-gap:16px;align-items:center;min-height:102px;padding:12px 8px;border-bottom:1px solid var(--sw-line-soft);color:var(--sw-ink);text-decoration:none}
.sm-wrap .sm-row:hover{background:var(--sw-hover)}
.sm-thumb{grid-area:thumb;align-self:center;width:104px;height:78px;overflow:hidden;border:1px solid var(--sw-line-soft);border-radius:3px;background:var(--sw-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.5 20 9 7.5l3.7 6.2 2.3-3.7L22.5 20z' fill='%23d3dae3'/%3E%3C/svg%3E") center/30px no-repeat}
.sm-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sm-row__title{grid-area:title;display:flex;align-items:center;gap:7px;min-width:0}
.sm-row__title strong{min-width:0;overflow:hidden;font-size:15px;font-weight:600;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.sm-wrap .sm-row:hover .sm-row__title strong{color:var(--sw-blue)}
.sm-row__spec{grid-area:spec;min-width:0;overflow:hidden;margin-top:3px;color:var(--sw-ink-2);font-size:12.5px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.sm-row__spec i{font-style:normal}
.sm-row__spec i+i:before{content:"·";margin:0 6px;color:#c3c9d0}
.sm-row__tags{grid-area:tags;display:flex;align-items:center;gap:4px;min-width:0;margin-top:6px}
.sm-row__loc{min-width:0;overflow:hidden;margin-left:4px;color:var(--sw-muted);font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.sm-row__loc:before{content:"";display:inline-block;width:1px;height:10px;margin-right:8px;background:var(--sw-line);vertical-align:-1px}
.sm-row__price{grid-area:price;justify-self:end;color:var(--sw-navy);font-size:17px;font-weight:700;line-height:1.3;white-space:nowrap}
.sm-row__meta{grid-area:meta;display:flex;align-items:center;min-width:0;margin-top:6px;overflow:hidden;color:var(--sw-muted);font-size:12px;line-height:1.3;white-space:nowrap}
.sm-row__meta>*{font-style:normal;font-weight:400}
.sm-row__meta b{overflow:hidden;color:var(--sw-ink-2);text-overflow:ellipsis}
.sm-row__meta>*+*:before{content:"·";margin:0 6px;color:#c3c9d0}
.sm-wrap .sm-row[data-status="sold"],.sm-wrap .sm-row[data-status="cancelled"]{background:#fcfcfd}
.sm-row[data-status="sold"] .sm-row__title strong,.sm-row[data-status="cancelled"] .sm-row__title strong,.sm-row[data-status="sold"] .sm-row__price,.sm-row[data-status="cancelled"] .sm-row__price{color:var(--sw-muted)}
.sm-row[data-status="sold"] .sm-thumb img,.sm-row[data-status="cancelled"] .sm-thumb img{opacity:.6}


@media(max-width:700px){
 .sm-market-index{padding:10px 8px}
 .sm-market-index .sm-head{display:block;padding-bottom:10px}
 .sm-market-index .sm-head h1{font-size:19px}
 .sm-actions{margin-top:9px}
 .sm-actions .sw-btn{flex:1 1 0}
 .sm-category-nav{flex-wrap:nowrap;margin-top:10px;overflow-x:auto;padding-bottom:2px}
 .sm-wrap .sm-category-nav a{flex:0 0 auto}
 .sm-toolbar{display:block;margin:10px 0 6px}
 .sm-count{margin-bottom:6px}
 .sm-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto}
 .sm-wrap .sm-search select{width:90px}
 .sm-wrap .sm-search input{width:100%;min-width:0}
 .sm-wrap .sm-row{grid-template-columns:88px minmax(0,1fr);grid-template-areas:"thumb title" "thumb price" "thumb spec" "thumb tags" "thumb meta";column-gap:11px;align-items:start;min-height:0;padding:11px 2px}
 .sm-thumb{grid-row:1/-1;align-self:start;width:88px;height:88px}
 .sm-row__title strong{font-size:15px;font-weight:600}
 .sm-row__title .sw-badge{height:19px;padding:0 5px;font-size:10.5px;line-height:17px}
 .sm-row__price{justify-self:start;margin-top:2px;font-size:15px}
 .sm-row__spec{margin-top:3px;font-size:12px}
 .sm-row__tags{flex-wrap:wrap;gap:3px;margin-top:5px}
 .sm-row__tags .sw-badge{height:19px;padding:0 5px;font-size:10.5px;line-height:17px}
 .sm-row__loc{margin-left:3px}
 .sm-row__loc:before{margin-right:6px}
 .sm-row__meta{margin-top:5px;font-size:11px}
}

/* ---------------------------------------------------------------- detail page
   header (category · title · badges · meta | price box + 가격제안) -> 상품정보 -> seller bar -> 상세설명 + 사진 -> 댓글 -> 신고 */
.sm-detail-page{padding:18px 24px 28px}
.sm-detail-page .sm-detail-back{display:inline-block;margin-bottom:12px;color:var(--sw-muted);font-size:13px}
.sm-detail-page .sm-detail-back:hover{color:var(--sw-blue)}
.sm-detail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:stretch;padding:0 0 18px;border-bottom:2px solid var(--sw-navy)}
.sm-detail-head__main{min-width:0}
.sm-detail-kicker{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.sm-detail-review{color:var(--sw-warn);font-size:12px;font-weight:600}
.sm-detail-title{margin:0;color:var(--sw-ink);font-size:22px;font-weight:700;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}
.sm-detail-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}
.sm-detail-meta{display:flex;flex-wrap:wrap;margin:10px 0 0;color:var(--sw-muted);font-size:12px}
.sm-detail-meta>*+*:before{content:"·";margin:0 7px;color:#c3c9d0}
.sm-wrap .sm-detail-meta a{color:var(--sw-ink-2);font-weight:600}
/* price box: the price is the strongest number on the page, the title the strongest text */
/* price sits inside the listing header: thin divider only, no card surface */
.sm-detail-buy{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;gap:2px;min-width:190px;padding:2px 0 0 24px;border-left:1px solid var(--sw-line)}
.sm-detail-buy__label{color:var(--sw-muted);font-size:12px}
.sm-detail-price{color:var(--sw-navy);font-size:26px;font-weight:800;line-height:1.25;letter-spacing:-.02em;white-space:nowrap}
.sm-detail-page[data-status="sold"] .sm-detail-price,.sm-detail-page[data-status="cancelled"] .sm-detail-price{color:var(--sw-muted)}
.sm-detail-page[data-status="sold"] .sm-detail-title,.sm-detail-page[data-status="cancelled"] .sm-detail-title{color:var(--sw-ink-2)}
.sm-detail-button{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid var(--sw-line-strong);border-radius:3px;background:#fff;color:var(--sw-ink-2);font-size:12px;font-weight:600}
.sm-detail-button:hover{border-color:var(--sw-blue-line);color:var(--sw-blue)}

/* sections: small navy headings; comments and report are quieter than the body */
.sm-detail-section{margin:0;padding:20px 0 0}
.sm-detail-section>h2{margin:0 0 10px;color:var(--sw-navy);font-size:15px;font-weight:700}
.sm-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;overflow:hidden;border:1px solid var(--sw-line-soft);border-radius:var(--sw-radius);background:var(--sw-line-soft)}
.sm-product-item{display:flex;align-items:baseline;gap:12px;min-width:0;padding:10px 14px;background:var(--sw-surface)}
.sm-product-item.is-wide-mobile{grid-column:1/-1}
.sm-product-item dt{flex:0 0 92px;margin:0;color:var(--sw-muted);font-size:12px}
.sm-product-item dd{flex:1;min-width:0;margin:0;color:var(--sw-ink);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.sm-product-item.is-wide-mobile dd{font-weight:400;white-space:pre-line}

/* seller bar: info (label · name · since) on the left, compact secondary actions on the right; PC one line, mobile two */
.sm-seller-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:14px 0 0;padding:11px 14px;border-radius:var(--sw-radius);background:var(--sw-tint)}
.sm-seller-bar__label{color:var(--sw-muted);font-size:12px}
.sm-wrap .sm-seller-bar__name{color:var(--sw-navy);font-size:14px;font-weight:700}
.sm-wrap .sm-seller-bar__name:hover{color:var(--sw-blue)}
.sm-seller-bar__since{color:var(--sw-muted);font-size:12px}
.sm-seller-bar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-left:auto}
.sm-wrap .sm-seller-action,.sm-wrap .sm-seller-bar button.sm-seller-action{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid var(--sw-line-strong);border-radius:3px;background:var(--sw-surface);color:var(--sw-ink-2);font-size:12px;font-weight:400;line-height:18px;text-decoration:none;cursor:pointer}
.sm-wrap .sm-seller-action:hover,.sm-wrap .sm-seller-bar button.sm-seller-action:hover{border-color:var(--sw-blue-line);background:var(--sw-hover);color:var(--sw-blue)}
.sm-seller-note{display:inline-flex;align-items:center;min-height:28px;padding:0 4px;color:var(--sw-muted);font-size:12px}
.sm-phone-value{color:var(--sw-navy);font-size:13px;font-weight:700}
.sm-wrap .sm-seller-bar .sm-phone-copy{min-height:0;margin-left:6px;padding:1px 7px;border:1px solid var(--sw-line-strong);border-radius:3px;background:#fff;color:var(--sw-ink-2);font-size:11px}

/* description + photos: first photo large, the rest in a two-column strip; natural ratio, never upscaled or cropped */
.sm-detail-body .sm-content{min-height:40px;margin:0;padding:0;border:0;color:var(--sw-ink);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.sm-detail-body .sm-content img{display:block;max-width:100%;height:auto;margin:10px auto;cursor:zoom-in}
.sm-gallery{display:grid;gap:10px;margin:18px 0 0}
.sm-gallery--multi{grid-template-columns:repeat(2,minmax(0,1fr))}
.sm-wrap .sm-gallery .sm-image-open{display:flex;align-items:center;justify-content:center;min-width:0;min-height:120px;padding:10px;border:0;border-radius:var(--sw-radius);background:var(--sw-tint);cursor:zoom-in}
.sm-gallery .sm-image-open img{display:block;width:auto;max-width:100%;height:auto;max-height:720px}
.sm-gallery--multi .sm-image-open:first-child{grid-column:1/-1}
.sm-wrap .sm-gallery--multi .sm-image-open:not(:first-child){height:300px}
.sm-gallery--multi .sm-image-open:not(:first-child) img{max-height:100%}

/* owner tools */
.sm-owner-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:20px 0 0;padding:10px 12px;border:1px solid var(--sw-line);border-radius:var(--sw-radius)}
.sm-owner-bar>strong{margin-right:4px;color:var(--sw-navy);font-size:13px}
.sm-owner-actions{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0}
.sm-wrap .sm-owner-actions>a,.sm-wrap .sm-owner-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 9px;border:1px solid var(--sw-line-strong);border-radius:3px;background:#fff;color:var(--sw-ink-2);font-size:12px;line-height:1;text-decoration:none;white-space:nowrap}
.sm-wrap .sm-owner-actions>a:hover,.sm-wrap .sm-owner-actions button:hover{border-color:var(--sw-blue-line);color:var(--sw-blue)}
.sm-owner-actions form{display:flex;width:auto;margin:0}
.sm-owner-actions select{width:auto;min-width:92px;min-height:30px;padding:4px 5px}
.sm-wrap .sm-owner-actions .is-danger{color:#9a4242}

/* comments + report: quieter than the body */
/* comments use the shared .sc-comments component (layout.css); only the report popover is market-specific */
.sm-comment-report summary{list-style:none;cursor:pointer}
.sm-comment-report summary::-webkit-details-marker{display:none}
.sm-comment-report[open]{flex-basis:100%}
.sm-comment-report form,.sm-listing-report form{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;margin-top:5px}
.sm-comment-report select,.sm-listing-report select{width:auto;min-height:28px;padding:3px 5px}
.sm-comment-report .sw-btn,.sm-listing-report .sw-btn{min-height:28px;padding:3px 8px;font-size:11px}
.sm-listing-report summary{color:var(--sw-danger)}
.sm-listing-report{margin:16px 0 0 auto;color:var(--sw-muted);font-size:11px;text-align:right}
.sm-listing-report summary{width:max-content;margin-left:auto;cursor:pointer}
.sm-listing-report p{margin:5px 0 0}
.sm-detail-section,.sm-owner-bar,.sm-comments{scroll-margin-top:12px}

/* original-size viewer */
.sm-image-viewer[hidden]{display:none}
.sm-image-viewer{position:fixed;z-index:100000;inset:0;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(8,15,23,.9)}
.sm-image-viewer img{display:block;max-width:94vw;max-height:92vh;width:auto;height:auto;object-fit:contain}
.sm-image-viewer-close{position:fixed;top:12px;right:16px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:27px;line-height:34px;cursor:pointer}
body.sm-image-viewer-open{overflow:hidden}

@media(max-width:700px){
 .sm-detail-page{width:100%;padding:12px 12px 24px}
 .sm-detail-page .sm-detail-back{margin-bottom:9px}
 .sm-detail-head{display:block;padding-bottom:14px}
 .sm-detail-title{font-size:19px}
 .sm-detail-meta{font-size:11px}
 .sm-detail-buy{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;min-width:0;margin-top:12px;padding:12px 0 0;border-top:1px solid var(--sw-line-soft);border-left:0}
 .sm-detail-buy__label{flex-basis:100%;margin-bottom:-6px}
 .sm-detail-buy .sm-offer-launch{margin-top:0}
 .sm-detail-buy .sm-favorite,.sm-detail-buy>a.sm-favorite__button{flex-basis:100%;margin-top:0}
 .sm-detail-price{font-size:22px}
 .sm-detail-section{padding-top:16px}
 .sm-product-item{display:block;padding:8px 10px}
 .sm-product-item dt{margin-bottom:2px;font-size:11px}
 .sm-product-item dd{font-size:13px}
 .sm-seller-bar{padding:10px 12px}
 .sm-seller-bar__actions{flex-basis:100%;margin-left:0}
 .sm-gallery--multi{gap:6px}
 .sm-wrap .sm-gallery--multi .sm-image-open:not(:first-child){height:180px}
 .sm-gallery .sm-image-open img{max-height:560px}
 .sm-owner-bar{display:block}
 .sm-owner-bar>strong{display:block;margin:0 0 7px}
 .sm-owner-actions{width:100%;gap:4px;justify-content:flex-start;overflow:visible}
 .sm-wrap .sm-owner-actions>a,.sm-wrap .sm-owner-actions button{flex:0 0 auto;min-height:28px;padding:4px 5px;font-size:10.5px}
 .sm-owner-actions select{flex:0 0 auto;width:82px;min-width:82px;min-height:28px;padding:3px 2px;font-size:11px}
 .sm-owner-bar .sm-owner-actions form{display:flex;flex:0 0 auto;width:auto;margin:0;gap:4px}
 .sm-image-viewer{padding:12px}
 .sm-image-viewer img{max-width:96vw;max-height:90vh}
}
.sm-entry-form{max-width:1040px}.sm-entry-form>h1{margin-bottom:10px}.sm-entry-table{border-top:2px solid #41546c}.sm-entry-row{display:grid;grid-template-columns:165px minmax(0,1fr);min-height:43px;border-bottom:1px solid #dce1e6}.sm-entry-row>label{margin:0;padding:11px 13px;background:#f4f6f8;color:#394653;font-size:12px;font-weight:650}.sm-entry-row>label.is-required:after{content:" *";color:#d12c35}.sm-entry-row>div{min-width:0;padding:6px 10px}.sm-entry-row>div>input,.sm-entry-row>div>select,.sm-entry-row>div>.sm-entry-inline{width:100%;max-width:600px}.sm-entry-row input,.sm-entry-row select{min-height:30px;padding:4px 7px}.sm-entry-row select{max-width:220px}.sm-entry-row small{display:block;margin-top:3px;color:#54799e;font-size:11px;line-height:1.35}.sm-entry-inline,.sm-entry-options,.sm-entry-price{display:flex;align-items:center;gap:12px}.sm-entry-inline>input{flex:1 1 auto}.sm-entry-options{flex-wrap:wrap;min-height:30px}.sm-entry-options label{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.sm-entry-options input,.sm-entry-inline input[type=checkbox]{width:auto;min-height:auto}.sm-entry-options small{flex-basis:100%;margin:0}.sm-entry-price{max-width:280px}.sm-entry-price input{min-width:0}.sm-entry-price i{font-style:normal}.sm-entry-editor-row>div{padding-block:10px}.sm-entry-form .sm-editor{width:100%;min-height:360px}.sm-entry-form .sm-editor .rx_editor_wrapper{max-width:100%}.sm-entry-form .sm-editor .cke_contents{min-height:330px}.sm-entry-file{width:auto!important}.sm-entry-actions{display:flex;justify-content:flex-end;gap:6px;padding:12px 0}.sm-entry-actions button{min-width:82px;padding:8px 13px}.sm-entry-actions button:not(.sm-primary,.sw-btn){border:1px solid #b9c1ca;background:#fff;color:#35414d}.sm-entry-form .sm-conditional[hidden]{display:none!important}
@media(max-width:700px){.sm-entry-form{width:100%;max-width:none;padding:8px}.sm-entry-row{grid-template-columns:1fr}.sm-entry-row>label{padding:7px 8px;border-bottom:1px solid #e5e8eb;background:#f6f7f9}.sm-entry-row>div{padding:7px 2px 9px}.sm-entry-row>div>input,.sm-entry-row>div>select,.sm-entry-row>div>.sm-entry-inline{max-width:none}.sm-entry-inline{align-items:flex-start;flex-direction:column;gap:5px}.sm-entry-inline>input{width:100%}.sm-entry-options{gap:8px 12px}.sm-entry-form .sm-editor{min-height:300px;overflow:hidden}.sm-entry-form .sm-editor .cke_contents{min-height:270px}.sm-entry-actions{position:static;flex-wrap:wrap}.sm-entry-actions button{flex:1 1 auto}}

/* Listing editor: one column in writing order (기본정보 → 상태 및 가격 → 거래정보 → 연락처 → 상세설명). Fields keep a
   readable width; title / long descriptions / editor use the full row. Same flow on mobile. */
.sm-entry-form{max-width:none;padding:20px 24px 28px}
.sm-entry-form>h1{margin:0 0 3px;color:var(--sw-navy);font-size:20px}
.sm-entry-intro{margin:0 0 14px;color:var(--sw-muted);font-size:12px}
.sm-entry-intro b{color:var(--sw-danger)}
.sm-entry-form>form{margin-top:0;border-top:0}
.sm-entry-section{margin:0;padding:16px 0 20px;border-top:1px solid var(--sw-line)}
.sm-entry-section:first-child{border-top:2px solid var(--sw-navy)}
.sm-entry-section>h2{margin:0 0 14px;color:var(--sw-navy);font-size:15px;line-height:1.35}
.sm-entry-grid{display:flex;flex-direction:column;gap:14px}
.sm-entry-field{display:block;width:100%;max-width:440px;min-width:0}
.sm-entry-field.is-short{max-width:240px}
.sm-entry-field.is-wide{max-width:none}
.sm-entry-field[hidden]{display:none!important}
.sm-entry-field>label:first-child{display:block;margin:0 0 5px;color:var(--sw-ink-2);font-size:13px;font-weight:600}
.sm-entry-field>label.is-required:after{content:" *";color:var(--sw-danger)}
.sm-entry-field>input,.sm-entry-field>select,.sm-entry-field>.sm-entry-price,.sm-entry-field>.sm-entry-options{width:100%;max-width:none}
.sm-entry-field input,.sm-entry-field select{min-height:36px;padding:6px 9px;border:1px solid var(--sw-line-strong);border-radius:3px;background:#fff;color:var(--sw-ink);font-size:14px}
.sm-entry-field input:focus,.sm-entry-field select:focus{border-color:var(--sw-blue);outline:0}
.sm-entry-field small{display:block;margin-top:4px;color:var(--sw-muted);font-size:12px;line-height:1.4}
.sm-entry-field .sm-entry-options input{width:auto;min-height:auto}
.sm-entry-field .sm-entry-options{display:flex;align-items:center;gap:7px 18px;flex-wrap:wrap;min-height:36px}
.sm-entry-field .sm-entry-options label{display:inline-flex;align-items:center;gap:4px;color:var(--sw-ink);font-size:14px;font-weight:400;white-space:nowrap}
.sm-entry-field .sm-entry-options small{flex-basis:100%;margin:0}
.sm-entry-price{display:flex;align-items:center;gap:7px}
.sm-entry-price input{min-width:0;flex:1 1 auto;text-align:right}
.sm-entry-price i{flex:0 0 auto;font-style:normal}
.sm-contact-options{padding:9px 12px;border:1px solid var(--sw-line-soft);border-radius:3px;background:var(--sw-subtle)}
.sm-entry-form .sm-editor{width:100%;min-height:250px;overflow:hidden}
.sm-entry-form .sm-editor .rx_editor_wrapper{max-width:100%}
.sm-entry-form .sm-editor .cke_contents{min-height:220px}
.sm-entry-form textarea{min-height:120px;resize:vertical}
.sm-entry-file{width:auto!important;max-width:100%;border:0!important;padding:0!important}
.sm-entry-actions{display:flex;justify-content:flex-end;gap:6px;padding:16px 0 0;border-top:1px solid var(--sw-line)}
.sm-entry-actions .sw-btn{min-width:82px;min-height:36px;font-size:13px}
.sm-entry-form .sm-conditional[hidden]{display:none!important}
.sm-entry-form .sm-conditional+.sm-conditional{margin-top:0}
@media(max-width:700px){
 .sm-entry-form{width:100%;max-width:none;padding:12px}
 .sm-entry-section{padding:14px 0 16px}
 .sm-entry-grid{gap:12px}
 .sm-entry-field,.sm-entry-field.is-short{max-width:none}
 .sm-entry-field input,.sm-entry-field select{font-size:15px}
 .sm-entry-form .sm-editor{min-height:205px}
 .sm-entry-form .sm-editor .cke_contents{min-height:180px!important}
 .sm-entry-form textarea{min-height:96px}
 .sm-entry-actions .sw-btn{flex:1 1 0;min-width:0}
 .sm-product-grid .sm-product-item.is-wide-mobile{grid-column:1/-1;display:grid;grid-template-columns:105px minmax(0,1fr)}
 .sm-product-grid .sm-product-item.is-wide-mobile dt,.sm-product-grid .sm-product-item.is-wide-mobile dd{min-height:0;padding:7px 8px;border-bottom:0;background:#f8f9fa}
}

/* Compact seller profile and text-only listing rows. */
.sm-seller-page{max-width:900px;padding:20px 24px 32px}
.sm-seller-head{padding-bottom:15px;border-bottom:1px solid #bfc9d2}
.sm-seller-name{display:flex;align-items:center;gap:8px}
.sm-seller-name h1{margin:0;color:#1e2933;font-size:22px;line-height:1.35}
.sm-seller-message{display:inline-flex;align-items:center;min-height:27px;padding:3px 8px;border:1px solid #bdc9d3;border-radius:2px;background:#fff;color:#315f8e!important;font-size:11px;font-weight:600;text-decoration:none}
.sm-seller-role{margin:4px 0 0;color:#7b8792;font-size:11px}
.sm-seller-stats{margin:8px 0 0;color:#526373;font-size:12px}
.sm-seller-tabs{display:flex;gap:18px;margin-top:15px;border-bottom:1px solid #d8dee4}
.sm-seller-tabs a{position:relative;padding:8px 2px 9px;color:#64717d;text-decoration:none}
.sm-seller-tabs a.is-active{color:#174f7e;font-weight:700}
.sm-seller-tabs a.is-active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#174f7e}
.sm-seller-tabs b{font-size:11px}
.sm-seller-list{list-style:none;margin:0;padding:0}
.sm-seller-list li{border-bottom:1px solid #e1e5e9}
.sm-seller-list a{display:block;min-width:0;padding:9px 2px;color:#202a35;text-decoration:none}
.sm-seller-list-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:10px}
.sm-seller-list-title{min-width:0;overflow:hidden;font-size:14px;font-weight:400;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.sm-seller-list-price{color:#174f7e;font-size:13px;line-height:1.4;text-align:right;white-space:nowrap}
.sm-seller-list-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.sm-seller-list li[data-status="sold"]{opacity:.74}
.sm-seller-list li[data-status="sold"] .sm-seller-list-price{color:#65717b}
.sm-seller-empty{margin:0;padding:22px 2px;border-bottom:1px solid #e1e5e9;color:#7a838c;font-size:12px}
@media(max-width:700px){
 .sm-seller-page{width:100%;max-width:none;padding:12px 12px 26px}
 .sm-seller-name h1{font-size:20px}
 .sm-seller-tabs{gap:15px;margin-top:12px}
 .sm-seller-list a{padding:9px 1px}
 .sm-seller-list-top{gap:8px}
 .sm-seller-list-title{font-size:14px}
 .sm-seller-list-price{font-size:13px}
 .sm-seller-list-tags{margin-top:4px}
}

/* Private price negotiation UI. */
.sm-offer-launch{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-top:10px}
.sm-wrap .sm-offer-launch>button.sm-offer-open{min-height:34px;padding:0 18px;border-radius:3px;font-size:13px;font-weight:700}
.sm-offer-launch .sm-offer-help{display:inline-flex;align-items:center;justify-content:center;width:23px;min-height:23px;padding:0;border:1px solid #9eafbe;border-radius:50%;background:#fff;color:#526b82;font-size:12px;font-weight:700}
.sm-offer-launch small{color:#7a838c;font-size:11px}
.sm-offer-dialog[hidden],.sm-counter-dialog[hidden]{display:none}
.sm-offer-dialog,.sm-counter-dialog{position:fixed;z-index:100001;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,15,23,.58)}
.sm-offer-dialog-panel,.sm-counter-dialog>div{position:relative;width:min(440px,100%);max-height:90vh;overflow:auto;padding:20px;border-radius:3px;background:#fff;box-shadow:0 14px 44px rgba(0,0,0,.28)}
.sm-offer-dialog-close,.sm-counter-close{position:absolute;top:8px;right:9px;width:28px;min-height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:#65717c!important;font-size:21px!important}
.sm-offer-dialog h2,.sm-counter-dialog h2{margin:0 34px 14px 0;font-size:18px}
.sm-offer-dialog dl{display:grid;grid-template-columns:auto 1fr;gap:8px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #e1e5e9}
.sm-offer-dialog dt{color:#75808b;font-size:12px}.sm-offer-dialog dd{margin:0;color:#174f7e;font-weight:700}
.sm-offer-compose label,.sm-counter-form label{display:block;margin-top:10px;color:#465462;font-size:12px;font-weight:650}
.sm-offer-compose textarea,.sm-counter-form textarea{display:block;width:100%;min-height:72px;margin-top:4px;resize:vertical}
.sm-offer-price-input{display:flex;align-items:center;gap:7px;margin-top:4px}
.sm-offer-price-input input{min-width:0;flex:1 1 auto}.sm-offer-price-input i{font-style:normal;font-weight:500}
.sm-offer-compose>p,.sm-counter-form>p{margin:9px 0;color:#74808b;font-size:11px}
.sm-offer-dialog-actions,.sm-counter-form>div{display:flex;justify-content:flex-end;gap:6px;margin-top:14px}
.sm-offer-dialog-actions button,.sm-counter-form>div button{min-height:32px;padding:5px 12px;border:1px solid var(--sw-blue,#1b69c7);border-radius:3px;background:var(--sw-blue,#1b69c7);color:#fff;font-size:12px;font-weight:600;cursor:pointer}
.sm-offer-dialog-actions button:not(.sm-offer-dialog-cancel):hover,.sm-counter-form>div button:not(.is-secondary):hover{background:var(--sw-blue-hover,#15579f)}
.sm-offer-dialog-actions .sm-offer-dialog-cancel,.sm-counter-form .is-secondary{border:1px solid #bdc9d3;background:#fff;color:#526271}
.sm-offer-help-panel{width:min(520px,100%)}
.sm-offer-help-panel ul{margin:0;padding-left:20px;color:#45525e;font-size:12px;line-height:1.7}
body.sm-offer-dialog-open{overflow:hidden}
.sm-offers-page{max-width:900px;padding:20px 24px 34px}
.sm-offers-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:13px;border-bottom:1px solid #bfc9d2}
.sm-offers-head h1{margin:0}.sm-offers-head p{margin:3px 0 0;color:#77838e;font-size:11px}.sm-offers-head>a{font-size:12px;text-decoration:none}
.sm-offers-tabs{display:flex;gap:18px;border-bottom:1px solid #d8dee4;white-space:nowrap}
.sm-offers-tabs a{position:relative;padding:8px 2px;color:#65717c;text-decoration:none}.sm-offers-tabs a.is-active{color:#174f7e;font-weight:700}.sm-offers-tabs a.is-active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#174f7e}.sm-offers-tabs b{font-size:10px;font-weight:650}
.sm-offer-thread{padding:14px 2px;border-bottom:1px solid #dfe4e8;scroll-margin-top:12px}
.sm-offer-thread:target{background:#f8fbfe}
.sm-offer-thread[data-ended=Y]{background:#fafbfc}.sm-offer-thread[data-ended=Y] .sm-offer-product,.sm-offer-thread[data-ended=Y] .sm-offer-current{color:#526273!important}
.sm-offer-thread-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sm-offer-thread-head>div{min-width:0;display:flex;flex-direction:column}.sm-offer-product{overflow:hidden;color:#1f2c38!important;font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}.sm-offer-thread-head small{color:#7b8792;font-size:11px}
.sm-offer-counterpart{display:flex;align-items:center;gap:3px;min-height:20px}.sm-member-menu{position:relative;display:inline-flex}.sm-member-trigger{display:inline!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;font-weight:650!important;line-height:1.45;cursor:pointer}.sm-member-trigger:hover,.sm-member-trigger:focus{color:#174f7e!important;text-decoration:underline;text-underline-offset:2px}.sm-member-trigger[aria-expanded=true]{color:#174f7e!important;text-decoration:underline;text-underline-offset:2px}.sm-member-popover[hidden]{display:none}.sm-member-popover{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;width:max-content;min-width:136px;max-width:calc(100vw - 24px);padding:3px;border:1px solid #c8d1d9;border-radius:3px;background:#fff;box-shadow:0 5px 14px rgba(20,39,56,.16)}.sm-member-popover.is-right{right:0;left:auto}.sm-member-popover a{display:flex;align-items:center;gap:7px;padding:5px 7px;color:#33495c!important;font-size:11px;font-weight:500;line-height:1.35;text-decoration:none;white-space:nowrap}.sm-member-popover a:hover,.sm-member-popover a:focus{background:#f1f6fa;color:#174f7e!important}.sm-member-popover svg{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.sm-offer-state{flex:0 0 auto;padding:2px 6px;border:1px solid #ccd3da;border-radius:2px;background:#f5f7f9;color:#65717c;font-size:10px}.sm-offer-state.is-open{border-color:#7da1c1;background:#f7fbff;color:#174f7e}.sm-offer-state.is-accepted{border-color:#74a28d;background:#f3faf6;color:#1d6d4c}
.sm-offer-list-price{margin:5px 0 0;color:#7b8792;font-size:11px}.sm-offer-list-price b{color:#667481;font-weight:600}.sm-offer-current{display:inline-block;margin-top:5px;color:#174f7e;font-size:19px}.sm-offer-actor{margin-left:7px;color:#65727e;font-size:11px}
.sm-offer-message{margin:5px 0;color:#344452;font-size:12px}.sm-offer-time{margin:4px 0;color:#7b858e;font-size:11px}
.sm-offer-actions{display:flex;align-items:center;gap:5px;margin-top:9px}.sm-offer-actions form{display:flex;gap:5px}.sm-offer-actions button,.sm-offer-cancel button{min-height:30px;padding:4px 9px;font-size:11px;white-space:nowrap}.sm-offer-actions .is-secondary,.sm-offer-cancel .is-secondary{border:1px solid #bdc9d3;background:#fff;color:#526271}.sm-offer-cancel{margin-top:9px}
.sm-offer-history{margin-top:10px;color:#6d7883;font-size:11px}.sm-offer-history summary{width:max-content;cursor:pointer}.sm-offer-history ol{margin:6px 0 0;padding:0;list-style:none;border-top:1px solid #e6eaee}.sm-offer-history li{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:7px 0;border-bottom:1px solid #e6eaee}.sm-offer-history time{color:#84909b}.sm-offer-history li>span{display:flex;min-width:0;gap:5px}.sm-offer-history em{font-style:normal}.sm-offer-history li>span em:before{content:"·";margin-right:5px}.sm-offer-history strong{color:#52697e}.sm-offer-history small{grid-column:2/-1;color:#485765}
.sm-offer-empty{margin:0;padding:26px 2px;border-bottom:1px solid #dfe4e8;color:#7a838c;font-size:12px}
@media(max-width:700px){
 .sm-offer-dialog,.sm-counter-dialog{padding:16px}
 .sm-offer-dialog-panel,.sm-counter-dialog>div{padding:18px 16px}
 .sm-offers-page{width:100%;max-width:none;padding:12px 12px 28px}
 .sm-offer-thread{padding:13px 1px}
 .sm-offer-current{font-size:17px}
 .sm-offer-product{font-size:13px}
 .sm-offer-actions,.sm-offer-actions form{flex-wrap:nowrap}
 .sm-offer-history li{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.sm-offer-history time{grid-column:1/-1}.sm-offer-history small{grid-column:1/-1}
}

/* Result of a form action (Rhymix keeps it in the session across the redirect). Without this, failed offers/saves looked like nothing happened. */
.sm-flash{margin:0 0 14px;padding:10px 12px;border:1px solid var(--sw-blue-line,#bfd5ee);border-radius:4px;background:var(--sw-blue-soft,#edf4fc);color:var(--sw-navy-2,#24446b);font-size:13px;line-height:1.5}
.sm-flash.is-error{border-color:#efc4c4;background:#fdf3f3;color:#a33a3a}

/* 관심매물 toggle in the price box (skiaccount bookmark, target_type=market) */
.sm-favorite{margin:6px 0 0}
.sm-wrap .sm-favorite button.sm-favorite__button,.sm-wrap a.sm-favorite__button{display:inline-flex;align-items:center;min-height:0;padding:2px 0;border:0;background:none;color:var(--sw-ink-2);font-size:12px;font-weight:400;cursor:pointer}
.sm-wrap .sm-favorite button.sm-favorite__button:hover,.sm-wrap a.sm-favorite__button:hover{color:var(--sw-blue)}
.sm-wrap .sm-favorite button.sm-favorite__button.is-on{color:var(--sw-blue);font-weight:600}
a.sm-favorite__button{margin-top:6px}
