/* HAN red, quiet white surfaces, compact controls over the original screen. */
#sheet.han-popup{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:440px;height:fit-content;max-height:min(72dvh,720px);border-radius:var(--radius-card);overflow:auto;box-shadow:0 18px 70px #1c253333}
#sheet.han-popup::backdrop{background:#17202e55;backdrop-filter:blur(1px)}
#sheet.han-popup .sheet-head{min-height:54px;padding:8px 12px 8px 18px;gap:10px}#sheet.han-popup #sheet-title{font-size:17px;line-height:1.4}#sheet.han-popup #sheet-body{padding:16px 18px 20px}
/* Bound the nested shop scroller after the shared popup size override. */
#sheet.han-popup:has(.place-pilot){height:min(72dvh,720px);overflow:hidden;padding:0}
#sheet.han-popup:has(.place-pilot)>#sheet-body{padding:0;height:100%;min-height:0;overflow:hidden}
#sheet.han-popup[open]:has(#cities-form){height:min(70dvh,640px);max-height:70dvh}#sheet.han-popup #sheet-body:has(#cities-form){padding:0}
#sheet.han-popup.home-content-popup{max-width:360px}#sheet.han-popup.home-content-popup #sheet-body{padding-top:4px}
#sheet.han-popup .stack input:not([type=checkbox]):not([type=radio]),#sheet.han-popup .stack textarea,#sheet.han-popup .stack select{font-size:max(16px,var(--text-body))}
#sheet.han-popup .sheet-head .iconbtn{width:36px;height:36px;min-height:36px}
/* Compact map controls keep the map as the main surface. */
.app.map-route main.map-main{padding:0!important}.app.map-route .map-shell{height:var(--map-available-height,calc(100dvh - 116px));min-height:0;overflow:hidden}.app.map-route .map-stage{min-height:0;flex:1 1 auto}
.app.map-route .map-toolbar{padding:7px 10px 4px}.app.map-route .map-search-row{gap:6px}.app.map-route .map-search{height:44px;min-height:44px;border-radius:var(--radius-control);box-shadow:none;padding:0 10px}.app.map-route .map-search input{font-size:max(16px,calc(11px * var(--han-type-scale,1)))}.app.map-route .map-view-toggle,.map-scope-toggle{height:36px;min-height:36px;min-width:36px;border-radius:var(--radius-control);font-size:12px}.map-scope-toggle{display:grid;place-items:center;border:1px solid var(--line);width:36px;background:#fff}.map-scope-toggle .icon{width:18px;height:18px}
.app.map-route .map-filter-bar{gap:5px}.app.map-route .map-filter-row{display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;margin-top:0;margin-bottom:-2px;padding:5px 0;gap:6px;scrollbar-width:none;touch-action:pan-x}
.app.map-route .map-filter-row .map-filter{white-space:nowrap;flex:0 0 auto;min-width:max-content;min-height:34px;padding:6px 11px;font-size:12px}.app.map-route .map-filter-bar .map-filters-toggle{height:34px;min-height:34px;width:34px;min-width:34px;border-radius:var(--radius-control)}.app.map-route .map-city-label{display:none}.app.map-route .map-recenter{bottom:18px}
.app.map-route .map-results-sheet[data-snap="1"]{height:42%}.app.map-route .map-stage[data-sheet-snap="1"] .map-recenter{bottom:calc(42% + 12px)}.app.map-route .map-stage[data-sheet-snap="2"] .map-recenter{visibility:hidden}
/* Board chips and thumbnail rows use the reference's quick browsing pattern. */
.board-rail{display:flex;gap:7px;overflow-x:auto;align-items:center;margin:4px -2px 4px;padding:3px 2px 7px;scrollbar-width:none;white-space:nowrap;touch-action:pan-x}.board-rail>button{flex:none;min-height:38px;border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:13px;display:flex;align-items:center;gap:5px;background:#fff}.board-rail>button.active{border-color:var(--ink);background:var(--ink);color:#fff;font-weight:var(--w-strong)}.board-rail .board-menu{background:#f5f6f7;font-weight:var(--w-regular)}.board-menu .icon{width:15px;height:15px}.board-popup-list{margin-top:12px}.board-popup-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 0;text-align:left;border-bottom:1px solid var(--line)}.board-popup-row>span:nth-child(2){flex:1;min-width:0}.board-popup-row strong{display:block;font-size:15px}.board-popup-row small{display:block;font-size:var(--text-small);color:var(--muted);margin-top:4px}.board-view{font-size:12px;background:#f3f4f6;border-radius:var(--radius-tag);padding:7px 10px}.board-thumb{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:var(--radius-control);background:none;color:var(--accent-ink)}.board-thumb .icon{width:22px;height:22px}.board-advanced{border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--muted)}.board-advanced>summary{cursor:pointer}.board-advanced form{margin-top:14px}.home-board-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.home-board{display:grid;justify-items:center;gap:8px;font-size:12px;min-height:78px}.home-board .board-thumb{width:44px;height:44px}
.job-employment{margin:16px 0 10px}.job-employment-main{display:grid;grid-template-columns:1fr 1fr;gap:10px}.job-employment-choice{padding:16px 12px;border:1px solid var(--line);border-radius:var(--radius-control);text-align:left;display:grid;gap:6px;min-height:80px;background:#fff}.job-employment-choice strong{font-size:17px}.job-employment-choice small{font-size:12px;color:var(--muted)}.job-employment-choice.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-ink)}.job-employment-other{display:flex;gap:12px;justify-content:flex-end;margin-top:3px}.job-employment-other .textbtn{font-size:12px;min-height:36px}.job-employment-other .active{color:var(--primary);font-weight:var(--w-bold)}
/* One readable neighborhood-market row per item. */
#main .product-grid:has(>.market-row){display:block}.market-row{display:flex;width:100%;gap:14px;padding:17px 0;border-bottom:1px solid var(--line);text-align:left;min-width:0;background:#fff}.market-row-photo{display:block;width:104px;height:104px;flex:0 0 104px;border-radius:var(--radius-control);overflow:hidden;background:#f5f5f4}.market-row-photo>img,.market-row-photo>svg{display:block;width:100%;height:100%;object-fit:cover}.market-row-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.market-row-copy>strong{font-size:16px;font-weight:var(--w-strong);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.market-row-meta,.market-row-source{font-size:var(--text-small);color:var(--muted);line-height:1.5}.market-row-price{font-size:16px;font-weight:var(--w-bold);margin-top:2px}.market-row-price .tag{margin-right:5px}.price-propose-entry{color:var(--blue);font-size:14px;text-decoration:underline;margin-bottom:6px}.offer-item{font-size:15px;line-height:1.5;margin:0 0 6px}
#sheet.market-compose-popup{max-width:460px}#sheet.market-compose-popup .sheet-head{display:grid;grid-template-columns:40px 1fr 52px;padding:8px 12px}#sheet.market-compose-popup #sheet-title{grid-column:2;grid-row:1;text-align:center;font-size:16px}#sheet.market-compose-popup .sheet-head>[data-action=close]{grid-column:1;grid-row:1;background:none}#sheet.market-compose-popup [data-market-complete]{grid-column:3;grid-row:1;color:var(--primary);font-size:15px;font-weight:var(--w-bold);min-height:44px;min-width:44px;padding:0}#sheet.market-compose-popup:not(.chat-page) .sheet-back{display:none}
#sheet.market-compose-popup #sheet-body{padding:4px 18px 18px}.market-compose-form{gap:0}.market-photo-strip{display:flex;gap:10px;padding:16px 0 22px;overflow-x:auto}.market-photo-add{display:flex!important;position:relative;flex:0 0 78px;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:78px;height:78px;border:1px solid var(--line);border-radius:var(--radius-control);color:var(--muted);font-size:var(--text-small)!important;cursor:pointer}.market-photo-add>.icon{width:24px;height:24px}.market-photo-add input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.market-photo-strip [data-market-photo-preview]{display:flex;gap:8px}.market-photo-strip img{width:78px;height:78px;object-fit:cover;border-radius:var(--radius-control)}
#sheet .market-compose-title input,#sheet .market-compose-price input:not([type=checkbox]):not([type=radio]),#sheet .market-compose-body textarea{border:0;border-radius:0;background:none;padding:16px 0;font-size:16px;box-shadow:none;min-height:52px}#sheet .market-compose-title{border-bottom:1px solid var(--line);border-top:1px solid var(--line)}.market-compose-price{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.market-compose-price>label:first-child{flex:1;min-width:0}.market-compose-price .check{white-space:nowrap;font-size:13px;font-weight:var(--w-regular)}#sheet .market-compose-price input[readonly]{color:var(--muted)}.market-negotiate{padding:9px 0!important;min-height:44px!important;font-size:13px!important}#sheet .market-compose-body textarea{min-height:190px;resize:vertical;line-height:1.7;padding-top:10px}.market-location,.market-extra{padding:17px 0;border-top:1px solid var(--line);font-size:14px}.market-location>summary,.market-extra>summary{cursor:pointer;list-style:none}.market-location>summary{display:flex;justify-content:space-between;gap:12px}.market-location>summary>span{font-size:12px;color:var(--muted);display:flex;gap:5px;align-items:center}.market-location>label{margin-top:14px}.market-extra[open]>.market-condition-editor{margin-top:16px}.market-compose-form>.fieldhelp{font-size:var(--text-small);padding:0 0 12px}.market-save{min-height:44px}
@media(max-width:359px){.market-row{gap:11px}.market-row-photo{width:88px;height:88px;flex-basis:88px}.market-row-copy>strong{font-size:14px}.market-row-source{font-size:var(--text-small)}#sheet.han-popup{width:calc(100% - 24px);max-height:74dvh}.home-board{font-size:var(--text-small)}.board-popup-row{gap:9px}.board-popup-row small{font-size:var(--text-small)}}
#sheet.market-compose-popup .device-draft{padding:7px 0 10px;margin:0 0 8px;background:transparent;border:0;border-radius:0}#sheet.market-compose-popup .device-draft p{font-size:var(--text-small);line-height:1.5;margin:0;color:var(--muted)}#sheet.market-compose-popup .device-draft>small{display:none}#sheet.market-compose-popup .device-draft button{min-height:34px;font-size:12px}#sheet.market-compose-popup .market-draft-help{font-size:var(--text-small);color:var(--muted);margin:6px 0 12px}#sheet.market-compose-popup .market-draft-help>summary{cursor:pointer}
#sheet .market-compose-form input,#sheet .market-compose-form textarea{font-weight:var(--w-regular)}.market-compose-form .market-extra .market-condition-editor{min-width:0}
.market-range-compact{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 8px;margin:4px 0 12px}.market-range-compact>span{font-size:13px;font-weight:var(--w-strong);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-range-compact>.textbtn{font-size:12px;min-height:36px}.market-range-compact>.chips{width:100%;margin:0}.market-range-compact .chip{font-size:var(--text-small);min-height:34px}.app #main[data-route=market]>.list-intro{margin-bottom:10px}.app #main[data-route=market]>.list-intro h1{font-size:var(--text-title)}.app #main[data-route=market]>.list-intro p{font-size:12px}



.city-stage-options{border:0;padding:0;margin:0;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.city-stage-options legend{font-weight:var(--w-bold);margin-bottom:12px;font-size:var(--text-section)}
#cities-form .city-stage-options label{min-height:48px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:var(--text-control)}
#cities-form .city-stage-options label:has(input:checked){border-color:var(--blue);background:var(--blue-soft)}

#sheet.han-popup .detail-footer{bottom:0}

/* 시트 글자 위계(2026-11-06 사용자 요청): 시트 제목(--text-section) > 섹션 제목(--text-card) > 본문(--text-body) > 보조(--text-meta·--text-control).
   모바일 1.5배에서 클래스 없는 문단이 루트 글자(22.5px)를 그대로 물려받아 17px 시트 제목보다 커지던 문제. 앱 글자 1.8배에서도 순서가 유지되도록 역할 토큰만 씁니다. */
#sheet.han-popup #sheet-title,#sheet.market-compose-popup #sheet-title{font-size:var(--text-section)}
#sheet.han-popup #sheet-body{font-size:var(--text-body);line-height:var(--lh-body)}
:where(#sheet.han-popup #sheet-body) h3{font-size:var(--text-card)}
.quote-notice-heading h3{font-size:var(--text-card)}
.detail-meta{font-size:var(--text-control)}
#sheet-body .details-list li,#sheet .pwa-browser-guide p,#sheet .pwa-extra p,#sheet .pwa-feedback,.reward-attendance-guide .reward-note{font-size:var(--text-body)}
#sheet .pwa-browser-guide ol+p{font-size:var(--text-meta)}.group-empty{font-size:var(--text-control)}
#sheet .pwa-extra summary,#sheet .pwa-manual>summary,[data-reward-view] .reward-attendance-guide>summary{font-size:var(--text-body)}
#sheet-body .my-group>h3,#sheet .request-summary h2{font-size:var(--text-card)}
#sheet .review{font-size:var(--text-body)}#sheet .review p{font-size:var(--text-control)}
#sheet .pwa-intro p,#sheet .first-timer-note p,.quote-inbox-intro p{font-size:var(--text-body)}
#sheet .first-timer-note p.fieldhelp{font-size:var(--text-meta)}
.quote-request-title,.quote-scope,#sheet .request-summary>p{font-size:var(--text-control)}
/* 같은 원인(상속 22.5px)으로 섹션 제목보다 커지던 메인 화면 안내·상태 문장 */
.study-notice,.chat-inbox-status,.together-meetups p[role=status]{font-size:var(--text-control)}
/* 중고·나눔 정리(2026-11-09): 맨 위 소개 묶음 삭제, 위치·반경은 상단 바 도시 옆, 물건 검색창, '전체 글(N개)', 한 칸 높이 줄임, 상세 판매자 줄 위로 */
#header .header-radius{flex:none;position:relative;min-height:44px;min-width:44px;padding:0 2px;font-size:13px;font-weight:var(--w-strong);color:var(--primary);white-space:nowrap}
#header .header-radius.is-active{text-decoration:underline;text-underline-offset:4px}
.market-search{position:relative;display:flex;align-items:center;margin:4px 0 10px}
.market-search input{width:100%;min-height:44px;margin:0;padding:10px 44px 10px 40px;border:1px solid var(--line);border-radius:12px;background:#f7f8fa;font-size:16px;line-height:1.4;-webkit-appearance:none;appearance:none}
.market-search input::-webkit-search-cancel-button,.market-search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.market-search-icon{position:absolute;left:12px;top:50%;translate:0 -50%;display:grid;color:var(--muted);pointer-events:none}
.market-search-icon .icon{width:18px;height:18px}
.market-search-clear{position:absolute;right:0;top:0;width:44px;height:44px;display:grid;place-items:center;color:var(--muted)}
.market-search-clear .icon{width:16px;height:16px}
.market-count{margin:6px 0 0;font-size:var(--text-body);font-weight:var(--w-strong);line-height:1.4;overflow-wrap:anywhere}
.market-count .list-head-note{margin-left:2px}
.market-range-compact{border:0;padding:0;margin:8px 0 0}
.market-row{gap:12px;padding:12px 0}
.market-row-photo{width:88px;height:88px;flex-basis:88px}
.market-row-copy{gap:2px}
.market-row-copy>strong{line-height:1.4}
.market-row-meta,.market-row-source{line-height:1.4}
.market-row-price{margin-top:1px;line-height:1.4}
.market-row-seller{color:var(--ink);font-weight:var(--w-strong)}
@media(max-width:359px){.market-row{gap:10px}.market-row-photo{width:76px;height:76px;flex-basis:76px}}
.market-seller{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;margin:0 0 6px;border-bottom:1px solid var(--line)}
.market-seller .post-byline{margin:0;min-width:0}
.market-seller .post-byline-text{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;color:var(--ink);font-weight:var(--w-strong)}
.market-seller .post-byline-text>small{flex-basis:100%;font-size:var(--text-small);font-weight:var(--w-regular,400);color:var(--muted)}
.market-seller .post-byline-text .tag{font-weight:var(--w-regular,400)}
.market-seller-more{flex:none;display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 0 0 6px;font-size:13px}
.market-seller-more .icon{width:14px;height:14px}
:is(#sheet-body,.context-panel-body):has(>.market-seller) .detail-art{margin-bottom:8px}
:is(#sheet-body,.context-panel-body):has(>.market-seller) .detail-title{margin:6px 0 2px}
:is(#sheet-body,.context-panel-body):has(>.market-seller) :is(.detail-price,.price){display:inline-block;vertical-align:middle;margin:2px 12px 2px 0}
:is(#sheet-body,.context-panel-body):has(>.market-seller) .detail-price{font-size:calc(20px * var(--han-type-scale,1))}
:is(#sheet-body,.context-panel-body):has(>.market-seller) .price-propose-entry{display:inline-flex;align-items:center;vertical-align:middle;min-height:44px;margin:0;padding:0}
:is(#sheet-body,.context-panel-body):has(>.market-seller) .body-copy{margin-top:8px}
#price-proposal-form [data-offer-error]{margin:-4px 0 0;font-size:var(--text-meta);line-height:1.5}#price-proposal-form [data-offer-error].is-invalid{color:var(--danger)}#price-proposal-form input[aria-invalid=true]{border-color:var(--danger)}#price-proposal-form [data-offer-error]:empty{display:none}
@media(max-width:360px){#header .header-radius-long{display:none}#header:has(.header-radius[data-action="cities"]) .header-actions [data-id="search"]{display:none}#header .header-start:has(.header-radius){gap:max(0px,calc(5px - (var(--han-type-scale,1) - 1) * 6px))}#header .header-radius{min-width:44px;padding:0;margin:0}}
