/* site.css — 소모템 사이트 스타일. 토큰 출처: 칼큐 시안 J(툴박스 워크숍). 시스템 글꼴만, 모바일 우선. */
:root {
  /* 톤: 칼큐 시안 J "툴박스 워크숍" — 콘크리트 그레이 + 스틸 다크 + 안전 오렌지 1색, 라운드 4px */
  --brand: #d95f14; --brand-strong: #b84a0b; --brand-tx: #a84508; --bg: #e8e6e1; --card: #f8f7f4;
  --line: #b9b5aa; --line-2: #dedbd3; --text: #26241f; --muted: #5f5b51; --faint: #67625a;
  --accent-lt: #fcebdd; --accent-bd: #e3a77a;
  --steel: #2c2a25; --steel-tx: #f2f0ea; --steel-mute: #a8a294; --glow: #ffb066;
  --done: #2f8f46; --done-bg: #e9f2e9; --done-bd: #9cc9a6;
  --info: #3a7bbf; --info-bg: #eaf0f6; --info-tx: #1f4e7a;
  --warn: #c98a00; --warn-bg: #fbf1d9; --warn-tx: #7a5200;
  --tbd-bg: #e5e3dd; --tbd-bd: #b9b5aa;
  --gauge-ok: #2f9e4f; --gauge-ok-tx: #23773b; --gauge-soon: #b38600; --gauge-soon-tx: #7a5200;
  --gauge-over: #e5484d; --gauge-over-tx: #b42327; --gauge-over-bg: #f6e0df; --gauge-track: #dedbd3;
  --r: 4px; --r-lg: 6px; --r-badge: 2px; --shadow: 0 1px 0 rgba(38, 36, 31, .18); --shadow-pop: 0 6px 18px rgba(38, 36, 31, .22);
  --num: Consolas, "D2Coding", monospace;
  --ad-h: 100px; --ad-side-h: 600px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; word-break: keep-all; overflow-wrap: break-word; margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
a { color: var(--brand-tx); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1 { font-size: 1.5rem; font-weight: 900; line-height: 1.3; margin: .4rem 0 .6rem; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main.wrap { width: 100%; flex: 1; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); margin: 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 10; }
.sect { margin: 0 0 8px; font-size: 1rem; color: var(--text); }

/* 아이콘 */
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; fill: currentColor; }
.ico.big { width: 28px; height: 28px; }

/* 머리글 */
.site-head { background: var(--steel); border-bottom: 3px solid var(--brand); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--steel-tx); }
.logo:hover { text-decoration: none; }
.head-nav { margin-left: auto; font-weight: 700; font-size: .9rem; }
.head-nav a { color: var(--steel-mute); padding: 8px 0; display: inline-block; }
.head-nav a:hover { color: var(--glow); }
/* 계정 — 비로그인은 "로그인" 글자, 로그인하면 프로필 아이콘 + 로그아웃 아이콘(site.js 가 .signed 를 붙임) */
.head-nav { display: flex; align-items: center; gap: 4px; }
.head-acc .ico, .head-nav.signed .head-acc span:not(.ico) { display: none; }
.head-nav.signed .head-acc .ico { display: grid; }
.head-nav.signed .head-acc, .head-out { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: var(--r); }
.head-out { border: 0; background: transparent; color: var(--steel-mute); cursor: pointer; }
.head-out[hidden] { display: none; }
.head-nav.signed .head-acc:hover, .head-out:hover { color: var(--glow); background: color-mix(in srgb, var(--steel-tx) 10%, transparent); }
.head-nav .ico { width: 26px; height: 26px; }
.site-head :focus-visible { outline-color: var(--glow); }
.head-in .search { flex: 1 0 100%; order: 3; }

/* 머리글 메뉴 — PC 는 로고 옆 가로 메뉴, 모바일은 머리글 아래 가로 스크롤 텍스트 줄. 밑줄 색 = 행동 색(--act) */
.head-menu { display: flex; gap: 0 14px; order: 4; flex: 1 0 100%; margin: 0 -2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-weight: 700; font-size: .9rem; }
.head-menu::-webkit-scrollbar { display: none; }
.hm-link { flex: none; padding: 8px 2px 6px; border-bottom: 2px solid var(--act, transparent); color: var(--steel-mute); }
.hm-link:hover { color: var(--glow); text-decoration: none; }

/* 햄버거 버튼 + 왼쪽 메뉴 패널(<dialog>) — 열 때 왼쪽에서 밀려 나온다 */
.menu-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--steel-tx); cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .1); color: var(--glow); }
.menu-btn .ico { width: 26px; height: 26px; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-right: 3px solid var(--brand); background: var(--card); color: var(--text); box-shadow: var(--shadow-pop); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform .22s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(-100%); } }
.drawer::backdrop { background: rgba(38, 36, 31, .5); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 16px; background: var(--steel); }
.drawer-head .ico-btn { color: var(--steel-tx); }
.drawer-head .ico-btn:hover { background: rgba(255, 255, 255, .1); color: var(--glow); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 8px 24px; }
.drawer-nav > a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: var(--r); color: var(--text); font-weight: 700; }
.drawer-nav > a .ico { color: var(--brand-tx); }
.drawer-nav > a:hover { background: var(--line-2); text-decoration: none; }
.drawer-nav > a.act-link { border-left: 3px solid var(--act); border-radius: 0 var(--r) var(--r) 0; }
.drawer-nav > a.act-link .ico { color: var(--act); }
.drawer-sect { margin: 14px 10px 6px; font-size: .85rem; color: var(--muted); }
.menu-cat { border-top: 1px solid var(--line-2); }
.menu-cat summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px; list-style: none; cursor: pointer; font-weight: 700; }
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat summary:hover { background: color-mix(in srgb, var(--cat, var(--brand)) 10%, var(--card)); }
.menu-cat .cat-ico { width: 30px; height: 30px; background: var(--cat, var(--steel)); color: #fff; }
.menu-cat .cat-ico .ico { width: 18px; height: 18px; }
.menu-cat-name { flex: 1; }
.menu-cat em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--muted); }
.menu-cat .chev { width: 20px; height: 20px; background: var(--muted); -webkit-mask: url(/icons/expand_more.svg) center / contain no-repeat; mask: url(/icons/expand_more.svg) center / contain no-repeat; transition: transform .15s; }
.menu-cat[open] .chev { transform: rotate(180deg); }
.menu-cat ul { display: flex; flex-direction: column; padding: 0 0 8px 50px; }
.menu-cat li a { display: block; padding: 9px 10px; border-radius: var(--r); color: var(--text); font-size: .95rem; }
.menu-cat li a:hover { background: var(--line-2); text-decoration: none; }
.menu-cat li a.menu-all { color: var(--brand-tx); font-weight: 700; font-size: .9rem; }

/* 검색 */
.search { position: relative; }
.search-in { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--brand-tx); }
.search-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-bd); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search.big .search-in { height: 52px; padding: 0 18px; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); overflow: hidden; text-align: left; }
.search-pop li a, .search-pop li { display: block; }
.search-pop [role="option"] { display: flex; align-items: center; padding: 11px 14px; color: var(--text); font-weight: 700; border-top: 1px solid var(--line-2); }
.search-pop li:first-child [role="option"] { border-top: 0; }
.search-pop [role="option"]:hover, .search-pop [aria-selected="true"] { background: var(--accent-lt); text-decoration: none; }
.search-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; text-align: center; color: var(--muted); font-size: .9rem; }
.search-none strong { color: var(--text); font-size: 1rem; }
.search-none[hidden], .search-pop[hidden] { display: none; }
.search-none .ico.big { width: 46px; height: 46px; padding: 9px; border-radius: var(--r); background: var(--steel); color: var(--glow); }

/* 홈 */
.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 4px; text-align: center; }
.hero h1 { margin: 0; font-size: 1.45rem; font-weight: 900; text-wrap: balance; }
.hero .search { width: 100%; max-width: 520px; }
.hero-lead { margin: -6px 0 0; color: var(--muted); font-size: .95rem; text-wrap: balance; }
.pills { width: 100%; max-width: 640px; }
.pills ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.pill:hover { border-color: var(--brand); background: var(--accent-lt); color: var(--brand-tx); text-decoration: none; }
/* 분류 수가 열 수로 나눠떨어지지 않아도 마지막 줄 타일이 줄 폭을 나눠 채운다(빈칸 없음) — 열 수는 --cols */
.tile-grid { --cols: 2; --gap: 8px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile-grid > .tile { flex: 1 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.tile { display: flex; flex-direction: column; min-width: 0; background: color-mix(in srgb, var(--cat, var(--brand)) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 30%, var(--line)); border-top: 3px solid var(--cat, var(--brand)); border-radius: var(--r); box-shadow: var(--shadow); }
.tile-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 8px; color: var(--text); text-align: center; border-radius: var(--r) var(--r) 0 0; }
.tile-head:hover { text-decoration: none; background: color-mix(in srgb, var(--cat, var(--brand)) 14%, var(--card)); }
.tile .cat-ico { width: 40px; height: 40px; margin-bottom: 4px; background: var(--cat, var(--steel)); color: #fff; }
.tile b { font-size: .95rem; line-height: 1.3; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile-items { padding: 6px 12px 10px; border-top: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 20%, var(--line)); font-size: .85rem; }
.tile-items a { display: block; padding: 3px 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-items a:hover { color: var(--brand-tx); }
.tile-items .tile-more { color: var(--muted); font-size: .8rem; }
.rows.rows-2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.it-ico i { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.search-pop .it-ico { width: 28px; height: 28px; margin-right: 10px; }
.today-btn { flex: none; height: 30px; padding: 0 10px; border: 1px solid var(--brand); border-radius: var(--r-badge); background: transparent; color: var(--brand-tx); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.today-btn:hover { background: var(--accent-lt); }
.today-btn .ico { display: block; width: 18px; height: 18px; }
.cat-ico, .gg-ico, .it-ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; flex: none; background: var(--steel); color: var(--glow); }

/* 경로 표시 */
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); padding-top: 12px; }
.crumb a { color: var(--muted); padding: 4px 0; }
.crumb .sepi .ico { width: 16px; height: 16px; }
.crumb [aria-current] { color: var(--text); font-weight: 700; }

/* 목록 행 */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 700; color: var(--text); }
.row:hover { border-color: var(--brand); text-decoration: none; }
.row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-main small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.row .go { margin-left: auto; color: var(--faint); }
.related { margin-top: 6px; }
.related h2 { color: var(--muted); font-size: .95rem; }

/* 카드·입력 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.part-title { margin: 0; font-size: 1.05rem; }
.sub { font-size: .85rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.flab { display: flex; align-items: center; gap: 6px; }
.inp { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); font-weight: 600; }
.inp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-bd); }
.inp.pre { background: var(--warn-bg); border-color: var(--warn); }
.inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; }
.inp select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.inp .u { color: var(--muted); font-weight: 600; white-space: nowrap; }
.assume { display: flex; gap: 6px; margin: 6px 0 0; padding: 7px 10px; font-size: .85rem; font-weight: 700; line-height: 1.4; color: var(--warn-tx); background: var(--warn-bg); border: 1px solid var(--warn); border-radius: var(--r); }
.assume .ico { width: 18px; height: 18px; color: var(--warn); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: var(--r-badge); border: 1px solid var(--brand); background: var(--accent-lt); color: var(--brand-tx); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.chip small { font-weight: 600; color: var(--muted); }
.safe { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; font-weight: 800; font-size: .9rem; line-height: 1.4; color: var(--warn-tx); background: var(--warn-bg); border: 1px solid var(--warn); border-radius: var(--r); }
.safe .ico { color: var(--warn); }
.pick { margin: 0; gap: 4px; }
.pick legend { padding: 0 6px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 700; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--accent-lt); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.calc { display: flex; flex-direction: column; gap: 12px; }
.part[hidden] { display: none; }

/* 결과·게이지 — 품목 페이지의 결과는 다크 패널. 패널 안은 토큰을 다크용으로 덮어 쓴다(자손 규칙을 따로 쓰지 않는다) */
.result { --text: #f2f0ea; --muted: #cfcabc; --faint: #b0aa9b; --brand-tx: var(--glow); --line: #5a554b; --line-2: #46423a; --bg: #33302a;
  --info-tx: #9cc7f0; --info: #6f9fcf; --done: #8fd19e; --done-bd: #5f9f6d;
  --warn-tx: #ffd88a; --warn: #c98a00; --warn-bg: transparent; --accent-bd: #a8612f;
  --gauge-ok: #4ade80; --gauge-ok-tx: #4ade80; --gauge-soon: #ffd60a; --gauge-soon-tx: #ffd60a; --gauge-over: #ff6b6b; --gauge-over-tx: #ff8f8f; --gauge-over-bg: #46423a; --gauge-track: #5f5a50;
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: var(--r-lg); background: #26241f; color: var(--text); }
.result .sub { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--glow); }
.result :focus-visible { outline-color: var(--glow); }
.gg { --p: 50; --gc: var(--gauge-ok); --bt: var(--muted); }
.gg.mid { --gc: var(--gauge-soon); }
.gg.low { --gc: var(--gauge-over); --bt: var(--gauge-over); }
.gg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .85rem; color: var(--muted); }
.gg-meta > span { white-space: nowrap; }
.gg-meta b { min-width: 3.2ch; color: var(--text); font-family: var(--num); font-size: 1.5rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gg-meta [hidden] { display: none; }
.gg-d { color: var(--text); font-weight: 700; }
/* 휴대폰 배터리 — 몸통 + 오른쪽 단자(::after), 안쪽 채움 길이 = 잔량 %. 색은 .gg 의 high·mid·low */
.batt { position: relative; flex: none; display: block; width: 46px; height: 22px; margin-right: 5px; padding: 2px; border: 2px solid var(--bt); border-radius: 6px; box-sizing: border-box; }
.batt::after { content: ""; position: absolute; top: 50%; right: -6px; width: 4px; height: 8px; transform: translateY(-50%); border-radius: 0 2px 2px 0; background: var(--bt); }
.batt i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--gc); border-radius: 2px; }
.gg.empty .gg-msg { font-size: .9rem; font-weight: 700; color: var(--muted); }
.result .gg-msg, .result .gg-d { flex-basis: 100%; white-space: normal; }
.result .gg-msg { color: var(--text); font-weight: 800; font-size: .95rem; }
.part-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.part-top .inp { padding: 0 6px 0 8px; gap: 4px; font-size: .9rem; }
.part-top .today-btn { padding: 0 8px; }
.result .gg-meta b { font-size: 1.3rem; }
.result .gg-meta { gap: 2px 6px; }
.result .gg-d { font-size: .75rem; }
.result .batt { width: 40px; margin-right: 4px; }
.part-in { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.part-more { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: .85rem; }
.part-more .line { font-size: .85rem; }
.part-more details.line > summary { min-height: 30px; }
.part-more:not(:has(> :not([hidden]))) { display: none; }
.later { margin: 0; font-size: .9rem; color: var(--muted); }
.later:not([hidden]) { padding-bottom: 2px; }
.later b { color: var(--text); }

/* 기준 줄·등급 라벨·출처 */
.line { margin: 0; font-size: .9rem; }
details.line > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; }
details.line > summary::-webkit-details-marker { display: none; }
.line-tx { flex: 1 1 auto; min-width: 0; }
.line-tx b { font-weight: 800; }
.grade { display: inline-flex; align-items: center; gap: 1px; padding: 1px 4px 1px 9px; border: 1px solid; border-radius: var(--r-badge); font-size: .75rem; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.grade .chev { width: 16px; height: 16px; }
details[open] > summary .grade .chev { transform: rotate(180deg); }
.g-public { color: var(--info-tx); border-color: var(--info); }
.g-society { color: var(--brand-tx); border-color: var(--brand); }
.g-maker { color: var(--gauge-ok-tx); border-color: var(--done); }
.g-common { color: var(--muted); border-color: var(--faint); }
.g-industry { color: var(--warn-tx); border-color: var(--faint); }
.g-assumed { color: var(--warn-tx); border-color: var(--warn); }
.srcbox { margin-top: 4px; padding: 8px 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.srcbox ul { display: flex; flex-direction: column; gap: 6px; }
.srcbox li { display: flex; gap: 6px; line-height: 1.4; }
.srcbox li .lnk { flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--brand-tx); -webkit-mask: url(/icons/link.svg) center / contain no-repeat; mask: url(/icons/link.svg) center / contain no-repeat; }
.srcbox small { display: block; }
.srcbox a { overflow-wrap: anywhere; font-weight: 700; }
.srcnote { margin: 6px 0 0; }

/* 안내 섹션 — 영역마다 접기(<details>), 문장 끝 번호 각주 + 아래 출처 목록 */
.guide-sec { gap: 0; padding: 0; }
.guide-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; }
.guide-sec > summary::-webkit-details-marker { display: none; }
.guide-sec h2 { margin: 0; }
.qty-more > summary { justify-content: space-between; color: var(--brand-tx); font-weight: 600; }
.qty-more[open] > summary .chev { transform: rotate(180deg); }
.guide-sec > summary .chev, .grade .chev, .qty-more > summary .chev { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url(/icons/expand_more.svg) center / contain no-repeat; mask: url(/icons/expand_more.svg) center / contain no-repeat; transition: transform .15s; }
.guide-sec[open] > summary .chev { transform: rotate(180deg); }
.guide-sec[open] > summary { border-bottom: 1px solid var(--line-2); }
.gl { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.gl li { display: flex; gap: 6px; line-height: 1.65; }
.gl li::before { content: "·"; flex: none; color: var(--brand-tx); font-weight: 800; }
.gl li > * { min-width: 0; }
.fn { margin-left: 2px; color: var(--brand-tx); font-size: .72rem; font-weight: 800; line-height: 0; }
.srcs { padding: 10px 14px 12px; border-top: 1px dashed var(--line); font-size: .85rem; }
.srcs-h { display: block; margin-bottom: 2px; color: var(--muted); font-size: .8rem; }
.srcs ul { display: flex; flex-direction: column; }
details.src > summary { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-height: 36px; }
.src-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.src > summary .fn { margin: 0; flex: none; }
.item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.item h1 { margin: 0; }
.eyebrow { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-badge); background: var(--brand-strong); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.eyebrow:hover { background: var(--steel); text-decoration: none; }
.item .eyebrow + h1 { margin-top: -8px; }
.head-sum { margin: -6px 0 0; color: var(--muted); font-size: .95rem; font-weight: 700; }
.guide-secs { display: grid; gap: 10px; }

/* 광고 자리 — 높이만 예약(배너가 늦게 떠도 내용이 밀리지 않게) */
.ad-slot { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
.ad-label { align-self: flex-start; padding: 1px 6px; border-radius: var(--r-badge); background: var(--steel); color: var(--steel-tx); font-size: .7rem; font-weight: 800; }
.ad-body { min-height: var(--ad-h); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ad-side { display: none; }
.ad-side .ad-body { width: 160px; min-height: var(--ad-side-h); }

/* 버튼 · 안내 띠 — 보드에 담기·시트·보드 화면 공용 */
[hidden] { display: none !important; }
.btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--steel); border-radius: var(--r); background: var(--card); color: var(--text); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.btn-s:hover:not(:disabled) { background: var(--accent-lt); border-color: var(--brand-strong); }
.btn-s.primary { background: var(--steel); border-color: var(--steel); color: #fff; box-shadow: inset 0 -3px 0 var(--brand); }
.btn-s.primary:hover:not(:disabled) { background: var(--steel); border-color: var(--steel); filter: brightness(1.3); }
.btn-s:disabled { opacity: .5; cursor: not-allowed; }
.btn-s small { padding: 0 8px; border-radius: var(--r-badge); background: rgba(255, 255, 255, .22); font-size: .8rem; font-weight: 800; }
.btn-s.danger { color: var(--gauge-over-tx); border-color: var(--gauge-over); }
.btn-s.danger:hover:not(:disabled) { background: var(--gauge-over-bg); }
.ico-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.ico-btn:hover { background: var(--line-2); color: var(--brand-tx); }
.btn-done { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--done-bd); border-radius: var(--r); background: var(--done-bg); color: var(--gauge-ok-tx); font: inherit; font-weight: 800; cursor: pointer; }
.btn-done:hover { border-color: var(--done); }
.notice { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--warn-tx); background: var(--warn-bg); border: 1px solid var(--warn); border-radius: var(--r); }
.notice .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.notice.shared-bar { flex-wrap: wrap; align-items: center; }
.notice.shared-bar span:not(.ico) { flex: 1 1 14em; }
.notice.ok { color: var(--gauge-ok-tx); background: var(--done-bg); border-color: var(--done-bd); }
.notice.ok .ico { color: var(--done); }
.g-mine { color: var(--info-tx); border-color: var(--info); padding-right: 9px; }
.flab .grade { margin-left: 2px; }

/* 품목 페이지 — 부품 카드 추가·제거 · 담기/캘린더 */
.part-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.part-remove { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--muted); cursor: pointer; }
.part-remove:hover { background: var(--gauge-over-bg); border-color: var(--gauge-over); color: var(--gauge-over-tx); }
.part-list { display: flex; flex-direction: column; gap: 12px; }
.part-list:empty { display: none; }
.part-head[hidden] { display: none; }
/* 카드 목록 아래 추가 버튼 — 점선 테두리로 "빈 자리에 하나 더" 를 보인다 */
.add-part.btn-s { align-self: flex-start; min-height: 36px; padding: 0 10px; border-color: transparent; background: transparent; color: var(--brand-tx); font-size: .9rem; }
.add-part.btn-s:hover:not(:disabled) { border-color: var(--brand); }
.part-sel { flex: 1; max-width: 320px; height: 40px; font-weight: 800; }
.part-head:has(.part-sel) .part-remove { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.part-basis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--muted); }
.part-basis li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.part-basis b { color: var(--text); font-weight: 800; }
.board-actions { display: flex; flex-direction: column; gap: 8px; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.act-row .btn-s { flex: 1 1 160px; }
.cal-opts { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.opt-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--brand-tx); font: inherit; font-size: .95rem; font-weight: 800; text-align: left; cursor: pointer; }
.opt-link:hover { border-color: var(--brand); background: var(--accent-lt); text-decoration: none; }

/* 보드 화면 */
.board { display: flex; flex-direction: column; gap: 14px; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.board-head h1 { margin: 0; }
.board-title { display: flex; align-items: center; gap: 4px 8px; min-width: 0; }
.board-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.board-switch { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.board-switch:disabled { cursor: default; }
.board-switch .ico { flex: none; width: 28px; height: 28px; color: var(--muted); }
.board-members { padding: 1px 8px; border: 1px solid var(--line); border-radius: var(--r-badge); font-size: .85rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-board { width: 100%; justify-content: space-between; color: var(--text); }
.pick-board[aria-current] { border-color: var(--brand); background: var(--accent-lt); }
.pb-main { display: flex; flex-direction: column; min-width: 0; }
.pb-main small { font-weight: 600; color: var(--muted); }
.sb-cols { display: flex; flex-direction: column; gap: 14px; }
.sb-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sub { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.mlist { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.mname { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.mm { position: relative; }
.mm summary { list-style: none; cursor: pointer; }
.mm summary::-webkit-details-marker { display: none; }
.mm-pop { position: absolute; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); }
.take-pick { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.take-pick select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; }
.join-name { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.sheet .pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sheet .pick[hidden] { display: none; }
.sheet .pick legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.sheet .pick .opt small { font-weight: 600; color: var(--muted); }
.board-login { font-size: .9rem; font-weight: 700; }
.custom-notice { margin: 0; font-size: .85rem; }
.bg-name .grade { margin-left: 6px; }
.sheet .inp select[name="custom_unit"] { flex: 0 0 auto; width: auto; }
.my { display: flex; flex-direction: column; gap: 14px; max-width: 560px; padding-top: 20px; }
.my h1 { margin: 0; }
.my-lead, .my-note { margin: 0; }
.my-note { font-size: .85rem; }
.my-acct { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.board h1 { margin: 12px 0 0; }
.bsec .sect { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.bsec .sect em { font-style: normal; font-weight: 500; color: var(--faint); }
.blist { display: flex; flex-direction: column; gap: 10px; }
.bg { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; }
.bg:hover { border-color: var(--brand); }
.bg.flash { border-color: var(--done); box-shadow: 0 0 0 2px var(--done-bg); }
.bg-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bg-name { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; font-weight: 800; }
.bg-title { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.bg-title:hover { color: var(--brand-tx); text-decoration: underline; }
.sheet-guide { margin: -4px 0 0; font-size: .9rem; font-weight: 700; }
.sheet-guide a { display: inline-flex; align-items: center; color: var(--brand-tx); }
.sheet-guide .ico { width: 18px; height: 18px; }
.br-start .u { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.bg-nick { padding: 1px 8px; border-radius: var(--r-badge); border: 1px solid var(--brand); color: var(--brand-tx); font-size: .8rem; font-weight: 800; }
.bg-model { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .8rem; font-weight: 600; }
.bg-rows { display: flex; flex-direction: column; gap: 12px; }
.bg-rows .br + .br { padding-top: 12px; border-top: 1px solid var(--line-2); }
.br { display: flex; flex-direction: column; gap: 4px; }
.br-title { font-size: .9rem; font-weight: 800; color: var(--muted); }
.br-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.br-main .gg { flex: 1 1 160px; min-width: 0; }
.br .gg-meta b { font-size: 1.2rem; }
.br .gg-meta > .gg-msg { white-space: normal; }
.br .batt { width: 34px; height: 18px; }
.bsec .sect-act { margin-left: auto; align-self: center; }
.br-start { flex: 0 1 240px; min-width: 0; height: 36px; padding: 0 6px 0 8px; font-size: .9rem; }
.gg-meta:has(.br-start) .batt { display: none; } /* 시작일을 기다리는 줄 — 빈 배터리 대신 날짜 칸만 */
.br-start input { cursor: pointer; }
.br-avg { font-size: .85rem; }
.br-last { font-size: .85rem; overflow-wrap: anywhere; }
.memo { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.memo legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 800; color: var(--muted); }
.bstat { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.bstat-title { margin: 0; font-size: 1rem; color: var(--text); }
.bstat-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bstat-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 4px; border: 1px solid var(--steel); border-radius: var(--r); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.bstat-cell span { font-size: .85rem; font-weight: 800; }
.bstat-cell b { font-size: 1.3rem; line-height: 1.1; }
.bstat-cell.over:not(.zero) b { color: var(--gauge-over-tx); }
.bstat-cell:hover:not(:disabled) { background: var(--accent-lt); border-color: var(--brand-strong); }
.bstat-cell.zero { opacity: .5; cursor: default; }
.bstat-hint { margin: 0; font-size: .8rem; color: var(--faint); }
.board-empty { padding: 28px 0; }
.board-empty h2 { margin: 0; color: var(--text); }

/* 시트 — <dialog>. 모바일은 하단 시트, PC 는 가운데 창 */
.sheet { width: 100%; max-width: none; max-height: 90vh; margin: auto 0 0; padding: 0; border: 0; border-top: 3px solid var(--brand); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); color: var(--text); box-shadow: var(--shadow-pop); }
.sheet::backdrop { background: rgba(38, 36, 31, .55); }
.sheet-in { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; }
.sheet-in h2 { margin: 0; font-size: 1.05rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-act { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-act .btn-s { flex: 1 1 120px; }
.sheet-part { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.sheet-part[hidden] { display: none; }
.sheet-part legend { padding: 0 6px; font-weight: 800; }
.sheet-cal h3 { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.sheet-cal .cal-opts { padding: 0; border: 0; }
.sheet-cal p { margin: 0; font-size: .9rem; }

/* 없는 주소 · 빈 틀 */
.nf { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0; text-align: center; color: var(--muted); }
.nf h1 { margin: 0; color: var(--text); font-size: 1.3rem; }
.nf p { margin: 0; }
.nf > .ico.big { width: 56px; height: 56px; padding: 12px; border-radius: var(--r); background: var(--steel); color: var(--glow); }
.nf .search { width: 100%; max-width: 520px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: var(--r); background: var(--steel); color: #fff; font-weight: 800; box-shadow: inset 0 -3px 0 var(--brand); }
.btn:hover { text-decoration: none; filter: brightness(1.3); }
.legal { padding: 12px 0; }
.legal ul, .legal ol { list-style: disc; padding-left: 1.25em; }
.legal ol { list-style: decimal; }
.legal li { margin: 4px 0; }

/* 바닥글 */
.site-foot { border-top: 3px solid var(--brand); background: var(--steel); text-align: center; font-size: .85rem; color: var(--steel-mute); padding: 14px 0 20px; }
.site-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
.site-foot nav a { color: var(--steel-mute); padding: 6px 0; }
.site-foot nav a:hover { color: var(--glow); }
.site-foot :focus-visible { outline-color: var(--glow); }
.site-foot p { margin: 4px 0 0; font-size: .8rem; }

@media (min-width: 640px) { .tile-grid { --cols: 3; --gap: 12px; } .rows.rows-2 { grid-template-columns: 1fr 1fr; } }

/* PC */
@media (min-width: 960px) {
  h1 { font-size: 1.75rem; }
  .head-in { flex-wrap: nowrap; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .head-in .search { flex: 1; min-width: 0; max-width: 440px; order: 2; }
  .head-menu { order: 1; flex: none; overflow: visible; margin: 0; }
  .head-nav { margin-left: auto; order: 3; }
  .hero { padding: 36px 0 8px; }
  .hero h1 { font-size: 2rem; }
  .tile-grid { --cols: 4; }
  .guide-secs { grid-template-columns: 1fr 1fr; align-items: start; }
  .part { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .part > .part-title, .part > .part-head, .part > .part-top { grid-column: 1 / -1; }
  .part > .part-title, .part > .part-head { margin-bottom: -4px; }
  .sheet { max-width: 480px; margin: auto; border-radius: var(--r-lg); }
  .sheet.wide { max-width: 720px; }
  .sheet.wide .sb-cols { flex-direction: row; align-items: flex-start; }
  .sheet.wide .sb-col { flex: 1 1 0; }
}

/* 측면 세로 배너 — 폭 1560px 이상에서만(affiliate.json rail_min_width 와 짝). 모든 페이지의 본문(960px) 좌우 바깥에 고정 — 칼큐 .aff-rail 방식 */
@media (min-width: 1560px) {
  .rails .ad-side { display: flex; position: fixed; top: 96px; z-index: 30; margin: 0; }
  .rails [data-ad-slot="side_left"] { left: calc((100vw - 960px) / 2 - 202px); }
  .rails [data-ad-slot="side"] { right: calc((100vw - 960px) / 2 - 202px); }
}
/* 우리 집 시작 세트(/start/) — 모바일은 질문 → 미리보기 2단계, PC(720px~)는 질문 왼쪽·미리보기 오른쪽 */
.start { display: flex; flex-direction: column; gap: 12px; }
.start h1 { margin: 0; }
.start-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.st-q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.st-ql { font-weight: 800; }
.st-opts { display: flex; gap: 6px; margin-left: auto; }
.st-opt { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-badge); background: #fff; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.st-opt[aria-checked="true"] { border-color: var(--brand); background: var(--accent-lt); color: var(--brand-tx); }
.st-view-head { display: flex; align-items: center; gap: 8px; }
.st-view-head h2 { margin: 0; }
.st-hint, .st-after { margin: 0; font-size: .85rem; }
.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.st-row:has(input:checked) { border-color: var(--brand); background: var(--accent-lt); }
.st-row.is-there { opacity: .6; cursor: default; }
.st-row input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.st-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.st-name small { color: var(--muted); }
/* 담기 버튼 카드 — PC 는 질문 바로 아래(목록이 길어도 버튼이 내려가지 않게, 2026-10-06 사용자 지시), 모바일은 미리보기 단계에서 화면 아래에 붙어 따라옴 */
.st-act { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 719px) {
  .start[data-step="ask"] .st-view, .start[data-step="ask"] .st-act, .start[data-step="view"] .st-ask { display: none; }
  .st-act { position: sticky; bottom: 0; z-index: 2; box-shadow: var(--shadow-pop); }
}
@media (min-width: 720px) {
  .start-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
  .st-ask { grid-area: 1 / 1; }
  .st-view { grid-area: 1 / 2 / span 2; }
  .st-act { grid-area: 2 / 1; position: sticky; top: 12px; }
  .st-next, .st-back { display: none; }
}

/* 점검표(/checklist/{월}/)·이사 체크리스트(/moving-in/) — 품목 줄은 /start/ 의 .st-row 와 같은 체크 표시, 아래에 원문 근거 문장 */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist h1 { margin: 0; }
.ck-sect h2 { margin: 0; font-size: 1.05rem; }
.ck-list { display: flex; flex-direction: column; gap: 8px; }
.ck-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ck-row:has(input:checked) { border-color: var(--brand); background: var(--accent-lt); }
.ck-row.is-there { opacity: .6; }
.ck-box { flex: none; width: 18px; height: 18px; margin: 8px 0 0; accent-color: var(--brand); }
.ck-main { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.ck-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.ck-name { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text); }
.ck-name .it-ico { width: 28px; height: 28px; }
.ck-state { color: var(--muted); }
.ck-why .gl { padding: 0; gap: 4px; font-size: .9rem; }
.ck-why .srcs { padding: 6px 0 0; border-top: 0; }
.ck-add { display: flex; flex-direction: column; gap: 8px; }
.ck-pager { display: flex; justify-content: space-between; gap: 8px; }
.ck-pager a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px; color: var(--brand-tx); font-weight: 700; }
.ck-pager .ico { width: 22px; height: 22px; }
.rows .row[aria-current] { border-color: var(--brand); background: var(--accent-lt); }

/* 입구 — 행동 버튼·카드(홈·없는 주소·빈 보드), 분류 안내 상자, "이 품목과 함께", 홈 알림 띠. 색(--act)은 아이콘·왼쪽 띠에만 */
.act-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; text-align: left; }
.act { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--act, var(--line)); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.act:hover { border-color: var(--brand); border-left-color: var(--act); text-decoration: none; }
.act > .ico:first-child { width: 24px; height: 24px; color: var(--act); }
.act-main { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.act-main b { font-size: .95rem; }
.act-main small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.act .go { margin-left: auto; color: var(--faint); }
.act-boxes { display: flex; flex-direction: column; gap: 8px; }
.row-act { border-left: 4px solid var(--act); }
.row-act > .ico:first-child { color: var(--act); }
.together { margin-top: 6px; }
.together h2 { color: var(--muted); font-size: .95rem; }
.home-strip { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 12px; padding: 6px 12px; border: 1px solid var(--warn); border-radius: var(--r); background: var(--warn-bg); color: var(--warn-tx); font-size: .9rem; font-weight: 700; }
.home-strip[hidden] { display: none; }
.home-strip .ico { width: 18px; height: 18px; color: var(--warn); }
@media (min-width: 640px) { .act-row { grid-template-columns: repeat(var(--n, 4), 1fr); } }
