/* 디자인 규칙: docs/DESIGN.md — 색은 아래 토큰만 쓴다 */
:root {
  /* 2026-10-26 사용자: 목록까지 서류 톤 — 강조는 주황 대신 인주 빨강, 바탕은 책상·종이 */
  --c-accent: #C8202F;
  --c-accent-tint: #FBECEE;
  --c-bg: #FFFFFF;
  --c-tint: #F4F5F7;
  --c-text: #16171B;
  --c-text-2: #55565C;
  --c-line: #CDD1D6;
  --c-focus: #1F3FBF;
  --c-hot: #C8202F;
  /* 글꼴: 전부 바탕체(직장인 국룰) — 기기에 바탕이 없으면 나눔명조 (2026-10-26 사용자: 전부 통일) */
  --f-doc: "바탕", Batang, "Nanum Myeongjo", AppleMyungjo, serif;
  --c-ink: #16171B;     /* 먹 — 제목·서류 글자 */
  /* 첫 화면·결과 = 결재 서류 (2026-10-26): 사무실 책상 위 A4, 모나미 파랑 볼펜, 인주, 형광펜 */
  --c-desk: #E9ECEF;
  --c-paper: #FFFFFF;
  --c-pen: #1F3FBF;
  --c-seal: #C8202F;    /* 흰 바탕 대비 5.6:1 */
  --c-marker: #FFF06A;
  --r-card: 2px;
  --gap: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 16px/1.55 var(--f-doc);
  font-variant-numeric: tabular-nums;
}
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

main, .top, .foot { max-width: 640px; margin: 0 auto; padding: 0 var(--gap); }

/* 머리 */
.top { padding-top: 16px; padding-bottom: 8px; }
/* 목록 화면 머리: 뒤로 + 이름 한 줄(누르면 처음으로) */
.bar { display: flex; align-items: center; gap: 4px; margin: 0 0 8px -10px; }
.back { flex: none; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
.back svg { width: 24px; height: 24px; stroke-width: 2.5; }
.logo { margin: 0; min-width: 0; cursor: pointer; line-height: 1.2; letter-spacing: -0.03em; font-size: clamp(16px, 5vw, 26px); font-weight: 800; white-space: nowrap; }
.logo em, .hero em { font-style: normal; color: var(--c-accent); }

/* ---------- 첫 화면: 점심 메뉴 결정 품의서 ---------- */
.home { min-height: 100svh; background: var(--c-desk); padding: calc(12px + env(safe-area-inset-top)) 8px calc(28px + env(safe-area-inset-bottom)); }
.paper {
  max-width: 560px; margin: 0 auto; background: var(--c-paper); color: var(--c-ink);
  padding: 18px 14px 26px; border-radius: 2px; box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 10px 28px -14px rgb(0 0 0 / .25);
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-no { margin: 2px 0 0; font: 700 12px/1.4 var(--f-doc); color: rgb(22 23 27 / .6); font-variant-numeric: tabular-nums; }
/* 결재란: 담당(고르면 도장) · 팀장 '전결' · 본부장 '생략' */
.sign { border-collapse: collapse; font: 700 11px/1 var(--f-doc); color: rgb(22 23 27 / .75); }
.sign th, .sign td { border: 1px solid rgb(22 23 27 / .55); width: 46px; text-align: center; }
.sign th { padding: 4px 0; font-weight: 700; background: rgb(22 23 27 / .04); }
.sign td { height: 40px; }
.sign-word { font-size: 12px; color: rgb(22 23 27 / .55); }
.seal-mini {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--c-seal); border-radius: 50%;
  color: var(--c-seal); font: 800 13px/1 var(--f-doc); transform: rotate(-10deg);
}
.hero { margin: 18px 0 0; font-size: clamp(56px, 19vw, 120px); line-height: 1.02; font-weight: 800; letter-spacing: -0.07em; color: var(--c-ink); }
.hero span { display: block; white-space: nowrap; }  /* 한 줄(직장인은 등) 안에서는 절대 줄바꿈하지 않는다 */
.home .hero em { color: var(--c-seal); }
.doc-from { margin: 12px 0 18px; font: 700 13px/1.4 var(--f-doc); color: rgb(22 23 27 / .6); }
.home-modes { border-bottom-color: rgb(22 23 27 / .15); margin-bottom: 2px; }
.home .modes button[aria-selected="true"] { border-bottom: 3px solid var(--c-seal); }
.doc-title { margin: 16px 0 6px; font: 800 17px/1.4 var(--f-doc); }
.doc-title span { display: inline-block; margin-right: 10px; padding: 1px 6px; border: 1px solid currentColor; font-size: 12px; vertical-align: 2px; }
.doc-row { margin: 8px 0 0; padding: 0; border: 0; }
.doc-row legend { padding: 0; margin-bottom: 2px; font: 700 13px/1.4 var(--f-doc); color: rgb(22 23 27 / .7); }
/* 체크 칸: 네모 + 글자. 고르면 파란 볼펜 체크와 형광펜 */
.opt {
  display: flex; align-items: center; gap: 4px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--c-ink); font-size: 15px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; text-align: left;
}
.opt .box { flex: none; position: relative; width: 14px; height: 14px; border: 1.5px solid var(--c-ink); border-radius: 2px; }
.opt[aria-pressed="true"] span { background: linear-gradient(transparent 45%, var(--c-marker) 45%, var(--c-marker) 92%, transparent 92%); }
.opt[aria-pressed="true"] .box::after {
  content: ""; position: absolute; left: 2px; top: -7px; width: 7px; height: 15px;
  border: solid var(--c-pen); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.paper .grid4 { gap: 0 4px; }
@media (max-width: 359px) { .paper .grid4, .results .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }  /* 아주 작은 휴대폰은 두 칸 */
/* 상신 = 인주 도장. 이 화면에서 힘을 주는 단 하나 */
.seal-wrap { display: grid; place-items: center; margin-top: 22px; }
.seal-btn {
  width: 136px; height: 136px; border-radius: 50%; border: 4px solid var(--c-seal); background: var(--c-paper);
  box-shadow: inset 0 0 0 5px var(--c-paper), inset 0 0 0 7px var(--c-seal);
  color: var(--c-seal); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; transform: rotate(-8deg);
}
.seal-btn:active { background: var(--c-seal); color: var(--c-paper); transform: rotate(-8deg) scale(.94); }
.home .lever-hint { margin: 16px 0 0; text-align: left; font: 700 13px/1.5 var(--f-doc); color: rgb(22 23 27 / .65); }

/* 화면이 바뀔 때: 첫 화면은 아래에서 툭, 목록은 오른쪽에서 슥 */
@media (prefers-reduced-motion: no-preference) {
  .home.enter .hero span { animation: drop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  .home.enter .hero span:nth-child(2) { animation-delay: .06s; }
  .home.enter .hero span:nth-child(3) { animation-delay: .12s; }
  .home.enter .hero span:nth-child(4) { animation-delay: .18s; }
  .home.enter .seal-btn { animation: stampin .4s .3s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes stampin { from { transform: rotate(-8deg) scale(1.5); opacity: 0; } }
  .results.enter { animation: slidein .28s ease-out both; }
  @keyframes drop { from { transform: translateY(-28px); opacity: 0; } }
  @keyframes slap { from { transform: rotate(-4deg) scale(1.8); opacity: 0; } }
  @keyframes slidein { from { transform: translateX(32px); opacity: 0; } }
}
.logo em { font-style: normal; color: var(--c-accent); }
.modes { display: flex; gap: 24px; border-bottom: 1px solid var(--c-line); }
.modes button {
  background: none; border: 0; padding: 8px 0 10px; min-height: 44px;
  font-size: 18px; font-weight: 600; color: var(--c-text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.modes button[aria-selected="true"] { color: var(--c-text); border-bottom-color: var(--c-accent); }

/* 기준 위치 */
.origin { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--c-tint); border-radius: 999px; padding: 0 16px; min-height: 44px; }
.field-label { font-size: 14px; color: var(--c-text-2); flex: none; }
.field select { flex: 1; min-width: 0; width: 0; border: 0; background: none; appearance: none; -webkit-appearance: none; font-weight: 600; padding: 10px 0; }
.ghost { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--c-tint); border-radius: 999px; padding: 0 16px; min-height: 44px; font-size: 14px; font-weight: 600; flex: none; }
.hint { margin: 6px 4px 0; font-size: 13px; color: var(--c-text-2); min-height: 1.5em; }

/* 고르기 */
.filters { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }  /* minmax(0) — 없으면 넓은 칸이 페이지를 옆으로 밀어낸다 */
/* 이름표는 왼쪽 칸에, 칩은 오른쪽에서 감싼다 — 이름표 줄만큼 높이를 아낀다 */
.frow { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 8px; }
.frow-label { font-size: 13px; color: var(--c-text-2); line-height: 44px; }
.more { justify-self: start; border: 0; background: none; color: var(--c-accent); font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 0 0 56px; text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; background: var(--c-tint); border-radius: 999px;
  padding: 0 14px; min-height: 36px; font-size: 14px; font-weight: 500;
  margin: 4px 0; /* 누르는 영역 44px */
}
.chip[aria-pressed="true"] { background: var(--c-accent-tint); color: var(--c-accent); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--c-accent); }

/* 오늘 뭐 당겨요? + 그냥 골라 줘 */
.ask-q { margin: 8px 0 0; font-size: 18px; font-weight: 700; }
/* 네 칸씩: 첫 줄 음식(한식·중식·일식·양식), 그 아래 네 글자 상황 묶음 */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; }
.grid4 .chip { width: 100%; padding: 0 4px; white-space: nowrap; }
.grid4 + .grid4 { margin-top: 2px; }
.pick {
  display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%;
  min-height: 48px; margin: 4px 0 8px; border: 0; border-radius: 999px;
  background: var(--c-accent-tint); color: var(--c-accent); font-size: 15px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--c-accent);
}

/* ---------- 결재 결과: 슬롯 → "결재완" (첫 화면과 같은 서류) ---------- */
.result {
  overflow-x: clip;  /* 결재완이 크게 찍히는 움직임이 옆 스크롤을 만들지 않게 */
  min-height: 100svh; background: var(--c-desk); color: var(--c-ink);
  padding: calc(12px + env(safe-area-inset-top)) var(--gap) calc(32px + env(safe-area-inset-bottom));
}
.result > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.draw-meta { margin: 0; font-size: 13px; font-weight: 600; color: rgb(28 25 23 / .55); font-variant-numeric: tabular-nums; }
/* 슬롯 창: 가게 이름이 돌다가 멈춘다 */
.slot {
  margin-top: 20px; height: 64px; display: grid; place-items: center; overflow: hidden; padding: 0 12px;
  background: var(--c-ink); color: var(--c-marker); border-radius: 4px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; text-overflow: ellipsis;
}
/* 결재완 — 바탕체 굵게, 아주 크게(세 글자). 결과가 나오기 전에는 숨긴다 */
.decree {
  position: relative; margin: 28px 0 18px; text-align: center; font-weight: 400; line-height: 1.1;
  font-weight: 800; font-size: min(22vw, 140px); letter-spacing: -0.02em; white-space: nowrap;
}
.ok-stamp {
  position: absolute; top: -30px; right: 6px; width: 60px; height: 60px; display: grid; place-items: center;
  border: 3px solid var(--c-seal); border-radius: 50%; color: var(--c-seal); font: normal 800 17px/1 var(--f-doc);
  transform: rotate(-14deg); opacity: .85;
}
.result .decree, .result .winner, .result .result-acts, .result .result-note, .result .tip-line { visibility: hidden; }
.result.done .decree, .result.done .winner, .result.done .result-acts, .result.done .result-note, .result.done .tip-line { visibility: visible; }
/* 영업시간 미확인 안내 — 결재 도장 아래 작은 비고 한 줄 */
.result-note { margin-top: 10px; font-size: 13px; color: var(--c-text-2); text-align: center; word-break: keep-all; }  /* 문장마다 한 줄, 낱말 중간에서 끊지 않는다 */
.result .decree { margin-left: auto; margin-right: auto; }  /* 결과 화면 가운데 정렬 — .decree·.list의 margin이 덮어쓰지 않게 */
.result .winner { margin-left: auto; margin-right: auto; }
.winner .card { background: var(--c-paper); box-shadow: 0 10px 28px -14px rgb(0 0 0 / .25); }
.result-acts { display: grid; gap: 10px; margin-top: 18px; }
.result-acts button { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.again { background: var(--c-paper); color: var(--c-ink); border: 1.5px solid var(--c-ink); }
.choose { background: var(--c-ink); color: #fff; border: 0; }
.again:active, .choose:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  .result.done .decree span { display: inline-block; animation: thud .5s cubic-bezier(.2, 1.5, .4, 1) both; }
  .result.done .ok-stamp { animation: slap .35s .35s cubic-bezier(.2, 1.6, .4, 1) both; }
  .result.done .winner { animation: drop .4s .2s ease-out both; }
  @keyframes thud { from { transform: scale(1.6); opacity: 0; } }
}
.lever-hint { margin: 10px 2px 0; font-size: 13px; font-weight: 600; color: rgb(28 25 23 / .55); text-align: center; }

/* 정렬 */
.sortbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin: 20px 0 8px; gap: 8px; }
#count { font-size: 14px; color: var(--c-text-2); }
.seg { display: flex; background: var(--c-tint); border-radius: 999px; padding: 3px; }
.seg button { white-space: nowrap; border: 0; background: none; border-radius: 999px; padding: 0 12px; min-height: 38px; font-size: 14px; color: var(--c-text-2); }
.seg button[aria-pressed="true"] { background: var(--c-bg); color: var(--c-text); font-weight: 700; }

/* 카드 */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { background: var(--c-tint); border-radius: var(--r-card); padding: 16px; display: grid; gap: 8px; }
.card:target, .card.focus { box-shadow: inset 0 0 0 2px var(--c-accent); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.meta { font-size: 14px; color: var(--c-text-2); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.meta b { color: var(--c-text); font-weight: 600; }
.menu { margin: 0; font-size: 14px; color: var(--c-text); }
.menu b { font-weight: 700; }
.menu .guess { color: var(--c-text-2); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--c-bg); color: var(--c-text-2); }
.tag.hot { background: var(--c-accent-tint); color: var(--c-hot); font-weight: 700; }
.acts { display: flex; gap: 8px; margin-top: 4px; }
.acts a, .acts button {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-height: 44px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; border: 0;
}
.primary { background: var(--c-accent); color: #fff; }
.primary[disabled] { opacity: .5; cursor: default; }
.second { background: var(--c-bg); color: var(--c-text); }
.icon-btn { flex: none !important; width: 44px; background: var(--c-bg); color: var(--c-text); }
.empty { padding: 32px 16px; text-align: center; color: var(--c-text-2); }

.skel { height: 148px; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: pulse 1.2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .55; } }
}

/* 회식 문의 */
.ask { margin: 24px 0 8px; padding: 20px 16px; border-radius: var(--r-card); background: var(--c-accent-tint); }
.ask h2 { margin: 0 0 4px; font-size: 18px; }
.ask p { margin: 0 0 12px; font-size: 14px; color: var(--c-text-2); }
.ask .primary { width: 100%; min-height: 48px; border: 0; border-radius: 999px; font-weight: 700; }

.foot { padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.foot p { margin: 0; font-size: 12px; color: var(--c-text-2); }
.foot .foot-joke { margin-top: 6px; }


/* ---------- 목록 화면 = 책상 위 서류 한 장 (2026-10-26 사용자) ---------- */
.results { overflow-x: clip; min-height: 100svh; background: var(--c-desk); padding: calc(8px + env(safe-area-inset-top)) 8px calc(24px + env(safe-area-inset-bottom)); }
.list-paper { max-width: 640px; margin: 0 auto; background: var(--c-paper); box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 10px 28px -14px rgb(0 0 0 / .25); padding-bottom: 4px; }
.results .modes button { font-weight: 700; }
.results .modes button[aria-selected="true"] { border-bottom: 3px solid var(--c-seal); }
/* 기준 칸: 서식의 입력 칸처럼 */
.field { background: none; border: 1px solid var(--c-line); border-radius: 2px; }
.field select { font-weight: 700; }
.ghost { background: none; border: 1px solid var(--c-ink); border-radius: 2px; font-weight: 700; }
/* 고르기: 첫 화면과 같은 체크 칸 — 네모 + 글자, 고르면 파란 볼펜 체크와 형광펜 */
.results .chip {
  position: relative; background: none; border-radius: 0; box-shadow: none; color: var(--c-ink);
  padding: 0 4px 0 21px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.results .chip::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid var(--c-ink); border-radius: 2px;
}
.results .chip[aria-pressed="true"] {
  background: linear-gradient(transparent 45%, var(--c-marker) 45%, var(--c-marker) 88%, transparent 88%) no-repeat 21px 0 / calc(100% - 21px) 100%;
  color: var(--c-ink); box-shadow: none;
}
.results .chip[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 6px; top: 50%; margin-top: -13px; width: 7px; height: 15px;
  border: solid var(--c-pen); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.results .grid4 { gap: 0 4px; }
.results .grid4 .chip { padding-left: 21px; text-align: left; }
.results .ask-q { font-size: 16px; font-weight: 800; }
.frow-label { font-weight: 700; color: var(--c-text-2); }
.more { color: var(--c-seal); }
/* 목록의 상신: 첫 화면 도장의 작은 판 */
.results .pick { border-radius: 2px; background: var(--c-paper); color: var(--c-seal); box-shadow: inset 0 0 0 2px var(--c-seal); font-weight: 800; }
/* 정렬: 밑줄 탭 */
.seg { background: none; padding: 0; gap: 2px; }
.seg button { border-radius: 0; color: var(--c-text-2); font-weight: 700; }
.seg button[aria-pressed="true"] { background: none; color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-seal); }
/* 가게 카드: 서식 칸처럼 얇은 선, 모서리 거의 없이 */
.card { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 2px; }
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.meta { font-size: 14.5px; }
.tag { background: none; border: 1px solid var(--c-line); border-radius: 0; color: var(--c-text-2); font-size: 12.5px; padding: 1px 6px; }
.tag.hot { border-color: var(--c-seal); color: var(--c-seal); background: none; }
.acts a, .acts button { border-radius: 2px; }
.primary { background: var(--c-ink); color: #fff; }
.second { background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.icon-btn { background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.skel { background: var(--c-tint); }
.ask { background: none; border: 1px dashed var(--c-ink); border-radius: 2px; }
.ask .primary { border-radius: 2px; }
.winner .card { border-color: var(--c-ink); }

/* 안내 페이지 링크 (첫 화면 맨 아래·목록 꼬리말) */
.doc-foot { margin: 18px 0 0; font-size: 12px; }
.doc-foot a, .foot a { color: var(--c-text-2); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }

/* 화제성 고과: 등급(도장처럼 네모 테두리) + 다섯 칸 막대 + 점수 */
.hype { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.hype-label { color: var(--c-text-2); font-weight: 700; }
.grade {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px;
  border: 2px solid var(--c-ink); font-size: 15px; font-weight: 800; line-height: 1;
}
.grade.g-S { border-color: var(--c-seal); color: var(--c-seal); transform: rotate(-6deg); }
.grade.g-A { border-color: var(--c-seal); color: var(--c-seal); }
.bar { display: inline-flex; gap: 2px; }
.bar i { width: 8px; height: 12px; border: 1.5px solid rgb(22 23 27 / .35); }
.bar i.on { border-color: var(--c-ink); }
.bar i.on { background: var(--c-ink); }
.pts { font-weight: 800; }
.note { font-size: 12.5px; font-weight: 700; color: var(--c-seal); }
.hype .guess { font-size: 12.5px; color: var(--c-text-2); }

/* 사후 결재 줄 (재결재 희망 / 반려) */
.post { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--c-text-2); }
.post-label { font-weight: 700; }
.post button {
  min-height: 36px; padding: 0 10px; margin: 4px 0; border: 1px solid var(--c-ink); border-radius: 2px;
  background: var(--c-paper); color: var(--c-ink); font-size: 13px; font-weight: 700;
}
.post button[data-vote="-1"] { border-color: var(--c-seal); color: var(--c-seal); }
.post .done { font-weight: 700; color: var(--c-ink); }
.post .tally { margin-left: auto; }

/* ---------- PC(넓은 화면) — 2026-10-26 사용자: PC에서 휑해 보인다 ---------- */
@media (min-width: 960px) {
  /* 첫 화면: 품의서 한 장을 가로로 넓게 — 왼쪽 큰 이름, 오른쪽 서식 */
  .home { padding-top: 40px; padding-bottom: 48px; }
  #home .paper {
    container-type: inline-size;  /* 제목 크기를 이 종이 폭으로 정하려고 */
    max-width: 1040px; padding: 36px 48px 40px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start;
  }
  #home .paper > .doc-head { grid-column: 1 / -1; }
  /* 제목 크기 = 왼쪽 칸 폭 ÷ 3.7 (네 글자 줄이 글자 크기의 3.52배 — 2026-10-26 넓은 모니터에서 128px로 커져 '은'이 다음 줄로 밀렸다) */
  #home .paper > .hero { grid-column: 1; grid-row: 2 / span 6; font-size: clamp(80px, 8.4vw, 116px); margin-top: 28px; }
  @supports (width: 1cqi) {
    #home .paper > .hero { font-size: min(124px, calc((100cqi - 64px) / 2 / 3.7)); }
  }
  #home .paper > .doc-from { grid-column: 1; grid-row: 8; }
  #home .paper > .home-modes, #home .paper > #home-pick, #home .paper > .seal-wrap, #home .paper > .lever-hint, #home .paper > .doc-foot { grid-column: 2; }
  #home .paper > .home-modes { grid-row: 2; margin-top: 32px; }
  #home .paper > .seal-wrap { margin-top: 28px; }
  .seal-btn { width: 150px; height: 150px; font-size: 34px; }
  .doc-title { font-size: 19px; }
  .opt { font-size: 16px; }
  .opt:hover span { background: linear-gradient(transparent 60%, rgb(255 240 106 / .55) 60%); }

  /* 결과: 가운데 한 장, 조금 크게 */
  .result { padding-top: 40px; }
  .result > * { max-width: 640px; }
  .decree { font-size: 120px; }

  /* 목록: 넓은 종이 한 장, 왼쪽에 기준·조건(따라 내려옴), 오른쪽에 카드 두세 줄 */
  .results { padding: 24px 24px 40px; }
  .list-paper { max-width: 1200px; }
  .results .top, .results main, .results .foot { max-width: none; padding-left: 32px; padding-right: 32px; }
  .results main { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .side { position: sticky; top: 16px; padding-bottom: 16px; }
  .feed { min-width: 0; }
  .feed .sortbar { margin-top: 16px; }
  .feed .list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .card:hover { border-color: var(--c-ink); }
  .ask { margin-top: 32px; }
}

/* 개인정보·이용 안내(privacy.html) — CSP에서 인라인 스타일을 막으려고 여기로 옮김 (2026-10-26 보안 점검) */
.policy { line-height: 1.75; font-size: 15px; }
.policy h2 { margin: 26px 0 6px; font-size: 16px; font-weight: 800; }
.policy p, .policy li { margin: 4px 0; }
.policy ul { padding-left: 18px; margin: 4px 0; }
.policy .doc-title { margin-top: 6px; }
.policy a { color: var(--c-pen); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink); font-weight: 700; text-decoration: none; }

.policy { padding-left: 18px; padding-right: 18px; }
.toc { display: none; }  /* 휴대폰에서는 목차 없이 바로 본문 */
.policy h2 { scroll-margin-top: 16px; }

/* 404(반려) 페이지 */
.nf-paper { text-align: center; padding: 28px 20px 32px; }
.nf-paper .doc-no, .nf-paper .doc-title { text-align: left; }
.nf-paper .lever-hint { text-align: center; }
.nf-decree { visibility: visible; margin: 28px 0; }
.nf-center { text-align: center; }
.nf-seal { display: grid; place-items: center; text-decoration: none; }

/* 안내·404 페이지 PC (2026-10-26 사용자: 개인정보 안내가 휴대폰 폭 그대로였다) */
@media (min-width: 960px) {
  .policy { max-width: 1000px; padding: 40px 56px 48px; font-size: 16px; }
  .policy-body { display: grid; grid-template-columns: 220px minmax(0, 680px); column-gap: 56px; margin-top: 12px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; padding-top: 22px; border-top: 2px solid var(--c-ink); }
  .toc-title { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
  .toc ol { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 6px 0; color: var(--c-text-2); text-decoration: none; }
  .toc a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
  .policy-text > h2:first-child { margin-top: 18px; }
  .nf-paper { max-width: 640px; padding: 40px 56px 48px; margin-top: 6vh; }
}

/* 커피 후원 — 목록 꼬리의 '붙임' 칸, 결과 화면의 한 줄 (2026-10-27) */
.tip { max-width: 560px; margin: 20px 0 8px; padding: 16px; border: 1px dashed var(--c-ink); border-radius: 2px; background: var(--c-paper); }
.tip-title { margin: 0 0 6px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tip-title span { border: 1px solid var(--c-ink); padding: 1px 6px; font-size: 12px; }
.tip p { margin: 0 0 12px; font-size: 13px; color: var(--c-text-2); line-height: 1.6; }
.foot .tip-btn {
  display: grid; width: 100%; padding: 0; place-items: center; min-height: 48px; border: 2px solid var(--c-seal); border-radius: 2px;
  color: var(--c-seal); font-weight: 800; font-size: 15px; text-decoration: none;
}
.foot .tip-btn:hover { background: var(--c-seal); color: var(--c-paper); }
.tip-line { margin-top: 14px; font-size: 13px; color: var(--c-text-2); text-align: center; }
.tip-link { color: var(--c-seal); font-weight: 800; text-underline-offset: 3px; display: inline-block; padding: 10px 2px; }
