/* 문법: docs/DESIGN.md. 출처는 자석 쪽지가 붙는 하늘색 법랑 냉장고 문(크롬 손잡이). 색은 아래 토큰만 쓴다 */
:root {
  --wall: #e4edf6;     /* 부엌 벽, 바탕(연하늘) */
  --door: #a9c9e4;     /* 냉장고 문 법랑(하늘색) */
  --door-dk: #2f5f86;  /* 문 가장자리, 경첩 그늘, 서비스 대표색 */
  --handle: #f2f5f7;   /* 크롬 손잡이 빛 받는 면 */
  --handle-dk: #8e98a1; /* 크롬 손잡이 그늘 */
  --inside: #f6fbff;   /* 문 열면 켜지는 안쪽 불빛 */
  --shelf: #c9d7e4;    /* 안쪽 선반 */
  --ink: #121a22;      /* 글자, 주 버튼 채움(강조색) */
  --sub: #46515c;      /* 보조 글자 */
  --line: #bfcad6;     /* 선, 테두리 버튼 */
  --paper: #ffffff;    /* 쪽지, 입력 칸 */
  --mag: #1d2833;      /* 자석 */
  --shade: rgba(18, 26, 34, .18); /* 얹힌 물건의 그림자 하나 */
  /* 기능 색(상태 표시에만) */
  --hit: #c4161c;      /* 회수 */
  --stop: #a8430c;     /* 판매중지 */
  --unfit: #7a5200;    /* 부적합 글자 */
  --unfit-bg: #fff0c2;
  --abroad: #343a8a;   /* 해외 회수 */
  --ok: #1d7a46;       /* 기록 없음 */
  --chk: #9a5600;      /* 날짜 확인 */
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: inherit; }
svg { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mut { color: var(--sub); font-size: .86em; }
button { font: inherit; color: inherit; cursor: pointer; }

/* 머리글 */
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand svg { color: var(--door-dk); width: 24px; height: 24px; }
.stamp { margin-left: auto; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.fb-open { min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 14px; font-weight: 700; }

main { max-width: 1120px; margin: 0 auto; padding: 4px 16px 16px; display: grid; gap: 18px; }
main > * { min-width: 0; }
.lede { margin: -8px 0 0; font-size: 15px; font-weight: 600; color: var(--sub); }
h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; border: 1.5px solid var(--sub); background: transparent; color: var(--sub); font-size: 13px; font-weight: 700; cursor: help; padding: 0; }

/* 냉장고 */
.fridge { position: relative; width: 100%; max-width: 480px; perspective: 1400px; }
.inside { position: absolute; inset: 0; border-radius: 10px; background: var(--ink); overflow: hidden; display: grid; grid-template-rows: repeat(3, 1fr); padding: 26px 14px 14px 14px; gap: 0; }
.inside .shelf { border-bottom: 5px solid var(--shelf); display: flex; flex-wrap: wrap; align-content: flex-end; gap: 4px; padding: 4px 0; }
.inside .lamp { position: absolute; top: 8px; left: 50%; width: 48px; height: 8px; margin-left: -24px; border-radius: 2px; background: var(--sub); }
.fridge[data-state="open"] .inside { background: var(--inside); transition: background 120ms linear 60ms; }
.fridge[data-state="open"] .inside .lamp { background: var(--paper); }
.box { max-width: 46%; padding: 6px 8px; background: var(--paper); border-left: 5px solid var(--sub); font-size: 12px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 0 var(--shade); }
.box.st-hit { border-color: var(--hit); }
.box.st-check { border-color: var(--chk); }
.box.st-other { border-color: var(--sub); }
.box.now { animation: drop 300ms cubic-bezier(.3, .7, .2, 1) 260ms both; }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }

.door { position: relative; z-index: 1; min-height: 500px; display: flex; flex-direction: column; gap: 12px; padding: 16px 40px 18px 14px; border-radius: 10px; background: var(--door); border: 2px solid var(--door-dk); border-right-width: 6px; transform-origin: 0 50%; transition: transform 340ms cubic-bezier(.3, .7, .2, 1); box-shadow: 0 6px 0 var(--shade); }
.fridge[data-state="open"] .door { transform: rotateY(-74deg); }
.handle { position: absolute; right: 8px; top: 72px; width: 16px; height: 190px; border-radius: 4px; background: linear-gradient(90deg, var(--handle-dk), var(--handle) 45%, var(--handle-dk)); box-shadow: 0 3px 0 var(--shade); }

/* 문에 붙은 자석 메모판(입력) */
.memo { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; padding: 10px; background: var(--paper); border-radius: 4px; box-shadow: 0 2px 0 var(--shade); }
#qi { grid-column: 1; min-width: 0; height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 4px; font: 600 17px var(--font); background: var(--paper); color: var(--ink); }
#qi:focus { outline: 3px solid var(--door-dk); outline-offset: 1px; }
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.ic svg { width: 24px; height: 24px; }
.put { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 17px; transition: transform 60ms; }
.put svg { width: 22px; height: 22px; }
.put.on { transform: translateY(2px); box-shadow: inset 0 3px 0 var(--mag); }

/* 쪽지 */
.board { display: grid; gap: 14px; }
.board:empty { display: none; }
.note { --r: -1.2deg; --c: var(--hit); position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "s nm d" "s why why"; gap: 2px 10px; padding: 16px 12px 10px; background: var(--paper); border-top: 5px solid var(--c); border-radius: 2px; text-decoration: none; transform: rotate(var(--r)); box-shadow: 0 3px 0 var(--shade); }
.note:nth-child(2n) { --r: .9deg; }
.note .mag { position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--mag); box-shadow: 0 2px 0 var(--shade); }
.note .stp { grid-area: s; align-self: start; padding: 2px 6px; border: 2px solid var(--c); border-radius: 3px; color: var(--c); font-size: 13px; font-weight: 800; transform: rotate(-4deg); white-space: nowrap; }
.note .nm { grid-area: nm; font-weight: 800; overflow-wrap: anywhere; }
.note .why { grid-area: why; font-size: 13px; color: var(--sub); }
.note time { grid-area: d; font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-stop { --c: var(--stop); }
.t-unfit { --c: var(--unfit); }
.t-overseas { --c: var(--abroad); }
.t-none { --c: var(--sub); }
.t-mine { --c: var(--hit); }
.note.pin { animation: pin 260ms cubic-bezier(.3, .7, .2, 1) both; }
@keyframes pin { from { transform: translateY(-36px) rotate(var(--r)); opacity: 0; } 75% { transform: translateY(3px) rotate(var(--r)); opacity: 1; } to { transform: rotate(var(--r)); } }
.note .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.note .acts a, .note .acts button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; }
.note .acts .done { border-color: var(--ok); color: var(--ok); }
.note .more-n { grid-column: 1 / -1; font-size: 13px; color: var(--sub); }
.board .wait, .board .err { margin: 0; padding: 8px 10px; background: var(--paper); border-radius: 2px; font-size: 14px; }
.slot-h { margin: auto 0 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.slot { padding-top: 2px; }
.slot[hidden], .slot-h[hidden] { display: none; }
.exl { margin: 0; padding: 4px 8px; background: var(--paper); border-left: 4px solid var(--door-dk); font-size: 13px; font-weight: 700; }
.slot .note { --r: .6deg; grid-template-columns: auto 1fr; grid-template-areas: "s nm" "s why" "s d"; }
.slot .note time { justify-self: start; }
.slot .note:has(.pic) { grid-template-columns: 64px auto 1fr; grid-template-areas: "p s nm" "p why why" "p d d"; }
.note .pic { grid-area: p; width: 64px; height: 64px; object-fit: contain; background: var(--paper); align-self: center; }
@media (max-width: 699px) { .door { min-height: 400px; } }

.knobs { display: flex; gap: 8px; margin: -6px 0 0; }
.knobs button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 14px; font-weight: 700; color: var(--sub); }
.knobs button::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.knobs button[aria-pressed="true"]::before { background: currentColor; }
.knobs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -3px 0 var(--door-dk); }

/* 목록 줄 */
.list { list-style: none; margin: 0; padding: 0; }
.row { position: relative; border-bottom: 1px solid var(--line); }
.row > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "b nm d" "b mk mk" "b why why"; gap: 0 10px; padding: 11px 6px; text-decoration: none; }
.row .add { position: absolute; right: 4px; bottom: 6px; width: 36px; height: 36px; background: var(--ink); color: var(--paper); border: 0; }
.row .add.done { background: var(--ok); }
.row .add svg { width: 18px; height: 18px; }
.row:has(.add) > a { padding-right: 46px; }
.b { grid-area: b; align-self: start; margin-top: 2px; padding: 1px 6px; border-radius: 3px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 2px solid currentColor; }
.b-recall { color: var(--hit); }
.b-stop { color: var(--stop); }
.b-unfit { color: var(--unfit); background: var(--unfit-bg); }
.b-overseas { color: var(--abroad); }
.nm { grid-area: nm; font-weight: 700; overflow-wrap: anywhere; }
.row .mk { grid-area: mk; font-size: 13px; color: var(--sub); }
.why { grid-area: why; font-size: 13px; color: var(--sub); }
.row time { grid-area: d; font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.new .nm::after { content: "새"; margin-left: 6px; padding: 0 4px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 11px; vertical-align: 2px; }
.empty { padding: 14px 10px; color: var(--sub); list-style: none; }

/* 냉장고 안(내 목록) */
.mine ul { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.mi { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; grid-template-areas: "dot nm exp del" "dot st exp del"; align-items: center; gap: 0 10px; padding: 10px 8px 10px 12px; border-bottom: 1px solid var(--line); }
.mi:last-child { border-bottom: 0; }
.mi .dot { grid-area: dot; width: 12px; height: 12px; border-radius: 2px; background: var(--paper); border: 2px solid var(--sub); }
.mi .nm { grid-area: nm; }
.mi .stt { grid-area: st; font-size: 13px; color: var(--sub); }
.mi.st-hit .dot { background: var(--hit); }
.mi.st-hit .stt { color: var(--hit); font-weight: 700; }
.mi.st-check .dot { background: var(--chk); }
.mi.st-check .stt { color: var(--chk); font-weight: 700; }
.mi.st-hit .dot, .mi.st-check .dot { border: 0; }
.mi.st-other .dot { background: var(--sub); border: 0; }
.mi .exp { grid-area: exp; }
.mi .exp input { font: 13px var(--font); min-height: 32px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; max-width: 136px; color: var(--sub); background: var(--paper); }
.mi .del { grid-area: del; width: 36px; height: 36px; border: 0; background: transparent; color: var(--sub); }
.mi .del svg { width: 18px; height: 18px; }

/* 새 소식, 거르기 */
.newc { padding: 0 6px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 13px; }
.flt { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
.flt button { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); white-space: nowrap; font-weight: 600; font-size: 14px; }
.flt button small { color: var(--sub); font-variant-numeric: tabular-nums; }
.flt button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--door-dk); }
.flt svg { width: 18px; height: 18px; }
.more { width: 100%; margin-top: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-weight: 700; }
.pulse { margin: 0; padding: 10px 12px; border-left: 4px solid var(--door-dk); background: var(--paper); font-size: 14px; color: var(--sub); }
.pulse b { color: var(--ink); }

/* 회수 한 건 */
.rec { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--hit); border-radius: 2px; padding: 18px 16px; max-width: 760px; }
.crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; color: var(--sub); }
.crumb .b { margin: 0; }
.rec h1 { margin: 0; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.rec > .mk { margin: 4px 0 0; color: var(--sub); }
.rec > .why { display: block; margin: 14px 0 0; padding: 10px 12px; border-left: 4px solid var(--hit); background: var(--wall); color: var(--ink); font-size: 15px; }
.facts { display: grid; gap: 0; margin: 16px 0 0; }
.facts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--sub); font-size: 14px; }
.facts dt[title] { text-decoration: underline dotted; cursor: help; }
.facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.act { margin: 16px 0 0; }
.act .add { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 700; }
.act .add.done { background: var(--ok); }
.srcline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; font-size: 14px; }
.alt { max-width: 760px; }
.alt h2 { font-size: 15px; color: var(--sub); }
.shop { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); text-decoration: none; font-weight: 700; }
.shop small { margin-left: auto; color: var(--sub); font-weight: 500; }

.doc { max-width: 720px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 18px 16px; }
.doc h1 { margin-top: 0; font-size: 22px; }
.doc h2 { margin-top: 18px; font-size: 16px; }

/* 의견 창, 툴팁 */
.fbd { width: min(440px, calc(100vw - 32px)); padding: 16px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); }
.fbd::backdrop { background: rgba(18, 26, 34, .45); }
.fbd h2 { margin: 0 0 10px; }
.fbd textarea { width: 100%; padding: 8px; border: 1.5px solid var(--line); border-radius: 4px; font: 15px var(--font); resize: vertical; }
.fbd output { display: block; min-height: 1.4em; font-size: 13px; color: var(--sub); }
.fbb { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 0; }
.fbb button { min-height: 40px; padding: 6px 14px; border-radius: 4px; font-weight: 700; border: 1.5px solid var(--line); background: var(--paper); }
.fbb .send { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tipbox { position: fixed; z-index: 20; max-width: 260px; padding: 8px 10px; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.4; }

/* 바닥 */
.foot { max-width: 1120px; margin: 24px auto 0; padding: 18px 16px 32px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 14px; }
.foot h2 { font-size: 14px; margin-bottom: 6px; }
.foot section { min-width: 0; }
.foot p { margin: 0; }
.src { margin: 0; padding-left: 18px; }
.feeds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.feeds a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; background: var(--paper); }
.feeds svg { width: 15px; height: 15px; color: var(--stop); }
.fb-open2 { min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-weight: 700; }
.legal { display: flex; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .door, .put { transition: none; }
  .note.pin, .box.now { animation: none; }
  .fridge[data-state="open"] .door { transform: none; }
}

/* 사진 카드 */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card > a, .card > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--hit); border-radius: 3px; text-decoration: none; min-height: 92px; }
.card.t-unfit > a, .card.t-unfit > div { border-left-color: var(--unfit); }
.card.t-stop > a { border-left-color: var(--stop); }
.card.t-overseas > a { border-left-color: var(--abroad); }
.card > a:hover { border-top-color: var(--door-dk); border-right-color: var(--door-dk); border-bottom-color: var(--door-dk); }
.ph { display: grid; place-items: center; width: 76px; height: 76px; background: var(--wall); border-radius: 2px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
img.lz { visibility: hidden; } /* 받기 전 빈 자리(대체 글이 비치지 않게) */
.ph.none { color: var(--door-dk); }
.ph.none svg { width: 34px; height: 34px; }
.cb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "b nm nm" "mk mk d" "why why why" "ln ln ln"; gap: 1px 8px; align-content: start; min-width: 0; }
.cb .b { grid-area: b; margin: 1px 0 0; }
.cb .nm { grid-area: nm; font-weight: 800; line-height: 1.3; }
.cb .mk { grid-area: mk; font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb .why { grid-area: why; font-size: 13px; color: var(--sub); }
.cb time { grid-area: d; align-self: end; font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb .line { grid-area: ln; margin-top: 4px; padding: 2px 6px; background: var(--wall); font-size: 12px; quotes: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.new .nm::after { content: "새"; margin-left: 6px; padding: 0 4px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 11px; vertical-align: 2px; }

/* 장바구니째 확인 */
.cart { padding: 14px; background: var(--paper); border: 2px solid var(--door-dk); border-radius: 6px; }
.cart h2 svg { color: var(--door-dk); }
.cart textarea { width: 100%; min-height: 120px; padding: 10px; border: 2px solid var(--line); border-radius: 4px; font: 15px/1.5 var(--font); resize: vertical; background: var(--paper); color: var(--ink); }
.cart textarea:focus { outline: 3px solid var(--door-dk); outline-offset: 1px; }
.cbtn { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 8px 0 0; }
.go, .ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 4px; font-weight: 800; text-decoration: none; }
.go { border: 0; background: var(--ink); color: var(--paper); }
.go.done { background: var(--ok); }
.ghost { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; }
#cartr { display: grid; gap: 8px; margin-top: 10px; }
#cartr:empty { display: none; }
.csum { margin: 0; font-size: 15px; }
.csum .hitn { color: var(--hit); }
.csum.ok b { color: var(--ok); }
#cartr .mut { margin: 0; }
.sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.simq { padding: 4px 10px; border: 1.5px solid var(--chk); border-radius: 4px; background: var(--paper); color: var(--chk); font-weight: 700; font-size: 14px; }
.kh { margin: 18px 0 8px; font-size: 16px; }
.hidn { margin: -4px 0 8px; }
.res-more { margin: 0; font-size: 14px; }
.res-more button { padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); font-weight: 700; }

/* 회수 한 건(사진과 제목) */
.rh { display: grid; gap: 14px; }
.shot { margin: 0; }
.shot .ph { display: block; width: 100%; height: auto; max-width: 360px; background: var(--paper); border: 1px solid var(--line); }
.shot .ph img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.shot .ph.none { width: 96px; height: 96px; aspect-ratio: auto; }
.shot .ph.none svg { width: 48px; height: 48px; }
.crumb .grade { padding: 1px 6px; border: 1.5px solid var(--sub); border-radius: 3px; font-size: 12px; font-weight: 700; cursor: help; }
.rec.t-unfit { border-top-color: var(--unfit); }
.todo { margin: 10px 0 0; padding: 10px 12px; background: var(--ink); color: var(--paper); border-radius: 3px; font-size: 15px; }
.todo b { display: block; font-size: 17px; }
.mycheck { margin: 16px 0 0; padding: 12px; border: 2px dashed var(--door-dk); border-radius: 4px; }
.mycheck h2 { font-size: 15px; margin-bottom: 6px; }
.mycheck label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.mycheck input { min-height: 40px; padding: 4px 8px; border: 2px solid var(--line); border-radius: 4px; font: 15px var(--font); background: var(--paper); color: var(--ink); }
.mycheck output { display: block; margin-top: 8px; font-weight: 700; }
.mycheck.same { border-style: solid; border-color: var(--hit); background: #fff1f0; }
.mycheck.same output { color: var(--hit); }
.mycheck.other output { color: var(--ok); }
.notice { margin: 14px 0 0; font-size: 14px; }
.notice summary { cursor: pointer; font-weight: 700; color: var(--sub); }
.notice p { margin: 8px 0 0; color: var(--sub); }
.crowd { margin: 14px 0 0; padding: 8px 10px; border-left: 4px solid var(--door-dk); background: var(--wall); font-size: 14px; }
.act { display: flex; flex-wrap: wrap; gap: 8px; }
.rel { max-width: 760px; }
.rel h2 { font-size: 16px; }
.rel h2 a { margin-left: auto; font-weight: 600; }
.shops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shops a { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); text-decoration: none; font-size: 14px; }
.shops img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* 모음 쪽 */
.grp h1 { margin: 0; font-size: 24px; }
.grp .hero { width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 12px; }
.gsum { margin: 6px 0; font-size: 15px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a, .chips span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600; }
.chips small { color: var(--sub); font-variant-numeric: tabular-nums; }
.gcat { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.gcat a { padding: 4px 10px; border-radius: 4px; background: var(--door); text-decoration: none; font-weight: 700; font-size: 14px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "p p" "b n"; gap: 4px 6px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.tile .pics { grid-area: p; display: flex; gap: 4px; height: 52px; color: var(--door-dk); }
.tile .pics img { width: 52px; height: 52px; object-fit: contain; background: var(--wall); border-radius: 2px; }
.tile .art { grid-area: p; width: 100%; height: 72px; object-fit: cover; border-radius: 2px; }
.tile b { grid-area: b; font-size: 14px; }
.tile small { grid-area: n; color: var(--sub); align-self: end; font-variant-numeric: tabular-nums; }

/* 바닥(출처 한 줄, P210) */
.fcat { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.fcat a { font-weight: 600; text-decoration: none; }
.fl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fl a { display: inline-flex; align-items: center; gap: 4px; }
.fl svg { width: 15px; height: 15px; color: var(--stop); }
.colA, .colB { display: grid; gap: 18px; min-width: 0; }

@media (min-width: 700px) {
  .rh { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  main.wide .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  main.home { grid-template-columns: 460px minmax(0, 1fr); align-items: start; column-gap: 40px; }
  main.home .lede { grid-column: 1 / -1; }
  .colB .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door { min-height: 540px; }
}
