/* ux.css — 글자 크기 단계 · 위 띠 · 퀘스트 걸음 · 가구 놓기 · 사진 다듬기 (0.9.2)
   글자 단계(토큰): 쪽 제목 > 마디 제목 > 카드 제목 > 본문 > 곁글 · 수. 새 화면은 이 토큰만 쓴다. */
:root {
  --t-page: 1.42rem;   /* 쪽 제목 (나무 간판 바깥에서 쓸 때) */
  --t-sec: 1.14rem;    /* 마디 제목 */
  --t-card: 1.02rem;   /* 카드 제목 */
  --t-body: .92rem;    /* 본문 */
  --t-meta: .78rem;    /* 곁글 · 설명 */
  --t-num: 1.06rem;    /* 크게 보일 수 */
  --lh-body: 1.6;
}
@media (max-width: 640px) {
  :root { --t-page: 1.26rem; --t-sec: 1.06rem; --t-card: .98rem; --t-body: .9rem; --t-meta: .76rem; --t-num: 1rem; }
}

/* ── 위 띠: 이름은 늘 읽혀야 한다. 작은 자리에서는 이름 효과를 걷고, 칭호는 접는다 ── */
.topbar .who .nm [class*="nfx-"], .topbar .who .nm [class*="nfx-"] .nt {
  background: none !important; -webkit-text-fill-color: currentColor; color: var(--wood-ink, #f1e3c4) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55) !important; animation: none !important; filter: none !important;
}
.topbar .who .nm [class*="nfx-"] .gl, .topbar .who .nm [class*="nfx-"]::before, .topbar .who .nm [class*="nfx-"]::after { display: none !important; }
.topbar .who .nm .nametag { justify-content: flex-start; }
@media (max-width: 640px) {
  .topbar .who .nm .ttl { display: none; }
  .topbar .who .nm { font-size: .98rem; }
}
/* ── 위 띠 (0.9.2): 첫 줄 = 얼굴 · 이름 · 단계 | 레벨 · 가는 경험치 막대 | 도구.  경험치 막대 바로 아래 = 조용한 재화 줄 + 날씨 한 칸.
   상자와 테두리를 덜고, 자리와 간격으로 읽히게 한다 (public/js/app.js renderTop) ── */
.topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 1.3rem; row-gap: 0; padding: .45rem max(16px, 1.4rem) .4rem; }
.topbar .who { grid-column: 1; grid-row: 1; max-width: 300px; min-width: 0; }
.topbar .who-t { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.topbar .who .rk-top { display: flex; align-items: center; gap: .1rem; font-size: .74rem; }
.topbar .who .rk-top .rk-cls { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar .lvcol { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; max-width: 620px; }
.topbar .lvcol .lvbox { display: flex; align-items: center; gap: .55rem; min-width: 0; max-width: none; flex: none; order: 0; }
.topbar .lvcol .lvbox .lv { font-family: var(--font-num); font-size: .84rem; line-height: 1; padding: 0; border: 0; background: none; clip-path: none; color: var(--gilt-2); letter-spacing: .05em; white-space: nowrap; }
.topbar .lvcol .lvbox .bar { flex: 1 1 auto; min-width: 40px; height: 5px; margin: 0; border-radius: 3px; }
.topbar .lvcol .lvbox .xp { font-size: .7rem; color: var(--leather-ink-3); white-space: nowrap; }
.topbar .tstrip { display: flex; align-items: center; gap: 1rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar .tstrip::-webkit-scrollbar { display: none; }
.topbar .tstrip .wallet { grid-column: auto; grid-row: auto; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: .9rem; font-size: .78rem; overflow: visible; order: 0; }
.topbar .tstrip .wallet .cur { flex: none; gap: .22rem; font-weight: 600; color: var(--leather-ink-2); white-space: nowrap; }
.topbar .tstrip .wallet .cur.fest { height: auto; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--leather-ink-2); }
.topbar .tstrip .wallet .cur.fest:hover { background: none; color: var(--gilt-2); }
.topbar .wxchip { display: inline-flex; align-items: center; gap: .25rem; flex: none; font-size: .74rem; color: var(--leather-ink-3); white-space: nowrap; cursor: pointer; position: relative; }
.topbar .wxchip::after { content: ""; position: absolute; inset: -8px 0; }
.topbar .wxchip:hover .wxn { color: var(--leather-ink); }
.topbar .tools { grid-column: 3; grid-row: 1; margin: 0; flex-wrap: nowrap; gap: .25rem; }
.topbar .wallet .cur[data-info] { position: relative; cursor: pointer; border-radius: 4px; }
.topbar .wallet .cur[data-info]::after { content: ""; position: absolute; inset: -8px 0; }
.topbar .wallet .cur[data-info]:hover .num { color: var(--leather-ink); }
.topbar .wallet .cur[data-info]:focus-visible, .topbar .wxchip:focus-visible { outline: 2px solid var(--gilt, #d6b46a); outline-offset: 2px; }
@media (max-width: 1199px) { .topbar #wx-left { display: none; } }
@media (max-width: 640px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; padding: .3rem 10px .25rem; }
  .topbar .who { grid-column: 1; grid-row: 1; max-width: none; }
  .topbar .tools { grid-column: 2; grid-row: 1; gap: .1rem; }
  .topbar .lvcol { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: .15rem; gap: .12rem; }
  .topbar .who-t { gap: 0; }
  .storybar { min-height: 38px !important; padding-block: .15rem !important; }
  .topbar .tstrip { gap: .75rem; }
  .topbar .tstrip .wallet { gap: .7rem; font-size: .74rem; }
  .topbar .wxchip .wxn { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; }
  .topbar .who .rk-top .rk-cls { display: none; }
}
@media (max-width: 380px) { .topbar .tstrip .wallet { gap: .55rem; } .topbar .tools button.icon { width: 28px; height: 28px; } }
.topbar .who .rkchip { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; color: var(--leather-ink-2); font-size: .74rem; }
.topbar .who .rk-top .rk-cls { margin-left: .45rem; }

/* ── 길잡이가 짚은 것: 그 화면 맨 위, 금빛 테두리 (src/data/guide_quests.js steps.pin) ── */
.rcp.pinned, .scroll-chip.scroll-pin { position: relative; outline: 2px solid var(--gilt, #c99a4a); outline-offset: 2px; border-radius: 4px; background: color-mix(in srgb, var(--gilt, #c99a4a) 9%, transparent); }
.rcp.pinned::before { content: '지금 이야기'; position: absolute; top: -.62rem; left: .6rem; padding: 0 .35rem; font-size: .66rem; letter-spacing: .04em; color: var(--ink-2); background: var(--surface, #f3e8cf); border-radius: 2px; }
/* 레벨은 이름 곁에 작게, 경험치는 그 아래 가는 막대 하나 (0.9.2 위 띠) */
.topbar .who .nm { display: flex; align-items: baseline; gap: .45rem; min-width: 0; }
.topbar .who .nm .nametag { min-width: 0; flex: 0 1 auto; }
.topbar .who .nm .lvs { flex: none; font-family: var(--font-num); font-size: .72rem; letter-spacing: .04em; color: var(--leather-ink-3); }
.topbar .lvcol .lvbox .bar { height: 4px; }
.topbar .who .rk-top { min-width: 0; }
.topbar .who .rkchip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .who { max-width: 360px; }
.topbar .who .rkchip { flex: none; max-width: 100%; }
@media (max-width: 640px) { .topbar .who { max-width: none; } }

/* ── 가구 놓기 (pages/room.js): 그림자 자리 · 고른 가구의 띠 ── */
.roomview { position: relative; }
.furn-ghost { position: absolute; z-index: 3; pointer-events: none; border: 2px dashed #e8c870; border-radius: 3px; background: rgba(232, 200, 112, .16); box-shadow: 0 0 0 1px rgba(40, 24, 8, .5), 0 0 14px rgba(232, 200, 112, .35); transition: left .06s linear, top .06s linear; }
.furn-ghost[hidden] { display: none; }
.furn-bar { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); z-index: 4; margin-top: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .3rem .4rem; border-radius: 4px; background: rgba(30, 20, 12, .86); color: #f1e4c6; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.furn-bar[hidden] { display: none; }
.furn-bar .fb-n { flex: 1 1 6rem; min-width: 0; font-size: .86rem; font-weight: 700; }
.furn-bar button.small { min-height: 32px; padding: 0 .6rem; position: relative; }
.furn-bar button.small::after { content: ''; position: absolute; inset: -6px -2px; }
.furn-bar .fb-x { width: 36px; padding: 0; }
.furn-bar .fb-tip { flex-basis: 100%; font-size: .72rem; color: rgba(241, 228, 198, .7); }
@media (max-width: 640px) { .furn-bar .fb-tip { display: none; } }
.furn.pinned { outline: 2px solid var(--gilt, #c99a4a); outline-offset: 2px; }
.furn-bar { flex-wrap: nowrap; }
.furn-bar button.small, .furn-bar button.small.ghost { color: #f1e4c6; background: rgba(255, 240, 210, .08); border: 1px solid rgba(214, 180, 106, .5); box-shadow: none; padding: 0 .5rem; font-size: .8rem; white-space: nowrap; }
.furn-bar button.small:hover:not(:disabled) { background: rgba(214, 180, 106, .2) !important; color: #fff3d8 !important; }
.furn-bar button.small:disabled { opacity: .4; }
.furn-bar .fb-x { width: 34px; flex: none; }
.furn-bar .fb-n { flex: 1 1 auto; }
@media (min-width: 641px) { .furn-bar { flex-wrap: wrap; } }
/* 「확인」(고르기 끝) · X(취소: 처음 자리로) — 오른쪽 끝에 붙여, 확인은 초록빛으로 뚜렷하게 (위 .furn-bar button.small 보다 뒤 · 더 구체적으로) */
.furn-bar .fb-end { display: inline-flex; flex: none; gap: .3rem; margin-left: auto; }
.furn-bar .fb-end button.fb-ok { min-width: 3.6rem; font-weight: 700; color: #f6fbe9; background: #3f7a3a; border-color: #8cc07a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.furn-bar .fb-end button.fb-ok:hover:not(:disabled) { background: #4c9046 !important; color: #fff !important; }
.furn-bar .fb-end button.fb-x { color: #f3d2c4; border-color: rgba(230, 160, 140, .55); }

/* ── 그림 다듬기 (public/js/cropper.js) ── */
.crop-modal { max-width: 620px; }
.crp { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.crp-stage { flex: 0 0 auto; width: min(260px, 100%); aspect-ratio: 1; background: repeating-conic-gradient(#3a2e24 0 25%, #2c231b 0 50%) 0 0 / 16px 16px; border-radius: 4px; overflow: hidden; touch-action: none; }
.crp-cv { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.crp-cv:active { cursor: grabbing; }
.crp-side { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.crp-prev { display: flex; align-items: flex-end; gap: .9rem; }
.crp-pv { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: var(--t-meta); }
.crp-pv canvas { width: 64px; height: 64px; image-rendering: pixelated; background: repeating-conic-gradient(#e2d1ac 0 25%, #eee1c3 0 50%) 0 0 / 8px 8px; box-shadow: 0 0 0 1px var(--line-2); }
.crp-pv.big canvas { width: 128px; height: 128px; }
.crp-row { display: flex; align-items: center; gap: .5rem; min-height: 36px; }
.crp-row input[type=range] { flex: 1; min-width: 0; }
.crp-shape button.sel { border-color: var(--gilt, #c99a4a); background: color-mix(in srgb, var(--gilt, #c99a4a) 18%, transparent); }
.crp-info { font-size: var(--t-meta); }
@media (max-width: 640px) { .crp-stage { width: 100%; max-width: 320px; margin: 0 auto; } .crp-pv.big canvas { width: 96px; height: 96px; } }
.crp-shape button.sel, .crp-shape button.sel:hover { color: var(--ink) !important; font-weight: 700; }
/* 고정한 뒷이야기 (홈 「지금 할 일」) */
.task .tk-pin { display: inline-flex; vertical-align: -2px; margin-right: .25rem; color: var(--gilt, #b8913a); }
.task .tk-pin svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; }

/* ── 글자 단계 적용: 원정(원정 · 수련 · 릴레이 · 탑 · 세력 · 공격대 · 어둠 너머) 먼저, 다른 화면은 .tyscope 를 달면 같은 단계 ──
   마디 제목 > 카드 제목 > 본문 > 곁글. 본문 줄 간격을 줄여 한눈에 들어오게 */
.dunbody h3 { font-family: var(--font-head); font-weight: 400; font-size: var(--t-sec); line-height: 1.3; letter-spacing: .02em; margin: 0 0 .35rem; }
.dunbody h4, .dunbody .fbar b, .dunbody .plate > b:first-child { font-size: var(--t-card); line-height: 1.35; }
.dunbody p, .dunbody .lore { font-size: var(--t-body); line-height: var(--lh-body); }
.dunbody .lore { color: var(--ink-2); }
.dunbody .faint, .dunbody small { font-size: var(--t-meta); line-height: 1.5; }
.dunbody .num.big, .dunbody .fbar .num { font-size: var(--t-num); font-variant-numeric: tabular-nums; }
.dunbody .plate + .plate { margin-top: .7rem; }
/* 세력 머리 · 겨루기 */
.dunbody .fcontest > .row:first-child { align-items: baseline; margin-bottom: .2rem; }
.dunbody .fcontest .lore { margin: .2rem 0 .6rem; }
.dunbody .raidinfo .ri-rule { font-size: var(--t-meta); color: var(--ink-3); }
.dunbody .ftitles { margin-top: .5rem; }
.dunbody .ftitle { font-size: var(--t-meta); }
.furn-bar button svg.si { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 명장품: 이름 앞의 작은 망치 낙인 · 한 줄 (src/game/master.js, public/js/gearui.js mkMark · mkLine) ── */
.mkname { display: inline-flex; align-items: center; gap: .25em; min-width: 0; }
.mkname > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mkmark { display: inline-flex; flex: 0 0 auto; color: var(--gilt); filter: drop-shadow(0 0 1px color-mix(in srgb, var(--gilt) 55%, transparent)); }
.mkmark svg { width: .78em; height: .78em; }
.mkline { display: flex; align-items: center; gap: .3rem; margin: .15rem 0; font-size: var(--t-small); color: color-mix(in srgb, var(--gilt) 70%, var(--ink)); font-weight: 700; }
.mkline .mkmark svg { width: 12px; height: 12px; }
.rcp-mk { display: inline-flex; align-items: center; gap: .25rem; color: color-mix(in srgb, var(--gilt) 70%, var(--ink)); }
.ff-master .ff-k { color: var(--gilt-2); letter-spacing: .2em; }
.ff-mk-say { margin: .2rem 0 .4rem; font-size: var(--t-small); color: var(--ink-2); text-align: center; line-height: 1.7; }
.ff-master .ff-card { text-align: left; }

/* ── 거래소 › 유저 경매 (public/js/pauction.js) ── */
.pa-switch { margin-bottom: .55rem; }
.pa-search { display: flex; gap: .35rem; margin-bottom: .4rem; }
.pa-q { flex: 1 1 auto; min-width: 0; height: 34px; }
.pa-cats { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; margin-bottom: .4rem; }
.pa-cats::-webkit-scrollbar { display: none; }
.pa-chip { flex: 0 0 auto; position: relative; min-height: 30px !important; height: 30px; padding: 0 .7rem; font-size: var(--t-small); border-radius: var(--r-s); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.pa-chip::after { content: ''; position: absolute; inset: -7px 0; } /* 누르는 자리는 44px */
.pa-chip.sel, .pa-chip[aria-pressed="true"] { background: var(--ink-2); color: var(--surface); border-color: var(--ink); }
.pa-chip.sel .mkmark { color: var(--gilt-2); }
.pa-tools { display: flex; align-items: center; gap: .35rem; margin-bottom: .45rem; }
.pa-sort { height: 30px; min-height: 30px; font-size: var(--t-small); padding: 0 .4rem; max-width: 8.5rem; }
.pa-sellbtn { margin-left: auto; }
.pa-count { font-size: var(--t-small); color: var(--ink-2); }
.pa-list { display: flex; flex-direction: column; padding: .15rem .35rem; }
.pa-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .5rem; width: 100%; min-height: 52px; padding: .3rem .15rem; margin: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 0; background: transparent; box-shadow: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pa-row:last-child { border-bottom: 0; }
.pa-row:hover:not(:disabled) { background: color-mix(in srgb, var(--surface-3) 45%, transparent); }
.pa-pic { display: grid; place-items: center; width: 44px; height: 44px; }
.pa-mid { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.pa-nm { display: flex; min-width: 0; font-size: var(--t-ui); line-height: 1.3; }
.pa-nm > * { min-width: 0; }
.pa-sub { display: flex; align-items: center; gap: .3rem; min-width: 0; font-size: var(--t-micro); }
.pa-tag { font-size: var(--t-micro); padding: 0 .35rem; line-height: 1.5; flex: 0 0 auto; }
.pa-rt { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; white-space: nowrap; }
.pa-rt .cur { font-size: var(--t-small); font-weight: 700; }
.pa-left { font-size: var(--t-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pa-left.soon { color: var(--rose); font-weight: 700; }
.pa-empty { padding: 1rem .5rem; text-align: center; }
.pa-more { font-size: var(--t-small); text-align: center; padding: .4rem 0; }
.pa-off { text-align: center; padding: 1.2rem 1rem; }
.pa-off b { display: block; font-family: var(--font-head); font-size: var(--t-title); margin-bottom: .3rem; }
.pa-hist { margin-top: .8rem; }
.pa-hist h4 { margin: 0 0 .3rem; font-size: var(--t-small); color: var(--ink-3); }
.pa-hrow { min-height: 36px; gap: .4rem; font-size: var(--t-small); }
.pa-hrow .grow { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.pa-sheet { max-width: min(var(--modal), calc(100vw - 16px)); }
.pa-h { padding-right: 2.6rem; display: flex; min-width: 0; }
.pa-tip { margin: .2rem 0 .5rem; }
.pa-kv { margin: .3rem 0 .6rem; row-gap: .25rem; }
.pa-acts { display: flex; flex-direction: column; gap: .45rem; }
.pa-bidrow { display: flex; gap: .4rem; }
.pa-amt { flex: 1 1 auto; min-width: 0; height: 38px; font-size: 1rem; }
.pa-warn { color: var(--rose); min-height: 1em; }
.pa-buy { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.pa-form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .4rem .6rem; margin: .4rem 0 .7rem; }
.pa-form label { display: contents; }
.pa-form label > span, .pa-flabel { font-size: var(--t-small); color: var(--ink-2); }
.pa-form input { height: 36px; min-width: 0; width: 100%; }
.pa-hours { display: flex; gap: .25rem; flex-wrap: wrap; }
.pa-fee { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: var(--t-small); padding-top: .2rem; border-top: 1px dashed var(--line); }
.pa-pick { max-height: 60vh; overflow-y: auto; margin-top: .5rem; }
.pa-tip .gtip > div:first-child { display: none; } /* 이름은 낱장 머리에 이미 있다 */
.pa-kv > :nth-child(even) { justify-self: end; text-align: right; }
.pa-kv .pa-left { font-size: var(--t-small); }
.pa-fee > :last-child { margin-left: auto; }
.ff-master .ff-x { top: 8px; right: 8px; z-index: 2; }

/* ── 방치 편의 (public/js/idle.js): 시간 고르기 · 진행 막대 · 그만두기 · 임시 보관함 ── */
.idur { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
.idur-b { padding-inline: .2rem; white-space: nowrap; }
.idur-b.long[aria-pressed="true"] { box-shadow: var(--ring); }
@media (max-width: 560px) { .idur { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.iprog { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.iprog-bar { height: 10px; background: var(--track); border: 1px solid var(--line-2); border-radius: 1px; overflow: hidden; position: relative; }
.iprog-bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, var(--gilt-2), var(--gilt)); transition: width .6s linear; }
.iprog.sea .iprog-bar > i { background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 60%, #fff), var(--sky)); }
.iprog.war .iprog-bar > i { background: linear-gradient(180deg, color-mix(in srgb, var(--hp) 70%, #fff), var(--hp)); }
.iprog-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: var(--t-small); }
.iprog-row b { font-size: var(--t-ui); }
.iprog-end { font-size: var(--t-micro); text-align: right; }
.istop { align-self: flex-start; }
.irun { display: flex; flex-direction: column; gap: .6rem; }
.irun-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.irun-head h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igot { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: var(--t-small); }
.igot .cur, .igot .chip { white-space: nowrap; }
.irates { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .25rem .8rem; font-size: var(--t-small); }
.irates span { display: flex; justify-content: space-between; gap: .4rem; }
.irates b { font-variant-numeric: tabular-nums; }
.iloot { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: var(--t-small); max-height: 6.5rem; overflow: auto; }
.tbanner { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; border-color: var(--rose); background: color-mix(in srgb, var(--rose-soft) 55%, var(--surface)); }
.tbanner > .row { flex: 1 1 220px; }
.tbanner b { color: var(--rose); }
.tboxm .store { margin-top: .2rem; }
.tbulk { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.tbulk-note { margin: 0; font-size: var(--t-small); }
.tbulk-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.tbulk-row button { white-space: nowrap; padding-inline: .3rem; }
@media (max-width: 560px) { .tbulk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sweepz { display: flex; flex-direction: column; gap: .6rem; }
.sweepz .lockline { font-size: var(--t-small); }
.sweepz .idur, .vy-plan .idur { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── 세력 납품 (public/js/fdeliver.js): 가운데 정렬 · 단추는 한 줄 · 폰 400px ── */
.fd-tabs { margin-top: .6rem; }
.fdel { display: flex; flex-direction: column; gap: .7rem; max-width: 640px; margin: 0 auto; }
.fdel button { white-space: nowrap; }
.fd-intro { display: flex; align-items: center; justify-content: center; gap: .45rem; text-align: center; color: var(--ink-2); font-size: .86rem; line-height: 1.5; }
.fd-intro > span { min-width: 0; }
.fd-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.fd-head { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-align: center; margin-bottom: .45rem; }
.fd-head .faint { font-size: .76rem; }
.fd-note { text-align: center; font-size: .8rem; margin-top: .35rem; }
/* 목표: 별빛 카드 확정권 */
.fd-goal { text-align: center; border-color: var(--gilt) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--gilt-2) 22%, var(--surface)), var(--surface)); }
.fd-goal-top { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.fd-goal-name { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.fd-goal-name b { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.fd-goal-name .faint { font-size: .76rem; }
.fd-goal-bar { height: 10px; margin: .55rem auto .35rem; max-width: 420px; }
.fd-goal-bar > i { background: linear-gradient(90deg, var(--gilt), var(--gilt-2)); }
.fd-goal-line { display: flex; justify-content: center; align-items: baseline; gap: .6rem; flex-wrap: wrap; font-size: .88rem; margin-bottom: .45rem; }
.fd-goal-line b.num { font-size: 1.05rem; color: var(--primary); }
.fd-goal .fd-btns:empty { display: none; }
/* 오늘 한도 */
.fd-day { text-align: center; }
.fd-day-line { display: flex; justify-content: center; align-items: baseline; gap: .9rem; flex-wrap: wrap; font-size: .88rem; }
.fd-day-bar { margin: .4rem auto 0; max-width: 420px; }
.fd-day-bar.full > i { background: var(--good, #4c7a3c); }
/* 재료 · 상점 줄 */
.fd-list { display: flex; flex-direction: column; }
.fd-row, .fd-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .4rem .15rem; border-bottom: 1px dotted var(--line-2); }
.fd-row:last-child, .fd-item:last-child { border-bottom: 0; }
.fd-row.on { background: color-mix(in srgb, var(--gilt-2) 14%, transparent); }
.fd-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fd-name > span:first-child { font-size: .88rem; }
.fd-name .faint { font-size: .74rem; }
.fd-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-step { display: flex; align-items: center; gap: .2rem; }
.fd-step .fd-pm { width: 1.9rem; padding-inline: 0; }
.fd-step .fd-max { padding-inline: .45rem; }
.fd-n { width: 3.4rem; text-align: center; padding: .25rem .2rem; min-height: var(--ctl-s, 1.9rem); -moz-appearance: textfield; }
.fd-n::-webkit-outer-spin-button, .fd-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fd-foot { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: center; align-items: center; gap: .8rem; padding: .55rem .2rem .2rem; margin-top: .3rem; border-top: 1px solid var(--line-2); background: var(--surface); }
.fd-item.done { opacity: .6; }
.fd-furn { display: inline-grid; place-items: center; width: 32px; height: 32px; overflow: hidden; }
.fd-furn canvas { max-width: 32px; max-height: 32px; }
@media (max-width: 640px) { .fd-foot { bottom: 3.4rem; box-shadow: 0 -6px 10px -8px rgba(40, 20, 8, .35); } } /* 폰: 아래쪽 대화 띠 위에 */
@media (max-width: 420px) {
  .fd-row, .fd-item { grid-template-columns: 28px minmax(0, 1fr) auto; gap: .4rem; }
  .fd-step .fd-pm { width: 1.7rem; }
  .fd-n { width: 2.9rem; }
  .fd-step .fd-max { padding-inline: .35rem; }
}
/* 건의 첨부 그림 (public/js/suggest.js): 작은 그림 → 누르면 크게 */
.sg-att { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 2.2rem; }
.sg-att .sg-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sg-attnote { font-size: .74rem; }
.sg-attinfo { gap: .3rem; }
.sg-shot { display: inline-block; padding: 0; border: 1px solid var(--line-2, rgba(0, 0, 0, .25)); border-radius: 4px; background: #1e1712; overflow: hidden; cursor: zoom-in; line-height: 0; max-width: 100%; }
.sg-shot img { display: block; width: auto; height: auto; max-width: min(100%, 320px); max-height: 200px; object-fit: contain; }
.sg-shot.sm img { max-width: 132px; max-height: 88px; }
.sg-shot.gm img { max-width: 180px; max-height: 110px; }
.sg-shotrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin: .5rem 0; }
.sg-hasimg { font-size: .68rem; }
.sg-lightbox { display: grid; place-items: center; cursor: zoom-out; background: #120d09; border-radius: 4px; padding: .3rem; }
.sg-lightbox img { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.modal.sg-lbmodal { --modal: 1320px; padding: .6rem; }
.sg-gmimg { gap: .4rem; align-items: center; margin: .2rem 0 .6rem; }
.sg-gmdays { width: 4.2rem; }
/* 동료 선물 (public/js/pages/party.js giftComp · favSection): 반응 꼬리표 · 오를 호감 · 최근에 준 선물 · 좋아하는 것 */
.gf-top { gap: .5rem; margin-bottom: .2rem; }
.gf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .4rem; margin-top: .5rem; }
.gf-it { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .5rem; justify-content: stretch; text-align: left; padding: .4rem .55rem; min-height: 3.3rem; }
.gf-it.k-loved { border-color: color-mix(in srgb, var(--rose) 55%, transparent); background: color-mix(in srgb, var(--rose-soft) 55%, transparent); }
.gf-it.k-like { border-color: color-mix(in srgb, var(--rose) 30%, transparent); }
.gf-it.k-dislike { opacity: .82; }
.gf-it.rep .gf-n { opacity: .75; }
.gf-nm { display: flex; flex-direction: column; gap: .15rem; min-width: 0; line-height: 1.25; }
.gf-sub { display: flex; flex-wrap: wrap; gap: .25rem; }
.gf-b { display: inline-flex; align-items: center; gap: .15rem; font-size: .7rem; line-height: 1.2; padding: .05rem .35rem; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); white-space: nowrap; font-weight: 500; }
.gf-b .si { width: .85em; height: .85em; fill: currentColor; }
.gf-b.k-loved { color: var(--rose); background: var(--rose-soft); font-weight: 700; }
.gf-b.k-loved.hint { font-weight: 600; border-style: dashed; }
.gf-b.k-like { color: var(--rose); }
.gf-b.k-normal { color: inherit; opacity: .8; }
.gf-b.k-dislike { color: var(--sky, #4a6a8a); }
.gf-b.k-unk { opacity: .65; border-style: dashed; }
.gf-b.k-rep { color: var(--butter); background: var(--butter-soft); }
.gf-b.k-pot { color: var(--primary); background: var(--primary-soft); }
.gf-n { font-size: 1.02rem; color: var(--rose); white-space: nowrap; }
.gf-n.neg { color: var(--sky, #4a6a8a); }
.gf-n.unk { font-size: .8rem; font-weight: 500; color: inherit; opacity: .6; }
.gf-res { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .7rem 0 .3rem; }
.gf-big { font-size: 1.45rem; color: var(--rose); }
.gf-res.k-dislike .gf-big { color: var(--sky, #4a6a8a); }
.gf-note { text-align: center; margin: .2rem 0; font-size: .86rem; }
.cs-favs { margin: var(--sp-2, .5rem) 0; }
.cs-favs h4 { margin: 0 0 .35rem; font-size: .9rem; }
.gf-favlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .35rem; }
.gf-fav { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: .45rem; padding: .35rem .45rem; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 6px; cursor: pointer; }
.gf-fav.k-loved { border-color: color-mix(in srgb, var(--rose) 50%, transparent); background: color-mix(in srgb, var(--rose-soft) 45%, transparent); }
.gf-have { font-size: .7rem; }
@media (max-width: 640px) { .gf-it { min-height: var(--tap, 3rem); } .gf-list { grid-template-columns: 1fr; } }

/* ── 광장 (public/js/pages/plaza.js): 넓은 화면에서도 가운데 한 줄기(900px). 친구 · 길드 · 카페 · 별지기 협회 · 접속자가 같은 폭 · 같은 간격 ──
   별지기 협회 세 칸(협회 소식 · 한마디 · 건의)은 같은 머리(.as-head: 왼쪽 제목 덩이 | 같은 줄 오른쪽 할 일) · 입력 띠(.as-form) · 빈 칸(.as-empty)을 쓴다 */
.plz { display: flex; flex-direction: column; gap: .7rem; width: 100%; max-width: 900px; margin-inline: auto; min-width: 0; }
.plz > h3, .plz > h4 { margin: .35rem 0 0; }
.plz > .list, .plz .as-list { margin: 0; }
.plz-lead { margin: 0; line-height: 1.6; }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem .9rem; min-width: 0; }
.as-ht { flex: 1 1 auto; min-width: 0; }
.as-ht h3 { margin: 0; font-size: var(--t-sec); line-height: 1.3; }
.as-ht p { margin: .12rem 0 0; font-size: var(--t-meta); line-height: 1.5; }
.as-head > :not(.as-ht) { flex: none; white-space: nowrap; }
.as-head > button { display: inline-flex; align-items: center; gap: .35rem; }
.as-head > button .si { width: 15px; height: 15px; }
.plz-bar, .as-form { gap: .4rem; padding: .45rem .55rem; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line); border-radius: var(--r-s); }
:is(.plz-bar, .as-form) > input { flex: 1 1 10rem; min-width: 0; }
:is(.plz-bar, .as-form) > button { flex: none; white-space: nowrap; }
.as-form > select { flex: 0 1 12rem; min-width: 0; }
.as-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.as-sec { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.as-body > .as-sec + .as-sec { padding-top: .9rem; border-top: 1px dotted var(--line-2); }
.as-body .jr-board { margin: 0; }
.as-body .jr-rumors .jr-rh { align-items: center; margin-bottom: .55rem; }
.as-body .jr-rumors .jr-rh h3 { margin: 0; font-size: var(--t-sec); }
.as-eic { display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--ink-2); background: color-mix(in srgb, var(--surface-3) 60%, transparent); border: 1px solid var(--line); }
.as-empty { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 100%; padding: 1.5rem 1rem 1.3rem; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-s); background: color-mix(in srgb, var(--surface-3) 16%, transparent); }
.as-eic { width: 2.6rem; height: 2.6rem; } .as-eic .si { width: 1.25rem; height: 1.25rem; }
.as-empty p { margin: 0; font-size: var(--t-body); line-height: 1.6; }
.as-empty button { margin-top: .15rem; }
/* 한마디: 쪽지는 넓으면 두세 줄로 · 페이지가 내려가므로 안쪽 스크롤은 걷는다 */
.as-wish { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.as-wish .wishes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); max-height: none; overflow: visible; padding-right: 0; }
.as-wish .wish { display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; min-width: 0; }
.as-wish .wish p { margin: 0; overflow-wrap: anywhere; }
.as-wish .wish .row { gap: .4rem; min-width: 0; }
.as-wish .wish-like { flex: none; white-space: nowrap; }
/* 건의: 머리 · 거르개(분류 한 줄 + 늘어놓기 · 도장 · 내 글 · 찾기 한 줄) · 목록 한 판 · 빈 칸 */
.sg-sw { margin: 0 auto .9rem; }
.sg { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.sg-filters { gap: .45rem; padding: .45rem .55rem; margin: 0; }
.sg-filters[hidden] { display: none; }
.sg-cats-row { display: flex; flex-wrap: nowrap; gap: .3rem; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sg-cats-row::-webkit-scrollbar { display: none; }
.sg-cats-row .sg-chip { flex: none; white-space: nowrap; }
.sg-filters .sg-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; min-width: 0; padding-top: .45rem; border-top: 1px dotted color-mix(in srgb, var(--line-2) 70%, transparent); }
.sg-tools > .sg-sort, .sg-tools > .sg-chip { flex: none; white-space: nowrap; }
.sg-qbox { position: relative; display: flex; align-items: center; flex: 1 1 12rem; min-width: 0; max-width: 20rem; margin-left: auto; }
.sg-qbox .sg-qic { position: absolute; left: .55rem; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.sg-tools .sg-qbox .sg-q { flex: 1 1 auto; width: 100%; min-width: 0; max-width: none; margin: 0; min-height: var(--ctl-s); padding-left: 1.9rem; }
.sg-dd { position: relative; flex: none; }
.sg-ddb { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--ctl-s); padding: .1rem .5rem .1rem .65rem; font-size: var(--t-small); font-weight: 400; white-space: nowrap; color: var(--ink-2); background: transparent; border: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent); border-radius: var(--r-s); box-shadow: none; }
.sg-ddb.on { color: var(--ink); border-color: var(--ink-3); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.sg-ddb .sg-n, .sg-ddo .sg-n { font-size: var(--t-micro); opacity: .7; }
.sg-ddc { width: 14px; height: 14px; opacity: .7; transition: transform .15s; }
.sg-dd.open .sg-ddc { transform: rotate(180deg); }
.sg-ddm { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; flex-direction: column; gap: 1px; min-width: 11.5rem; padding: .25rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: 0 8px 20px rgba(40, 25, 10, .25); }
.sg-dd.open .sg-ddm { display: flex; }
.sg-ddo { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; width: 100%; min-height: 2rem; padding: .25rem .55rem; font-size: var(--t-small); font-weight: 400; text-align: left; color: var(--ink-2); background: transparent; border: 1px solid transparent; box-shadow: none; }
.sg-ddo:hover:not(:disabled), .sg-ddo:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--surface-3) 55%, transparent); border-color: transparent; }
.sg-ddo.sel, .sg-ddo.sel:hover:not(:disabled) { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--surface-3) 70%, transparent); border-color: transparent; box-shadow: none; }
.sg-ddn { flex: 1 1 auto; }
.sg-ddk { width: 14px; height: 14px; color: var(--ink-2); }
.sg-dot.all { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sg-list { background: color-mix(in srgb, var(--surface) 50%, transparent); border: 1px solid var(--line); border-radius: var(--r-s); }
.sg-list.none { display: none; }
.sg-item { padding: .55rem .75rem; }
.sg-item:first-child { border-top-left-radius: var(--r-s); border-top-right-radius: var(--r-s); }
.sg-item:last-child { border-bottom-left-radius: var(--r-s); border-bottom-right-radius: var(--r-s); }
.sg-foot { margin: 0; }
.sg-foot:empty { display: none; }
@media (max-width: 640px) {
  .plz { gap: .6rem; }
  .as-body { gap: .85rem; }
  .sg-filters .sg-tools { flex-wrap: wrap; }
  .sg-qbox { flex: 1 1 100%; max-width: none; margin-left: 0; order: -1; }
  .sg-item { padding: .5rem .55rem; gap: .5rem; }
  .as-form > select { flex: 1 1 100%; }
  /* 친구 · 길드원 · 접속자 · 구조 요청 줄: 단추가 많으면 다음 줄로 (이름이 눌려 세로로 쪼개지지 않게) */
  .plz:not(.plz-cafe) .list > .li { flex-wrap: wrap; row-gap: .3rem; }
  .plz:not(.plz-cafe) .list > .li > .grow { flex: 1 1 8rem; min-width: 0; }
  .plz:is(.plz-friends, .plz-guild) .list > .li:has(> button)::after { content: ''; flex: 0 0 100%; order: 1; }
  .plz:is(.plz-friends, .plz-guild) .list > .li:has(> button) > :is(button, .tag) { order: 2; }
}

/* ── 마지막 화면 점검 (2026-10-27) ── */
@media (max-width: 640px) {
  .stat-side { width: 100% !important; } /* 캐릭터 › 능력치: 폰에서 명함 · 역량 · 평판 칸이 아래 능력치 판과 같은 너비로 */
  /* 거래소 › 잡화 · 씨앗: 이름과 설명이 한 줄을 다 쓰고, 보유 · 값 · 수량 · 사기는 그 아래 오른쪽 한 줄 (「보/유/0」 세로 꺾임 없이) */
  .li.buyrow { flex-wrap: wrap; row-gap: .3rem; }
  .li.buyrow > .grow { flex: 1 1 calc(100% - 3rem); min-width: 0; }
  .li.buyrow > span.faint { margin-left: auto; white-space: nowrap; }
}
.small-list > .li > span.faint:last-child { white-space: nowrap; flex: none; } /* 소식 · 다녀간 손길: 「방금」 · 「3분 전」이 세로로 꺾이지 않게 */
/* 밤의 서고: 옅은 붉은 바탕(--primary-soft) 위 붉은 글씨 · 밝은 민트 위 흰 숫자가 흐렸다 */
:root[data-tone="dark"] :is(.tag.lilac, .sq-cnt.new, .sq-st.nw) { color: color-mix(in srgb, var(--rose) 70%, var(--ink)); }
:root[data-tone="dark"] .gc-have { color: var(--surface); }
@media (max-width: 420px) { .cs-acts button { font-size: .82rem; padding-inline: .2rem; white-space: nowrap; } } /* 동료 낱장: 「선물 건네기 0/5」가 한 줄에 (꺾지 않고 글자를 줄인다) */
/* 소식함 (app.js showNotices): 글씨 가늘고 작게 · 「1시간 전」은 줄바꿈 없이 (오너 2026-10-28) */
.ntlist .nt-li { align-items: flex-start; gap: .5rem; padding-block: .45rem; }
.ntlist .nt-li .tag { flex: none; margin-top: .1rem; font-weight: 500; }
.ntlist .nt-tx { min-width: 0; font-size: .86rem; font-weight: 400; line-height: 1.5; }
.ntlist .nt-tx b, .ntlist .nt-tx strong { font-weight: 600; }
.ntlist .nt-tm { flex: none; white-space: nowrap; font-size: .72rem; margin-top: .15rem; min-width: 3.6em; text-align: right; }

/* ── 길드 던전 「아지트 밑 구멍」 (public/js/gdungeon.js) — 휴대폰 먼저 · 가운데 · 한 줄 단추 ── */
.gd-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--d-stack); }
.gd-scene { position: relative; border-radius: var(--r-l); overflow: hidden; background: #0b0a14; box-shadow: var(--shadow-card); border: 1px solid #1c110a; }
.gd-cv { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; image-rendering: pixelated; }
.gd-hud { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: .45rem .6rem; pointer-events: none; color: var(--on-dark); text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, .8); }
.gd-title { display: flex; align-items: baseline; gap: .5rem; font-family: var(--font-head); }
.gd-title b { font-size: 1.08rem; letter-spacing: .06em; }
.gd-title span { font-size: var(--t-micro); color: var(--on-dark-2); }
.gd-floor { display: flex; align-items: baseline; gap: .3rem; padding: .1rem .7rem; border-radius: var(--r-s); background: rgba(8, 8, 18, .55); border: 1px solid rgba(160, 200, 230, .25); }
.gd-floor b { font-family: var(--font-num); font-size: 1.5rem; line-height: 1.1; color: #e6fffb; }
.gd-floor span { font-size: var(--t-small); color: var(--on-dark-2); }
.gd-floor .gd-laps { color: #c79bff; }
.gd-body { display: flex; flex-direction: column; gap: var(--d-stack); }
.gd-lore { margin: 0 auto; max-width: 34em; text-align: center; font-size: var(--t-small); color: var(--ink-3); line-height: 1.7; }
.gd-mh { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.gd-mh b { font-size: var(--t-sub); }
.gd-party { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.gd-pm { display: inline-flex; flex-direction: column; align-items: center; min-width: 5.2rem; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); line-height: 1.25; }
.gd-pm b { font-size: .78rem; max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-pm span { font-size: .62rem; color: var(--ink-3); max-width: 100%; text-align: center; line-height: 1.1; word-break: keep-all; overflow-wrap: anywhere; }
.gd-pm.me { border-color: var(--gilt); background: color-mix(in srgb, var(--gilt-2) 16%, var(--surface-2)); }
.gd-pm.npc { border-style: dashed; }
.gd-pm.down { opacity: .55; }
.gd-go { display: flex; justify-content: center; }
.gd-go button { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.gd-bi .si { width: 1.15em; height: 1.15em; }
.gd-cd { font-family: var(--font-num); font-size: 1.05rem; color: var(--sky); }
.gd-bar { height: 6px; }
.gd-res { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-align: center; }
.gd-res b { font-family: var(--font-head); font-size: 1.08rem; }
.gd-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.gd-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; max-height: 19rem; overflow-y: auto; font-size: var(--t-small); line-height: 1.6; }
.gd-log li { padding: .3rem .5rem; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 var(--r-s) var(--r-s) 0; }
.gd-log li.good { border-left-color: var(--mint); }
.gd-log li.bad { border-left-color: var(--rose); }
.gd-log li.boss { border-left-color: var(--gilt); background: color-mix(in srgb, var(--butter-soft) 55%, var(--surface-2)); }
.gd-log li.sys { border-left-color: var(--sky); color: var(--ink-2); }
.gd-log .gd-tg { display: inline-block; margin-right: .35rem; padding: 0 .35rem; font-size: var(--t-micro); font-weight: 700; border-radius: var(--r-s); vertical-align: .05em; }
.gd-log .gd-tg:empty { display: none; }
.gd-log .gd-tg.bad { background: var(--rose-soft); color: var(--rose); }
.gd-log .gd-tg.good { background: var(--mint-soft); color: var(--mint); }
.gd-log li.gd-more { border-left-style: dashed; background: none; text-align: center; }
.gd-logd > summary { cursor: pointer; text-align: center; font-size: var(--t-small); color: var(--ink-2); padding: .2rem; }
.gd-logd[open] > summary { margin-bottom: .4rem; }
.gd-track { position: relative; height: 10px; border-radius: var(--r-s); background: var(--track); overflow: hidden; border: 1px solid var(--line); }
.gd-track > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2bb3b8, #7a4fd6); }
.gd-sub { text-align: center; }
.gd-ms { display: flex; flex-direction: column; gap: .45rem; }
.gd-msg { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: .25rem; }
.gd-msg .gd-msb { min-width: 0; min-height: 2rem; padding: 0; font-size: var(--t-micro); font-family: var(--font-num); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); border-radius: var(--r-s); }
.gd-msg .gd-msb.gd-big { border-width: 2px; border-color: var(--line-2); font-weight: 700; }
.gd-msg .gd-msb.got { background: color-mix(in srgb, var(--mint-soft) 70%, var(--surface-2)); color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.gd-msg .gd-msb.sel { box-shadow: var(--ring); background: var(--surface-3); color: var(--ink); }
.gd-msg .gd-msb.got.sel { background: var(--mint-soft); color: var(--mint); }
.gd-msd { display: flex; flex-direction: column; gap: .35rem; padding: .4rem .5rem; background: var(--surface-2); border-radius: var(--r-s); }
.gd-rank .gd-rl { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.gd-rl li { display: flex; align-items: center; gap: .45rem; padding: .2rem .35rem; border-radius: var(--r-s); font-size: var(--t-ui); }
.gd-rl li.me { background: color-mix(in srgb, var(--gilt-2) 14%, transparent); }
.gd-rl .num.faint { font-size: var(--t-micro); white-space: nowrap; }
.gd-rule > summary { cursor: pointer; }
.gd-rule ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: var(--t-small); line-height: 1.7; color: var(--ink-2); }
.gd-entry { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; background: linear-gradient(90deg, color-mix(in srgb, #2bb3b8 10%, var(--surface)), var(--surface)); }
.gd-entry:hover { box-shadow: var(--ring); }
.gd-ent-ic .si { width: 1.6rem; height: 1.6rem; color: var(--sky); }
.gd-ent-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gd-ent-tx .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-ent-fl { display: flex; align-items: baseline; gap: .1rem; white-space: nowrap; }
.gd-ent-fl b { font-family: var(--font-num); font-size: 1.2rem; }
.gd-ent-go { padding: .25rem .6rem; border-radius: var(--r-s); border: 1px solid var(--line-2); font-size: var(--t-small); white-space: nowrap; }
.gd-ent-go.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
@media (max-width: 700px) { .gd-msg { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .gd-msg { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .gd-floor b { font-size: 1.25rem; }
  .gd-pm { min-width: 4.6rem; }
}

/* ───── 텃밭 마당 (2026-10-28 · public/js/farm_art.js) ─────
   텃밭 머리 아래 얇은 도트 마당 띠(그림 1칸 = 2px, 높이 60px · 룸메이트 텃밭은 40px) + 밭 칸마다 갈아 놓은 흙 이랑(--fy-soil 타일).
   v2: 다 자란 칸의 작물에 반짝이 두 점이 번갈아 깜박인다 (움직임 줄이기면 멈춘 반짝이 하나).
   그림은 제 색, 둘레 선 · 글자는 테마 색을 쓴다. */
.farmyard { position: relative; overflow: hidden; flex: none; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #62a044; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.farmyard canvas { display: block; max-width: none; image-rendering: pixelated; image-rendering: crisp-edges; }
@supports (image-rendering: pixelated) { .farmyard canvas { image-rendering: pixelated; } }
.farmyard.small { opacity: .92; filter: saturate(.88); }
.gplots .gplot { background: color-mix(in srgb, #62a044 7%, color-mix(in srgb, var(--surface-2) 70%, var(--surface))); }
.gplots .gplot.ready { background: color-mix(in srgb, var(--mint) 10%, var(--surface)); }
.gplots .gplot::before { content: ""; position: absolute; left: 7px; right: 7px; top: calc(.3rem + 17px); height: 16px; border: 1px solid #2e1a0e; border-radius: 3px; background: #5e3a20 var(--fy-soil) repeat 0 0 / 32px 24px; image-rendering: pixelated; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .18), 0 1px 0 color-mix(in srgb, #62a044 55%, transparent); pointer-events: none; }
.gplots .gplot.empty::before { opacity: .85; }
.gplots .gplot > * { position: relative; }

/* 길드 던전 2차: 한눈에 · 접기 · 지금 싸움 · 예약 */
.gd-hb { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.gd-next { display: inline-flex; align-items: center; gap: .35rem; padding: .05rem .5rem; font-size: var(--t-micro); color: var(--on-dark); background: rgba(8, 8, 18, .5); border-radius: var(--r-s); }
.gd-next .cur { color: var(--on-dark); }
.gd-now { display: flex; flex-direction: column; gap: .5rem; }
.gd-start { display: flex; flex-direction: column; gap: .45rem; }
.gd-qline { text-align: center; font-size: var(--t-ui); }
.gd-result { display: flex; flex-direction: column; gap: .45rem; }
.gd-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .35rem; padding: .3rem .1rem; font-size: var(--t-small); color: var(--ink-2); }
.gd-fold > summary::-webkit-details-marker { display: none; }
.gd-fold > summary::before { content: ''; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: .15rem; }
.gd-fold[open] > summary::before { transform: rotate(45deg); }
.gd-body > .gd-fold { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); }
.gd-logd > summary, .gd-more > summary { justify-content: center; }
.gd-rules { margin: .2rem 0 .3rem; padding-left: 1.1rem; font-size: var(--t-small); line-height: 1.7; color: var(--ink-2); }
.gd-last { max-height: none; }
.gd-last li { padding: .2rem .45rem; }
.gd-strip { display: flex; flex-direction: column; gap: .4rem; }
.gd-msg .gd-msb.nx { border-color: var(--gilt); color: var(--butter); font-weight: 700; }
.gd-rank .gd-more { margin-top: .2rem; }
/* 지금 싸움 */
.gd-arena { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-s); border: 1px solid #1e1208; background: #0c0806; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; padding: .35rem .4rem .4rem; color: var(--on-dark); }
.gd-ar-bg { position: absolute; inset: 0; z-index: -1; }
.gd-ar-bg .dscene { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.gd-ar-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 4, 10, .25), rgba(6, 4, 10, .05) 40%, rgba(6, 4, 10, .55)); }
.gd-ar-top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: var(--t-micro); text-shadow: 0 1px 0 #000; }
.gd-ar-lb { font-weight: 700; letter-spacing: .04em; }
.gd-ar-who { color: var(--on-dark-2); }
.gd-ar-row { display: flex; justify-content: center; gap: .35rem; flex-wrap: nowrap; }
.gd-u { display: flex; flex-direction: column; align-items: center; gap: .08rem; width: 4.4rem; min-width: 0; transition: opacity .3s, filter .3s; }
.gd-u.down { opacity: .35; filter: grayscale(1); }
.gd-u-ic { display: grid; place-items: center; min-height: 34px; filter: drop-shadow(0 1px 0 #000); }
.gd-u.boss .gd-u-ic { min-height: 40px; }
.gd-u-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.gd-u-hp { width: 100%; height: 5px; border-radius: 2px; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(255, 236, 200, .18); overflow: hidden; }
.gd-u-hp > i { display: block; height: 100%; width: 100%; background: #6fbf73; transition: width .5s ease-out; }
.gd-u.foe .gd-u-hp > i { background: #d0574a; }
.gd-u.boss .gd-u-hp > i { background: #e0a530; }
.gd-u-hp.low > i { background: #e3893a; }
.gd-ar-hl { min-height: 1.2em; text-align: center; font-size: var(--t-micro); color: #f4e4c0; text-shadow: 0 1px 0 #000; }
@media (max-width: 480px) { .gd-u { width: 3.9rem; } .gd-ar-row { gap: .2rem; } }
@media (prefers-reduced-motion: reduce) { .gd-u-hp > i { transition: none; } }
.gd-msd[hidden] { display: none; }
.gd-now .gd-party, .gd-result .gd-party { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.gd-now .gd-pm, .gd-result .gd-pm { min-width: 0; max-width: 100%; overflow: hidden; padding: .2rem .25rem; }
.gd-now .gd-pm b, .gd-result .gd-pm b { max-width: 100%; }
.gplots .gplot.ready .gp-art::before, .gplots .gplot.ready .gp-art::after { content: ""; position: absolute; z-index: 2; width: 7px; height: 7px; pointer-events: none; opacity: 0;
  background: linear-gradient(#fffbe6, #fffbe6) center / 1px 100% no-repeat, linear-gradient(#fffbe6, #fffbe6) center / 100% 1px no-repeat, radial-gradient(circle, rgba(255, 246, 200, .9) 0 1px, transparent 2px);
  filter: drop-shadow(0 0 1px rgba(176, 120, 16, .95)) drop-shadow(0 0 3px rgba(255, 214, 110, .85)); animation: fy-twinkle 2.6s ease-in-out infinite; }
.gplots .gplot.ready .gp-art::before { top: 1px; right: 3px; }
.gplots .gplot.ready .gp-art::after { top: 11px; left: 2px; width: 5px; height: 5px; animation-delay: 1.3s; }
@keyframes fy-twinkle { 0%, 55%, 100% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1); } 85% { opacity: .6; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .gplots .gplot.ready .gp-art::before { animation: none; opacity: .85; } .gplots .gplot.ready .gp-art::after { animation: none; } }

/* 길드 아지트 홀: 720칸으로 넓어짐 (room_art.js HALL). 좁은 화면은 가로로 밀어 본다 */
.hallscroll { min-width: 0; }
@media (max-width: 760px) {
  .hallscroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .hallscroll > .hallview { min-width: calc(var(--hw, 720) * .86px); } /* 넓어진 만큼만 가로로 민다 (480 홀은 413px) */
}

.gd-body > .gd-lore { margin: -.15rem auto 0; font-size: var(--t-micro); line-height: 1.5; max-width: 30em; }

/* 반 높이 마이룸 · 아지트 (2026-10-28): 방 이름 · 안내 글이 낮아진 그림을 덜 가리게 */
.roomview .rname { top: .2rem; font-size: .82rem; opacity: .9; }
.roomview .hint { bottom: .2rem; font-size: .64rem; opacity: .75; }
.htoken .tn { font-size: .6rem; line-height: 1.1; }
.htoken .bubble { margin-bottom: 3px; padding: .05rem .4rem; }
@media (max-width: 640px) { .roomview .rname { font-size: .68rem; top: .05rem; } }

/* 2층 집 · 2층 회랑 (2026-10-28): 층마다 캔버스, 2층은 위 · 계단 쪽(오른쪽)에 맞춤 · 사이에 바닥 판 */
.roomstories { display: flex; flex-direction: column; }
.roomstory { position: relative; }
.roomstory .rs-in { position: relative; margin-left: auto; }
.roomstory .rs-in > canvas { display: block; width: 100%; image-rendering: pixelated; cursor: pointer; }
.rs-tag { display: none; position: absolute; left: .3rem; top: .2rem; font-size: .62rem; color: #f1e4c6; background: rgba(30,20,12,.55); padding: 0 .3rem; border-radius: 3px; pointer-events: none; }
.roomview.two .rs-tag, .hallview.two .rs-tag { display: block; }
.room-slab { display: none; height: 7px; background: linear-gradient(#6e4a28, #3a2414 60%, #1e120a); box-shadow: inset 0 1px 0 #a8784a; }
.roomview.two .room-slab, .hallview.two .room-slab { display: block; }
.hallview .hstory { position: relative; margin: 0 auto; }
.hallview .hstory > canvas { display: block; width: 100%; image-rendering: pixelated; }
@media (max-width: 640px) {
  /* 휴대폰: 층마다 가로로 밀어 본다 (방 그림은 0.85배 아래로 줄이지 않는다) */
  .roomstory { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .roomstory .rs-in { min-width: calc(var(--rw, 320) * .85px); }
}

/* ── 도감 (기록 › 도감): 모든 마디가 같은 칸 ── 그림 자리 52px 고정 · 이름 한 줄(넘치면 …) · 같은 간격 · 칸 수는 폭에 따라 */
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; margin-top: .45rem; }
.cx-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; height: 88px; padding: .4rem .3rem .35rem; box-sizing: border-box;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px color-mix(in srgb, var(--line) 55%, transparent); }
.cx-cell.off { opacity: .38; }
.cx-cell.boss:not(.off) { border-color: var(--gilt, #c9a24a); }
.cx-spr { width: 52px; height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cx-spr .ic { image-rendering: pixelated; flex: 0 0 auto; }
.cx-name { width: 100%; font-size: .7rem; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-n { position: absolute; top: 2px; right: 4px; font-size: .62rem; opacity: .75; }
@media (max-width: 420px) { .cx-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .35rem; } }

/* 배경 음악: 음원 정보(접힘) · 뮤직박스 — public/js/audio/musicbox.js. 작고 옅게, 소리치지 않는다 */
.np { min-width: 0; font-size: .76rem; line-height: 1.4; color: var(--ink-3); }
.np-fold > summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; min-width: 0; cursor: pointer; border-radius: 4px; padding: .1rem .25rem; }
.np-fold > summary::-webkit-details-marker { display: none; }
.np-fold > summary:hover .np-more, .np-fold > summary:focus-visible .np-more { text-decoration: underline; text-underline-offset: 2px; }
.np-now { display: inline-flex; min-width: 0; overflow: hidden; }
.np-title { font-style: italic; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.np-by, .np-more { white-space: nowrap; flex: none; }
.np-more { opacity: .85; }
.np-idle .np-now { opacity: .75; }
.np .si, .mbox .si, .mb-btn .si { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.np-ic { width: 12px; height: 12px; flex: none; stroke-width: 1.6; }
.np-chev { width: 11px; height: 11px; flex: none; stroke-width: 2; transition: transform .15s; }
.np-fold[open] .np-chev { transform: rotate(90deg); }
.np-body { margin: .35rem auto 0; max-width: 34rem; text-align: left; font-size: .72rem; line-height: 1.55; }
.np-body p { margin: 0 0 .35rem; }
.np-body p:first-child { font-weight: 600; }
.np-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .1rem .9rem; }
.np-list li { display: flex; align-items: baseline; gap: .35rem; min-width: 0; }
.np-t { display: inline-flex; min-width: 0; color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent); }
.np-t:hover, .np-t:focus-visible { border-bottom-style: solid; }
.np-tag { font-size: .62rem; padding: 0 .3rem; border: 1px solid currentColor; border-radius: 3px; opacity: .7; flex: none; }
@media (prefers-reduced-motion: reduce) { .np-chev { transition: none; } }
/* 첫 화면: 맨 아래 「만든 이」 줄 바로 위 */
.landing .ld-foot { grid-column: 1 / -1; width: 100%; margin-top: .4rem; }
.landing .ld-music { display: flex; justify-content: center; align-items: flex-start; gap: .2rem; padding: 0 16px; color: rgba(236, 222, 196, .66); }
.landing .np-login { text-align: center; color: inherit; min-width: 0; }
.landing .np-login .np-body { color: rgba(236, 222, 196, .78); background: rgba(14, 11, 26, .72); border: 1px solid rgba(214, 180, 106, .25); border-radius: 6px; padding: .6rem .75rem; }
.landing .ld-music + .ld-credit { margin-top: .6rem; }
.landing .mb-login { color: inherit; width: 26px; height: 26px; min-height: 0; padding: 0; background: none; border: 1px solid rgba(236, 222, 196, .28); border-radius: 50%; flex: none; }
.landing .mb-login .si { width: 13px; height: 13px; }
/* 홈: 격자 아래 가운데, 아주 옅게 */
.np-home { display: block; text-align: center; margin: .9rem auto .2rem; opacity: .78; font-size: .72rem; }
/* 설정 › 소리 */
.np-panel { text-align: left; }
.np-panel .np-body { margin-left: 0; }
.mb-inline.icon { width: 30px; height: 30px; }
/* 머리줄 단추: 흐르는 동안 음표가 살짝 밝다 */
.mb-btn .si { stroke-width: 1.6; }
.mb-btn.on .si { color: var(--gilt-2); }

/* 뮤직박스 창: 넓은 화면은 단추 아래 작은 판, 좁은 화면은 아래쪽 시트 */
.mbox { position: fixed; z-index: 1200; width: 300px; max-height: min(78vh, 560px); display: flex; flex-direction: column; gap: .45rem; padding: .7rem .75rem .6rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: .82rem; }
.mb-head { display: flex; align-items: center; gap: .4rem; }
.mb-head b { flex: 1; font-size: .86rem; letter-spacing: .04em; }
.mb-hic { width: 15px; height: 15px; stroke-width: 1.7; color: var(--gilt); }
.mbox .icon { display: inline-grid; place-items: center; min-height: 0; padding: 0; }
.mb-x.icon { width: 28px; height: 28px; }
.mb-x .si { width: 15px; height: 15px; stroke-width: 1.8; }
.mb-now { min-width: 0; }
.mb-t { font-size: .9rem; min-width: 0; overflow: hidden; }
.mb-t .np-t { max-width: 100%; }
.mb-st { font-size: .7rem; color: var(--ink-3); }
.mb-ctl { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.mb-b.icon { width: 36px; height: 36px; border-radius: 50%; }
.mb-b .si { width: 17px; height: 17px; stroke-width: 1.8; }
.mb-main.icon { width: 44px; height: 44px; }
.mb-main .si { width: 20px; height: 20px; }
.mb-shuf { margin-left: .35rem; opacity: .55; }
.mb-shuf[aria-pressed="true"] { opacity: 1; color: var(--gilt); }
.mb-vol { display: flex; align-items: center; gap: .45rem; }
.mb-vol .si { width: 15px; height: 15px; stroke-width: 1.6; flex: none; color: var(--ink-3); }
.mb-vol input { flex: 1; min-width: 0; }
.mb-list { overflow-y: auto; min-height: 0; flex: 1 1 auto; margin: 0 -.3rem; padding: 0 .3rem; border-top: 1px dotted var(--line-2); }
.mb-sh { font-size: .66rem; letter-spacing: .08em; color: var(--ink-3); margin: .45rem 0 .15rem; }
.mb-list ol { list-style: none; margin: 0; padding: 0; }
.mb-row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .32rem .35rem; border-radius: 6px; cursor: pointer; }
.mb-row:hover, .mb-row:focus-visible { background: color-mix(in srgb, var(--gilt) 14%, transparent); }
.mb-row:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }
.mb-row.cur { background: color-mix(in srgb, var(--gilt) 20%, transparent); font-weight: 600; }
.mb-rt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-rc { font-size: .68rem; color: var(--ink-3); white-space: nowrap; max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; }
.mb-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .3; justify-self: center; }
.mb-eq { width: 14px; height: 14px; stroke-width: 2; color: var(--gilt); }
.np-mbox { border-top: 1px dotted var(--line-2); padding-top: .35rem; font-size: .7rem; }
@media (max-width: 560px) {
  .mbox { left: 8px !important; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto !important; width: auto; max-height: 72vh; border-radius: 12px; }
}
