/* 핀테크형 디자인: 회색 바탕 + 흰 카드, 테두리 없는 둥근 면, 채워진 입력칸, 파란 강조 하나 */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --fill: #f2f4f6;
  --fill-hover: #e9ecef;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --line: #e5e8eb;
  --blue: #3182f6;
  --blue-weak: #e8f3ff;
  --ok: #0a8a5c;
  --ok-bg: #e6f7ef;
  --warn: #c26a00;
  --warn-bg: #fff4e0;
  --bad: #e5303e;
  --bad-bg: #ffebec;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 23, 51, .04), 0 6px 24px rgba(0, 23, 51, .05);
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: clamp(13px, 0.42vw + 8.4px, 15.5px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased;
}
.screen { height: 100dvh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; } /* 작업 화면은 한 화면, 하단 영역은 그 아래 */
:focus-visible { outline: 3px solid rgba(49, 130, 246, .45); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 머리 */
.top { display: flex; align-items: center; gap: .9rem; padding: .75rem 1.4rem; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.logo { width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--blue); display: grid; place-items: center; }
.top .meta { margin: 0; font-size: .8rem; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: .22rem .7rem; font-weight: 500; }
.top .notice { margin: 0 0 0 auto; color: var(--ink-3); font-size: .78rem; }

/* 3단 */
.board { display: grid; grid-template-columns: minmax(260px, 22rem) minmax(0, 1fr) minmax(300px, 30rem); gap: 1rem; padding: 1rem; min-height: 0; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 1.15rem 1.2rem; min-height: 0; overflow: hidden; box-shadow: var(--shadow); }

/* 입력 */
.input { display: flex; flex-direction: column; gap: .55rem; }
.step { margin: .15rem 0 0; font-size: .95rem; font-weight: 700; color: var(--ink); }
.step + .field { margin-top: -.1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select {
  height: 2.6rem; padding: 0 .85rem; border: 2px solid transparent; border-radius: var(--r-sm);
  background-color: var(--fill); color: var(--ink); font-size: .95rem; font-weight: 500; min-width: 0; width: 100%;
  transition: background-color .15s, border-color .15s;
}
.field select { appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }
.field input::placeholder { color: var(--ink-3); font-weight: 400; }
.field input:hover, .field select:hover { background-color: var(--fill-hover); }
.field input:focus, .field select:focus { outline: none; background-color: #fff; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--bad); background-color: var(--bad-bg); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dt { position: relative; display: block; }
.dt .date { padding-right: 2.4rem; }
.dt .cal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; border-radius: 8px; }
.dt .cal:hover { background: #fff; color: var(--blue); }
.dt .pick { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: .8rem; font-weight: 500; color: var(--ink-2); padding: 0; margin-bottom: .3rem; }
.qs { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-top: .35rem; } /* 질문이 많아 넘치면 질문 칸 안에서만 스크롤(페이지는 고정) */
.qs legend { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.qs label { display: flex; gap: .6rem; align-items: center; padding: .5rem .65rem; margin-bottom: .3rem; font-size: .88rem; line-height: 1.35; cursor: pointer; border-radius: var(--r-sm); background: var(--fill); transition: background .15s; }
.qs label:hover { background: var(--fill-hover); }
.qs label:has(input:checked) { background: var(--blue-weak); color: #1b64da; font-weight: 600; }
.qs input { width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--blue); }
.qs .none { color: var(--ink-3); font-size: .85rem; margin: .2rem 0; }
.agree { display: grid; gap: .45rem; background: var(--blue-weak); border-radius: var(--r-md); padding: .75rem; }
.agree legend { float: left; width: 100%; color: #1b64da; font-weight: 700; font-size: .85rem; margin-bottom: .1rem; }
.agree .field input { background-color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255, 255, 255, .7); border-radius: var(--r-sm); padding: 4px; }
.seg label { text-align: center; padding: .45rem 0; font-size: .86rem; cursor: pointer; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.seg input { position: absolute; opacity: 0; }
.seg.mode { background: var(--fill); margin-top: .1rem; padding: 3px; }
.seg.mode label { padding: .32rem 0; }
.seg label:has(input:checked) { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 23, 51, .12); }
.seg label:has(input:focus-visible) { outline: 3px solid rgba(49, 130, 246, .45); }

/* 판정 */
.result { display: flex; flex-direction: column; padding: 1.5rem 1.6rem; }
.empty { margin: auto 0; max-width: 34rem; }
.empty .eyebrow { margin: 0 0 .4rem; color: var(--blue); font-weight: 700; font-size: .9rem; }
.empty .lead { font-size: 1.9rem; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 .6rem; }
.empty p { color: var(--ink-2); margin: 0 0 1.1rem; }
.quick { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.quick button { border: 0; background: var(--fill); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.quick button:hover { background: var(--blue-weak); color: var(--blue); }

.verdict { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto minmax(0, 1fr); column-gap: 1.1rem; row-gap: 1rem; height: 100%; min-height: 0; }
.seal { --c: var(--ok); --cb: var(--ok-bg); width: 3.8rem; height: 3.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--cb); color: var(--c); align-self: start; margin-top: .2rem; }
.seal[data-v="판단필요"] { --c: var(--warn); --cb: var(--warn-bg); }
.seal[data-v="불인정"] { --c: var(--bad); --cb: var(--bad-bg); }
.seal.stamp { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .seal.stamp { animation: none; } }
.head { min-width: 0; }
.what { margin: 0; color: var(--ink-3); font-size: .86rem; }
.what b { color: var(--ink-2); font-weight: 600; }
.head h2 { margin: .1rem 0 .55rem; font-size: 1.75rem; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.verdict:has(.seal[data-v="불인정"]) .head h2 { color: var(--bad); }
.cases-hint { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pill { font-size: .8rem; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: .2rem .65rem; }
.pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill[data-v="인정"] b { color: var(--ok); }
.pill[data-v="불인정"] b { color: var(--bad); }
.pill[data-v="판단필요"] b { color: var(--warn); }
.pill[data-v="참고"] b { color: var(--ink-2); }
.warn-note { font-size: .8rem; color: var(--bad); font-weight: 600; }

.reasons { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; align-content: start; overflow: hidden; }
.reasons li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .75rem; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--fill); font-size: .93rem; line-height: 1.55; }
.reasons li > span:nth-child(2) { font-weight: 600; color: var(--ink); }
.reasons .src { grid-column: 2; font-size: .8rem; color: var(--ink-3); margin-top: -.25rem; }
.reasons .src button { border: 0; background: none; padding: 0; color: var(--blue); font-size: inherit; font-weight: 500; }
.reasons .src button:hover { text-decoration: underline; }
.reasons .ex { grid-column: 2; font-size: .82rem; color: var(--ink-2); quotes: none; border-left: 2px solid #d1d6db; padding: 0 0 0 .65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reasons .more { display: block; background: none; padding: 0; }
.reasons .more button { border: 0; background: var(--fill); border-radius: var(--r-sm); padding: .5rem 1rem; font-size: .86rem; font-weight: 600; color: var(--ink-2); }

/* 함께 처리할 일: 이 집행·변경 때문에 같이 바꾸거나 등록해야 하는 다른 업무 */
.links { grid-column: 1 / -1; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-md); padding: .7rem 1rem; }
.links h3 { margin: 0 0 .35rem; font-size: .9rem; font-weight: 700; }
.links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .86rem; line-height: 1.5; color: var(--ink); }
.links li { padding-left: 1.1rem; position: relative; }
.links li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.links button { border: 0; background: none; padding: 0; margin-left: .35rem; font-size: .8rem; font-weight: 600; color: var(--blue); }
.links button:hover { text-decoration: underline; }
.split { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: .7rem; }
.box { border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem 1rem; min-height: 0; }
.box h3 { margin: 0 0 .4rem; font-size: .9rem; font-weight: 700; }
.docs { margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--ink-2); display: grid; gap: .2rem; }
.docs li { padding-left: 1.3rem; position: relative; }
.docs li::before { content: ""; position: absolute; left: .15rem; top: .5em; width: .55rem; height: .3rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
/* 포스텍 시스템에서 처리: POVIS·SAP·PODIUM에서 할 단계 (판정과 별개, 차분하게) */
.sys { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem 1rem; }
.sys h3 { margin: 0 0 .35rem; font-size: .9rem; font-weight: 700; }
.sys.min { display: flex; align-items: center; gap: .6rem; padding: .4rem 1rem; }
.sys.min h3 { margin: 0; }
.reasons.tight .ex { display: none; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .86rem; line-height: 1.5; }
.steps > li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .55rem; }
.steps p { margin: 0; }
.steps > li > div { min-width: 0; }
.steps .no { width: 1.35rem; height: 1.35rem; margin-top: .05rem; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: .74rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps .who { font-size: .74rem; font-weight: 700; color: var(--ink-2); background: var(--fill); border-radius: 6px; padding: .1rem .45rem; white-space: nowrap; }
.steps code { font-family: ui-monospace, Consolas, "D2Coding", monospace; font-size: .78rem; color: var(--ink-2); background: var(--fill); border-radius: 4px; padding: .05rem .35rem; }
.steps .d { color: var(--ink-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dlgBody .steps .d { white-space: normal; }
.steps small { color: var(--ink-3); }
.steps button { border: 0; background: none; padding: 0; margin-left: .35rem; font-size: .8rem; font-weight: 600; color: var(--blue); }
.steps button:hover { text-decoration: underline; }
.steps .more { display: block; }
.steps .more button { margin: 0; }
#agSummary { font-size: .86rem; }
#agSummary p { margin: .15rem 0; }

/* 판정 표지 */
.tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .76rem; font-weight: 700; padding: .14rem .5rem; border-radius: 6px; white-space: nowrap; height: fit-content; }
.tag::before { font-weight: 900; font-size: .9em; }
.tag[data-v="인정"] { color: var(--ok); background: var(--ok-bg); }
.tag[data-v="인정"]::before { content: "○"; }
.tag[data-v="불인정"] { color: var(--bad); background: var(--bad-bg); }
.tag[data-v="불인정"]::before { content: "✕"; }
.tag[data-v="판단필요"] { color: var(--warn); background: var(--warn-bg); }
.tag[data-v="판단필요"]::before { content: "△"; }
.tag[data-v="참고"] { color: var(--ink-2); background: var(--fill); }
.tag[data-v="참고"]::before { content: "i"; font-style: italic; font-family: Georgia, serif; }
.src-tag.auto { color: var(--warn); background: var(--warn-bg); }
.reasons .tag { background: #fff; }
.src-tag { font-size: .74rem; color: var(--ink-2); background: var(--fill); border-radius: 6px; padding: .1rem .45rem; white-space: nowrap; }

/* 근거 탭 */
.side { display: flex; flex-direction: column; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--fill); border-radius: var(--r-sm); padding: 4px; margin-bottom: .85rem; }
.tabs button { border: 0; background: none; padding: .45rem .3rem; font-weight: 600; font-size: .86rem; color: var(--ink-3); border-radius: 8px; white-space: nowrap; transition: color .15s; }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 23, 51, .12); }
.tabpanel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.case-search { display: flex; align-items: center; gap: .5rem; background: var(--fill); border-radius: var(--r-sm); padding: 0 .8rem; margin-bottom: .55rem; color: var(--ink-3); border: 2px solid transparent; transition: border-color .15s, background .15s; }
.case-search:focus-within { background: #fff; border-color: var(--blue); color: var(--blue); }
.case-search input { flex: 1; min-width: 0; height: 2.4rem; border: 0; background: none; outline: none; font-size: .9rem; color: var(--ink); }
.case-search input::placeholder { color: var(--ink-3); }
.scope { display: flex; align-items: center; gap: .45rem; padding: .35rem .5rem; margin: -.2rem 0 .1rem; border-radius: var(--r-sm); background: var(--fill); border-left: 4px solid var(--ink-3); font-size: .85rem; min-width: 0; }
.scope[data-v="인정"] { border-left-color: var(--ok); }
.scope[data-v="불인정"] { border-left-color: var(--bad); }
.scope[data-v="판단필요"] { border-left-color: var(--warn); }
.scope .txt { flex: 1; min-width: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.scope .txt b { color: var(--ink); }
.scope .tag { flex: none; }
.scope button { flex: none; border: 0; background: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; color: var(--blue); font-weight: 600; cursor: pointer; }
.dist { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-bottom: .7rem; }
.dist button { border: 2px solid transparent; background: var(--fill); border-radius: var(--r-sm); padding: .5rem .65rem; text-align: left; display: flex; justify-content: space-between; align-items: center; transition: background .15s; }
.dist button:hover { background: var(--fill-hover); }
.dist.s3 { grid-template-columns: repeat(3, 1fr); }
.dist.s3 button span { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.src-tag.reg { color: var(--blue); background: var(--blue-weak); font-weight: 700; }
.cards mark { background: #fff3bf; color: inherit; border-radius: 3px; padding: 0 1px; }
.rel-items { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.rel-items button { border: 0; background: var(--blue-weak); color: #1b64da; border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; font-weight: 600; cursor: pointer; }
.dist button b { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dist button[aria-pressed="true"] { border-color: var(--blue); background: #fff; }
.cards { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .45rem; overflow: hidden; }
.cards li > button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); padding: .7rem .85rem; display: grid; gap: .25rem; transition: border-color .15s, box-shadow .15s; }
.cards li > button:hover { border-color: transparent; box-shadow: 0 4px 16px rgba(0, 23, 51, .1); }
.cards .line { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.cards .t { font-weight: 600; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards .w { font-size: .78rem; color: var(--ink-3); }
.cards .nothing { color: var(--ink-3); font-size: .9rem; padding: 1.5rem 0; text-align: center; }
.pager { display: flex; justify-content: center; align-items: center; gap: .8rem; padding-top: .55rem; font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager button { width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: var(--fill); font-size: 1.1rem; color: var(--ink-2); }
.pager button:hover:not(:disabled) { background: var(--fill-hover); }
.pager button:disabled { opacity: .35; cursor: default; }
.law, .agl { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; overflow: hidden; align-content: start; }
.law li, .agl li { background: var(--fill); border-radius: var(--r-sm); padding: .6rem .8rem; font-size: .86rem; border-left: 3px solid transparent; }
.law .d, .agl .d { font-weight: 700; font-size: .84rem; }
.law q { display: block; color: var(--ink-2); quotes: none; margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.agl li[data-t="승인"] { border-left-color: var(--bad); }
.agl li[data-t="통보"] { border-left-color: var(--warn); }
.agl li[data-t="학내승인"] { border-left-color: var(--blue); }
.agl .ref { font-size: .76rem; color: var(--ink-3); }
.hint { color: var(--ink-2); font-size: .86rem; margin: 0 0 .6rem; }

/* 상세 */
dialog { border: 0; border-radius: 24px; padding: 1.6rem 1.8rem; max-width: min(46rem, 92vw); max-height: 86dvh; box-shadow: 0 24px 64px rgba(0, 23, 51, .22); }
dialog[open] { animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }
dialog::backdrop { background: rgba(0, 23, 51, .4); }
dialog .x { position: absolute; top: .9rem; right: 1rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: var(--fill); font-size: 1.3rem; line-height: 1; color: var(--ink-2); }
#dlgBody h3 { margin: .5rem 2.4rem .8rem 0; font-size: 1.2rem; line-height: 1.45; font-weight: 800; letter-spacing: -.02em; }
#dlgBody .body { white-space: pre-line; font-size: .94rem; line-height: 1.75; color: var(--ink-2); }
#dlgBody .why { font-size: .82rem; color: var(--ink-3); background: var(--fill); border-radius: var(--r-sm); padding: .6rem .8rem; margin-top: 1rem; }

/* 좁은 화면: 세로로 쌓고 스크롤 허용 */
@media (max-width: 1080px) {
  .screen { height: auto; overflow: visible; }
  .board { grid-template-columns: 1fr; }
  .panel { overflow: visible; }
  .cards, .reasons, .qs, .law, .agl { overflow: visible; }
  .top { flex-wrap: wrap; }
  .top .notice { margin-left: 0; flex-basis: 100%; }
  .split { grid-template-columns: 1fr; }
  .steps .d { white-space: normal; }
}

/* 페이지 이동(집행 점검 · 사례 백과) */
.gnb { display: flex; gap: 2px; background: var(--fill); border-radius: 999px; padding: 3px; }
.gnb a { padding: .28rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.gnb a:hover { text-decoration: none; color: var(--ink-2); }
.gnb a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 23, 51, .12); }

/* 사례 백과: 거르기 | 목록 | 본문 (페이지는 고정, 각 칸 안에서만 스크롤) */
.wboard { display: grid; grid-template-columns: minmax(250px, 20rem) minmax(300px, 30rem) minmax(0, 1fr); gap: 1rem; padding: 1rem; min-height: 0; }
.wfilter, .wlist, .wdoc { display: flex; flex-direction: column; }
.wfilter { overflow-y: auto; scrollbar-width: thin; gap: .45rem; }
.wlbl { margin: .55rem 0 .1rem; font-size: .84rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.wreset { border: 0; background: none; color: var(--ink-3); font-size: .78rem; font-weight: 500; padding: 0; }
.wreset:hover { color: var(--blue); }
.vchips { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.vchips button, .schips button { border: 2px solid transparent; background: var(--fill); border-radius: var(--r-sm); padding: .45rem .6rem; display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .84rem; color: var(--ink-2); transition: background .15s; }
.vchips button:hover, .schips button:hover { background: var(--fill-hover); }
.vchips button[aria-pressed="true"], .schips button[aria-pressed="true"] { border-color: var(--blue); background: #fff; color: var(--ink); }
.vchips b, .schips b { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); }
.schips { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.mchips { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.schips button { white-space: nowrap; }
.mchips button { border: 2px solid transparent; background: var(--fill); border-radius: var(--r-sm); padding: .45rem .6rem; display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .84rem; color: var(--ink-2); transition: background .15s; white-space: nowrap; }
.mchips button:hover { background: var(--fill-hover); }
.mchips button[aria-pressed="true"] { border-color: var(--blue); background: #fff; color: var(--ink); }
.mchips b { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); }
.mchips .only-common { color: var(--ink-3); }
.mchips .only-common b { color: var(--ink-3); font-weight: 600; }
.whint { font-size: .74rem; font-weight: 500; color: var(--ink-3); }
.wrow { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .3rem; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc button { width: 100%; border: 0; background: none; text-align: left; display: flex; justify-content: space-between; gap: .5rem; padding: .38rem .55rem; border-radius: 8px; font-size: .84rem; color: var(--ink-2); }
.toc button:hover { background: var(--fill); }
.toc button[aria-current="true"] { background: var(--blue-weak); color: #1b64da; font-weight: 700; }
.toc b { font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.whead { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.whead h2 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.wnote { margin: -.3rem 0 .7rem; font-size: .8rem; color: var(--ink-2); background: var(--blue-weak); border-radius: var(--r-sm); padding: .5rem .7rem; line-height: 1.5; }
.wcount { color: var(--ink-3); font-size: .84rem; font-variant-numeric: tabular-nums; }
.entries { list-style: none; margin: 0 -.3rem; padding: 0 .3rem; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: .45rem; }
.entries li > button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); padding: .65rem .8rem; display: grid; gap: .22rem; transition: border-color .15s, box-shadow .15s; }
.entries li > button:hover { box-shadow: 0 4px 16px rgba(0, 23, 51, .1); border-color: transparent; }
.entries li > button[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.entries .line { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.entries .t { font-weight: 600; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entries .w { font-size: .78rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.entries .more button { width: 100%; border: 0; background: var(--fill); border-radius: var(--r-sm); padding: .6rem; color: var(--ink-2); font-weight: 600; }
.entries .nothing { color: var(--ink-3); text-align: center; padding: 2rem 0; }
.entries mark, .wdoc mark { background: #fff3bf; color: inherit; border-radius: 3px; padding: 0 1px; }
.wdoc { overflow-y: auto; scrollbar-width: thin; padding: 1.6rem 1.9rem; }
.wempty { margin: auto 0; max-width: 34rem; }
.wempty .eyebrow { margin: 0 0 .4rem; color: var(--blue); font-weight: 700; font-size: .9rem; }
.wempty .lead { font-size: 1.7rem; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 .6rem; }
.wempty p { color: var(--ink-2); }
.dhead { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.dhead .tag { font-size: .85rem; padding: .2rem .65rem; }
.dtitle { font-size: 1.45rem; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; margin: .7rem 0 .35rem; }
.dmeta { margin: 0 0 1rem; color: var(--ink-3); font-size: .84rem; }
.dwhy { border-radius: var(--r-md); padding: .8rem 1rem; background: var(--fill); border-left: 4px solid var(--ink-3); margin-bottom: 1.1rem; }
.dwhy[data-v="인정"] { background: var(--ok-bg); border-left-color: var(--ok); }
.dwhy[data-v="불인정"] { background: var(--bad-bg); border-left-color: var(--bad); }
.dwhy[data-v="판단필요"] { background: var(--warn-bg); border-left-color: var(--warn); }
.dwhy b { font-size: .84rem; }
.dwhy p { margin: .25rem 0 0; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.55; }
.dbody { white-space: pre-line; font-size: .96rem; line-height: 1.8; color: var(--ink-2); }
.drel { font-size: .95rem; margin: 1.6rem 0 .5rem; }
.rel { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rel details { background: var(--fill); border-radius: var(--r-sm); }
.rel summary { list-style: none; cursor: pointer; padding: .5rem .7rem; display: flex; gap: .5rem; align-items: center; font-size: .88rem; border-radius: var(--r-sm); }
.rel summary::-webkit-details-marker { display: none; }
.rel summary::after { content: "펼치기"; margin-left: auto; flex: none; font-size: .76rem; color: var(--ink-3); }
.rel details[open] summary::after { content: "접기"; }
.rel summary:hover { background: var(--fill-hover); }
.rel summary span:not(.tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rel details[open] summary span:not(.tag) { white-space: normal; font-weight: 700; }
.rel details[open] { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.relbody { padding: .2rem .9rem .9rem; }
.relbody .dbody { font-size: .9rem; }
.relbody .copy { margin: .8rem 0 0; }
.dnote { margin-top: 1.4rem; font-size: .8rem; color: var(--ink-3); }
.copy { border: 0; background: var(--fill); border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; color: var(--ink-2); margin-left: .3rem; }
@media (max-width: 1080px) {
  .wboard { grid-template-columns: 1fr; }
  .wfilter, .entries, .wdoc { overflow: visible; }
  .entries { max-height: 70vh; overflow-y: auto; }
  .gnb { order: 3; }
}

/* 쟁점 정리(wiki/topics): 여러 사례를 쟁점별로 엮은 문서 */
.tag[data-v="조건부"] { color: var(--warn); background: var(--warn-bg); }
.tag[data-v="조건부"]::before { content: "△"; }
.tag[data-v="엇갈림"] { color: #7048e8; background: #f3f0ff; }
.tag[data-v="엇갈림"]::before { content: "⇄"; }
.tlist button { align-items: flex-start; line-height: 1.4; }
.tlist .tag { flex: none; }
.entries li.topic > button { border-color: var(--blue); background: var(--blue-weak); }
.entries li.topic .src-tag { background: var(--blue); color: #fff; }
.tbody { font-size: .93rem; line-height: 1.7; }
.tbody h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.tbody h3:first-child { margin-top: .4rem; }
.tbody p { margin: .3rem 0; }
.tbody ul { margin: .2rem 0; padding-left: 1.2rem; }
.tbody li { margin: .2rem 0; }
.tbody blockquote { margin: .4rem 0; padding: .3rem .8rem; border-left: 3px solid var(--line); color: var(--ink-2); }
.cite { border: 0; padding: 0 .32rem; margin: 0 .1rem; min-width: 1.35rem; height: 1.25rem; border-radius: 6px; font-size: .72rem; font-weight: 800; vertical-align: .1em; background: var(--fill); color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.cite[data-v="인정"] { background: var(--ok-bg); color: var(--ok); }
.cite[data-v="불인정"] { background: var(--bad-bg); color: var(--bad); }
.cite[data-v="판단필요"] { background: var(--warn-bg); color: var(--warn); }
.cite:hover { outline: 2px solid currentColor; }
.tlink { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.trefs { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.trefs details { border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.trefs details[open] { border-color: var(--blue); }
.trefs summary { list-style: none; cursor: pointer; padding: .45rem .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .84rem; border-radius: 10px; }
.trefs summary::-webkit-details-marker { display: none; }
.trefs summary::after { content: "펼치기"; margin-left: auto; font-size: .76rem; color: var(--ink-3); }
.trefs details[open] summary::after { content: "접기"; }
.trefs summary:hover { background: var(--fill); }
.trefs .n { font-weight: 800; color: var(--ink-3); min-width: 1.2rem; font-variant-numeric: tabular-nums; }
.trefs .w { color: var(--ink-3); font-size: .78rem; }
.trefs .t { order: 9; flex-basis: 100%; color: var(--ink); line-height: 1.45; }
.trefs details[open] .t { font-weight: 700; }
.trefs .relbody .dbody { font-size: .9rem; }
.drel small { font-weight: 500; color: var(--ink-3); font-size: .78rem; margin-left: .3rem; }
.topic-pill { background: var(--blue-weak); color: #1b64da; font-weight: 600; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-pill:hover { background: var(--blue); color: #fff; }

/* 쟁점 정리 근거 사례 팝업 */
.pop { border: 0; padding: 0; border-radius: var(--r-lg); width: min(760px, calc(100vw - 32px)); max-height: min(82vh, 900px); box-shadow: 0 20px 60px rgba(0, 23, 51, .25); background: var(--card); color: var(--ink); overflow: hidden; }
.pop[open] { display: flex; flex-direction: column; }
.pop::backdrop { background: rgba(0, 23, 51, .35); }
.popbar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); flex: none; }
.popbar button { border: 0; background: var(--fill); border-radius: 8px; min-width: 2rem; height: 2rem; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.popbar button:disabled { opacity: .35; cursor: default; }
.popbar #popCount { font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: center; }
.popbar a { margin-left: auto; font-size: .84rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.popbar .popx { margin-left: .3rem; }
.popbody { padding: 1rem 1.3rem 1.3rem; overflow-y: auto; }
.popbody .dtitle { font-size: 1.2rem; }

/* 만족도 조사: 한 장짜리 설문(넓은 화면 2단, 좁은 화면 1단) */
.sboard { padding: 1rem; min-height: 0; display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); }
.survey { width: min(64rem, 100%); max-height: 100%; overflow-y: auto; scrollbar-width: thin; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem 1.8rem; }
.scol { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.survey .eyebrow { margin: 0; color: var(--blue); font-weight: 700; font-size: .9rem; }
.survey .lead { font-size: 1.7rem; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; margin: -.6rem 0 0; }
.shint { margin: -.4rem 0 .2rem; color: var(--ink-2); font-size: .9rem; }
.survey legend { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.req { font-size: .72rem; font-weight: 700; color: var(--blue); background: var(--blue-weak); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; vertical-align: middle; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.scale label, .chips label { position: relative; cursor: pointer; border: 2px solid transparent; background: var(--fill); border-radius: var(--r-sm); transition: background .15s, border-color .15s; }
.scale label { display: grid; justify-items: center; gap: .05rem; padding: .5rem .2rem; }
.scale b { font-size: 1.1rem; font-weight: 800; color: var(--ink-2); }
.scale span { font-size: .74rem; color: var(--ink-3); white-space: nowrap; }
.scale input, .chips input { position: absolute; opacity: 0; }
.scale label:hover, .chips label:hover { background: var(--fill-hover); }
.scale label:has(input:checked), .chips label:has(input:checked) { border-color: var(--blue); background: var(--blue-weak); color: #1b64da; }
.scale label:has(input:checked) b, .scale label:has(input:checked) span { color: #1b64da; }
.scale label:has(input:focus-visible), .chips label:has(input:focus-visible) { outline: 3px solid rgba(49, 130, 246, .45); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips label { padding: .4rem .8rem; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.sopinion textarea { min-height: 6.5rem; resize: vertical; padding: .7rem .85rem; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--fill); color: var(--ink); font: inherit; font-size: .92rem; }
.sopinion textarea:focus { outline: none; background: #fff; border-color: var(--blue); }
.smsg { margin: 0; min-height: 1.4em; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.smsg[data-s="ok"] { color: var(--ok); }
.smsg[data-s="bad"] { color: var(--bad); }
.sbtn { margin-top: auto; height: 3rem; border: 0; border-radius: var(--r-md); background: var(--blue); color: #fff; font-size: 1rem; font-weight: 700; transition: background .15s; }
.sbtn:hover:not(:disabled) { background: #1b64da; }
.sbtn:disabled { opacity: .45; cursor: default; }
@media (max-width: 1080px) {
  .survey { grid-template-columns: minmax(0, 1fr); max-height: none; overflow: visible; padding: 1.2rem; }
  .scale span { white-space: normal; text-align: center; }
}

/* 학교 로고 · 하단 영역 */
.univ { flex: none; display: block; line-height: 0; padding: 3px 2px; } /* 이미지에 자체 여백이 없어 가장자리가 잘려 보이지 않게 함 */
.univ img { display: block; width: 199px; height: 34px; } /* 원본 크기: 늘리면 흐려짐 */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; padding: 2rem 3rem; min-height: 9rem; background: #333; color: #fff; font-size: .85rem; }
.foot h2 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; }
.foot p { margin: 0 0 .3rem; }
.foot a { color: inherit; }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; }
.foot-side img { width: 161px; height: auto; }
@media (max-width: 1080px) {
  .foot { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.2rem; }
  .foot-side { align-items: flex-start; }
}
