/* 모퉁이선반: 동네 리빙숍 쇼윈도. 돌색 바탕 + 이끼색 + 놋쇠 포인트 */
:root {
  --bg: #ECEAE4; --paper: #FBFAF7; --shelf: #F4F2EC; --ink: #1E221C; --ink2: #50564C; --mute: #868A80; --line: #D8D4CA; --line2: #E5E2DA;
  --moss: #36513A; --moss-d: #263B29; --moss-l: #E2E8DA; --brass: #B9862C; --brass-l: #F3E7CC; --bad: #B0432D; --bad-l: #F6E1DA;
  --band: 34px; --top: 64px;
  --f-body: 'Gothic A1', -apple-system, 'Apple SD Gothic Neo', sans-serif; --f-disp: 'Song Myung', serif; --f-num: 'Manrope', 'Gothic A1', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.demo { height: var(--band); background: #111418; color: #C9CCD1; font-size: 13px; line-height: 18px; text-align: center; padding: 8px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; top: 0; z-index: 40; }
.demo a, .demo button { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }
.demo b { color: #FF5A36; font-family: Menlo, monospace; }

/* 머리 */
.top { position: sticky; top: var(--band); z-index: 30; background: rgba(236, 234, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; height: var(--top); padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo b { font: 400 22px/1 var(--f-disp); letter-spacing: -.01em; display: block; }
.logo small { font-size: 11.5px; color: var(--mute); display: block; margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.nav a:hover { background: var(--shelf); }
.nav a[aria-current] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.nav a b { font: 700 12px var(--f-num); background: var(--moss); color: #fff; border-radius: 9px; padding: 1px 6px; margin-left: 3px; }
.nav a.adm { color: var(--brass); }
.role { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex: none; }
.role button { padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.role button[aria-pressed="true"] { background: var(--ink); color: #fff; }
body.is-admin .role button[aria-pressed="true"] { background: var(--brass); }

main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px 64px; }
.foot { border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 18px 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--moss); color: #fff; font-weight: 600; font-size: 14.5px; border-radius: 10px; padding: 11px 18px; white-space: nowrap; }
.btn:hover { background: var(--moss-d); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--shelf); }
.btn.danger { background: var(--bad); }
.btn.full { width: 100%; }
.lnk { color: var(--moss); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.sub { color: var(--mute); font-size: 14px; }
.err { color: var(--bad); font-size: 13px; min-height: 0; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); vertical-align: -1px; margin-right: 5px; }

/* 찾기 띠: 쇼윈도 유리 선반처럼 */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 32px 0 26px; align-items: center; }
.kick { font-size: 13px; color: var(--moss); font-weight: 600; letter-spacing: .02em; }
.finder h1 { font: 400 38px/1.25 var(--f-disp); margin: 6px 0 18px; letter-spacing: -.01em; }
.finder h1 em { font-style: normal; color: var(--moss); box-shadow: inset 0 -10px 0 var(--brass-l); }
.qbox { display: flex; align-items: stretch; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px; gap: 6px; box-shadow: 0 10px 0 -4px var(--line); }
.qbox input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 8px 12px; outline: none; }
.qbox .go { display: flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 600; }
.qbox .cam { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 0 14px; color: var(--ink2); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.qbox .cam:hover { background: var(--shelf); }
.ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; align-items: center; }
.ex span { font-size: 12.5px; color: var(--mute); margin-right: 4px; }
.ex button { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px dashed #BDB8AC; color: var(--ink2); background: transparent; }
.ex button:hover { border-style: solid; border-color: var(--moss); color: var(--moss); }
.fd-r { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.map-cap { font-size: 12px; color: var(--mute); text-align: center; margin-top: 4px; }

.finder.compact { grid-template-columns: minmax(0, 1fr) 250px; padding: 20px 0 18px; gap: 28px; }
.finder.compact h1 { font-size: 24px; margin: 2px 0 12px; }
.finder.compact .ex { margin-top: 12px; }
.finder.compact .fd-r { padding: 6px; }
.finder.compact .map-cap { display: none; }
/* SVG 지도 */
.map { width: 100%; height: auto; display: block; border-radius: 10px; }
.map .m-bg { fill: #EDEBE4; }
.map .m-blk { fill: #E1DDD3; }
.map .m-park { fill: #D7E0CC; }
.map .m-rd { fill: none; stroke: #FBFAF7; stroke-width: 4.2; }
.map .m-rd.thin { stroke-width: 2.4; }
.map .m-lb { font: 600 3.1px var(--f-body); fill: #9A968B; }
.map .m-lb.park { fill: #7D9370; }
.map .pin { cursor: pointer; }
.map .pin circle { fill: var(--ink); stroke: #FBFAF7; stroke-width: 1.2; }
.map .pin text { font: 700 3.4px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: #EDEBE4; stroke-width: 1.2px; }
.map .pin.on circle { fill: var(--brass); }
.map .pin:hover circle { fill: var(--moss); }

/* 알아들은 조건 */
.parsed { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--shelf); margin: 0 -28px; padding: 12px 28px; position: relative; z-index: 5; }
.pz-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pz-t { font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-right: 4px; }
.cc { position: relative; display: inline-flex; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 600; }
.cc.open { border-color: var(--ink); }
.cc-b { padding: 5px 4px 5px 10px; display: flex; align-items: baseline; gap: 6px; }
.cc-b small { font-size: 11.5px; color: var(--mute); font-weight: 600; }
.cc-x { padding: 0 8px 0 4px; color: var(--mute); display: grid; place-items: center; }
.cc-x:hover { color: var(--bad); }
.cc.k-cat { border-color: #A9B9A0; background: var(--moss-l); }
.cc.k-price { border-color: #D8BE85; background: var(--brass-l); }
.unk { font-size: 13px; color: var(--mute); margin-left: 6px; }
.unk s { text-decoration: line-through; text-decoration-color: var(--bad); color: var(--ink2); margin-left: 3px; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; background: var(--paper); border: 1px solid var(--ink); border-radius: 12px; padding: 12px; width: 280px; box-shadow: 0 16px 40px -12px rgba(30, 34, 28, .35); font-weight: 400; }
.pop b { display: block; font-size: 13px; margin-bottom: 8px; }
.po { display: flex; flex-wrap: wrap; gap: 5px; }
.po button { font-size: 13px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); display: inline-flex; align-items: center; }
.po button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pop .pp { margin-bottom: 4px; }
.pop .hint { font-size: 12px; color: var(--mute); display: block; margin-bottom: 8px; }
.pop .err { margin-bottom: 6px; }

/* 목록 */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 22px; }
.filters { position: sticky; top: calc(var(--band) + var(--top) + 16px); align-self: start; max-height: calc(100vh - var(--band) - var(--top) - 32px); overflow: auto; padding-right: 4px; }
.fh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fh b { font-size: 14px; }
.fh .lnk { font-size: 12.5px; }
.fclose { display: none; }
.filters fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.filters legend { font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 6px; letter-spacing: .04em; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.ck i { margin-left: auto; font: 500 12px var(--f-num); color: var(--mute); font-style: normal; }
.ck input, .tg input { accent-color: var(--moss); width: 16px; height: 16px; }
.tg { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.pp { display: flex; align-items: center; gap: 6px; }
.pp input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: var(--paper); font: 500 13.5px var(--f-num); }
.only-m { display: none !important; }
.bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.cnt { font-size: 14px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt b { font: 700 15px var(--f-num); color: var(--ink); margin-left: 4px; }
.sort { margin-left: auto; }
.sort select, .ad-tools select { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; }
.legend { margin-left: auto; font-size: 12.5px; color: var(--mute); }
.gh { font-size: 14px; font-weight: 700; margin: 6px 0 12px; display: flex; align-items: baseline; gap: 6px; }
.gh b { font-family: var(--f-num); color: var(--moss); }
.gh small { font-weight: 400; color: var(--mute); font-size: 12.5px; margin-left: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; margin-bottom: 30px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; }
.card .ph { display: block; border-radius: 12px; overflow: hidden; background: var(--shelf); aspect-ratio: 1; box-shadow: 0 1px 0 var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .ph img { transform: scale(1.04); }
.heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(251, 250, 247, .9); display: grid; place-items: center; color: var(--ink2); }
.heart.on { color: #C2452F; }
.heart.on svg { fill: currentColor; }
.meta { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.meta .st { font-size: 12px; color: var(--mute); }
.meta .nm { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.meta .nm:hover { text-decoration: underline; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.pr { font: 700 15.5px var(--f-num); }
.pk { font-size: 12px; color: var(--mute); white-space: nowrap; }
.pk.ok { color: var(--moss); font-weight: 600; }
.pk.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mk { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.mk i { font-style: normal; font-weight: 400; }
.mk.y { background: var(--moss-l); color: var(--moss-d); }
.mk.h { background: var(--brass-l); color: #7A5716; }
.mk.n { background: var(--bad-l); color: var(--bad); }
.sim { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 6px; font-size: 12px; color: var(--mute); }
.sim b { font: 700 16px var(--f-num); color: var(--moss); }
.sim em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--brass); border-radius: 5px; padding: 1px 6px; }

.empty { background: var(--paper); border: 1px dashed #C8C3B7; border-radius: 14px; padding: 26px; margin-bottom: 26px; text-align: center; }
.empty b { font-size: 16px; display: block; }
.empty p { margin-top: 8px; color: var(--ink2); font-size: 14px; }
.empty.pad { margin-top: 40px; }
.tips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.tips button, .tipcam { border: 1px solid var(--line); background: var(--shelf); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.tips button:hover, .tipcam:hover { border-color: var(--moss); }
.tips b { color: var(--moss); font-family: var(--f-num); }
.scrim { display: none; }

/* 사진 */
.photo { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; padding-top: 24px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.photo h1, .saved h1, .admin h1, .anew h1 { font: 400 30px/1.2 var(--f-disp); }
.ph-l .sub { margin: 4px 0 16px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed #B7B1A4; border-radius: 14px; padding: 26px 16px; background: var(--paper); cursor: pointer; text-align: center; color: var(--ink2); }
.drop:hover, .drop.over { border-color: var(--moss); background: var(--moss-l); }
.drop b { color: var(--ink); }
.drop span { font-size: 12.5px; color: var(--mute); }
.samples { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.samples span { font-size: 12.5px; color: var(--mute); margin-right: 2px; }
.samples button { width: 58px; height: 46px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.samples button img { width: 100%; height: 100%; object-fit: cover; }
.samples button:hover { box-shadow: 0 0 0 2px var(--moss); }
.samples .re { font-size: 12.5px; color: var(--moss); font-weight: 600; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.ext { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ext-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ext-imgs figure { margin: 0; }
.ext-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--shelf); border-radius: 8px; image-rendering: pixelated; }
.ext-imgs figure:first-child img { image-rendering: auto; }
.ext-imgs figcaption { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.ext h3 { font-size: 13px; margin: 14px 0 8px; }
.pal { display: flex; gap: 4px; }
.pc { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc i { height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pc span { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc small { font: 500 11px var(--f-num); color: var(--mute); }
.pal.sm { margin-top: 12px; }
.pal.sm .pc i { height: 18px; }
.fx { margin-top: 12px; display: grid; gap: 7px; }
.fx div { display: grid; grid-template-columns: 76px 1fr; align-items: center; font-size: 13.5px; }
.fx dt { color: var(--mute); font-size: 12.5px; }
.fx dd { display: flex; align-items: center; gap: 6px; }
.fx small { color: var(--mute); font: 500 11.5px var(--f-num); }
.meter { width: 110px; height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; display: inline-block; }
.meter i { display: block; height: 100%; background: var(--brass); }
.note { margin-top: 16px; font-size: 12.5px; color: var(--mute); border-left: 3px solid var(--brass); padding: 2px 0 2px 10px; }
.ph-wait { background: var(--paper); border: 1px dashed #C8C3B7; border-radius: 14px; padding: 60px 30px; text-align: center; color: var(--ink2); margin-top: 52px; }

/* 상세 */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mute); padding: 20px 0 14px; }
.crumb a:hover { color: var(--ink); }
.crumb b { color: var(--ink2); font-weight: 600; }
.dt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.dt-ph { margin: 0; position: sticky; top: calc(var(--band) + var(--top) + 16px); border-radius: 16px; overflow: hidden; background: var(--shelf); }
.dt-ph img { width: 100%; height: auto; }
.hid { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.dt-info .st { font-size: 13.5px; font-weight: 600; color: var(--moss); }
.dt-info .st small { color: var(--mute); font-weight: 400; margin-left: 4px; }
.dt-info h1 { font: 400 34px/1.25 var(--f-disp); margin: 4px 0 10px; }
.dt-pr { display: flex; align-items: center; gap: 12px; }
.dt-pr b { font: 700 26px var(--f-num); }
.dt-pr .heart { position: static; box-shadow: inset 0 0 0 1px var(--line); width: 40px; height: 40px; }
.desc { margin: 12px 0 16px; color: var(--ink2); }
.tags { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.tags div { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.tags div:nth-child(odd) { padding-right: 12px; }
.tags dt { font-size: 12px; color: var(--mute); }
.tags dd { font-size: 14px; font-weight: 600; }
.tags dd small { font-weight: 400; color: var(--mute); font-size: 12px; }
.auto { margin-top: 12px; font-size: 12px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.auto span { background: var(--shelf); border: 1px solid var(--line2); padding: 1px 7px; border-radius: 5px; color: var(--ink2); }
.pickup { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.pu-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pu-h b { display: block; font-size: 15px; }
.pu-h span { font-size: 12.5px; color: var(--mute); display: inline-flex; align-items: center; gap: 3px; }
.pu-h .pk { font-size: 13px; }
.pu-s { font-size: 13px; color: var(--ink2); margin: 8px 0 10px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 4px; font: 500 13px var(--f-num); background: var(--shelf); }
.slots button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pu-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink2); min-width: 0; }
.fld input, .fld select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; font-weight: 400; font-size: 14.5px; color: var(--ink); width: 100%; min-width: 0; }
.fld em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--mute); min-height: 0; }
.fld.bad input, .fld.bad select, .fld.bad .chk button { border-color: var(--bad); }
.fld.bad em { color: var(--bad); }
.minimap { margin-top: 12px; max-width: 280px; }
.sh { font: 400 24px var(--f-disp); margin: 44px 0 16px; }

/* 찜 */
.saved { padding-top: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; }
.tabs button { padding: 10px 14px; font-weight: 600; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabs b { font-family: var(--f-num); margin-left: 3px; }
.plist { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.plist li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.plist li.done { opacity: .55; }
.plist img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.plist b { display: block; }
.plist span { display: block; font-size: 13px; color: var(--mute); }
.pl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--line2); color: var(--ink2); }
.badge.ok { background: var(--moss-l); color: var(--moss-d); }

/* 관리자 */
.admin, .anew { padding-top: 24px; }
.ad-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ad-h .sub b { color: var(--ink); font-family: var(--f-num); }
.ad-tools { display: flex; gap: 8px; align-items: center; }
.tbl-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--shelf); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; white-space: nowrap; }
.tbl tr.off td { color: var(--mute); }
.tbl tr.off img { opacity: .45; }
.tbl .r { text-align: right; }
.num { font-family: var(--f-num); font-weight: 500; }
.tp { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tp img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; }
.new { font-style: normal; font-size: 11px; background: var(--brass-l); color: #7A5716; padding: 1px 6px; border-radius: 5px; margin-left: 4px; }
.stp { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stp button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink2); }
.stp button:disabled { opacity: .3; cursor: default; }
.stp b { min-width: 26px; text-align: center; font: 700 13.5px var(--f-num); }
.stp b.zero { color: var(--bad); }
.sw-tg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute); }
.sw-tg i { width: 32px; height: 18px; border-radius: 9px; background: #CFCBC1; position: relative; transition: background .2s; }
.sw-tg i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.sw-tg.on { color: var(--moss); font-weight: 600; }
.sw-tg.on i { background: var(--moss); }
.sw-tg.on i::after { left: 16px; }
.tg-c span { display: inline-block; font-size: 11.5px; background: var(--shelf); border: 1px solid var(--line2); border-radius: 5px; padding: 0 6px; margin: 1px 2px 1px 0; color: var(--ink2); }

.an { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; margin-top: 18px; align-items: start; }
.up { border-radius: 14px; overflow: hidden; background: var(--shelf); }
.up.bad .drop { border-color: var(--bad); background: var(--bad-l); }
.up img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--shelf); }
.up .drop { aspect-ratio: 4 / 3; }
.sugbox { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.sug-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sug-h b { font-size: 14px; }
.sug-empty { font-size: 13px; color: var(--mute); }
.sug { list-style: none; padding: 0; display: grid; gap: 6px; }
.sug li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 8px; }
.sug li.done { background: var(--moss-l); border-color: #C6D3BC; }
.sug li.info { background: var(--shelf); }
.sug li.weak b { color: var(--ink2); }
.sug b { display: flex; align-items: center; font-size: 13.5px; }
.sug small { display: block; font-size: 12px; color: var(--mute); }
.sug em { font-style: normal; font-size: 12px; color: var(--moss); font-weight: 700; }
.sug li.info em { color: var(--mute); }
.src { font-size: 11px; font-weight: 700; text-align: center; border-radius: 5px; padding: 2px 0; }
.src.s-img { background: var(--brass-l); color: #7A5716; }
.src.s-txt { background: #E3E7EE; color: #3D4C66; }
.src.s-both { background: var(--moss); color: #fff; }
.an-r { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au { font-style: normal; font-size: 10.5px; background: var(--brass-l); color: #7A5716; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.csel { display: flex; align-items: center; gap: 6px; }
.csel .sw { flex: none; width: 22px; height: 22px; margin: 0; }
.chk { display: flex; flex-wrap: wrap; gap: 6px; }
.chk button { border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 13.5px; font-weight: 400; color: var(--ink); background: #fff; }
.chk button.on { background: var(--moss); color: #fff; border-color: var(--moss); }
.dims { display: flex; align-items: center; gap: 6px; }
.dims span { color: var(--mute); }
.an-act { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }

/* 토스트·모달 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(30, 34, 28, .45); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal[hidden] { display: none; }
.m-card { background: var(--paper); border-radius: 16px; padding: 22px; max-width: 400px; width: 100%; }
.m-card h3 { font-size: 17px; }
.m-card p { color: var(--ink2); font-size: 14px; margin-top: 6px; }
.m-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 1100px) {
  .finder { grid-template-columns: minmax(0, 1fr) 260px; }
  .photo { grid-template-columns: 330px minmax(0, 1fr); }
  .an { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --top: 56px; }
  .top-in { padding: 0 16px; gap: 10px; flex-wrap: wrap; height: auto; padding-top: 8px; }
  .logo small { display: none; }
  .logo b { font-size: 19px; }
  .role { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -16px; padding: 0 12px 6px; scrollbar-width: none; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  main { padding: 0 16px 48px; }
  .foot-in { padding: 16px; }
  .finder, .finder.compact { grid-template-columns: 1fr; padding: 20px 0 18px; gap: 16px; }
  .finder.compact { padding: 14px 0; }
  .finder.compact h1, .finder.compact .kick { display: none; }
  .finder h1 { font-size: 27px; margin-bottom: 14px; }
  .fd-r { display: none; }
  .qbox { flex-wrap: wrap; }
  .qbox input { flex-basis: 100%; font-size: 16px; padding: 8px 8px 4px; }
  .qbox .go { flex: 1; justify-content: center; padding: 10px; }
  .qbox .cam { padding: 0 12px; }
  .ex { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .ex button { white-space: nowrap; }
  .ex span { white-space: nowrap; }
  .parsed { margin: 0 -16px; padding: 10px 16px; }
  .pop { width: min(280px, calc(100vw - 32px)); }
  .layout { grid-template-columns: 1fr; padding-top: 14px; }
  .filters { position: fixed; top: auto; bottom: 0; left: 0; right: 0; max-height: 82vh; background: var(--paper); z-index: 60; border-radius: 18px 18px 0 0; padding: 16px 16px 20px; transform: translateY(105%); transition: transform .28s; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); }
  .filters.open { transform: none; }
  .fclose { display: grid; place-items: center; width: 32px; height: 32px; }
  .fh { gap: 10px; } .fh .lnk { margin-left: auto; }
  .filters fieldset:nth-of-type(1) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .filters fieldset:nth-of-type(1) legend { grid-column: 1 / -1; }
  .filters .btn.full { margin-top: 16px; }
  .only-m { display: flex !important; }
  .scrim.on { display: block; position: fixed; inset: 0; background: rgba(30, 34, 28, .4); z-index: 55; }
  .fbtn { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; flex: none; }
  .bar { gap: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta .nm { font-size: 14px; }
  .pr { font-size: 14.5px; }
  .photo { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .ph-wait { margin-top: 0; padding: 30px 20px; }
  .legend { display: none; }
  .dt { grid-template-columns: 1fr; gap: 18px; }
  .dt-ph { position: relative; top: 0; margin: 0 -16px; border-radius: 0; }
  .dt-info h1 { font-size: 27px; }
  .crumb { padding: 14px 0 10px; }
  .pu-f { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .an { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr 1fr; gap: 10px; }
  .an-r { padding: 16px; }
  .plist li { grid-template-columns: 56px 1fr; }
  .plist img { width: 56px; height: 56px; }
  .pl-r { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .photo h1, .saved h1, .admin h1, .anew h1 { font-size: 25px; }
  .ad-tools { width: 100%; } .ad-tools label { flex: 1; } .ad-tools select { width: 100%; }
  .demo { font-size: 12px; } .demo a, .demo button { font-size: 12px; }
}
.fd-l, .fd-r, .results, .filters, .ph-l, .ph-r, .dt-info, .an-l, .an-r { min-width: 0; }
