/* Keep Korean words intact; allow long names and addresses to wrap safely. */
:root{font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.trade-form>*,.detail-body,.detail-body dl>*,.footer-top>*,.footer-bottom>*{min-width:0}
.trade-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.trade-form input,.trade-form textarea,.trade-form select{min-width:0;max-width:100%;font-size:16px}
.field-hint{display:block;min-width:0;font-size:12px;font-weight:400;line-height:1.6;margin-top:6px;color:#69756e;word-break:keep-all;overflow-wrap:anywhere}
.field-hint:empty{display:none}.field-error{color:#a52f2a}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#b34740!important;background:#fffafa}
.detail-body h2,.trade-row h3,.trade-row h4,.business-info,.footer-links{word-break:keep-all;overflow-wrap:anywhere}
.app-description,.app-highlights dd{word-break:keep-all;overflow-wrap:anywhere}
.detail-top{gap:12px}.detail-top>button{flex:none}.detail-top>strong,.detail-top>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 .marketplace .matching-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
 .marketplace .matching-nav .wordmark{min-width:0;white-space:nowrap}
 .marketplace .matching-nav .brand-name{font-size:15px;letter-spacing:-.03em}
 .marketplace .matching-nav .brand-logo{width:28px;height:28px}
 .marketplace .account-controls{margin:0;gap:3px;justify-content:flex-end}
 .marketplace .account-controls button{font-size:12px;white-space:nowrap;min-height:40px;padding:8px 7px}
 .marketplace .account-controls button:first-of-type{padding:8px 10px}
 .market-search{grid-column:1/-1;order:2;width:100%;min-width:0;min-height:44px}
 .market-search>span{display:none}
 .marketplace .browse-tabs{gap:24px;flex-wrap:wrap}
 .marketplace .browse-tabs button{font-size:13px;min-height:44px;white-space:nowrap}
 .marketplace .matching-intro{grid-template-columns:minmax(0,1fr)}
 .marketplace .hero-copy{padding:28px 24px}
 .marketplace .matching-hero h1{font-size:clamp(28px,7.8vw,38px);letter-spacing:-.035em;line-height:1.45}
 .marketplace .hero-gallery{min-height:190px}
 .marketplace .listing-title{font-size:14px;letter-spacing:-.02em;line-height:1.65}
 .marketplace .listing-copy .listing-price{font-size:14px;line-height:1.6}
 .listing-metadata{flex-wrap:wrap}
 .marketplace .listing-price small{display:block;margin-left:0}
 .marketplace .browse-toolbar{flex-wrap:wrap}
 dialog{max-height:calc(100dvh - 24px);max-width:calc(100% - 24px)}
 .detail-body,#account-panel .detail-body{padding:22px 20px}
 .detail-body dl{grid-template-columns:64px minmax(0,1fr);gap:12px;font-size:14px;line-height:1.7}
 .detail-body h2{font-size:24px;line-height:1.5;letter-spacing:-.025em}
 .trade-form{grid-template-columns:minmax(0,1fr);gap:20px}
 .trade-form input,.trade-form textarea,.trade-form select,.app-callout input,.app-callout textarea,.market-search input,.marketplace .filter-row select,.chat-compose textarea{font-size:16px!important;line-height:1.5}
 .trade-form input,.trade-form select{min-height:48px}
 .trade-form input[type=file]{padding:12px 8px}
 .trade-form input::file-selector-button{max-width:100%;margin-right:8px}
 .trade-form input[type=date]{appearance:none;min-height:48px}
 .trade-form input[type=date]::-webkit-date-and-time-value{text-align:left}
 .trade-consent-dialog{padding:20px}.trade-consent-actions{flex-wrap:wrap}
 .chat-compose{align-items:stretch}.chat-compose button{white-space:nowrap}
 .footer-bottom{flex-wrap:wrap;gap:12px;line-height:1.8}.business-info{font-size:12px;line-height:1.85}
}
@media(max-width:360px){
 .marketplace .shell{width:calc(100% - 32px)}
 .marketplace .matching-nav{grid-template-columns:1fr}
 .marketplace .account-controls{justify-content:flex-start}
 .marketplace .listing-grid{grid-template-columns:minmax(0,1fr)}
 .marketplace .browse-tabs{gap:18px}
 .marketplace .hero-copy{padding:24px 20px}
 .role-options{grid-template-columns:minmax(0,1fr)}
}

.bid-amount-controls{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 18px}.bid-amount-controls button{margin:0;padding:10px 18px;min-height:44px;border:1px solid #cad7cc;border-radius:99px;background:#fff;color:#294d3a;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.bid-amount-controls button:disabled{opacity:.45;cursor:default}

/* Stable first paint and identical guest/member header geometry. */
html{scrollbar-gutter:stable}
.site-header{font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif}
.marketplace .matching-nav{display:grid;grid-template-columns:max-content minmax(160px,470px) 244px;gap:clamp(12px,2.6vw,38px)}
.marketplace .site-header .market-search input{font-family:inherit}
.marketplace .account-controls{display:grid;grid-template-columns:80px 48px 100px;gap:8px;width:244px;margin:0;align-items:center}
.marketplace .account-controls button{width:100%;height:40px;padding:8px 4px}
.marketplace #account-create{grid-column:1;grid-row:1;padding:8px 4px}
.marketplace #account-login{grid-column:2/4;grid-row:1}
.marketplace #account-chat{grid-column:2;grid-row:1}
.marketplace #account-trades{grid-column:3;grid-row:1}
.marketplace .account-controls [hidden]{display:none!important}
.marketplace .account-controls[aria-busy=true] #account-login{color:#7c867e;cursor:wait}
@media(max-width:760px){
 .marketplace .matching-nav{grid-template-columns:minmax(0,1fr) 190px;gap:12px 8px}
 .marketplace .matching-nav .brand-name{font-size:14px}
 .marketplace .matching-nav .wordmark{gap:4px}
 .marketplace .matching-nav .brand-logo{width:24px;height:24px}
 .marketplace .account-controls{grid-template-columns:62px 36px 80px;gap:6px;width:190px}
 .marketplace .account-controls button{font-size:12px}
 .marketplace .market-search{grid-column:1/-1;grid-row:2}
}
@media(max-width:360px){
 .marketplace .matching-nav{grid-template-columns:1fr}
 .marketplace .account-controls{grid-row:2;justify-self:end}
 .marketplace .market-search{grid-row:3}
}
