/* 오늘의 정책 0.71 — 「문서 접수 대장」(DESIGN.md). 시안: .impeccable/mocks/decision/ morning·morning-요약·past-b·folder-가입·folder-관리자 */
/* 글꼴 규칙은 fonts.css (fonts/make_subset.py가 만든다) */

:root {
  --cho: #23483a;      /* 결재판 초록: 머리띠·선택 */
  --cho-up: #2f5c4b;   /* 머리띠 위 눌린 상태 */
  --cho-t: #e7efea;    /* 초록 옅은 바탕: 마우스 올림 */
  --cho-th: #f1f5f2;   /* 표 머리 */
  --in: #b83322;       /* 인주 주홍: 도장·키워드·실패에만 */
  --in-t: #fbe3df;
  --baek: #fbfbf9;
  --paper: #ffffff;
  --meok: #1a1a1a;
  --gwae: #c9d6cf;     /* 연녹 괘선 */
  --gwae-in: #7a8e83;  /* 입력칸 테두리 — 흰 바탕 3.49·옅은 바탕 3.36·표 머리 3.17:1(WCAG 1.4.11 3:1, 디자인 검수 11-21) */
  --hoe: #545a56;      /* 보조 글자 */
  --hoe-2: #69706b;    /* 희미한 글자(4.9:1) */
  --sk: #e4ebe7;
  --font: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --band: 84px;
  --side: 248px;
  --gut: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--gwae) transparent; }
body { background: var(--baek); color: var(--meok); font: 15px/1.45 var(--font); caret-color: var(--cho); min-height: 100vh; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: #cfe0d6; color: var(--meok); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cho); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.defs { position: absolute; width: 0; height: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.spin { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ic.spin { animation: none; } }
code { font: 700 13px/1.4 var(--font); padding: 1px 5px; border-radius: 2px; background: var(--cho-th); border: 1px solid var(--gwae); word-break: break-all; }
.lbl-top { display: block; font-size: 13px; font-weight: 700; color: var(--hoe); margin-bottom: 6px; }
.lb { font-size: 13px; font-weight: 700; color: var(--hoe); }
.err { color: var(--in); font-size: 13px; min-height: 19px; margin: 6px 0 2px; }
.err:empty { min-height: 19px; }
.push { margin-left: auto; }
.btn-solid { height: 40px; padding: 0 18px; border-radius: 4px; background: var(--cho); color: #fff; font-weight: 700; white-space: nowrap; }
.btn-solid:hover { background: var(--cho-up); }
.btn-solid:disabled { opacity: .55; }
.btn-ghost { height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--gwae); background: var(--paper); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn-ghost:hover { background: var(--cho-t); }
.btn-ghost:disabled { opacity: .55; }
.btn-ghost:disabled:hover { background: var(--paper); }
.btn-ghost .ic { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-solid.xs, .btn-ghost.xs { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-danger { height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--in); color: var(--in); background: var(--paper); font-weight: 700; }
.btn-danger:hover { background: var(--in-t); }
/* 종이 위 작은 테두리 단추(시안 morning .sm) */
.sm { height: 32px; padding: 0 10px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--paper); font-size: 13px; white-space: nowrap; }
.sm:hover { background: var(--cho-t); }
.sm[aria-expanded="true"] { background: var(--cho-t); border-color: var(--cho); color: var(--cho); font-weight: 700; }
.link-btn { color: var(--cho); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.boot { padding: 40px var(--gut); color: var(--hoe); }

/* ── 머리띠 ───────────────────────────────────── */
.band { background: var(--cho); color: #fff; height: var(--band); display: flex; align-items: center; gap: 32px; padding: 0 var(--gut); }
.band :focus-visible { outline-color: #fff; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand .home { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.brand .home:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
/* 앱 아이콘: 5번 누르면 관리자(숨은 입구라 눌림 표시 없이). 빠른 연속 탭이 확대로 바뀌지 않게 */
.brandbox { display: flex; flex: none; align-items: center; gap: 10px; min-width: 0; }
.logo { display: flex; flex: none; border-radius: 6px; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.logo img, .logo-img { display: block; width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.tools .btn.wide { width: auto; padding: 0 12px; }
#admin .tools { flex-wrap: wrap; justify-content: flex-end; }
.today { display: flex; flex: none; align-items: center; gap: 14px; text-align: left; color: #fff; border-radius: 6px; padding: 4px 10px 4px 4px; margin-left: -4px; }
.today:hover { background: var(--cho-up); }
.stampbig { width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transform: rotate(-6deg); flex: none; }
.stampbig b { font-size: 17px; }
.stampbig span { font-size: 12px; }
.stampbig.old { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .72); }
.today[aria-pressed="true"] .stampbig { background: #fff; color: var(--cho); border-color: #fff; }
.today-text { display: flex; flex-direction: column; }
.t1 { font-size: 14px; color: rgba(255, 255, 255, .86); }
.t2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; min-width: 0; }
/* 홈 머리띠: 좁은 화면에서는 두 묶음을 풀어 전과 같은 줄바꿈(아래 1024px 이상만 세 칸) */
.band-l, .tools-r { display: contents; }
@media (min-width: 1024px) {
  /* 검색칸(최대 400px)을 머리띠 가운데에. 왼쪽 글자가 길어 가운데까지 차면 겹치지 않을 만큼만 오른쪽으로 비킨다 */
  .band-home { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 400px) minmax(max-content, 1fr); column-gap: 24px; }
  .band-home .band-l { display: flex; align-items: center; gap: 32px; }
  .band-home .tools { display: contents; }
  .band-home .search { width: auto; }
  .band-home .tools-r { display: flex; gap: 8px; align-items: center; justify-self: end; }
}
.search { width: 400px; min-width: 0; height: 38px; background: var(--paper); color: var(--hoe); border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; }
.search:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--meok); font-size: 14px; outline: none; }
.search input::placeholder { color: var(--hoe-2); }
.btn { flex: none; height: 38px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; padding: 0 14px 0 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--cho-up); border-color: #fff; }
/* 검색칸 안의 「AI에게 묻기」: 검색칸에 쓴 글이 곧 질문 */
.ask-in { flex: none; height: 30px; padding: 0 10px 0 8px; border-radius: 4px; background: var(--cho); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ask-in:hover { background: var(--cho-up); }
.ask-in .ic { width: 16px; height: 16px; }
/* 엑셀로 받기: 마우스를 올리거나 초점이 오면 무엇이 담기는지 한 줄 */
.has-tip { position: relative; display: inline-flex; }
.tip { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 3; width: 300px; padding: 10px 12px; border-radius: 6px; background: var(--meok); color: #fff; font-size: 13px; line-height: 1.55; box-shadow: 0 8px 24px rgba(20, 40, 32, .25); text-align: left; }
.has-tip:hover .tip, .has-tip:focus-within .tip { display: block; }
.tip b { font-weight: 700; }
.tip .fn { display: block; margin-top: 4px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; word-break: break-all; }

/* 관리자 공지 한 줄(머리띠 바로 아래, 글이 있을 때만) */
.ann { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 5px var(--gut); background: var(--cho-t); border-bottom: 1px solid var(--gwae); font-size: 14px; line-height: 1.4; }
.ann b { color: var(--cho); flex: none; }

/* ── 왼쪽 단 ──────────────────────────────────── */
.wrap { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.mtabs { display: none; }
.side { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; background: var(--paper); border-right: 1px solid var(--gwae); padding: 20px 22px 28px; scrollbar-width: thin; min-height: calc(100vh - var(--band)); }
.side h2 { display: flex; font-size: 12px; color: var(--hoe); font-weight: 700; margin: 0 0 8px; }
.side h2 .num { margin-left: auto; font-weight: 400; }
.blk { margin-bottom: 22px; }
.grps, .orgs, .toc { list-style: none; }
.grp, .org-b, .org-l, .toc .row { width: 100%; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 4px; font-size: 14px; text-align: left; text-decoration: none; }
.grp > span:first-child, .org-b > span:first-child, .org-l > span:first-child, .toc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp:hover, .org-b:hover, .org-l:hover, .toc .row:hover { background: var(--cho-t); }
.grp[aria-pressed="true"], .org-b[aria-pressed="true"], .toc .row[aria-current="page"] { background: var(--cho); color: #fff; font-weight: 700; }
.grp .num, .org-b .num, .toc .num { font-size: 13px; color: var(--hoe); font-weight: 400; }
.grp[aria-pressed="true"] .num, .org-b[aria-pressed="true"] .num, .toc .row[aria-current="page"] .num { color: rgba(255, 255, 255, .86); }
.toc .num b { color: var(--meok); font-weight: 700; }
.toc .row[aria-current="page"] .num b { color: #fff; }
.grps em, .orgs em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--in); font-variant-numeric: tabular-nums; }
[aria-pressed="true"] > em { color: #fff; }
.orgs { margin: 4px 0 0 8px; padding-left: 8px; border-left: 1px solid var(--gwae); }
.orgs:empty { display: none; }
.org-b, .org-l { height: 28px; font-size: 13px; }
.org-l { color: var(--hoe); }
.org-l small { font-size: 12px; }
.org-l .ic { width: 14px; height: 14px; }

.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; height: 32px; margin-bottom: 14px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--cho); flex: none; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chip { display: inline-block; border: 1px solid var(--in); color: var(--in); padding: 2px 9px; font-size: 13px; line-height: 1.45; border-radius: 999px; background: var(--paper); white-space: nowrap; }
button.kw-chip:hover { background: var(--in-t); }
.kw-chip[aria-pressed="true"], .kw-chip.on { background: var(--in); color: #fff; }
.kw-empty { font-size: 13px; color: var(--hoe); line-height: 1.6; }

/* 지난 접수 대장 달력(시안 past-b) */
.past { margin-bottom: 22px; }
.past > summary { list-style: none; cursor: pointer; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--gwae); border-radius: 4px; font-size: 14px; font-weight: 700; }
.past > summary::-webkit-details-marker { display: none; }
.past > summary:hover { background: var(--cho-t); }
.past > summary .num { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--hoe); }
.past .chev { width: 16px; height: 16px; color: var(--cho); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.past:not([open]) .chev { transform: rotate(-90deg); }
.past[open] > summary { border-color: var(--cho); border-radius: 4px 4px 0 0; box-shadow: inset 0 -2px 0 var(--cho); }
@media (prefers-reduced-motion: reduce) { .past .chev { transition: none; } }
.pastin { border: 1px solid var(--gwae); border-top: 0; border-radius: 0 0 4px 4px; padding: 8px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin: 2px 2px 6px; }
.cal-h button { width: 28px; height: 28px; border-radius: 4px; color: var(--cho); display: inline-flex; align-items: center; justify-content: center; }
.cal-h .ic { width: 16px; height: 16px; }
#cal-prev .ic { transform: rotate(90deg); }
#cal-next .ic { transform: rotate(-90deg); }
.cal-h button:hover { background: var(--cho-t); }
.cal-h button:disabled { color: var(--hoe-2); opacity: .45; background: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal .w { font-size: 12px; color: var(--hoe); text-align: center; height: 18px; }
.c { height: 36px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-size: 13px; }
.c i { font-style: normal; font-size: 12px; color: var(--hoe); }
.c:hover { background: var(--cho-t); }
.c.off { color: var(--hoe-2); }
.c:disabled { color: var(--hoe-2); opacity: .45; background: none; }
.c.sel { background: var(--cho); color: #fff; font-weight: 700; }
.c.sel i { color: rgba(255, 255, 255, .86); }
.c.today-c { border: 2px solid var(--in); border-radius: 50%; color: var(--in); font-weight: 700; }
.c.today-c i { color: var(--in); }
.c.today-c.sel { background: var(--in); color: #fff; }
.c.today-c.sel i { color: #fff; }
.legend { font-size: 12px; color: var(--hoe); line-height: 1.5; margin-top: 6px; }

.st summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.st summary::-webkit-details-marker { display: none; }
.st summary h2 { margin: 0 0 8px; }
.st-sum { display: none; font-size: 12px; color: var(--hoe); }
.st:not([open]) .st-sum { display: inline; }
#st-body { font-size: 13px; line-height: 1.6; color: var(--hoe); }
#st-body p + p, #st-body ul + p { margin-top: 6px; }
.bad { color: var(--in); font-weight: 700; }
.fails { list-style: none; }
.fails li { color: var(--meok); }
.fails b { color: var(--in); }
.whobox { margin-top: 4px; }
.who { font-size: 13px; color: var(--hoe); line-height: 1.6; }
.who b { color: var(--meok); word-break: break-all; }
.who .h { display: block; font-size: 12px; color: var(--hoe-2); }
.logout { margin-top: 8px; font-size: 13px; color: var(--hoe); text-decoration: underline; text-underline-offset: 3px; }
.logout:hover { color: var(--meok); }

/* ── 가운데 ───────────────────────────────────── */
.main { padding: 14px var(--gut) 48px; min-width: 0; }
.cap { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 40px; margin-bottom: 6px; }
.tabs { display: flex; gap: 18px; align-items: center; }
.tab { font-size: 18px; font-weight: 700; color: var(--hoe-2); padding: 4px 0; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--meok); }
.tab[aria-pressed="true"] { color: var(--meok); border-bottom-color: var(--cho); }
/* 탭 안의 접수 대장·집계: 작은 칩 모양으로 큰 탭과 구분 */
.subtabs { display: flex; flex-wrap: wrap; gap: 2px; }
.subtab { height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--hoe); }
.subtab:hover { background: var(--cho-t); color: var(--meok); }
.subtab[aria-pressed="true"] { background: var(--cho-t); color: var(--cho); }
.count { font-size: 13px; color: var(--hoe); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--cho-t); color: var(--cho); font-size: 13px; font-weight: 700; }
.chip:hover { background: var(--sk); }
.chip .ic { width: 16px; height: 16px; }
.cmp-btn { margin-left: auto; }
.sort-m { display: none; }

/* ── 오늘 접수 현황 종이(시안 morning) ─────────── */
.sheet { max-width: 940px; background: var(--paper); border: 1px solid var(--gwae); border-radius: 6px; padding: 22px 26px 18px; position: relative; }
#sheet-view { padding-top: 6px; }
#sheet-view .sheet { margin: 0 auto; }
.sh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.sh h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sh .prog { margin-left: auto; font-size: 13px; color: var(--hoe); }
.meta { font-size: 13px; color: var(--hoe); margin-top: 4px; font-variant-numeric: tabular-nums; }
.navs { display: flex; flex-wrap: wrap; gap: 6px; }
.navs .ic { width: 14px; height: 14px; }
.navs .ic.prev { transform: rotate(90deg); margin-right: 2px; }
.navs .ic.next { transform: rotate(-90deg); margin-left: 2px; }
.ghost { height: 32px; padding: 0 10px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--paper); font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; }
.ghost:hover { background: var(--cho-t); }
.ghost:disabled { color: var(--hoe-2); opacity: .6; background: var(--paper); }
.ghost.back { border-color: var(--cho); color: var(--cho); font-weight: 700; }
.oldstamp { margin-left: auto; width: 70px; height: 46px; border: 1.5px solid #a3aea8; border-radius: 50%; color: var(--hoe-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transform: rotate(-8deg); flex: none; }
.oldstamp b { font-size: 14px; }
.oldstamp span { font-size: 11px; font-weight: 700; }
.rep { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 14px; }
.rep th { height: 36px; padding: 0 10px; background: var(--cho-th); box-shadow: inset 0 -2px 0 var(--cho); font-size: 13px; font-weight: 700; color: var(--hoe); text-align: left; white-space: nowrap; }
.rep .c-k { width: 86px; } .rep .c-n { width: 104px; } .rep .c-t { width: 184px; } .rep .c-a { width: 248px; }
.rep td { padding: 11px 10px; border-bottom: 1px solid var(--gwae); font-size: 14px; line-height: 1.5; vertical-align: middle; }
.rep td.a { padding-right: 0; }
.rep tbody tr:hover td { background: #f4f7f5; }
.cnt { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 13px; color: var(--hoe); }
.cnt b { font-size: 14px; color: var(--meok); text-align: right; }
.cnt b.z { color: var(--hoe-2); font-weight: 400; }
.tt a { display: block; font-size: 13px; color: var(--hoe); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.tt a:hover { text-decoration: underline; text-decoration-color: var(--cho); text-underline-offset: 3px; }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* 확인한 줄: 지우지 않고 회색 점선 '확인' 도장 */
tr.done td, tr.done .cnt b, tr.done .tt a { color: var(--hoe-2); }
tr.done .kw-chip { border-color: #a3aea8; color: var(--hoe-2); }
.ok { width: 66px; height: 40px; margin-left: 10px; border: 1.5px dashed #a3aea8; border-radius: 50%; color: var(--hoe-2); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transform: rotate(-8deg); font-variant-numeric: tabular-nums; }
.ok b { font-size: 13px; }
.ok span { font-size: 11px; font-weight: 700; }
.ok:hover { border-color: var(--cho); color: var(--cho); background: var(--cho-t); }
.sf { display: flex; align-items: flex-end; gap: 24px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--gwae); }
.sf p { flex: 1; font-size: 12px; color: var(--hoe); line-height: 1.6; }
.solid { flex: none; height: 40px; padding: 0 18px; border-radius: 4px; background: var(--cho); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.solid:hover { background: var(--cho-up); }

/* 줄 아래 펼침: 내용 요약(시안 morning-요약) */
.rep tr.open td { background: var(--cho-th); }
.rep tr.x td { background: var(--cho-th); padding: 0 14px 14px; }
.rep tr.x:hover td { background: var(--cho-th); }
.xh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--hoe); }
.xh b { font-size: 15px; color: var(--meok); }
.xm { font-size: 13px; margin-top: 6px; }
.xw { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--hoe); margin-top: 4px; line-height: 1.5; }
.xw .ic { width: 16px; height: 16px; color: var(--cho); margin-top: 1px; }
.sx { list-style: none; margin-top: 10px; background: var(--paper); border: 1px solid var(--gwae); border-radius: 4px; }
.sx > li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; padding: 10px 14px 11px; }
.sx > li + li { border-top: 1px solid var(--gwae); }
.sx .o b { display: block; font-size: 13px; color: var(--cho); }
.sx .o .num { display: block; font-size: 13px; color: var(--hoe); margin-top: 2px; }
.sx .o .kind { margin-top: 4px; }
.ti { font-size: 15px; font-weight: 700; text-decoration: none; }
.ti:hover { text-decoration: underline; text-decoration-color: var(--cho); text-underline-offset: 3px; }
.ti:visited { color: var(--hoe); }
.ti .ic { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; color: var(--hoe); }
.sx ul, .lsx { list-style: none; margin-top: 3px; }
.sx ul li, .lsx li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.55; white-space: normal; }
.sx ul li::before, .lsx li::before { content: "-"; position: absolute; left: 3px; color: var(--hoe); }
.none { font-size: 13px; color: var(--hoe); margin-top: 3px; }
.xload { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 10px; }
.xload .ic { color: var(--cho); }
.xerr { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--in); border-radius: 4px; background: var(--paper); color: var(--in); font-size: 14px; }
.xerr .ic { margin-top: 1px; }
.nokey { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--paper); font-size: 14px; }
.nokey p { flex: 1 1 280px; }
.more { display: block; margin: 12px auto 0; height: 40px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--gwae); background: var(--paper); font-size: 14px; color: var(--cho); font-weight: 700; }
.more:hover { background: var(--cho-t); border-color: var(--cho); }
.more:disabled { opacity: .6; }

/* ── 접수 대장 ────────────────────────────────── */
/* 열 너비는 머리 칸에 둔다(table-layout: fixed). 게시판 열을 숨겨도 나머지가 어긋나지 않게 colgroup은 쓰지 않는다 */
.ledger { width: 100%; border-collapse: collapse; table-layout: fixed; }
.c-s { width: 76px; } .c-o { width: 132px; } .c-b { width: 184px; } .c-d { width: 108px; }
.ledger th { position: sticky; top: 0; z-index: 1; font-size: 13px; color: var(--hoe); font-weight: 700; text-align: left; height: 36px; padding: 0 10px; background: var(--cho-th); box-shadow: inset 0 -2px 0 var(--cho); white-space: nowrap; }
.ledger th button { display: inline-flex; align-items: center; gap: 2px; height: 28px; font-weight: 700; color: inherit; margin-left: -4px; padding: 0 4px; border-radius: 2px; }
.ledger th button:hover { color: var(--meok); background: var(--cho-t); }
.ledger th .ic { width: 14px; height: 14px; opacity: 0; }
.ledger th[aria-sort] { color: var(--cho); }
.ledger th[aria-sort] .ic { opacity: 1; }
.ledger th[aria-sort="ascending"] .ic { transform: rotate(180deg); }
.ledger th.d, .ledger th.r { text-align: right; }
.ledger th.d button { margin: 0 -4px 0 0; }
.ledger td { height: 37px; border-bottom: 1px solid var(--gwae); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger tbody tr:hover td { background: #f4f7f5; }
.ledger td.s { padding: 0; overflow: visible; }
.ledger td.org { font-weight: 700; color: var(--cho); font-size: 14px; }
.ledger td.b { font-size: 13px; color: var(--hoe); }
.ledger td.d { text-align: right; font-size: 14px; color: var(--hoe); font-variant-numeric: tabular-nums; }
.ledger td.r { text-align: right; font-variant-numeric: tabular-nums; }
.ledger td.t a { text-decoration: none; }
.ledger td.t a:hover { text-decoration: underline; text-decoration-color: var(--cho); text-underline-offset: 3px; }
.ledger td.t a:visited { color: var(--hoe); }
.tc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-b { flex: none; height: 24px; padding: 0 8px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--paper); font-size: 12px; font-weight: 700; color: var(--cho); }
.sum-b:hover, .sum-b[aria-expanded="true"] { background: var(--cho-t); border-color: var(--cho); }
.ledger tr.sumrow td { height: auto; padding: 4px 14px 12px 86px; background: var(--cho-th); white-space: normal; overflow: visible; }
.ledger tr.sumrow:hover td { background: var(--cho-th); }
.lsx { margin: 6px 0 8px; }
tr.new td.t a { font-weight: 700; }
mark { background: var(--in-t); color: var(--in); font-weight: 700; padding: 0 2px; border-radius: 2px; }

/* 접수 도장: 기울어진 타원. 새 접수는 인주, 지난 접수는 바랜 도장 */
.stamp { width: 50px; height: 30px; margin-left: 12px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--in); border-radius: 50%; color: var(--in); font: 700 11.5px/1 var(--font); font-variant-numeric: tabular-nums; transform: rotate(-8deg); vertical-align: middle; }
.stamp:hover { background: var(--in-t); }
.stamp.old { border-color: #a3aea8; color: var(--hoe-2); border-width: 1.5px; }
.stamp.old:hover { background: var(--cho-t); color: var(--cho); border-color: var(--cho); }
tbody tr:nth-child(3n+1) .stamp { transform: rotate(-10deg); }
tbody tr:nth-child(3n+2) .stamp { transform: rotate(-5deg) translateX(1px); }
.pre { display: block; margin-left: 22px; width: 18px; border-top: 1px solid var(--gwae); }
tr.sk td::after { content: ""; display: block; height: 10px; border-radius: 2px; background: var(--sk); }
tr.sk td.s::after { width: 46px; margin-left: 12px; }
tr.sk td.t::after { width: 70%; }

.empty { padding: 36px 4px; color: var(--hoe); line-height: 1.7; max-width: 60ch; }
.empty strong { display: block; color: var(--meok); font-size: 15px; margin-bottom: 4px; }
.empty .btn-ghost { margin-top: 12px; height: 36px; }

/* 기타: 못 모으는 게시판 바로가기 */
.etc-note { font-size: 13px; color: var(--hoe); margin: 2px 0 10px; }
.c-k { width: 92px; } .c-w { width: 260px; }
.kind { display: inline-block; height: 22px; padding: 0 8px; border: 1px solid var(--cho); border-radius: 999px; color: var(--cho); font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.kind.press, .kind.p { background: var(--cho); color: #fff; }
.kind.bad { border-color: var(--in); color: var(--in); }
.kind.wait { border: 1px dashed #a3aea8; color: var(--hoe); }
.ledger td.w { font-size: 13px; color: var(--hoe); }
.ledger td.t a .ic { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; color: var(--hoe); }

/* 집계 */
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 44px; padding-top: 14px; }
.tal h2, .tal h3 { font-size: 15px; font-weight: 700; }
.tal h3 { display: inline; }
.tal .note { font-size: 12px; color: var(--hoe); margin: 2px 0 12px; }
.tal h3 + .note { margin-left: 8px; }
.bars { list-style: none; border-top: 2px solid var(--cho); }
.bars li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 48px; align-items: center; gap: 10px; height: 30px; border-bottom: 1px solid var(--gwae); font-size: 13px; }
.bars .lb { color: var(--hoe); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .bar { height: 12px; }
.bars .bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--cho); border-radius: 0 4px 4px 0; }
.bars .n, .bars .m { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .m { color: var(--hoe); }
.bars li.now .lb, .bars li.now .n { color: var(--meok); font-weight: 700; }
.bars li.zero .n { color: var(--hoe-2); }
.kwt { width: 100%; border-collapse: collapse; font-size: 13px; }
.kwt th { text-align: left; color: var(--hoe); font-weight: 700; height: 32px; box-shadow: inset 0 2px 0 var(--cho); border-bottom: 1px solid var(--gwae); padding: 0 8px; }
.kwt td { height: 32px; border-bottom: 1px solid var(--gwae); padding: 0 8px; font-variant-numeric: tabular-nums; }
.kwt th:not(:first-child), .kwt td:not(:first-child) { text-align: right; }
.kwt button { color: var(--in); font-weight: 700; text-decoration: underline; text-decoration-color: var(--in-t); text-underline-offset: 3px; }
.kwt button:hover { text-decoration-color: currentColor; }

/* ── AI에게 묻기·시도별 비교 ─────────────────────── */
.aist { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; max-width: 940px; padding: 10px 14px; margin: 10px 0 12px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--cho-th); font-size: 14px; line-height: 1.5; }
.aist .ic { flex: none; color: var(--cho); }
.aist .el, .xload .el { flex: none; font-size: 13px; color: var(--hoe); }  /* AI 진행 시간(0.73) */
.aist > span { flex: 1 1 260px; }
.aist.bad { border-color: var(--in); background: var(--paper); color: var(--in); }
.aist.bad .ic { color: var(--in); }
.aist.info { background: var(--paper); }
.ask-h { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 4px 0 12px; }
.ask-t { font-size: 18px; font-weight: 700; padding: 4px 0; border-bottom: 2px solid var(--cho); }
.ask-note { font-size: 13px; color: var(--hoe); margin: 0 0 10px; max-width: 940px; }
.qbox { max-width: 940px; margin-bottom: 8px; }
.qbox .lb { font-size: 13px; }
.qbox .q { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; margin-top: 2px; }
.turn { max-width: 940px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--gwae); }
.turn .qbox .q { font-size: 15px; }
.ans { margin-top: 8px; }
.ans p { font-size: 15px; line-height: 1.75; }
.ans p + p { margin-top: 10px; }
.ans.past { padding: 12px 16px; }
.ans.past p { font-size: 14px; line-height: 1.65; color: var(--hoe); }
.sheet-f { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--gwae); font-size: 12px; color: var(--hoe); line-height: 1.6; max-width: 940px; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; margin: 0 1px; border-radius: 999px; background: var(--cho-t); color: var(--cho); font-size: 12px; font-weight: 700; text-decoration: none; vertical-align: 1px; font-variant-numeric: tabular-nums; }
a.cite:hover { background: var(--cho); color: #fff; }
.more-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; max-width: 940px; margin: 14px 0 6px; }
.more-q input { height: 40px; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 0 12px; font-size: 15px; background: var(--paper); }
.more-q input:focus { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.more-q .note { grid-column: 2 / -1; font-size: 12px; color: var(--hoe); }
.c-n { width: 52px; }
.ledger td.n { font-weight: 700; color: var(--cho); font-variant-numeric: tabular-nums; }
.ledger tr.unused td, .ledger tr.unused td.org, .ledger tr.unused td.n { color: var(--hoe); }
.ledger tr:target td { background: var(--cho-t); }
.tonly { display: inline-block; height: 20px; padding: 0 8px; margin-left: 6px; border: 1px solid var(--gwae); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--hoe); line-height: 18px; vertical-align: 2px; white-space: nowrap; }
.srcs-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 22px 0 6px; max-width: 940px; }
.srcs-h h3 { font-size: 15px; font-weight: 700; }
.srcs-h .num { font-size: 13px; color: var(--hoe); }
.hlist { list-style: none; max-width: 940px; border-top: 2px solid var(--cho); }
.hlist > li { border-bottom: 1px solid var(--gwae); }
.hlist summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 4px; font-size: 14px; }
.hlist summary::-webkit-details-marker { display: none; }
.hlist summary:hover { background: #f4f7f5; }
.hlist summary .num { color: var(--hoe); font-size: 13px; }
.hlist summary small { color: var(--hoe); font-size: 12px; }
.hlist details[open] summary { background: var(--cho-th); }
.hlist .ans { padding: 6px 4px 10px; }
.hsrc { list-style: none; margin: 0 4px 12px; border-top: 1px solid var(--gwae); }
.hsrc li { display: grid; grid-template-columns: 28px 112px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--gwae); }
.hsrc .n { color: var(--cho); font-weight: 700; }
.hsrc .o { color: var(--cho); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsrc a { text-decoration: none; }
.hsrc a:hover { text-decoration: underline; text-decoration-color: var(--cho); text-underline-offset: 3px; }
.cmp-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; max-width: 940px; padding: 12px 14px; border: 1px solid var(--gwae); border-radius: 6px; background: var(--paper); }
.cmp-f select, .pickrow select { height: 36px; min-width: 140px; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 0 8px; background: var(--baek); font-size: 14px; }
.cmp-f .btn-solid { margin-left: auto; }
#cmp-meta { margin-top: 10px; max-width: 940px; }
#cmp-ext { max-width: 940px; }
.ledger.cmp { max-width: 940px; }
.ledger.cmp td { height: auto; padding-top: 8px; padding-bottom: 8px; vertical-align: top; }
.ledger.cmp td.w { white-space: normal; color: var(--meok); font-size: 14px; line-height: 1.55; }
.c-ref { width: 112px; }
.ledger.cmp td.refs { white-space: normal; }
.att-l { list-style: none; max-width: 940px; }
.att-l li { display: grid; grid-template-columns: 34px 112px minmax(0, 1fr) 92px; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--gwae); font-size: 14px; }
.att-l li:target { background: var(--cho-t); }
.att-l .n { font-weight: 700; color: var(--cho); font-variant-numeric: tabular-nums; }
.att-l .o { font-size: 13px; font-weight: 700; color: var(--cho); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-l .d { text-align: right; color: var(--hoe); font-size: 13px; font-variant-numeric: tabular-nums; }
.att-l a { text-decoration: none; }
.att-l a:hover { text-decoration: underline; text-decoration-color: var(--cho); text-underline-offset: 3px; }
.att-l a:visited { color: var(--hoe); }

/* ── 팝업(설정·관리자) ─────────────────────────── */
.pop { margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 18px; border: 1px solid var(--gwae); border-radius: 6px; background: var(--paper); color: var(--meok); box-shadow: 0 16px 40px rgba(20, 40, 32, .2); }
.pop::backdrop { background: rgba(26, 26, 26, .28); }
.pop h2 { font-size: 18px; font-weight: 700; }
.pop-sub { font-size: 13px; color: var(--hoe); margin: 4px 0 14px; line-height: 1.55; }
.pop-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 6px; }
.pop-row.wrap { flex-wrap: wrap; }
.pop-row .left { margin-right: auto; }
.pop-note { font-size: 13px; color: var(--hoe); min-height: 19px; margin: 4px 0 2px; line-height: 1.55; }
.pop-row + .pop-note { margin: 10px 0 0; }
.forgot { padding-top: 10px; border-top: 1px dashed var(--gwae); }
/* 관리자 창 입력칸: 16px라야 휴대폰이 누를 때 확대하지 않는다 */
.pop input:not([type="checkbox"]) { display: block; width: 100%; height: 42px; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 0 12px; margin-bottom: 12px; font-size: 16px; background: var(--baek); }
.pop input:not([type="checkbox"]):focus { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.pop-wide { width: min(600px, calc(100vw - 32px)); }
.set-foot:not([data-tab="kw"]) #kw-save, .set-foot:not([data-tab="ai"]) #ai-save { display: none; }
#set-pop .err:empty, #set-pop .pop-note:empty { min-height: 0; margin: 0; }
#set-pop .set-foot { margin-top: 14px; }
.pop .mine { font-size: 13px; color: var(--hoe); margin: 4px 0 12px; line-height: 1.55; word-break: break-all; }
.typebar { display: flex; gap: 2px; margin-bottom: 12px; flex-wrap: wrap; }
.typebar .subtab { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
/* 설정 「AI」 회사 장부(0.75 사용자 선택 — 시안 .impeccable/mocks/decision/075/ledger.html): 위 고를 수 있는 모델, 아래 회사 4줄 */
.sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 2px 0 6px; }
.sec-h h3 { font-size: 15px; font-weight: 700; }
.sec-h small { font-size: 12px; color: var(--hoe); }
#set-ai .sec-h ~ .sec-h { margin-top: 20px; }
.mlist { border: 0; border-top: 2px solid var(--cho); min-width: 0; }
.mlist .gh { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; align-items: center; min-height: 26px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--hoe); background: var(--baek); border-bottom: 1px solid var(--gwae); }
.mlist .mi { display: grid; grid-template-columns: 18px minmax(0, 1fr) 92px 82px; align-items: center; gap: 0 8px; min-height: 38px; padding: 4px 8px; border-bottom: 1px solid var(--gwae); font-size: 14px; cursor: pointer; }
.mlist .mi:hover { background: var(--cho-t); }
.mlist .mi.on { background: var(--cho-th); }
.mlist .mi input { width: 16px; height: 16px; margin: 0; accent-color: var(--cho); }
.mlist .mi b small { font-size: 12px; font-weight: 400; color: var(--hoe); margin-left: 2px; white-space: nowrap; }
.mlist .mi b small.pick { color: var(--cho); font-weight: 700; }
.mlist .r { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.mnone { font-size: 13px; line-height: 1.6; padding: 9px 11px; border: 1px dashed var(--gwae-in); border-radius: 4px; color: var(--hoe); }
.ledg { list-style: none; border-top: 2px solid var(--cho); }
.ledg > li { border-bottom: 1px solid var(--gwae); }
.ledg > li.open { background: var(--cho-th); }
.ledg .row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; font-size: 14px; }
.ledg .lst { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ledg .sm { display: inline-flex; align-items: center; gap: 4px; }
.ledg .sm .ic { width: 14px; height: 14px; }
.ledg .sm[aria-expanded="true"] .ic { transform: rotate(180deg); }
.tail { font-size: 13px; color: var(--hoe); }
.tag { display: inline-block; height: 20px; padding: 0 7px; border: 1px solid var(--gwae-in); border-radius: 999px; color: var(--hoe); font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.tag.inuse { border-color: var(--cho); background: var(--cho); color: #fff; }
.tag.free { border-color: var(--cho); color: var(--cho); }
.tag.no { border-style: dashed; }
.how { margin: 0 8px 10px; padding: 12px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--paper); }
.how .hh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; font-size: 13px; }
.go { display: inline-flex; align-items: center; gap: 4px; color: var(--cho); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.go .ic { width: 14px; height: 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 7px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.5; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--cho); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.how .hf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.how .hf .btn-danger { margin-right: auto; }
.how .hf button { height: 36px; }
/* 무료 등급 데이터 조건(Gemini) — 빨간 주의(사용자 결정 11-24) */
.xw.redw { color: var(--meok); background: var(--in-t); border: 1px solid var(--in); border-radius: 4px; padding: 7px 9px; }
.xw.redw .ic { color: var(--in); }
.chk.own { height: auto; align-items: flex-start; font-size: 15px; line-height: 1.5; margin: 6px 0 8px; }
.chk.own input { margin-top: 3px; width: 18px; height: 18px; }
.chk.own small { display: block; font-size: 13px; color: var(--hoe); }
.own-h { font-size: 14px; color: var(--hoe); margin: 4px 0 6px; }
.own-h b { color: var(--meok); }
.use { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 6px 0 12px; font-size: 14px; border-top: 2px solid var(--cho); padding-top: 10px; }
.use dt { color: var(--hoe); font-weight: 700; font-size: 13px; }
.use dd { font-weight: 700; }

/* 키워드 넣기(처음 설정·설정 창) */
.kw-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 6px 8px; background: var(--baek); }
.kw-in:focus-within { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.kw-chips { display: contents; }
.kw-in .kw-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 10px; border-radius: 14px; }
.kw-in .kw-chip button { display: inline-flex; color: inherit; border-radius: 50%; }
.kw-in .kw-chip .ic { width: 14px; height: 14px; }
.kw-in input, .pop .kw-in input:not([type="checkbox"]) { flex: 1; min-width: 120px; height: 28px; margin: 0; padding: 0; border: 0; background: none; font-size: 15px; outline: none; display: block; width: auto; }
.pop .kw-in input:focus { outline: none; }
.kw-count { font-size: 12px; color: var(--hoe); margin-top: 4px; }
.sugg-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.sugg-h .note { font-size: 13px; color: var(--hoe); }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.sugg:empty { display: none; }
.sugg .add { height: 28px; padding: 0 10px; border: 1px dashed var(--cho); border-radius: 14px; color: var(--cho); font-size: 13px; font-weight: 700; background: var(--paper); }
.sugg .add:hover { background: var(--cho-t); }
.setup-f { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.setup-f .note { font-size: 12px; color: var(--hoe); margin-right: auto; line-height: 1.5; }
.setup-f .btn-solid { flex: none; min-width: 96px; height: 44px; font-size: 15px; }

/* ── 로그인 쪽지 ──────────────────────────────── */
.band-login { justify-content: flex-start; }
.slip { width: min(380px, calc(100vw - 32px)); margin: 72px auto 40px; background: var(--paper); border: 1px solid var(--gwae); border-radius: 6px; padding: 28px 28px 22px; }
.slip h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.slip-sub { font-size: 14px; color: var(--hoe); margin: 6px 0 22px; line-height: 1.6; }
.slip .btn-solid { width: 100%; height: 46px; font-size: 15px; }
.slip-wide { width: min(560px, calc(100vw - 32px)); }
.slip-wide .btn-solid { width: auto; }
.slip-note { font-size: 12px; color: var(--hoe); margin-top: 12px; text-align: center; line-height: 1.55; }
.btn-ghost.wide { width: 100%; height: 44px; font-size: 15px; font-weight: 700; color: var(--cho); }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 12px; color: var(--hoe); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--gwae); }
.state { display: grid; gap: 2px; margin: 4px 0 2px; padding: 10px 12px; border: 1px solid var(--gwae); border-radius: 4px; background: var(--cho-th); font-size: 14px; line-height: 1.5; }
.state b { font-size: 15px; color: var(--cho); }
.fld { margin-bottom: 12px; }
.fld label { display: block; font-size: 13px; font-weight: 700; color: var(--hoe); margin-bottom: 5px; }
.fld input { width: 100%; height: 44px; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 0 12px; font-size: 16px; background: var(--baek); }
.fld input:focus { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.fld input[aria-invalid="true"] { border-color: var(--in); }
.fld input::placeholder { color: var(--hoe-2); }
.fld .sub { font-size: 12px; color: var(--hoe); margin-top: 4px; line-height: 1.5; }
.warn { font-size: 13px; line-height: 1.6; background: var(--cho-th); border: 1px solid var(--gwae); border-radius: 4px; padding: 9px 11px; }

/* ── 가입 신청: 두 단 쪽지(시안 folder-가입) ─────── */
.jslip { width: min(1040px, calc(100vw - 2 * var(--gut))); margin: 12px auto 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--gwae); border-radius: 6px; overflow: hidden; }
.jslip[data-step="2"] { height: max(560px, min(760px, calc(100vh - 140px))); }
.lc { background: var(--baek); border-right: 1px solid var(--gwae); padding: 24px 20px; display: flex; flex-direction: column; }
.lc h1 { font-size: 18px; font-weight: 700; }
.lc .me { font-size: 13px; color: var(--hoe); margin-top: 2px; word-break: break-all; min-height: 19px; }
.vs { list-style: none; margin-top: 24px; }
.vs li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding-bottom: 24px; }
.vs li:not(:last-child)::before { content: ""; position: absolute; left: 10.5px; top: 27px; bottom: 5px; border-left: 1px solid var(--gwae); }
.vs b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gwae); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--hoe); font-variant-numeric: tabular-nums; }
.vs b .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.vs .nm { font-size: 14px; color: var(--hoe); line-height: 22px; }
.vs small { grid-column: 2; font-size: 12px; color: var(--hoe); line-height: 1.5; }
.vs .done b { border-color: var(--cho); color: var(--cho); }
.vs .done .nm { color: var(--meok); }
.vs .on b { background: var(--cho); border-color: var(--cho); color: #fff; }
.vs .on .nm { color: var(--meok); font-weight: 700; }
.lc .warn { margin-top: auto; }
.lnote { font-size: 12px; color: var(--hoe); line-height: 1.6; margin-top: 12px; }
.rc { display: flex; flex-direction: column; min-height: 0; }
.jbody { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 20px; scrollbar-width: thin; }
.jbody h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.jbody h2:focus { outline: none; }
.jbody .sub { font-size: 14px; color: var(--hoe); margin-top: 4px; line-height: 1.55; }
.jfields { max-width: 420px; margin-top: 20px; }
.jdone { list-style: none; margin-top: 18px; max-width: 620px; border-top: 2px solid var(--cho); }
.jdone li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--gwae); position: relative; font-size: 15px; line-height: 1.6; }
.jdone li::before { content: "○"; position: absolute; left: 0; color: var(--cho); font-weight: 700; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; margin-top: 16px; align-items: start; }
.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb caption { caption-side: top; text-align: left; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tb caption small { font-size: 12px; font-weight: 400; color: var(--hoe); margin-left: 6px; }
.tb th { background: var(--cho-th); color: var(--hoe); font-weight: 700; text-align: left; height: 32px; padding: 0 8px; box-shadow: inset 0 -2px 0 var(--cho); white-space: nowrap; }
.tb td { padding: 5px 8px; border-bottom: 1px solid var(--gwae); line-height: 1.45; vertical-align: top; }
.tb td:first-child { font-weight: 700; }
.tb .no { color: var(--hoe-2); }
.tb .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.tb th.r { text-align: right; }
.tb small { font-size: 12px; font-weight: 400; color: var(--hoe); margin-left: 4px; }
.tb small.pick { color: var(--cho); font-weight: 700; }
.tb tr.gap td { border-top: 1px solid var(--gwae); }
.tb tr.on td { background: var(--cho-th); }
.ftb { table-layout: fixed; }
.ftb .w1 { width: 116px; } .ftb .w3 { width: 84px; }
.tnote { font-size: 12px; color: var(--hoe); margin-top: 6px; line-height: 1.5; }
.pickrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
.pickrow .lb { width: 44px; white-space: nowrap; }
.aipick .xw { margin: 0 0 12px; }  /* 회사 주의는 모델 바로 아래 — 표 위(가입 PC 첫 화면에 보이게) */
.tb.cost .nw { white-space: nowrap; }  /* 모델 이름이 「Flash-/Lite」처럼 붙임표에서 쪼개지지 않게(마감 검토) */
.tb.cost .amt { white-space: nowrap; }  /* 금액은 한 덩이(휴대폰 「약/7.5원」 쪼개짐 — 마감 검토) */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--gwae); border-radius: 6px; padding: 3px; background: var(--baek); }
.seg button { height: 30px; padding: 0 12px; border-radius: 4px; font-size: 13px; font-weight: 700; color: var(--hoe); white-space: nowrap; }
.seg button:hover { color: var(--meok); }
.seg button[aria-pressed="true"] { background: var(--cho); color: #fff; }
.iss { margin-top: 20px; }
.ih { display: flex; align-items: baseline; gap: 10px; }
.ih h3 { font-size: 15px; font-weight: 700; }
.ih .note { font-size: 13px; color: var(--cho); font-weight: 700; }
.shots { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.shots a { display: block; border: 1px solid var(--gwae); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.shots a:hover { border-color: var(--cho); }
.shots img { display: block; width: 100%; height: auto; }
.shots p { font-size: 13px; margin-top: 6px; line-height: 1.45; }
.shots p b { color: var(--cho); margin-right: 4px; }
.keylinks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; }
.keylinks a { display: inline-flex; align-items: center; gap: 3px; color: var(--meok); text-decoration: underline; text-underline-offset: 3px; }
.keylinks a.on { color: var(--cho); font-weight: 700; }
.keylinks a:hover { color: var(--cho); }
.keylinks .ic { width: 14px; height: 14px; }
/* 캡처 크게 보기: 화면 가운데, 뒤 화면은 먹 .72로 덮고 아무 데나 누르면 닫힘 */
.shotpop { position: fixed; margin: auto; padding: 0; border: 0; background: none; overflow: visible; max-width: calc(100vw - 32px); cursor: zoom-out; }
.shotpop::backdrop { background: rgba(26, 26, 26, .72); }
.shotpop img { display: block; width: auto; height: auto; max-width: min(1280px, calc(100vw - 32px)); max-height: calc(100vh - 128px); border: 1px solid var(--gwae); border-radius: 6px; background: var(--baek); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.shotpop p { margin-top: 8px; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; }
.shot-x { position: absolute; top: -44px; right: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--meok); color: #fff; cursor: pointer; }
.shot-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jfoot { border-top: 1px solid var(--gwae); padding: 12px 24px 14px; background: var(--paper); }
.jfoot .err { margin: 2px 0 6px; }
.fr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fr .btn-solid, .fr .btn-ghost { height: 44px; min-width: 96px; }
.fr #j-next { margin-left: auto; }
.fr .push + #j-next { margin-left: 0; }
/* 키 넣기 줄(가입·설정 공용) */
.keyrow { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto minmax(0, 210px); align-items: center; gap: 10px; }
.keyrow label { font-size: 13px; font-weight: 700; color: var(--hoe); }
.keyrow input { height: 44px; min-width: 0; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 0 12px; font-size: 16px; background: var(--baek); }
.keyrow input:focus { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.keyrow input::placeholder { color: var(--hoe-2); font-size: 14px; }
.keyrow .btn-ghost { height: 44px; }
.kst { font-size: 12px; color: var(--hoe); line-height: 1.4; }
.kst b { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--cho); }
.kst b .ic { width: 16px; height: 16px; }
.kst.bad { color: var(--in); font-size: 13px; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; margin-top: 10px; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--cho); flex: none; margin-top: 2px; }
.pop .keyrow { grid-template-columns: minmax(0, 1fr) auto; margin-top: 12px; }
.pop .keyrow label { grid-column: 1 / -1; }
.pop .keyrow input:not([type="checkbox"]) { height: 44px; margin: 0; }
.pop .keyrow .kst { grid-column: 1 / -1; }
.pop .xw { margin: 10px 0 4px; }

/* ── 관리자(시안 folder-관리자) ───────────────────── */
.adm-side .blk { margin-bottom: 18px; }
.adm-main { padding-top: 16px; }
.figs { display: flex; align-items: flex-end; flex-wrap: wrap; row-gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--gwae); }
.fig { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--gwae); }
.fig:nth-child(6) { border-right: 0; }
.fig .fl { display: block; font-size: 13px; font-weight: 700; color: var(--hoe); }
.fig b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.fig .u { font-size: 14px; margin-left: 2px; }
.fig small { display: block; font-size: 12px; color: var(--hoe); font-variant-numeric: tabular-nums; }
.fig-r { margin-left: auto; font-size: 12px; color: var(--hoe); }
.adm-tally { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 36px; padding-top: 16px; }
.ubars li { grid-template-columns: 62px minmax(0, 1fr) 38px 56px; gap: 8px; height: 24px; }
.adm-main .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 44px; margin-top: 22px; }
.adm-main .duo > .appr:only-child, .adm-main .duo .adm-stats[hidden] + .appr { grid-column: 1 / -1; max-width: 640px; }
.rank { display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 28px; }
.rank li { grid-template-columns: 100px minmax(0, 1fr) 40px; height: 26px; }
.rank .lb i { font-style: normal; display: inline-block; width: 18px; color: var(--hoe); }
.rank .lb b { color: var(--in); }
.rank li.zero { grid-column: 1 / -1; }
.appr { border: 1px solid var(--gwae); border-radius: 6px; background: var(--paper); padding: 12px 16px 6px; }
.ah { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ah h3 { font-size: 15px; font-weight: 700; margin-right: auto; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini td { height: 34px; border-top: 1px solid var(--gwae); padding: 0 6px; }
.mini td:first-child { width: 28px; padding-left: 0; }
.mini input { width: 16px; height: 16px; accent-color: var(--cho); display: block; }
.mini .em { word-break: break-all; }
.mini .tm { text-align: right; color: var(--hoe); font-size: 13px; white-space: nowrap; }
.mini td.none, .ledger td.none { color: var(--hoe); font-size: 13px; }
.mh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 24px 0 6px; }
.mh h3 { font-size: 15px; font-weight: 700; }
.mh .num { font-size: 12px; color: var(--hoe); }
.members .c-st { width: 88px; } .members .c-ap { width: 98px; } .members .c-ls { width: 112px; } .members .c-mn { width: 104px; }
.members .c-dy { width: 76px; } .members .c-n2 { width: 52px; } .members .c-key { width: 78px; } .members .c-act { width: 76px; }
.ledger.members tbody tr { cursor: pointer; }
.ledger.members tr[aria-current="true"] td { background: var(--cho-th); }
.ledger td.e { font-weight: 700; }
.ledger td.e small { font-size: 12px; font-weight: 400; color: var(--hoe); margin-left: 6px; }
.ledger td.e .kind { margin-left: 8px; vertical-align: 1px; }  /* 회원 장부의 「관리자」·「최초 관리자」 칩(0.72) */
.ledger td.dt { font-size: 13px; color: var(--hoe); }
.ledger td .no, .ledger td.no { color: var(--hoe-2); }
.ledger td.act { padding-right: 0; }
.ledger .btn-ghost.xs { height: 28px; padding: 0 10px; }
.adm-dels { margin-top: 10px; }
.dels .c-tm { width: 140px; }
.ntc h2 label { cursor: pointer; }
.ntc textarea { display: block; width: 100%; border: 1px solid var(--gwae-in); border-radius: 4px; padding: 8px 10px; font-size: 16px; line-height: 1.55; resize: vertical; background: var(--baek); }
.ntc textarea:focus { outline: 2px solid var(--cho); outline-offset: 0; border-color: var(--cho); }
.ann-count { font-size: 12px; color: var(--hoe); margin-top: 5px; line-height: 1.5; }
.ntc .err:empty { min-height: 0; margin: 0; }
.ntc-b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.c-tm { width: 112px; } .c-ip { width: 150px; } .c-pp { width: 220px; } .c-dv { width: 150px; }
.ledger td.tm { font-size: 14px; color: var(--meok); }
.ledger td.ip { font-size: 13px; color: var(--hoe); }
.ledger td.dtl { font-size: 13px; color: var(--hoe); }
.ledger td.dv { font-size: 14px; }
.adm-kinds { margin: 2px 0 8px; }
/* 회원 쪽지 */
.person { width: min(460px, calc(100vw - 32px)); }
.person h2 { word-break: break-all; }
.person dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; font-size: 14px; margin: 10px 0 14px; }
.person dt { color: var(--hoe); font-weight: 700; font-size: 13px; }
.person dd .kw-chip { padding: 0 7px; font-size: 12px; margin: 0 3px 3px 0; }
.hist { list-style: none; font-size: 13px; border-top: 2px solid var(--cho); margin-bottom: 14px; max-height: 240px; overflow: auto; }
.hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gwae); }
.hist .t { color: var(--hoe); }
.temp { font-size: 14px; padding: 10px 12px; border: 1px dashed var(--cho); border-radius: 4px; background: var(--cho-th); margin-bottom: 12px; line-height: 1.6; }
.temp code { font: 700 18px/1 var(--font); letter-spacing: .08em; color: var(--cho); font-variant-numeric: tabular-nums; background: none; border: 0; padding: 0; }
/* PC: 회원 쪽지는 장부 오른쪽에 붙인 쪽지 — 장부를 가리지 않고 고른 줄이 칠해진다 */
@media (min-width: 760px) {
  .person { position: fixed; inset: 104px 32px auto auto; margin: 0; max-height: calc(100vh - 128px); overflow: auto; }
  #person-pop::backdrop { background: transparent; }
  #admin.person-open #adm-people { margin-right: 476px; }
}

/* ── 좁은 화면 ────────────────────────────────── */
/* 단추 이름은 늘 글자로(사용자 요청 2026-10-23). 1099px 이하 「엑셀로 받기」 → 「엑셀」 */
.lbl .short { display: none; }
@media (max-width: 1365px) {
  .search { width: 340px; }
}
/* 종이 줄 표: 좁아지면 키워드마다 블록(칩·건수 / 알림 / 대표 제목 / 단추) */
@media (max-width: 1199px) {
  .rep thead { display: none; }
  .rep, .rep tbody { display: block; }
  .rep tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k n" "al al" "tt tt" "a a"; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--gwae); }
  .rep td { display: block; padding: 0; border: 0; }
  .rep td.k { grid-area: k; } .rep td.al { grid-area: al; } .rep td.n { grid-area: n; } .rep td.tt { grid-area: tt; } .rep td.a { grid-area: a; }
  .rep .cnt { display: flex; gap: 4px 6px; justify-content: flex-end; }
  .rep .cnt b { margin-right: 6px; }
  .rep tbody tr:hover td { background: none; }
  .rep tr.open { background: var(--cho-th); padding-left: 10px; padding-right: 10px; }
  .rep tr.open td { background: none; }
  .rep tr.x { display: block; padding: 0 10px 12px; background: var(--cho-th); }
  .rep tr.x td { padding: 0; }
  .members .c-ap, .members td:nth-child(3), .members .c-dy, .members td:nth-child(6) { display: none; }
}
@media (max-width: 1099px) {
  #xlsx .lbl .full { display: none; }
  #xlsx .lbl .short { display: inline; }
  :root { --side: 212px; --gut: 24px; }
  .search { width: 300px; }
  th.c-b, td.b { display: none; }
  .t1 .since { display: none; }
  .ledger tr.sumrow td { padding-left: 14px; }
  .duo { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyrow { grid-template-columns: minmax(0, 1fr) auto; }
  .keyrow label, .keyrow .kst { grid-column: 1 / -1; }
  .adm-main .duo { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .tools .btn { padding: 0 10px 0 8px; gap: 4px; }
  .tools .lbl .full { display: none; }
  .tools .lbl .short { display: inline; }
  .sort-m .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* 태블릿(760~1023px): 둘째 줄에 단추와 검색칸, 검색칸이 남는 폭을 다 쓴다 */
@media (max-width: 1023px) {
  :root { --band: 136px; }
  .band { height: auto; flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .tools { width: 100%; margin-left: 0; }
  .search { flex: 1; width: auto; }
  #admin .tools { width: auto; margin-left: auto; }
}

@media (max-width: 420px) {
  /* 비용표: 머리·금액 칸이 줄바꿈 없이 자리를 다 차지해 모델 이름이 「Clau/de」로 쪼개지던 것(디자인 검수 11-21) */
  .tb.cost th, .tb.cost .r { white-space: normal; overflow-wrap: normal; }  /* 금액은 띄어쓰기·괄호 앞에서만 줄바꿈 */
  .tb.cost td:first-child { min-width: 6.5em; overflow-wrap: normal; }
  .tb.cost .r { padding-left: 3px; padding-right: 3px; }  /* 금액을 한 덩이로 묶은 만큼 칸 여백을 줄여 375px 안에(0.75) */
  .tb.cost th.r { white-space: nowrap; }  /* 금액 칸 머리 「요약 1건」은 한 줄(모델 칸은 min-width가 「Clau/de」를 막음, 0.75 마감 검토) */
}
@media (max-width: 359px) {
  /* 320px 휴대폰: 비용표·회사 단추 넷이 내용 폭(약 254px)을 넘지 않게 — 금액은 한 덩이로 두고 「약」만 뺀다(표 제목이 「비용(추정)」),
     금액 칸 머리는 다시 줄바꿈 허용, 단추 여백은 좁게(0.75 마감 검토) */
  .tb.cost .ya { display: none; }
  .tb.cost th.r { white-space: normal; }
  .aipick .seg button { padding: 0 4px; }
}
@media (max-width: 759px) {
  :root { --gut: 16px; }
  /* 16px 입력 규칙(DESIGN.md) — 휴대폰 Safari가 누를 때 화면을 확대하지 않게(PC 머리띠 검색칸은 14px 그대로, 디자인 검수 11-21) */
  .search input, .more-q input, .kw-in input, .pop .kw-in input:not([type="checkbox"]) { font-size: 16px; }
  /* 설정 회사 장부(0.75): 금액 칸을 좁혀 모델 이름 자리를 남긴다 */
  .mlist .mi { grid-template-columns: 18px minmax(0, 1fr) 66px 62px; gap: 0 6px; font-size: 13px; }
  .ledg .row { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .ledg .sm { height: 40px; }  /* 휴대폰 누름 자리(마감 검토) */
  .how { margin: 0 4px 8px; padding: 10px; }
  .band { height: auto; flex-wrap: wrap; gap: 10px 12px; padding: 10px var(--gut) 12px; }
  .brand { font-size: 15px; }
  .brandbox { flex: 1 1 auto; }
  .today { gap: 10px; padding-right: 6px; flex: 0 1 auto; min-width: 0; }
  .stampbig { width: 46px; height: 46px; border-width: 2px; }
  .stampbig b { font-size: 13px; }
  .stampbig span { font-size: 11px; }
  .t1 { display: none; }
  .t2 { font-size: 18px; white-space: normal; }
  /* 단추(엑셀·설정)는 한 줄에 나눠 앉고, 검색칸은 다음 줄 전체 */
  .tools { width: 100%; margin: 0; flex-wrap: wrap; }
  .tools > .btn, .tools > .has-tip, .tools-r > .btn, .tools-r > .has-tip { flex: 1 1 0; }
  .tools > .has-tip .btn, .tools-r > .has-tip .btn { width: 100%; }
  .search { order: 1; flex: 1 1 100%; width: auto; min-width: 0; height: 40px; }
  .tools .btn { height: 40px; padding: 0 9px 0 7px; gap: 4px; font-size: 13px; justify-content: center; }
  .tip { display: none !important; }
  .ask-in { width: 32px; padding: 0; justify-content: center; }
  .ask-in span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ann { padding: 6px var(--gut); font-size: 13px; }

  .wrap { display: block; }
  /* 휴대폰: 자료 종류 탭이 맨 위, 발신 기관은 그 아래 작은 띠(사용자 요청 2026-10-21) */
  .mtabs { display: block; padding: 10px var(--gut) 0; background: var(--paper); }
  .side { position: static; max-height: none; min-height: 0; overflow: visible; border-right: 0; border-bottom: 1px solid var(--gwae); padding: 8px 0 2px; }
  .blk { margin: 0; }
  .side .blk:not(.ntc) > h2:not(.kw-h) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .grps, .orgs, .opts, .toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut) 8px; }
  .grps::-webkit-scrollbar, .orgs::-webkit-scrollbar, .opts::-webkit-scrollbar, .toc::-webkit-scrollbar { display: none; }
  .orgs { margin: 0; border-left: 0; }
  .grps li, .orgs li, .toc li { flex: none; }
  .grp, .org-b, .org-l, .toc .row { width: auto; height: 28px; padding: 0 10px; border: 1px solid var(--gwae); border-radius: 14px; background: var(--paper); white-space: nowrap; font-size: 13px; }
  .grp[aria-pressed="true"], .org-b[aria-pressed="true"], .toc .row[aria-current="page"] { border-color: var(--cho); }
  .grp .num, .org-b .num { font-size: 12px; }
  .org-b, .org-l { height: 26px; font-size: 12px; border-style: dashed; }
  .opts { align-items: center; }
  .kw-h { flex: none; align-self: center; margin: 0 2px 0 4px; white-space: nowrap; gap: 4px; }
  .chk { flex: none; height: 30px; margin: 0; padding: 0 12px 0 10px; border: 1px solid var(--gwae); border-radius: 999px; background: var(--paper); font-size: 13px; }
  .chk:has(input:checked) { border-color: var(--cho); background: var(--cho-t); font-weight: 700; }
  .kw { flex-wrap: nowrap; }
  .kw-chip { flex: none; }
  .kw .kw-chip { height: 30px; border-radius: 999px; display: inline-flex; align-items: center; }
  .kw .kw-empty { white-space: nowrap; }
  .past { margin: 2px var(--gut) 8px; }
  .st { padding: 2px var(--gut) 8px; }
  .st summary h2 { margin: 0; }
  .st-sum { display: inline; }
  #st-body { padding-top: 8px; }
  .whobox { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 var(--gut) 10px; }
  .who .h { display: inline; margin-right: 6px; }
  .logout { margin: 0; }

  .main { padding: 10px 0 40px; }
  .cap { padding: 0 var(--gut); margin-bottom: 4px; min-height: 0; }
  .tab { font-size: 15px; }
  .cap .tabs, .mtabs .tabs { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .cap .tabs::-webkit-scrollbar, .mtabs .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; }
  .sort-m { display: block; margin-left: auto; }
  .sort-m select { height: 32px; border: 1px solid var(--gwae-in); border-radius: 4px; background: var(--paper); padding: 0 6px; font-size: 13px; }
  .cmp-btn { margin-left: 0; }

  /* 종이: 화면 폭 전부 */
  #sheet-view { padding-top: 0; }
  .sheet { border-left: 0; border-right: 0; border-radius: 0; padding: 18px var(--gut) 14px; }
  .sh h2 { font-size: 18px; }
  .oldstamp { width: 58px; height: 38px; }
  .oldstamp b { font-size: 12px; }
  .sf { flex-direction: column; align-items: stretch; gap: 12px; }
  .sx > li { grid-template-columns: 1fr; gap: 4px; }
  .sx .o { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .sx .o .num, .sx .o .kind { margin-top: 0; }

  .ledger, .ledger tbody { display: block; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "s o b d" "t t t t"; align-items: center; column-gap: 8px; row-gap: 4px; padding: 10px var(--gut) 11px; border-bottom: 1px solid var(--gwae); }
  .ledger td { display: block; height: auto; border: 0; padding: 0; }
  .ledger td.s { grid-area: s; }
  .ledger td.org { grid-area: o; font-size: 13px; }
  .ledger td.b { grid-area: b; display: block; font-size: 12px; }
  .ledger td.d { grid-area: d; font-size: 13px; }
  .ledger td.t { grid-area: t; white-space: normal; font-size: 15px; line-height: 1.45; }
  .tc { align-items: flex-start; }
  .tc a { white-space: normal; }
  .ledger tr.sumrow { display: block; padding: 0 var(--gut) 12px; background: var(--cho-th); }
  .ledger tr.sumrow td { padding: 6px 0 0; }
  .etc tr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "k o w" "t t t"; }
  .ledger td.k { grid-area: k; }
  .ledger td.w { grid-area: w; font-size: 12px; text-align: right; white-space: normal; }
  .etc-note { padding: 0 var(--gut); }
  .stamp { margin-left: 0; width: 46px; height: 26px; font-size: 11px; }
  .pre { margin-left: 0; width: 0; border: 0; }
  tr.sk td.s::after { margin-left: 0; }
  .empty, .more { margin-left: var(--gut); margin-right: var(--gut); }
  .tally { padding: 14px var(--gut) 0; grid-template-columns: 1fr; }

  .aist, .qbox, .ask-h, .srcs-h, .sheet-f, .more-q, .ask-note, .turn, .cmp-f, #cmp-meta, #cmp-ext, .hlist { margin-left: var(--gut); margin-right: var(--gut); }
  .ans.sheet, .turn .sheet { border-left: 1px solid var(--gwae); border-right: 1px solid var(--gwae); border-radius: 6px; padding: 14px; }
  .more-q { grid-template-columns: minmax(0, 1fr) auto; }
  .more-q .lb { grid-column: 1 / -1; }
  .more-q .note { grid-column: 1 / -1; }
  .asks tr { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "n s o d" "t t t t"; }
  .ledger td.n { grid-area: n; }
  .hlist summary { grid-template-columns: minmax(0, 1fr) auto; }
  .hlist summary b { grid-column: 1 / -1; grid-row: 2; }
  .hsrc li { grid-template-columns: 24px minmax(0, 1fr); }
  .hsrc .o { display: none; }
  .cmp-f .btn-solid { margin-left: 0; width: 100%; justify-content: center; }
  .cmp tr { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "o d r" "w w w"; }
  .cmp td.org { grid-area: o; } .cmp td.d { grid-area: d; } .cmp td.refs { grid-area: r; } .cmp td.w { grid-area: w; }
  .att-l { margin: 0 var(--gut); }
  .att-l li { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "n o d" "n t t"; }
  .att-l .n { grid-area: n; } .att-l .o { grid-area: o; } .att-l .d { grid-area: d; } .att-l .t { grid-area: t; }

  /* 가입: 한 단으로 */
  .jslip, .jslip[data-step="2"] { display: block; height: auto; width: auto; margin: 12px var(--gut) 24px; }
  .lc { border-right: 0; border-bottom: 1px solid var(--gwae); padding: 16px; }
  .vs { display: flex; gap: 8px; margin-top: 14px; }
  .vs li { flex: 1; padding-bottom: 0; grid-template-columns: 22px minmax(0, 1fr); }
  .vs li::before { display: none; }
  .vs small { display: none; }
  .vs .nm { font-size: 13px; line-height: 1.3; }
  .lc .warn { margin-top: 14px; }
  .jbody { overflow: visible; padding: 18px 16px; }
  .shots { gap: 10px; }
  .ftb .w1 { width: 96px; } .ftb .w3 { width: 72px; }
  .jfoot { padding: 12px 16px 14px; }
  .fr .btn-solid, .fr .btn-ghost { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
  .fr #j-next { flex-basis: 100%; order: 3; }
  .setup-f { flex-wrap: wrap; }
  .setup-f .note { width: 100%; }
  .setup-f .btn-solid { flex: 1; }

  /* 관리자 */
  .adm-side { padding-top: 10px; }
  .adm-side .ntc { padding: 0 var(--gut); margin-bottom: 12px; }
  .adm-main { padding: 12px 0 40px; }
  .adm-main > section, .adm-main > .empty { padding: 0 var(--gut); }
  .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fig { margin: 0; padding: 0 0 0 10px; border-right: 0; border-left: 1px solid var(--gwae); }
  .fig-r { grid-column: 1 / -1; margin: 0; }
  .adm-tally { padding: 14px 0 0; grid-template-columns: 1fr; }
  .rank { grid-auto-flow: row; grid-template-rows: none; }
  .adm-main .ledger tr { padding-left: 0; padding-right: 0; }
  .members tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .members td { font-size: 13px; }
  .members td.e { flex: 1 1 100%; font-size: 14px; word-break: break-all; white-space: normal; }
  .members td[data-l]::before { content: attr(data-l) " "; color: var(--hoe); font-weight: 400; }
  .members td.act { margin-left: auto; }
  .members .c-ap, .members td:nth-child(3), .members .c-dy, .members td:nth-child(6) { display: block; }
  .adlog tr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "tm k pp" "dtl dtl dtl" "ip dv dv"; }
  .ledger td.tm { grid-area: tm; font-size: 13px; }
  .ledger td.ip { grid-area: ip; }
  .ledger td.dv { grid-area: dv; font-size: 13px; }
  .adlog td.pp { grid-area: pp; font-size: 13px; } .adlog td.dtl { grid-area: dtl; white-space: normal; }
  .dels tr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "e tm b"; }
  .dels td.e { grid-area: e; } .dels td.dt { grid-area: tm; } .dels td.act { grid-area: b; }
}

/* 0.71: MADE BY KIMO · 판 번호 — 회의톡 0.80 바닥글과 같은 크기·자간, 모든 화면 끝에 작게 */
.credit-footer { display: flex; justify-content: center; padding: 18px var(--gut); border-top: 1px solid var(--gwae); font-size: 12px; line-height: 1.6; color: var(--hoe-2); text-align: center; }
.credit-footer .made-by { font-weight: 650; letter-spacing: .08em; white-space: nowrap; }
