/* Shared icon controls and fluid desktop workspace. */
/* Intro and onboarding provide their own spacing at every breakpoint. */
body.is-onboarding #main{padding:0}
.action-menu{position:relative;flex:none}.action-menu summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:12px}.action-menu summary::-webkit-details-marker{display:none}.action-menu summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.action-menu .icon{stroke-width:3.2}.action-menu-items{position:absolute;right:0;top:calc(100% + 6px);z-index:15;min-width:180px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-control);padding:6px;box-shadow:0 8px 28px #17191f18}.action-menu-item{display:block;width:100%;min-height:44px;padding:10px 12px;border-radius:var(--radius-control);text-align:left;font-size:var(--text-control)}@media(hover:hover) and (pointer:fine){.action-menu-item:hover{background:var(--soft)}}.detail-tools{display:flex;justify-content:flex-end;margin:0 0 12px}.interest-button{border:1px solid var(--line);border-radius:12px;flex:0 0 48px!important;min-width:48px!important;width:48px;height:48px}.interest-button.is-saved{color:var(--primary-ink);background:var(--primary-soft);border-color:#f4cbd2}.interest-button.is-saved .icon{fill:currentColor}.message-form .message-send{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;background:var(--primary);color:#fff}.message-send .icon{width:21px;height:21px}.dg-more.iconbtn{width:44px;height:44px;padding:0;justify-content:center;border-radius:12px}.dg-more.iconbtn .icon{width:20px;height:20px}@media(hover:hover) and (pointer:fine){.dg-more:hover{color:var(--ink)}}
/* 닫힌 더보기 메뉴는 화면에서만 숨기지 말고 배치에서도 뺀다(숨겨진 항목의 터치 영역이 옆 글자와 겹쳐 보이는 것을 막음). */
.action-menu:not([open])>.action-menu-items{display:none}
.map-filter-bar{display:flex;align-items:center;gap:8px;min-width:0}.map-filter-bar .map-filter-row{flex:1;min-width:0}.map-filter-bar .map-filters-toggle{position:relative;display:inline-flex;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;border:1px solid var(--line);border-radius:12px;padding:0;align-self:center}.map-filters-toggle.is-open{background:var(--blue-soft);border-color:var(--secondary-line);color:var(--blue)}.filter-applied-dot{position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 2px #fff}.map-detail-filters[hidden]{display:none}
@media(min-width:768px){
 .workspace{width:100%;max-width:1600px;grid-template-columns:208px minmax(0,1fr)}
 .context:not(.is-detail){display:none}.workspace:has(.context.is-detail){grid-template-columns:208px minmax(0,1fr) clamp(360px,30vw,480px)}
 .context.is-detail{display:flex;min-width:0}.app>header{padding-inline:32px}.app>main:not(.map-main){padding-inline:32px}.write{margin-left:0;right:max(32px,calc((100vw - 1600px)/2 + 32px));bottom:28px}
 .workspace:has(.context.is-detail) .write{right:calc(max(0px,(100vw - 1600px)/2) + clamp(360px,30vw,480px) + 24px)}
 #main[data-route=home] .dg-products{gap:20px}#main[data-route=home] .dg-product-art{max-height:240px}
}
@media(min-width:1100px){
 .workspace:not(:has(.context.is-detail)) #main[data-route=home]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;align-items:start}
 .workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-greeting,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-daily,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.daily-card,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-paths,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-start-guide,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.daily-ad,.workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-bottom-note{grid-column:1/-1}
 .workspace:not(:has(.context.is-detail)) #main[data-route=home]>.dg-neighbors{grid-row:span 2}.dg-section{min-width:0}
}
@media(min-width:768px) and (max-width:1199px){
 .workspace{grid-template-columns:76px minmax(0,1fr)}.workspace:has(.context.is-detail){grid-template-columns:76px minmax(0,1fr) 340px}.workspace:has(.context.is-detail) .write{right:364px}.app>header{padding-inline:24px}.app>main:not(.map-main){padding-inline:24px}
}
@media(max-width:767px){.workspace{max-width:520px}.map-toolbar{padding-inline:12px}.map-filter-bar{gap:6px}}

/* Mobile content scrolls vertically; the map owns its pan gestures. */
@media (max-width:767px){
  html,body{overflow-x:clip;overscroll-behavior-x:none}
  .workspace,.app,main,#sheet-body{min-width:0;max-width:100%}
  dialog,.shared-chat-body,.map-results-scroll,.map-detail-filters,.map-stage.is-list{overflow-x:hidden}
  .app .tabs,.app .chips,.app .map-filter-row,.app .prep-topics,
  #sheet .chips,#sheet .tabs{flex-wrap:wrap;overflow:visible;white-space:normal;touch-action:pan-y pinch-zoom}
  .app .tabs{column-gap:16px;row-gap:0}
  .app .tabs button,.app .chips button,.app .map-filter-row .map-filter,.app .prep-topics button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .shared-photos,.photo-gallery{flex-wrap:wrap;overflow:visible;scroll-snap-type:none;touch-action:pan-y pinch-zoom}
  .shared-photos img,.photo-gallery img{max-width:100%}
  #sheet-body{overflow-wrap:anywhere}
}

/* Live Google photo: natural proportions, bounded width, visible attribution. */
.shop-photo{margin:16px 0;width:100%;min-width:0;overflow:hidden}
.shop-photo>img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:var(--radius-card);background:#f5f5f5}
.shop-photo figcaption{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:8px;font-size:12px;line-height:1.5;color:#5e5e5e;overflow-wrap:anywhere}
.shop-photo figcaption a{color:inherit;text-decoration:underline}
.shop-photo-google{font:400 14px Arial,sans-serif}
/* Optional first-login guidance uses the existing home colors and type scale. */
.home-first-action{grid-column:1/-1;max-width:720px;width:100%;margin:0 auto 20px;padding:16px 20px 20px;border:1px solid var(--line);border-radius:var(--radius-card);background:#fff;min-width:0}
.home-first-action-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px}
.home-first-action-head>span{font-size:var(--text-meta);font-weight:var(--w-strong);color:var(--muted)}
.home-first-action h2{font-size:var(--text-section);line-height:var(--lh-section);margin:0 0 6px;overflow-wrap:anywhere}
.home-first-action>p{font-size:var(--text-body);line-height:1.7;color:var(--muted);margin:0 0 12px}
.home-first-action-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;font-size:var(--text-control);font-weight:var(--w-bold);text-align:left;white-space:normal;color:var(--blue)}
.home-first-action[data-category="question"] .home-first-action-link{color:var(--primary)}
.city-undecided-note{grid-column:1/-1;width:100%;max-width:720px;margin:0 auto 20px}
.city-undecided-note p{margin:6px 0;line-height:1.7}

.ob-friendly .ob-city-later{color:var(--blue);font-size:var(--text-control);font-weight:var(--w-strong);margin:0 0 16px}
.cp-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cp-quick-city{display:grid;align-content:center;gap:4px;min-height:68px;min-width:0;padding:10px 5px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center;line-height:1.4}
.cp-quick-city strong{font-size:var(--text-meta);overflow-wrap:anywhere}
.cp-quick-city span{font-size:var(--text-small);color:var(--muted)}
.cp-quick-city.is-selected{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
.cp-quick-city:focus-visible,.cp-details summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.cp-details>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted);font-size:var(--text-meta);line-height:1.5}
.cp-details>label{margin:4px 0 8px}
.cp-results{display:grid;gap:8px;min-width:0}
.cp-results[hidden]{display:none}

/* The feed scope is a viewing filter; it never changes the saved primary city. */
.feed-city-scope{grid-column:1/-1;width:100%;padding:0;margin:0 0 8px;border:0;border-radius:0;background:transparent;min-width:0;overflow-wrap:anywhere}
.feed-city-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.feed-city-scope strong{font-size:var(--text-body);line-height:1.6}
.feed-city-scope p{margin:4px 0 0;color:var(--muted);font-size:var(--text-small);line-height:1.7}
.feed-city-scope .textbtn{min-height:36px;padding:4px 0;flex-shrink:0}
.feed-city-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.feed-city-buttons .chip{min-height:44px;white-space:normal;text-align:left}

/* Home starts with local actions; personal routines follow the local feed. */
#main[data-route="home"] .home-city-scope{padding:0 0 12px;margin:0 0 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.home-city-scope .feed-city-heading{align-items:center}
.home-city-scope .feed-city-heading>strong{flex:1;min-width:0;font-size:var(--text-meta)}
#main[data-route="home"] .home-city-scope .textbtn{min-height:44px}
#main[data-route="home"]>.prep-mode{margin-bottom:16px}
#main[data-route="home"]>.dg-paths{margin-top:0}
.home-first-action-compact{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px auto 0;padding:10px 14px;background:var(--soft)}
.home-first-action-compact>div{min-width:0;flex:1}
.home-first-action-compact>div>span{display:block;color:var(--muted);font-size:var(--text-small)}
.home-first-action-compact>.iconbtn{flex:none;order:-1;margin-left:-8px}
.home-first-action-compact .home-first-action-link{padding:4px 0}
.dg-personal{grid-column:1/-1;margin-top:32px;padding-top:24px;border-top:1px solid var(--line);min-width:0}
.dg-personal>.dg-section-head{margin-bottom:16px}
.dg-personal h2{font-size:var(--text-section)}
[data-home-rewards]{grid-column:1/-1;width:100%;min-width:0}
.dg-personal .reward-entry{margin-top:0}
.dg-personal .daily-card{margin:0}
.meetup-quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.meetup-quick-filters .chip{display:inline-flex;align-items:center;gap:5px}
.meetup-quick-filters .icon{width:14px;height:14px}
.meetup-detail-filters{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--soft)}
.meetup-detail-filters[hidden]{display:none}
.meetup-detail-filters h2{font-size:var(--text-section)}
.meetup-active-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:var(--text-meta)}
.list-city-scope{padding:0 0 8px;margin-bottom:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.list-city-scope strong{font-size:var(--text-meta)}
.list-city-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:var(--text-meta);color:var(--blue)}
.prep-record-jump{margin-top:16px}
#prep-task-form{scroll-margin-top:80px}
.prep-start>.prep-primary{margin-top:20px}
.compose-progress{display:flex;gap:6px;scroll-margin-top:80px}
.compose-progress button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-height:48px;min-width:0;padding:6px;border-bottom:3px solid var(--line);font-size:var(--text-meta);color:var(--muted)}
.compose-progress button[aria-current]{border-color:var(--blue);color:var(--blue);font-weight:var(--w-bold)}
.compose-progress button span{font-variant-numeric:tabular-nums}
.compose-step{min-width:0}.compose-step[hidden],.compose-step-actions button[hidden],.flow-form-footer[hidden]{display:none}
.compose-step-actions{display:flex;gap:12px;justify-content:space-between;margin-top:16px}
.compose-required{color:var(--danger);font-weight:var(--w-bold)}
/* 라벨에 이미 필수 표시(required-marks.js의 .req-mark)가 있으면 단계형 글쓰기의 *는 숨깁니다(따로 한 줄로 떠 보이던 중복, 2026-11-12). */
label:has(.req-mark)>.compose-required{display:none}
.compose-optional>summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:var(--w-strong);font-size:var(--text-control)}
.compose-optional{border-top:1px solid var(--line);margin:10px 0}

/* Give an empty city a nearby path without changing the primary city. */
.city-nearby-empty{grid-column:1/-1;width:100%;margin:20px 0;padding:24px 20px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--secondary-soft);min-width:0;overflow-wrap:anywhere}
.city-nearby-empty h2{font-size:var(--text-section);line-height:var(--lh-section)}
.city-nearby-empty>p{margin:10px 0 16px;color:var(--muted);font-size:var(--text-body);line-height:1.8}
.city-nearby-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.city-nearby-actions button{min-height:48px;white-space:normal;text-align:left}
.city-nearby-empty>small{display:block;font-size:var(--text-small);line-height:1.7;color:var(--muted)}
.city-nearby-links{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:16px}
.city-nearby-links .textbtn{min-height:44px;text-align:left;white-space:normal}

/* Search recovery: ordinary words, with optional public guides. */
.search-recovery{margin:20px 0;padding:22px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface,#fff);overflow-wrap:anywhere}
.search-recovery h2{font-size:var(--text-section);line-height:var(--lh-section);margin:0 0 8px}
.search-recovery>p{font-size:calc(13px * var(--han-type-scale,1));line-height:1.8;color:var(--muted)}
.search-recovery h3{font-size:var(--text-card);margin:22px 0 10px}
.search-recovery .chips{display:flex;flex-wrap:wrap;gap:8px}
.search-guide-link{display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;gap:5px 10px;width:100%;padding:14px 0;border-bottom:1px solid var(--line);background:transparent}
.search-guide-link>span{font-size:max(12px,calc(11px * var(--han-type-scale,1)));color:var(--muted)}
.search-guide-link>strong{grid-column:1;font-size:calc(14px * var(--han-type-scale,1));line-height:1.6}
.search-guide-link>.icon{grid-column:2;grid-row:1 / 3;align-self:center}
.search-recovery-actions{display:grid;gap:8px;margin-top:22px}

/* Author-selected life topics use the existing neutral chips and touch targets. */
.community-filter-bar{flex-wrap:wrap;gap:8px}
.life-topic-fields{border:0;padding:0;min-width:0;margin:10px 0}
.life-topic-fields legend{font-weight:var(--w-strong);margin-bottom:10px;font-size:calc(14px * var(--han-type-scale,1))}
.life-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.life-topic-grid .check{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:9px 12px;margin:0;overflow-wrap:anywhere;font-size:calc(13px * var(--han-type-scale,1))}
.life-topic-grid input{flex-shrink:0}
.life-topic-grid .check:has(input:checked){border-color:var(--ink);background:var(--surface-soft,#f6f7f9)}
/* HAN-029: free guides first, expert help as a fallback. */
.guide-more,.guide-expert-fallback{margin-top:24px}.guide-more h2,.guide-expert-fallback h2{font-size:var(--text-section);margin:18px 0 6px}.guide-more .chips{margin-top:10px}.guide-prep-links{display:grid;gap:8px;margin-top:10px}.guide-prep-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--radius-control);background:#fff;padding:14px 15px;font-size:calc(13px * var(--han-type-scale,1))}.guide-prep-link>span{flex:1;min-width:0;overflow-wrap:anywhere}.guide-prep-link .icon{width:12px;height:12px}.guide-expert-fallback{padding-top:6px;border-top:1px solid var(--line)}.guide-expert-fallback .guide-expert-link{margin-top:12px}
/* HAN-030: experience context and HAN-checked official sources are visually distinct. */
.tag.experience{background:#f1f3f6;color:#4b5563}.official-source{border:1px solid var(--secondary-line);background:#f5f9ff;border-radius:12px;padding:10px 12px;margin-top:10px}.official-label{display:inline-block;font-size:max(12px,calc(11px * var(--han-type-scale,1)));font-weight:var(--w-bold);color:var(--secondary);margin-bottom:4px}.official-source .fieldhelp{margin:0}
/* HAN-031: easy small meetup entry. */
.meetup-easy-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--radius-control);background:#fff;padding:13px 15px;margin:12px 0}.meetup-easy-link>span{flex:1;min-width:0}.meetup-easy-link strong,.meetup-easy-link small{display:block}.meetup-easy-link strong{font-size:calc(14px * var(--han-type-scale,1))}.meetup-easy-link small{font-size:max(12px,calc(11px * var(--han-type-scale,1)));color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.meetup-easy-link .icon{width:12px;height:12px}
/* HAN-032: first-timer reassurance. */
.first-timer-count{margin-top:4px}.first-timer-note{margin:16px 0;padding:13px 15px;border-radius:var(--radius-control);background:var(--accent-soft,#f3f7f4);overflow-wrap:anywhere}.first-timer-note h3{font-size:var(--text-card);margin-bottom:6px}.first-timer-note p{font-size:calc(13px * var(--han-type-scale,1));line-height:1.7;white-space:pre-wrap}.sample-reviews{margin:18px 0}.sample-reviews h3{font-size:var(--text-card)}.sample-reviews .review .tag{margin-left:6px}
/* HAN-036: map-pin location picker. */
.loc-picker{margin-top:6px}.loc-map{height:220px;border-radius:12px;border:1px solid var(--line);overflow:hidden;margin:8px 0}.loc-picker .textbtn{padding-left:0}.loc-help summary{cursor:pointer;font-size:calc(12px * var(--han-type-scale,1));color:var(--muted)}
.loc-map .leaflet-control-attribution{font-size:10px;line-height:1.3;background:#fffffff2;max-width:170px;white-space:normal}.loc-map .leaflet-control-zoom a{font-size:18px}

/* Keep disclosure visible beside the sticky sample CTA. */
.detail-footer.inquiry-sample-footer{flex-wrap:wrap;bottom:0;padding-bottom:8px}.inquiry-sample-footer>.inquiry-preview-note{flex:0 0 100%;margin:0 0 8px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5}

.dg-explore{grid-column:1/-1;min-width:0}.dg-explore .dg-paths{margin-top:0;border-bottom:0;padding-bottom:4px}.dg-explore-extra{display:flex;flex-wrap:wrap;gap:4px 18px;padding:0 0 8px;border-bottom:1px solid var(--line)}.dg-explore-extra .textbtn{color:var(--muted)}

.search-scope-compact{margin:12px 0 16px;border-bottom:1px solid var(--line);padding-bottom:8px}.search-scope-compact summary,.search-rules summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:var(--text-meta);color:var(--blue)}.search-scope-compact summary:after,.search-rules summary:after{content:'';margin-left:auto}.search-scope-compact .feed-city-heading{justify-content:flex-end}.search-scope-compact p{font-size:var(--text-meta);line-height:1.7;color:var(--muted);margin:8px 0}.search-rules{margin:8px 0 12px}

.city-settings-guide{margin-bottom:16px}.city-settings-guide>summary{cursor:pointer;min-height:44px;font-size:var(--text-meta);color:var(--blue);padding:10px 0}

.login-purpose{padding:14px;margin-bottom:16px;background:var(--blue-soft);border-radius:12px}.login-purpose>p,.login-return p{margin-top:6px;overflow-wrap:anywhere}.login-return{grid-column:1/-1;display:flex;align-items:start;gap:8px;padding:14px;background:var(--blue-soft);border-radius:12px;margin-bottom:16px;font-size:var(--text-meta)}.login-return>div{flex:1;min-width:0}.login-return>.iconbtn{flex:none}

.shop-card-source{margin-top:10px}.shop-card-source .tag{font-size:var(--text-small)}

[data-my-section]>.prep-my{margin:0 0 10px}[data-my-section] .my-shortcuts{margin:10px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}[data-my-section="records"] .my-shortcuts>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:48px}[data-my-section="records"] .my-shortcuts>button b{font-size:var(--text-body)}.my-routines{padding-bottom:8px}

.room-key-summary{padding:16px;background:var(--soft);border-radius:var(--radius-control);margin:16px 0}.room-key-summary dl>div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.5fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:var(--text-meta)}.room-key-summary dd{margin:0;font-weight:var(--w-strong);overflow-wrap:anywhere}.room-fact-details{margin:12px 0;border-bottom:1px solid var(--line)}.room-fact-details>summary{cursor:pointer;min-height:48px;padding:12px 0;font-size:var(--text-control);font-weight:var(--w-strong)}

.conversation-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;width:100%;min-width:0;text-align:left;white-space:normal}.conversation-copy{flex:1;min-width:0}.conversation-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.conversation-title h3,.conversation-title strong{font-size:var(--text-body);line-height:1.5;margin:0}.conversation-unread{color:var(--accent-ink);padding:0;font-size:var(--text-small);font-weight:var(--w-strong)}.conversation-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:var(--text-meta);line-height:1.6;margin:6px 0}.conversation-person,.conversation-copy>small{font-size:var(--text-small)!important;color:var(--muted)}.conversation-row>time{flex:none;max-width:90px;font-size:var(--text-small);line-height:1.5;white-space:normal;color:var(--muted)}

/* 자주 쓰는 출석과 선택 학습 콘텐츠는 생활 홈 상단에 유지한다. */
.dg-personal.dg-personal-top{margin-top:0;padding-top:0;border-top:0;margin-bottom:20px}

.startup-loading{grid-column:1/-1;min-height:55dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted)}

/* Startup recovery is a single step, separate from the app introduction. */
.startup-loading,.startup-recovery{min-height:100svh;min-height:100dvh;padding:32px 24px;padding-top:max(32px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}
.startup-loading{gap:20px}.startup-loading p{font-size:15px;line-height:1.7}
.startup-recovery-content{width:100%;max-width:360px;min-width:0}
.startup-recovery .wordmark{display:inline-block;font-size:32px;line-height:1.1;margin-bottom:32px;color:var(--ink)}
.startup-recovery h1{font-size:24px;font-weight:var(--w-bold);line-height:1.45;letter-spacing:var(--track-snug);margin:0;color:var(--ink)}
.startup-recovery p{font-size:15px;line-height:1.75;letter-spacing:var(--track-snug);margin:16px 0 32px;color:var(--muted);overflow-wrap:anywhere}
.startup-recovery-actions{display:grid;gap:12px}
.startup-recovery-actions>button{width:100%;min-height:52px;font-size:16px;justify-content:center;line-height:1.5;white-space:normal}
.startup-recovery-actions>.textbtn{color:var(--muted);font-size:15px;min-height:48px}
@media(max-width:359px){.startup-recovery{padding-left:20px;padding-right:20px}.startup-recovery h1{font-size:22px}.startup-recovery p{font-size:14px}}

/* Honest install feedback: requesting is distinct from confirmed completion. */
.pwa-install-state{padding:24px 20px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--soft);text-align:center;margin:16px 0}
.pwa-install-state h3{font-size:20px;line-height:1.5;margin:0;color:var(--ink)}
.pwa-install-state p{font-size:15px;line-height:1.75;color:var(--muted);margin:12px 0 20px}
.pwa-install-state .primary,.pwa-install-state .secondary{min-height:48px;font-size:15px;justify-content:center}
.pwa-install-state.is-complete{background:#fff;border:0;padding:32px 8px}
.pwa-status-symbol{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 auto 20px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:28px;font-weight:var(--w-bold)}

/* A compact install sheet: one device, one next action. */
.pwa-help-compact{max-width:440px;margin:0 auto}
.pwa-intro{display:flex;align-items:center;gap:18px;padding:10px 0 22px}
.pwa-intro .wordmark{font-size:30px;line-height:1;flex:none}
.pwa-intro p{font-size:calc(15px * var(--han-type-scale,1));line-height:1.6;color:var(--muted);margin:0}
.pwa-help-compact [data-pwa-prompt]:empty,.pwa-feedback:empty{display:none}
.pwa-help-compact [data-pwa-prompt]>.primary{width:100%;min-height:52px;margin:0 0 16px;font-size:calc(16px * var(--han-type-scale,1));justify-content:center}
.pwa-feedback{font-size:calc(14px * var(--han-type-scale,1));line-height:1.65;color:var(--muted);margin:12px 0}
.pwa-browser-guide{padding:20px;background:var(--soft);border-radius:var(--radius-card);margin:0 0 12px;min-width:0}
.pwa-browser-guide h3{font-size:var(--text-card);line-height:var(--lh-card);color:var(--muted);font-weight:var(--w-strong);margin:0 0 16px}
.pwa-browser-guide ol{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.pwa-browser-guide li{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;align-items:start;font-size:calc(15px * var(--han-type-scale,1));line-height:1.65;color:var(--ink)}
.pwa-step-index{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:var(--w-strong);color:var(--blue);background:var(--blue-soft)}
.pwa-browser-guide li strong{font-weight:var(--w-strong)}
.pwa-browser-guide p,.pwa-extra p{font-size:calc(14px * var(--han-type-scale,1));line-height:1.7;color:var(--muted);margin:0 0 14px;overflow-wrap:anywhere}
.pwa-browser-guide>p:last-child{margin-bottom:0}.pwa-browser-guide ol+p{margin:14px 0 0;font-size:calc(13px * var(--han-type-scale,1))}
.pwa-extra{margin-top:20px;border-top:1px solid var(--line)}
.pwa-extra>details{border-bottom:1px solid var(--line)}
.pwa-extra summary,.pwa-manual>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:50px;font-size:calc(14px * var(--han-type-scale,1));line-height:1.6;color:var(--muted);padding:10px 0}
.pwa-extra summary::-webkit-details-marker,.pwa-manual>summary::-webkit-details-marker{display:none}
.pwa-extra summary:after,.pwa-manual>summary:after{content:'';font-size:18px;flex:none}
.pwa-extra details[open]>summary:after,.pwa-manual[open]>summary:after{transform:rotate(180deg)}
.pwa-extra .pwa-browser-guide{margin-top:8px}.pwa-address{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:16px 0}
.pwa-address label{grid-column:1/-1;font-size:13px;color:var(--muted)}
.pwa-address input{width:100%;min-width:0;font-size:14px;border:1px solid var(--line);border-radius:var(--radius-control);padding:10px;color:var(--muted)}
.pwa-address button{min-height:44px;font-size:14px}
.pwa-help-compact [hidden]{display:none!important}

/* City settings: scroll the fields, keep the deliberate save action visible. */
#sheet[open]:has(#cities-form){display:flex;flex-direction:column;height:min(91dvh,820px);overflow:hidden}
#sheet:has(#cities-form)>.sheet-head{flex:none}
#sheet-body:has(#cities-form),.context-panel-body:has(#cities-form){display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;padding:0}
#cities-form.city-settings-form{display:flex;flex-direction:column;gap:0;min-height:0;flex:1}
.city-settings-content{padding:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
.city-settings-section{padding:0 0 22px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.city-settings-section h3,.city-settings-section>label{font-size:max(17px,.75rem);font-weight:var(--w-strong);line-height:1.5;margin:0 0 8px}
.city-setting-hint{font-size:var(--text-meta);color:var(--muted);line-height:1.65;margin:5px 0 12px}
.city-settings-form .cp-quick{margin-top:14px}.city-settings-form .cp-quick-city{min-height:54px;padding:10px}
.city-settings-form .cp-other{display:none}.city-settings-form .cp-hint{display:none}
.city-settings-form .cp-selected{margin-top:14px;padding:12px 14px}.city-settings-form .cp-selected>strong{display:none}
.city-settings-form .cp-selected>span{font-size:var(--text-control);font-weight:var(--w-strong);line-height:1.5}.city-settings-form .cp-selected>small{font-size:var(--text-meta);line-height:1.6}
.city-settings-form .cp-source{display:block;font-size:var(--text-small);line-height:1.6;margin:8px 0 14px}
.city-settings-form #city-add{font-size:var(--text-control);min-height:44px}
.city-settings-form .check{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0;font-size:var(--text-control);line-height:1.5}
.city-primary-tag{font-size:var(--text-small);color:var(--blue);margin-left:auto;white-space:nowrap}
.city-settings-guide{margin:0}.city-settings-guide>summary{font-size:var(--text-control);min-height:44px;padding:10px 0;color:var(--muted)}
.city-settings-guide p{font-size:var(--text-meta);line-height:1.75;color:var(--muted);margin:10px 0}
.city-settings-footer{flex:none;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.city-settings-footer>.primary{min-height:var(--btn-h);font-size:var(--text-control);justify-content:center}

#cities-form .city-picker>label,#cities-form .cp-details>label{font-size:var(--text-control);line-height:1.5}
#sheet #cities-form .cp-search,#sheet #cities-form .cp-pref,#sheet #cities-form .cp-list,#cities-form .cp-search,#cities-form .cp-pref,#cities-form .cp-list{font-size:max(16px,.72rem)}
#cities-form .city-stage-options legend{font-size:max(17px,.75rem);line-height:1.5}

/* Guide entries make the source clear beside concise navigation copy. */
.life-guide-clean .list-head{margin:16px 0 8px;font-size:var(--text-meta)}
.guide-national{font-size:var(--text-meta);color:var(--muted)}
.guide-card-clean{display:flex;align-items:center;gap:14px;width:100%;padding:20px 0;text-align:left}
.guide-card-copy{flex:1;min-width:0}.guide-card-clean>.icon{flex:none;width:15px;height:15px;color:var(--muted)}
.guide-card-labels{display:flex;gap:8px;flex-wrap:wrap;font-size:var(--text-meta);line-height:1.5;color:var(--muted)}
.guide-card-labels>span:first-child{color:var(--blue);font-weight:var(--w-strong)}
.guide-card-clean h3{margin:8px 0 6px;font-size:var(--text-card);line-height:var(--lh-card);letter-spacing:var(--track-snug)}
.guide-card-clean p{margin:0;font-size:var(--text-body);line-height:1.65;color:var(--muted)}
.guide-card-clean small{display:block;font-size:var(--text-meta);color:var(--muted);margin-top:8px}
.life-guide-clean .guide-correction{display:block;min-height:44px;margin:4px 0 0 auto;font-size:var(--text-meta);color:var(--muted)}
.life-guide-clean .guide-more{margin-top:20px;padding-top:4px;border-top:1px solid var(--line)}
.life-guide-clean .guide-more h2,.life-guide-clean .guide-expert-fallback h2{font-size:var(--text-section);line-height:var(--lh-section);margin:20px 0 6px}
.life-guide-clean .fieldhelp{font-size:var(--text-meta);line-height:1.65;margin:0}
.life-guide-clean .guide-more .chips{gap:8px;margin:12px 0 24px}.life-guide-clean .guide-more .chip{font-size:var(--text-body);min-height:44px}
.life-guide-clean .guide-prep-links{gap:0;border:1px solid var(--line);border-radius:var(--radius-control);overflow:hidden;margin-top:12px}
.life-guide-clean .guide-prep-link{border:0;border-radius:0;min-height:54px;font-size:var(--text-body);padding:14px 16px}
.life-guide-clean .guide-prep-link+.guide-prep-link{border-top:1px solid var(--line)}
.life-guide-clean .guide-expert-fallback{margin-top:28px}.life-guide-clean .guide-expert-link{padding:16px 12px;gap:10px}
.life-guide-clean .guide-expert-link strong{font-size:var(--text-body)}
.life-guide-clean .guide-expert-icon{padding:9px}.life-guide-clean .guide-expert-link small{font-size:var(--text-meta);line-height:1.6}

/* Compact home controls, 2026-10-22. */
.home-daily-tools{display:flex;align-items:center;gap:12px}
.dg-personal-top>.dg-section-head{margin-bottom:6px;gap:8px}
.home-daily-tools .textbtn{font-size:var(--text-meta);min-height:44px;padding:4px 0;white-space:nowrap}
.dg-personal-top .dg-daily-top{min-height:24px;padding-right:0}
.dg-personal-top .dg-mascot{top:auto;bottom:16px;width:48px;height:48px}
.dg-personal-top .dg-phrase{padding:4px 0 0}
.dg-personal-top .dg-daily-actions{margin-top:8px;padding-right:48px}
.dg-personal-top .jp-content-provenance{font-size:var(--text-small);margin:2px 0 6px;line-height:1.5}
#main .home-daily-card{background:var(--blue-soft);border-color:var(--secondary-line);color:var(--ink)}
#main .home-daily-card .daily-heading h2,#main .home-daily-card .textbtn{color:var(--blue)}
#sheet.home-content-popup{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:360px;height:fit-content;max-height:calc(100dvh - 48px);border-radius:20px;padding:0}
#sheet.home-content-popup .sheet-head{padding:12px 16px;min-height:56px}
#sheet.home-content-popup #sheet-title{font-size:var(--text-section)}
#sheet.home-content-popup #sheet-body{padding:0 16px 16px}
#sheet.home-content-popup .body-copy{font-size:var(--text-meta);margin:0 0 12px}
#sheet.home-content-popup .top-options{gap:6px}
#sheet.home-content-popup .top-option{min-height:48px;padding:9px 10px;border-radius:var(--radius-control)}
#sheet.home-content-popup .top-option small{display:none}
#sheet.home-content-popup .stack{gap:12px}

/* A small vertical wheel above Hani keeps the phrase in the foreground. */
.dg-personal-top .dg-daily{min-height:0;padding-right:16px}
.dg-personal-top .dg-level-mascot{position:absolute;right:16px;top:auto;bottom:12px;width:64px;display:flex;flex-direction:column;align-items:center;gap:4px}
.dg-personal-top .dg-level-mascot .dg-mascot{position:static;display:block;flex:none;width:32px;height:32px}
.dg-level-mascot .dg-mascot img{display:block;width:100%;height:100%;object-fit:contain}
.dg-personal-top .dg-daily-actions{padding-right:76px;min-height:108px;margin-top:8px;align-content:center}
.jp-level-picker{width:64px;text-align:center}
.jp-wheel-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.jp-level-wheel{position:relative;height:72px;padding:24px 0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;border-radius:12px;background:linear-gradient(to bottom,#ffffff55 0 24px,#fff 24px 48px,#ffffff55 48px);touch-action:pan-y;outline-offset:3px;mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}
.jp-level-wheel::-webkit-scrollbar{display:none}
.jp-level-wheel [role=option]{display:block;width:100%;height:24px;min-height:24px;padding:0;line-height:24px;font-size:13px;font-weight:var(--w-strong);color:#687891;scroll-snap-align:center;scroll-snap-stop:always;border-radius:0}
.jp-level-wheel [aria-selected=true]{color:var(--blue);font-weight:var(--w-bold);font-size:15px}
@media(prefers-reduced-motion:reduce){.jp-level-wheel{scroll-behavior:auto}}

.dg-personal-top .dg-phrase>.jp-text{line-height:1.55}
.dg-personal-top .jp-word-link{min-height:0;padding:0 1px;line-height:inherit}
.dg-personal-top .dg-meaning{margin-top:10px;line-height:1.65}

/* Meeting results retain their data and filters in a two-column card layout. */
.meetup-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 20px;align-items:stretch}
.meetup-card-grid .meet-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;width:100%;margin:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-card);text-align:left;background:#fff}
.meetup-card-grid .meet-art{width:100%;height:80px;min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:var(--radius-control);background:var(--category-soft,var(--soft));color:var(--category-strong,var(--blue))}
.meetup-card-grid .meet-card>div:last-child{min-width:0;width:100%}
.meetup-card-grid .meet-card h3{font-size:var(--text-card);line-height:var(--lh-card);margin:8px 0;overflow-wrap:anywhere}
.meetup-card-grid .meet-card p{font-size:var(--text-small);line-height:1.65;overflow-wrap:anywhere}
.meetup-card-grid .tag-row{gap:4px;flex-wrap:wrap}
.meetup-card-grid .tag{font-size:12px;line-height:1.4;padding:3px 6px;white-space:normal}
.meetup-card-grid .meet-card .fieldhelp{margin:6px 0}
@media(max-width:359px){.meetup-card-grid{gap:8px}.meetup-card-grid .meet-card{padding:10px;gap:10px}}

/* Neighborhood browsing and private resume entries. */
.expert-home-entry{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;margin-top:12px;border:1px solid #dbe7f3;border-radius:var(--radius-control);background:#f4f8fd;color:#233f5b;text-align:left}.expert-home-entry>span{display:flex;align-items:center;gap:8px}.expert-home-entry>small{margin-left:auto;font-size:12px}.expert-home-entry>.icon{width:17px}.map-basis-controls{padding:0 4px 6px}.map-basis-controls button{font-size:12px}.cp-city-help{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0}.cp-city-scope{font-size:12px}.meetup-map-link{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.meetup-map-link a{display:flex;justify-content:center;text-decoration:none}.expert-distance{margin-top:9px}#private-resume-form label{line-height:1.5}#private-resume-form textarea{font-size:15px;line-height:1.7}@media(max-width:400px){.expert-home-entry{gap:8px}.expert-home-entry>small{font-size:var(--text-small)}.expert-home-entry strong{font-size:14px}}

.home-interest-topics{padding:0 0 6px;margin-top:var(--space-section)}.home-interest-topics>strong{font-size:var(--text-card);font-weight:var(--w-strong);line-height:var(--lh-card)}.home-interest-topics .chips{margin-top:10px;gap:8px}.home-interest-topics .chip{font-size:12px;padding:8px 12px}
/* Keep five community destinations in one scrollable row on narrow phones. */
.tabs[role="tablist"]{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.tabs[role="tablist"]>button{flex:0 0 auto;white-space:nowrap}

/* City scope is a toggle with a fixed name; the check shows its state. */
.cp-city-scope{font-size:14px;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.cp-city-scope::before{content:"";width:16px;height:16px;border:1.5px solid var(--muted);border-radius:4px;flex:none}
.cp-city-scope[aria-pressed="true"]::before{background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/12px no-repeat;border-color:var(--blue)}
/* Keep the onboarding continue button reachable after choosing a city. */
@media(max-width:767px){.ob-panel{overflow:clip}.ob-footer{position:sticky;bottom:0;z-index:3;box-shadow:0 -1px 0 var(--line)}html:has(body.is-onboarding){scroll-padding-bottom:180px}}

/* Category images are generic AI illustrations, while member uploads keep priority. */
.meetup-card-grid{gap:12px}.meetup-card-grid .meet-card{gap:0;padding:0;overflow:hidden;border-radius:var(--radius-card)}.meetup-card-grid .meet-art-photo{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:4/3;border-radius:0;background:#f3f4f6;overflow:hidden}.meetup-card-grid .meet-art-photo img{display:block;width:100%;height:100%;object-fit:cover}.meet-art-photo .meet-art-kind,.meet-art-photo .meet-art-credit{position:absolute;line-height:1.3;font-size:var(--text-small);font-weight:var(--w-strong);border-radius:var(--radius-tag);padding:4px 7px}.meet-art-photo .meet-art-kind{left:9px;bottom:9px;color:#202a37;background:#fffffff2}.meet-art-photo .meet-art-credit{right:7px;top:7px;color:#fff;background:#17202cbb;font-size:var(--text-small);font-weight:var(--w-regular)}.meetup-card-grid .meet-card-content{padding:12px 12px 14px;flex:1}.meetup-card-grid .meet-card h3{font-size:var(--text-card);line-height:var(--lh-card);margin:0 0 8px}.meetup-card-grid .meet-card p{font-size:var(--text-meta);line-height:1.6;color:#596575}.meetup-card-grid .meet-card .fieldhelp{font-size:var(--text-small);line-height:1.5;margin:7px 0;color:var(--muted)}.meetup-card-grid .tag-row{margin-top:10px}.meetup-card-grid .meet-card:focus-visible{outline-offset:-3px}@media(max-width:359px){.meetup-card-grid .meet-card{padding:0;gap:0}.meetup-card-grid .meet-card-content{padding:10px}}
.profile-photo-control{position:relative;display:inline-flex;flex:none;cursor:pointer;border-radius:50%;width:66px;height:66px;min-width:44px;min-height:44px;padding:0;border:0;background:none;color:inherit}
.profile-photo-control .avatar.large{width:100%;height:100%;overflow:hidden}
.profile-photo-control .avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo-control:focus-visible{outline:3px solid var(--secondary);outline-offset:3px}
.profile-name-edit svg{width:15px;height:15px}
.profile-name-row{display:flex;align-items:center;gap:2px;min-width:0}
.profile-name-edit{display:grid;place-items:center;width:44px;height:44px;flex:none;color:#697386}
.profile-details-link{display:inline-flex;align-items:center;gap:3px;padding:4px 0;color:var(--muted);font-size:var(--text-small);line-height:1.4;min-height:32px} /* 계정 줄(--text-meta)보다 한 단계 작게: 모바일에서 16.5px로 커져 위 줄보다 컸음 */
.profile-details-link .icon{width:14px;height:14px}
.profile-photo-status{color:var(--muted);font-size:calc(12px * var(--han-type-scale,1));line-height:1.5}
.profile-photo-status:empty{display:none}
/* 이웃 이야기 글쓰기 선택 정보: 작은 칩 (2026-11-04 UI 점검 2차 2번) */
.compose-extras{margin:6px 0 4px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:14px}
.compose-extras-title{margin:0;font-size:var(--text-control);font-weight:var(--w-strong)}
/* 2026-11-08: '더 알려주기'는 접어 두어 이웃 이야기 글쓰기가 한 화면(아래 시트)에 들어가게 */
details.compose-extras{display:block}details.compose-extras>summary.compose-extras-title{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none}details.compose-extras>summary::-webkit-details-marker{display:none}details.compose-extras>summary::after{content:'';width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);margin-right:4px}details.compose-extras[open]>summary::after{transform:rotate(225deg)}.compose-extras-body{display:grid;gap:14px;margin-top:6px}
.chip-fieldset,.compose-extras .life-topic-fields{border:0;padding:0;margin:0;min-width:0}
.chip-fieldset legend,.compose-extras .life-topic-fields legend{font-size:var(--text-control);font-weight:var(--w-strong);margin-bottom:8px;padding:0}
.compose-extras .chip-choices,.compose-extras .life-topic-grid{display:flex;flex-wrap:wrap;gap:8px 6px}
.compose-extras .chip-choice,.compose-extras .life-topic-grid .check{position:relative;display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:var(--text-meta);font-weight:var(--w-regular);margin:0;cursor:pointer}
.compose-extras .chip-choice input,.compose-extras .life-topic-grid .check input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.compose-extras .chip-choice:has(input:checked),.compose-extras .life-topic-grid .check:has(input:checked){border-color:var(--blue);background:var(--blue-soft);color:var(--blue);font-weight:var(--w-strong)}
.compose-extras .chip-choice:has(input:focus-visible),.compose-extras .life-topic-grid .check:has(input:focus-visible){outline:3px solid var(--blue);outline-offset:3px}
.compose-extras .life-topic-grid .check:has(input:disabled){opacity:.45;cursor:not-allowed}
/* 글쓰기 초안 안내: 상자 없이 한 문장 */
form .device-draft{padding:0 0 4px;margin:0 0 6px;background:transparent;border:0;border-radius:0;color:var(--muted)}
form .device-draft p{font-size:var(--text-small);line-height:1.5;margin:0;color:var(--muted)}

.release-coming{display:inline-block;margin-left:6px;font-size:var(--text-small);font-weight:var(--w-regular);line-height:1.4;color:var(--muted);white-space:normal}.service-card .release-coming{position:absolute;top:8px;right:8px;margin:0;padding:4px 7px;background:var(--paper);border-radius:var(--radius-tag)}.dg-path .release-coming{display:block;margin:3px 0 0}.release-coming-page{padding:24px 0}.release-coming-page h1{font-size:var(--text-title)}.release-coming-page p{margin:12px 0}.release-coming-page .secondary{margin-top:8px}
.service-card:has(>.release-coming){position:relative}.menu-row>.release-coming{margin-left:auto}

/* 생활 서비스와 관심 바로가기를 한 영역에서 제공한다. */
.home-services-unified{display:block;padding:11px 0 7px;background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0}
.home-services-unified .home-services-button{min-height:44px;padding:0;background:transparent;border:0;border-radius:0}
.home-services-unified .home-services-button strong{color:var(--ink)}
.home-services-unified .home-services-button>span{display:flex;flex-direction:row;align-items:center;gap:4px;color:var(--accent-ink);font-size:var(--text-meta)}
.home-services-unified .home-services-button>span .icon{width:16px;height:16px}
.home-services-unified .dg-paths{margin:0;padding:0;border:0}
#main .home-services-unified .dg-path .dg-path-icon{background:none}
.dg-section-head:has(.dg-title-link)>h2{flex:1;min-width:0}
.dg-section-head .dg-title-link{display:flex;width:100%;justify-content:space-between}
.dg-title-main{display:inline-flex;align-items:center;gap:6px}
.jp-wheel-label{position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;font-size:var(--text-small);line-height:1.25;color:var(--ink)}
.home-services-unified .dg-path>span:last-child{display:block;width:100%;min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-height:1.25}
.dg-personal.dg-personal-top{margin-bottom:8px}
.home-interest-topics{padding-top:0}
.home-interest-topics .home-board-grid{margin-top:8px}
.dg-neighbors{margin-top:16px}
@media(max-width:767px){.dg-neighbors .dg-title-link{padding-right:64px}}
.profile-entry .profile-login-cta{display:inline-flex;align-items:center;align-self:flex-start;min-height:32px;margin-top:6px;padding:0;background:none;color:var(--blue);text-decoration:underline;text-underline-offset:3px;font-size:var(--text-meta);font-weight:var(--w-strong)}
.city-empty-hani{display:block;width:72px;height:auto;margin:0 0 8px;object-fit:contain}
/* beta 빈 목록: 안내의 '첫 글 남기기'가 있을 때만 떠 있는 + 글쓰기를 숨긴다(조회 중·조회 실패·글이 있을 때는 안내가 없어 그대로 보임) */
html[data-release="beta"] #main:has(.city-empty-cta) .write{display:none}
.city-empty-cta{margin:12px 0 4px}.city-empty-cta .primary{min-height:48px;width:100%;max-width:320px}
/* H-1: 360~767px '나의 하루'는 학습 등급 휠을 문장 오른쪽 아래로 올려 높이를 줄인다(한이 숨김, 섹션 순서 그대로). 320~359px는 '다음' 버튼이 줄바꿈되어 이전 배치를 쓴다. */
@media(min-width:360px) and (max-width:767px){
 .dg-personal-top .dg-daily-actions{min-height:0;padding-right:76px}
 .dg-personal-top .dg-level-mascot .dg-mascot{display:none}
 .dg-personal-top .dg-phrase .dg-meaning,.dg-personal-top .dg-phrase .jp-korean-reading{padding-right:72px}
}

/* impeccable layout(2026-11-07): 조작 글자가 제목보다 커 보이던 곳을 글자 크기 토큰으로 맞춘다. 앱 글자 배율 1.5에서 상속된 22.5px 버튼·요약이 화면 제목(22px)보다 컸다. */
.flow-segment button{font-size:var(--text-control)}
.flow-filters>summary,#main details.list-fold>summary{font-size:var(--text-control);font-weight:var(--w-strong);min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
.flow-filters>summary::-webkit-details-marker,#main details.list-fold>summary::-webkit-details-marker{display:none}
.flow-filters>summary::after,#main details.list-fold>summary::after{content:"";flex:none;width:8px;height:8px;border:solid var(--muted);border-width:0 1.7px 1.7px 0;transform:rotate(45deg);margin:-3px 4px 0 0}
.flow-filters[open]>summary::after,#main details.list-fold[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
.searchbox input{font-size:var(--text-body)}
.searchbox button{font-size:var(--text-control);font-weight:var(--w-strong)}
.listing-tools .chip.listing-tool{min-height:44px}
.listing-tools{display:flex;flex-wrap:wrap;gap:8px}
.list-head .list-head-note{font-size:var(--text-meta);font-weight:400;color:var(--muted)}

/* impeccable typeset(2026-11-07): 설명 문단(.note)은 메타 크기(13px)가 아니라 컨트롤 크기(15px) 이상, 넓은 화면에서는 한 줄 40자 안팎 */
.note{font-size:var(--text-control);line-height:1.6}
@media(min-width:768px){.note,.fieldhelp,.list-intro p{max-width:42em}}

/* impeccable animate(2026-11-07): 위치가 바뀌는 곳에만 짧은 움직임. 줄임 동작 설정이면 styles.css의 공통 규칙이 모두 끈다. */
@keyframes han-sheet-up{from{transform:translateY(24px);opacity:0}}
@keyframes han-backdrop-in{from{opacity:0}}
@keyframes han-page-in{from{transform:translateX(28px);opacity:0}}
dialog.appt-sheet[open]{animation:han-sheet-up 240ms var(--ease-drawer)}
dialog.appt-sheet[open]::backdrop{animation:han-backdrop-in 200ms var(--ease-out)}
#sheet.chat-page[open]{animation:han-page-in 220ms var(--ease-drawer)}
.flow-filters>summary::after,#main details.list-fold>summary::after{transition:transform 180ms var(--ease-out)}

/* impeccable delight(2026-11-07): 보내기를 누르면 종이비행기가 살짝 날아간다(새 그림 없이 기존 아이콘). 줄임 동작이면 .han-pop이 꺼진다. */
@keyframes han-send{0%{transform:translate(0,0)}45%{transform:translate(5px,-5px);opacity:.6}46%{transform:translate(-5px,5px);opacity:0}100%{transform:translate(0,0);opacity:1}}
.message-send.han-pop .icon{animation:han-send 200ms var(--ease-out)}

/* impeccable adapt(2026-11-07): 휴대폰에서 누르는 조작은 44px 이상(지도 분류 칩 34px·일본어 등급 휠은 별도 결정이라 제외) */
#main .textbtn,#main .board-rail>button,#main .board-menu{min-height:44px}
#main .tabs button,#main .tabs [role=tab]{min-width:44px;padding-left:6px;padding-right:6px}
.header-start .city{min-height:44px}

/* 나의 HAN 로그인 계정 한 줄: 긴 이메일은 줄바꿈으로 끝까지 보이게(본인 화면 전용) */
.profile-summary .profile-account{display:block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;color:var(--muted);font-size:var(--text-meta);line-height:1.4}

/* 나의 HAN: 첫 출시 범위 밖 메뉴는 남기되 '준비 중'만 옅게 보이고 눌리지 않는다(대비 4.5:1 이상) */
.my-soon{margin:0;padding:4px 0 18px;color:var(--muted);font-size:var(--text-control);line-height:1.6}
.menu-row-soon{cursor:default;color:var(--muted);-webkit-user-select:none;user-select:none}
.menu-row-soon>span{flex:1;min-width:0}
.menu-row-soon>small{margin-left:auto;color:var(--muted);font-size:var(--text-small)}
.menu-row-soon>.icon:first-child{color:var(--muted)}
.menu-row-soon:active{scale:none;background:none}

/* 프로필 사진 확대 보기(profile-photo.js): 사진은 정사각 틀 안에 전체가 보이게, 파일 입력은 화면에서만 숨긴다(display:none 아님) */
.profile-photo-zoom{display:grid;justify-items:center;gap:12px}
.profile-photo-zoom-frame{width:min(100%,360px);aspect-ratio:1;display:grid;place-items:center;border-radius:var(--radius-card,16px);background:var(--soft,#f5f7fb);overflow:hidden}
.profile-photo-zoom-frame img{width:100%;height:100%;object-fit:contain}
.profile-photo-zoom-frame .profile-photo-zoom-pic{display:block;width:56%;height:56%}.profile-photo-zoom-frame .profile-photo-zoom-empty{display:block;width:100%;height:100%}
.profile-photo-zoom-note{margin:0;color:var(--muted);font-size:var(--text-control);line-height:1.5}.profile-photo-zoom-note:empty{display:none}
.profile-photo-zoom .profile-photo-status{margin:0;text-align:center}
.han-photo-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
.profile-photo-pick{width:100%;max-width:360px;min-height:44px}.profile-photo-pick[aria-disabled=true]{opacity:.55;cursor:default}
/* 글쓰기 버튼(13~15): 동그란 + 버튼 옆에 '등록' 글자를 붙여 눈에 띄게 한다. 오른쪽 아래 기준 위치는 그대로, 글자만큼 왼쪽으로 늘어난다. */
:not(.dongle-study) .write:has(.write-label){gap:6px}
:not(.dongle-study) .app .write .write-label{display:inline;position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;font-size:var(--text-control);font-weight:var(--w-bold);line-height:1;color:#fff;white-space:nowrap}
@media(max-width:767px){:not(.dongle-study) .app .write:has(.write-label){width:auto;min-width:52px;padding:0 18px 0 14px;border-radius:26px}}

/* 글 종류 고르기 카드 */
.compose-choices{display:grid;gap:10px}
.compose-choice{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-card,16px);background:#fff;text-align:left}
.compose-choice-icon{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--soft,#f5f7fb);background:color-mix(in srgb,var(--category-color,var(--blue,var(--secondary))) 12%,#fff);color:var(--category-color,var(--blue,var(--secondary)))}
.compose-choice-icon .icon{width:24px;height:24px}
.compose-choice-copy{display:grid;gap:2px;min-width:0;flex:1}.compose-choice-copy strong{font-size:var(--text-card);font-weight:var(--w-bold);line-height:1.3}.compose-choice-copy small{font-size:var(--text-meta);color:var(--muted);line-height:1.4}
.compose-choice>.icon{flex:none;width:20px;height:20px;color:var(--muted)}
/* 홈 화면은 아래쪽 '이웃 이야기 >' 화살표와 겹치지 않게 글쓰기 버튼을 동그란 모양 그대로 둔다 */
#main[data-route="home"] .write:has(.write-label){width:52px;padding:0;border-radius:50%;gap:0}
#main[data-route="home"] .write .write-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}

/* 관리자 전용 버튼은 회원 내용(함께한 모임 등)과 떼어 놓는다 */
.admin-tools{margin:40px 0 8px;padding-top:16px;border-top:1px dashed var(--line,#e5e9ef)}
.admin-tools-label{margin:0 0 8px;color:var(--muted);font-size:var(--text-small);font-weight:var(--w-strong)}
/* 베타에서 막힌 카드·선택지(준비 중): 누르기 전에 막힌 줄 알 수 있게 내용만 흐리게 하고 '준비 중' 표시는 그대로, 화살표는 뺀다 */
.release-blocked:not(.menu-row)>:not(.release-coming){opacity:.5}
.flow-choice.release-blocked>svg{display:none}
.profile-photo-zoom-frame:focus:not(:focus-visible){outline:none}
.profile-photo-zoom-frame:focus-visible{outline:3px solid var(--focus,var(--secondary));outline-offset:3px}
/* 모임 만들기 카드: 제목은 모임 카드 제목보다 한 단계 큰 섹션 크기, 설명은 보조 크기 한 줄(393px), 캐릭터·＋는 그 높이에 맞춤(2026-11-08) */
.meetup-create-card{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;border:0;border-radius:var(--radius-card,16px);background:var(--primary-soft);padding:10px 14px;margin:4px 0 12px}
.meetup-create-card>img{flex:none;width:40px;height:40px;object-fit:contain}
.meetup-create-copy{flex:1;min-width:0}.meetup-create-copy strong,.meetup-create-copy small{display:block}
.meetup-create-copy strong{font-size:var(--text-section);font-weight:var(--w-bold);line-height:var(--lh-section,1.35)}
.meetup-create-copy small{font-size:var(--text-meta);line-height:1.45;color:var(--muted,#62636b);margin-top:1px}
.meetup-create-plus{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;font-size:22px;line-height:1}
.meetup-create-card:active{scale:.985}
.meetup-create-copy small{word-break:keep-all;overflow-wrap:break-word}
@media (max-width:360px){.meetup-create-card{gap:8px;padding:10px 12px}.meetup-create-card>img{width:36px;height:36px}.meetup-create-plus{width:32px;height:32px;font-size:20px}}
.meetup-chat-notice-edit>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;list-style:none;font-size:var(--text-control);font-weight:var(--w-strong)}
.meetup-chat-notice-edit>summary::-webkit-details-marker{display:none}
.meetup-chat-notice-edit>summary::after{content:"";flex:none;width:8px;height:8px;border:solid var(--muted);border-width:0 1.7px 1.7px 0;transform:rotate(45deg);margin:-3px 4px 0 0;transition:transform 180ms var(--ease-out)}
.meetup-chat-notice-edit[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
@media (prefers-reduced-motion:reduce){.meetup-chat-notice-edit>summary::after{transition:none}}
.conversation-row>time{flex:none;max-width:none;white-space:nowrap;margin-left:auto;font-variant-numeric:tabular-nums}
.conversation-row .conversation-title :is(strong,h3){min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meetup-photo{border:0;padding:0;margin:0;min-width:0}.meetup-photo>legend{padding:0;font-weight:var(--w-strong);margin-bottom:8px}
.meetup-photo-preview{position:relative;border-radius:var(--radius-card,16px);overflow:hidden;background:#f1f2f5;aspect-ratio:16/9}.meetup-photo-preview>img{display:block;width:100%;height:100%;object-fit:cover}
.meetup-photo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.meetup-photo-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:var(--radius-control);border:1px solid var(--line);background:#fff;font-weight:var(--w-strong);cursor:pointer}.meetup-photo-pick:focus-within{outline:2px solid var(--blue,var(--secondary));outline-offset:2px}
.meetup-photo-actions .textbtn{min-height:44px}
.meetup-photo [hidden]{display:none!important}
.meetup-photo-pick{flex-direction:row;overflow:hidden;color:var(--ink)}.meetup-photo-pick>span{color:var(--ink);white-space:nowrap}
.meetup-photo-pick>input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px}
.interest-button:has(.interest-count){flex:0 0 auto!important;width:auto;min-width:48px!important;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:24px;white-space:nowrap}
.question-heart-row>.interest-button:has(.interest-count){width:auto;min-width:48px;height:48px;border-radius:24px}
/* 저장(하트) 수 알약: 하트와 숫자를 한 줄 가운데에 맞춤(2026-11-16) — 아이콘 20px 블록, 숫자 15px·line-height 1 */
.interest-button:has(.interest-count){padding:0 16px 0 14px;gap:6px}
.interest-button:has(.interest-count) .icon{display:block;flex:none;width:20px;height:20px;vertical-align:baseline}
.interest-button .interest-count{display:block;flex:none;font-size:var(--text-control);line-height:1;padding:0;margin:0}
/* 마케팅 심리 검토 2·3: 소개 '다음'과 관심사 '시작' 버튼을 화면 아래에 고정(safe-area), 도시 단계는 한이를 줄여 도시 칩이 고정 버튼 위에 먼저 보이게 */
@media(max-width:767px){
.intro-layout{padding-bottom:0}.intro-footer{position:sticky;bottom:0;z-index:3;width:calc(100% + 48px);margin:auto -24px 0;padding:12px 24px max(14px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -1px 0 var(--line)}
.interest-onboarding{padding:20px 20px 0}.interest-onboarding .interest-footer{position:sticky;bottom:0;z-index:3;margin:0 -20px;padding:12px 20px max(14px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -1px 0 var(--line);display:grid;gap:4px}.interest-footer .ob-skip,.interest-footer .textbtn{margin:0;width:100%;justify-content:center;text-align:center}
.ob-friendly .ob-content:has(.city-picker) .ob-friend{margin:8px 0 4px;gap:6px}.ob-friendly .ob-content:has(.city-picker) .ob-friend-art{width:60px;height:68px}.ob-friendly .ob-content:has(.city-picker) .ob-friend-art img{width:92px;height:98px}.ob-friendly .ob-content:has(.city-picker) .ob-bubble{font-size:var(--text-meta);padding:8px 12px}
.ob-friendly .ob-content:has(.ob-stages) .ob-friend{margin:8px 0 4px;gap:6px}.ob-friendly .ob-content:has(.ob-stages) .ob-friend-art{width:60px;height:68px}.ob-friendly .ob-content:has(.ob-stages) .ob-friend-art img{width:92px;height:98px}.ob-friendly .ob-content:has(.ob-stages) .ob-bubble{font-size:var(--text-meta);padding:8px 12px}.ob-friendly .ob-city-summary{margin-bottom:10px}
.ob-friendly .ob-city-later{margin-bottom:8px}
.ob-friendly .ob-content{padding-bottom:24px}.ob-friendly .ob-footer{padding-top:12px}.ob-friendly .ob-footer>p{margin:8px 0 2px}
}
/* 마케팅 심리 검토 4: 방 빈 상태에 다음 행동(방 구해요 글 쓰기·조건 저장). 비회원은 누를 때만 로그인 */
/* 방 빈 상태는 room-browse.css의 한 줄 안내(2026-11-09) */
/* 마케팅 심리 검토 5: 글쓰기 안내는 제목 위 두 줄이 아니라 입력칸 아래 한 줄. 초안 상태는 입력을 시작한 뒤에만 */
.device-draft [data-draft-status]:empty{display:none}.device-draft.is-bottom:has([data-draft-status]:empty){display:none}.device-draft.is-bottom{margin:0;padding:0}.device-draft.is-bottom p{margin:0;font-size:var(--text-small);color:var(--muted)}.compose-public-note{margin:-4px 0 0}
/* 생활 단계(2단계): 작은 화면에서 첫 카드가 고정 버튼에 가려지지 않게 카드·하단 여백을 줄이고 보조 설명 한 줄은 숨긴다 */
@media(max-width:767px) and (max-height:680px){form:has(.ob-stages) .ob-footer{padding-top:8px;padding-bottom:max(10px,env(safe-area-inset-bottom))}form:has(.ob-stages) .ob-footer>p{display:none}form:has(.ob-stages) .ob-skip{margin:0}.ob-content:has(.ob-stages) .ob-eyebrow{display:none}.ob-friendly .ob-stage-box{min-height:72px;padding-top:10px;padding-bottom:10px}.ob-friendly .ob-stages{gap:8px}}
/* 나의 HAN 저장·기록: 모아둔 기록 카드는 유지하고 안쪽 여백을 이어서 할 일 카드와 같게(좌우 16px) */
[data-my-section="records"] .my-shortcuts>button{padding-left:16px;padding-right:16px}
/* 생활 서비스 아래쪽: 입국 준비·일본어학교 찾기 반반 한 줄, 하단 두 행 통일, 카드 사진 모서리 'AI 이미지' */
.service-entry-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 8px}
.service-entry-pair>.service-preparation-entry{width:100%;min-width:0;min-height:52px;margin:0;padding:10px 12px;justify-content:center;gap:8px;font-size:var(--text-control);line-height:1.35;text-align:left}
.service-entry-pair>.service-preparation-entry>strong{font-size:var(--text-control);font-weight:var(--w-strong);word-break:keep-all;overflow-wrap:normal;min-width:0}
.service-entry-pair>.service-preparation-entry>.icon{flex:none;width:18px;height:18px}
@media(max-width:359px){.service-entry-pair{gap:8px}.service-entry-pair>.service-preparation-entry{flex-direction:column;gap:4px;padding:8px 6px;text-align:center}}
.service-end-rows{display:grid;margin:12px 0 0}
.service-end-rows>.service-text-link{display:flex;align-items:center;justify-content:flex-start;gap:4px;width:fit-content;max-width:100%;min-height:44px;padding:8px 4px;border:0;border-radius:0;background:none;color:var(--secondary);font-size:var(--text-control);font-weight:var(--w-regular,400);text-decoration:underline;text-underline-offset:3px;text-align:left}
.service-end-rows>.service-text-link>span{min-width:0;word-break:keep-all;overflow-wrap:break-word}
.service-end-rows>.service-text-link>.icon{flex:none;width:16px;height:16px;color:var(--secondary)}
/* 동네 가게: 지도 탭 분류와 같은 4개 아이콘 카드(2×2) */
.shop-kind-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-kind-card{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:12px;border:1px solid #edf0f3;border-radius:var(--radius-control);background:#fff;text-align:left;box-shadow:none}
.shop-kind-card>strong{min-width:0;font-size:var(--text-meta);font-weight:var(--w-strong);line-height:1.4;word-break:keep-all;overflow-wrap:break-word}
.shop-kind-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--category-soft,var(--primary-soft));color:var(--category-color,var(--primary))}
.shop-kind-icon>.icon{width:20px;height:20px}
.shop-kind-card:active{background:var(--soft)}
@media(max-width:359px){.shop-kind-grid{gap:8px}.shop-kind-card{flex-direction:column;justify-content:center;gap:6px;padding:10px 6px;text-align:center}}
.service-card{position:relative}
.service-card-ai{position:absolute;top:8px;right:8px;z-index:1;padding:2px 7px;border-radius:8px;background:rgb(20 22 28/.62);color:#fff;font-size:var(--text-small);line-height:1.5;pointer-events:none}
/* 일자리 상세: 보수는 제목 아래 별도 칸(일자리 파란 계열), 제목보다 작게, '예시'는 칸 안 작은 보조 글자 */
.detail-price.job-pay{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;width:fit-content;max-width:100%;margin:6px 0 14px;padding:8px 14px;border:1px solid var(--secondary-line);border-radius:var(--radius-control);background:var(--secondary-soft);color:var(--secondary-ink)}
.detail-price.job-pay>strong{font-size:var(--text-card);line-height:1.4;font-weight:var(--w-bold)}
.detail-price.job-pay>small{font-size:var(--text-small);line-height:1.4;font-weight:var(--w-regular,400);color:#3d5f93}
/* 제목류 줄바꿈: 낱말 중간에서 끊지 않고(keep-all), 한 글자만 다음 줄로 남지 않게 균형(balance, 미지원 브라우저는 무시). 모임 만들기 카드와 버튼 안 카드 제목(줄 수 제한)은 제외 */
:is(#main,#sheet) :is(h1,h2,h3,.detail-title):not(.meetup-create-copy *):not(button *){word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
/* 본문·카드 제목(버튼 안 포함)·태그·질문도 한국어 낱말 중간에서 끊지 않음(P3 #42·#43). 줄 수 제한 카드 제목은 balance 없이 keep-all만. 일본어는 띄어쓰기가 없어 원래대로 */
:is(#main,#sheet){word-break:keep-all;overflow-wrap:break-word}:is(#main,#sheet) :is([lang=ja],.jp-text){word-break:normal}
/* 일본어 글자는 일본어 글꼴(JP)을 먼저 쓴다. 글꼴 목록은 한국어 우선이라 lang=ja만으로는 한자 글리프가 한국식으로 나온다. */
:is(#main,#sheet,.context) [lang=ja]{font-family:var(--font-ja)}
@media(max-width:359px){.dg-product h3{-webkit-line-clamp:3}} /* 320 1.8배: 낱말 단위로 줄을 바꾸면 홈 나눔 카드 제목이 세 줄이 되어 두 줄 제한에 잘림 */
/* 가게 이름 옆 '가게 등록' 배지: 작고 단순하게 */
.shop-official-badge{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:1px 7px 1px 5px;border-radius:999px;background:#eef2f8;color:#3c5a8a;font-size:var(--text-small);font-weight:var(--w-strong,600);line-height:1.4;vertical-align:middle;white-space:nowrap}
.shop-official-badge svg{width:11px;height:11px;flex:none}
.shop-owner-badge{display:inline-block;margin-left:6px;color:var(--muted,#686e7b);font-size:var(--text-small);font-weight:var(--w-regular,400);line-height:1.5;vertical-align:middle;white-space:nowrap}
/* 터치·마우스로 조작한 뒤 코드로 옮긴 포커스에는 키보드용 테두리를 숨깁니다(글자 입력칸은 그대로). 키보드 사용(data-input="keyboard")이면 그대로 보입니다. */
html[data-input="pointer"] :is(button,a,summary,[role="tab"],[role="button"],[tabindex],dialog,.map-preview-deck,.map-sheet-handle):focus-visible{outline:none!important}
/* P3(2026-11-08): 모임 만들기 카드 설명이 두 줄로 넘어갈 때 '봐요' 두 글자만 남지 않게 균형 줄바꿈(문구는 그대로) */
.meetup-create-copy small{text-wrap:balance}
/* 낮은 화면(예: 320×568·글자 크게)에서 지도 미리보기 카드가 위 필터 칩 아래로 가리지 않게 응대 안내 줄은 숨김(상세에서 확인) */
@media(max-height:620px){.map-reference-footer .map-preview-slide .shop-language-summary{display:none}}
/* 나의 HAN 목록 행 글자: 낱말 중간에서 끊지 않음('임시 저/장 글' 방지, 320·글자 1.8배) */
.my-group .menu-row>span{word-break:keep-all;overflow-wrap:break-word}
/* 홈(입국 준비 화면) 생활 서비스 줄: 전체 폭 한 줄 높이, 왼쪽 제목·오른쪽 격자 아이콘. 보조 줄은 넓은 화면에서만 같은 줄에 작게(좁은 화면·글자 크게는 생략) */
.home-services-slim{display:flex;align-items:center;gap:8px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.home-services-slim>.home-services-button{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex:1 1 auto;min-width:0;width:auto;min-height:48px;padding:0 4px;background:transparent;border:0;border-radius:0}
.home-services-slim>.home-services-button>span{display:flex;flex-direction:row;align-items:baseline;gap:10px;min-width:0}
.home-services-slim>.home-services-button strong{font-size:var(--text-card);color:var(--ink);white-space:nowrap}
.home-services-slim>.home-services-button small{display:none;font-size:var(--text-small);color:var(--muted)}
@media(min-width:900px){.home-services-slim>.home-services-button small{display:inline}}
/* 입국 준비 홈 → 일본 생활 홈 전환(동작 prep-mode life): 오른쪽 끝 작은 글자 링크 */
.home-services-slim>.home-life-link{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;min-height:44px;padding:0 4px 0 8px;margin-left:auto;font-size:var(--text-meta);font-weight:var(--w-regular,400);color:var(--accent-ink,var(--secondary));white-space:nowrap}
.home-services-slim>.home-life-link .icon{width:14px;height:14px}
.home-services-slim>.home-services-button>.icon{flex:none;color:var(--ink)}


/* 배너 광고 자리(ad-slots.js): 기본은 꺼짐 — 켜고 광고가 있을 때만 그려진다. 작은 '광고' 표시 + 한 줄 배너. */
.ad-slot{grid-column:1/-1;position:relative;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-control,12px);background:var(--paper)}
.ad-slot-label{position:absolute;top:6px;right:8px;color:var(--muted);font-size:var(--text-small);line-height:1}
.ad-slot a{display:grid;gap:2px;color:inherit;text-decoration:none;min-height:44px;align-content:center;padding-right:28px}
.ad-slot strong{font-size:var(--text-control);font-weight:var(--w-strong)}.ad-slot small{color:var(--muted);font-size:var(--text-small)}
.ad-slot img{display:block;width:100%;max-height:90px;object-fit:cover;border-radius:8px}
/* 2026-11-09 사용자 결정: 모임 분류 칩 한 줄(여러 개 선택). 줄바꿈 없이 넘치면 가로 스크롤 */
.meetup-kind-row{margin:4px 0 2px;flex-wrap:nowrap}
.meetup-kind-row>.chip{flex:none;white-space:nowrap}
/* 2026-11-09 사용자 결정: 사진 모서리 'AI 이미지' → 'AI' 두 글자 작은 배지(화면 읽기용 이름은 'AI로 만든 이미지') */
span.service-card-ai,.meet-art-photo span.meet-art-credit,.meetup-hero figcaption.meet-art-credit,.meetup-photo-preview span.meet-art-credit{padding:2px 5px;border-radius:var(--radius-tag);font-size:var(--text-small);line-height:1.2;font-weight:600;letter-spacing:.02em}

/* 사업자 센터: '내 실제 등록·문의 관리'는 위 버튼(--text-control·굵게)과 같은 크기로, '체험' 접기는 기본 ▶ 대신 작은 화살표로 */
.business-manage{justify-content:center;min-height:48px;font-size:var(--text-control);font-weight:var(--w-strong,600);color:var(--blue);border-radius:var(--radius-control)}
.business-trial>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;font-size:var(--text-control);font-weight:var(--w-strong,600);color:var(--muted)}
.business-trial>summary::-webkit-details-marker{display:none}
.business-trial>summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px;transition:transform .15s}
.business-trial[open]>summary::after{transform:rotate(-135deg)}

/* 작성한 게시글 | 댓글 두 칸(2026-11-10), 댓글은 본문 한두 줄과 원글 제목·날짜 */
.own-q-tabs{margin:0 0 12px}
.own-comment-body{margin:0 0 4px;font-size:var(--text-body);line-height:1.5;overflow-wrap:anywhere}
.own-comment small{color:var(--muted);font-size:var(--text-meta)}
.own-comment.is-gone{opacity:.7}

/* 짧은 안내문은 마지막 줄에 낱말 하나만 남지 않게(2026-11-11 간격 점검). pretty를 모르는 브라우저는 balance. */
:is(.fieldhelp,p.note){text-wrap:balance;text-wrap:pretty}

/* 기호 글자(⌄ ⌃ ↗)는 윈도우·안드로이드 기본 글꼴에 없어 'v'나 빈 칸으로 보일 수 있어 글자 대신 그림으로 그린다(2026-11-12). 펼침 화살표는 열리면 뒤집는다. */
.search-scope-compact summary:after,.search-rules summary:after,.pwa-extra summary:after,.pwa-manual>summary:after,.wordbook-info>summary>span:last-child:after{display:inline-block;width:1.1em;height:1.1em;flex:none;vertical-align:middle;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.search-scope-compact[open] summary:after,.search-rules[open] summary:after,.pwa-extra[open] summary:after,.pwa-manual[open]>summary:after,.wordbook-info[open]>summary>span:last-child:after{transform:rotate(180deg)}
.ext-link-icon{display:inline-block;width:1em;height:1em;margin-left:2px;vertical-align:-.14em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7h9v9M17 7 7 17'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7h9v9M17 7 7 17'/%3E%3C/svg%3E") center/contain no-repeat}
/* 홈·목록 맨 위 '관심 도시 전체' 선택: 큰 빈 카드가 아니라 머리글 아래 한 줄짜리 작은 선택 줄(brand-theme.css와 충돌하던 테두리·여백 정리). 펼치면 도시 버튼은 그대로 */
.feed-city-scope .list-city-options>summary{width:fit-content;max-width:100%;min-height:44px;gap:2px;color:var(--muted);list-style:none}
.feed-city-scope .list-city-options>summary::-webkit-details-marker{display:none}
.feed-city-scope .list-city-options>summary .icon{flex:none;transition:transform .18s}
.feed-city-scope .list-city-options[open]>summary .icon{transform:rotate(180deg)}
.feed-city-buttons{margin-top:4px}
@media(prefers-reduced-motion:reduce){.feed-city-scope .list-city-options>summary .icon{transition:none}}

/* 윈도우 고대비(forced-colors): 배경색이 강제로 바뀌면 마스크 그림이 사라지므로 색 강제를 끄고 글자색(currentColor)으로 칠한다 */
@media(forced-colors:active){.ext-link-icon,.search-scope-compact summary:after,.search-rules summary:after,.pwa-extra summary:after,.pwa-manual>summary:after,.wordbook-info>summary>span:last-child:after{forced-color-adjust:none;background:currentColor}}

/* 관리자 페이지(/admin, 2026-11-12): 앱 바깥 틀(왼쪽 메뉴·오른쪽 안내·상단 헤더·하단 탭·글쓰기 버튼)을 숨기고 본문만. admin-page.css를 불러오기 전에도 적용되게 여기에 둡니다. */
html[data-admin] .rail,html[data-admin] .context,html[data-admin] #header,html[data-admin] #bottom-nav,html[data-admin] .write{display:none}
html[data-admin] .workspace{display:block;max-width:1200px;margin:0 auto}
html[data-admin] main{padding:0 16px 40px}
@media(min-width:768px){html[data-admin] main{padding:0 32px 48px}}
/* 우동일 이름 변경: 데스크톱 왼쪽 띠(220px)에서 글자 1.8배일 때 세 글자 로고가 넘치지 않게 */
@media(min-width:1200px){.rail .wordmark{font-size:calc(28px * var(--han-type-scale,1));white-space:nowrap}}
/* 접기·펼치기(details/summary): 기본 ▶ 표시를 없애고 어디서나 같은 화살표(펼치면 위로 뒤집힘). 자기 아이콘·화살표가 있는 summary와 메뉴 버튼은 제외 */
summary{list-style:none}
summary::-webkit-details-marker{display:none}
:where(details>summary:not(.iconbtn,.admin-cost-mobile summary,.action-menu>summary,.msg-menu>summary,.chat-system-note>summary):not(:has(.icon,svg,.job-official-chev,.chat-note-toggle)))::after{content:"";display:inline-block;flex:none;width:8px;height:8px;margin:-3px 4px 0 10px;vertical-align:middle;border:solid var(--muted);border-width:0 1.7px 1.7px 0;transform:rotate(45deg);transition:transform 180ms var(--ease-out)}
:where(details[open]>summary:not(.iconbtn,.admin-cost-mobile summary,.action-menu>summary,.msg-menu>summary,.chat-system-note>summary):not(:has(.icon,svg,.job-official-chev,.chat-note-toggle)))::after{transform:rotate(-135deg);margin-top:4px}
@media(prefers-reduced-motion:reduce){:where(details>summary)::after{transition:none}}
/* 신고 접수 버튼은 주의 색(빨강). 11-13 팔레트: 신고·차단·삭제 = --danger */
:is(#shared-report-form,#user-report-form,#shop-review-report-form,#meetup-chat-report-form,#dm-report-form) button.primary.primary{background:var(--danger);border-color:var(--danger);color:#fff}
@media(hover:hover) and (pointer:fine){:is(#shared-report-form,#user-report-form,#shop-review-report-form,#meetup-chat-report-form,#dm-report-form) button.primary.primary:hover{background:var(--danger-ink)}}
