/* AI 디지털 활용 연구학교 학교담당자 보고서 지원 — 전북특별자치도교육청
   색상: 교육청 로고(남색·코랄·청록·노랑) + 교육비전 '살아가는 힘을 키우는 전북교육'(파랑·주황·차콜) */
:root {
  --navy: #012d63;
  --navy-2: #0b3d7e;
  --navy-soft: #e6ecf5;
  --blue: #2479f7;
  --blue-2: #1463d8;
  --blue-soft: #e8f1fe;
  --orange: #f07d00;
  --orange-soft: #fff1e0;
  --coral: #eb5d48;
  --coral-soft: #fdecea;
  --crimson: #a51d2d;
  --teal: #00aca9;
  --teal-soft: #e0f5f4;
  --yellow: #ffcd1b;
  --yellow-soft: #fff8dc;
  --charcoal: #2f2f2f;
  --green: #1f9d55;
  --green-soft: #e6f6ec;

  --ink: #1d2433;
  --ink-2: #4a5468;
  --ink-3: #6b7486;
  --line: #e1e5ec;
  --line-2: #eef1f5;
  --bg: #ffffff;
  --bg-2: #f6f8fb;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: 20px;
  --shadow: 0 10px 30px rgba(1, 45, 99, .08);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- 머리글 ---------- */
.util { background: var(--navy); color: #dfe7f3; font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; min-height: 36px; flex-wrap: wrap; padding-block: 6px 8px; }
.util a { text-decoration: none; opacity: .9; }
.util a:hover { opacity: 1; text-decoration: underline; }
.util-links { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.util-user { display: flex; align-items: center; gap: 8px; }
.util-user img { width: 22px; height: 22px; border-radius: 50%; }
.util-user button, .util-user a.pill { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; text-decoration: none; }
.util-user .admin-link { background: var(--orange); border-color: var(--orange); }

.masthead { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.2) blur(6px); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand .jbe { height: 38px; width: auto; }
.brand .bar { width: 1px; height: 32px; background: var(--line); flex: none; }
.brand .svc { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand .svc small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.brand .svc b { font-size: 16px; color: var(--navy); font-weight: 800; white-space: nowrap; }
.brand .svc b .hl { color: var(--crimson); font-style: normal; }
.mast-actions { display: flex; align-items: center; gap: 8px; }
.btn-ai { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; white-space: nowrap; }
.btn-ai:hover { background: var(--navy-2); }
.btn-ai .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,205,27,.3); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

.gnb { border-top: 1px solid var(--line-2); }
.gnb ul { list-style: none; display: flex; gap: 2px; flex-wrap: wrap; }
.gnb a { display: flex; align-items: center; gap: 6px; padding: 13px 9px; text-decoration: none; font-weight: 700; color: var(--navy); font-size: 15.5px; border-bottom: 3px solid transparent; }
.gnb a .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; color: #fff; background: var(--c, var(--navy)); }
.gnb a:hover, .gnb a[aria-current="page"] { border-bottom-color: var(--c, var(--orange)); }
.gnb .m-only { display: none; }
.gnb a.ext { color: var(--teal); }
.gnb a.ext svg { width: 15px; height: 15px; }
/* 메뉴 앞 작은 아이콘(교원연수 기획 지원 누리집과 같은 방식) */
.gnb a .gi { display: inline-flex; flex: none; opacity: .85; }
.gnb a .gi svg { width: 15px; height: 15px; }
.gnb a[aria-current="page"] .gi, .gnb a:hover .gi { opacity: 1; color: var(--c, var(--navy)); }
/* 메뉴 10칸(교원 AI 역량체계 추가, 2026-10-24)을 한 줄에: 아이콘 포함 약 1,130px(메뉴 칸은 최대 1,160px).
   1,199px 이하는 간격·글자를 조금 줄이고(약 1,050px), 1,110px 이하는 아이콘만 숨긴다(약 860px). 960px 이하는 ☰ 메뉴라 다시 보임 */
@media (min-width: 961px) and (max-width: 1199px) { .gnb a { padding-inline: 6px; font-size: 15px; } }
@media (min-width: 961px) and (max-width: 1110px) { .gnb a { padding-inline: 7px; } .gnb a .gi { display: none; } }

/* ---------- 공통 요소 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: 15.5px; line-height: 1.3; background: #fff; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #d56f00; }
.btn-line { background: #fff; color: var(--navy); border-color: #c9d3e2; }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: #fff; color: #b3261e; border-color: #f0c4c0; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn-xs { padding: 4px 9px; font-size: 13px; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.tag.blue { background: var(--blue-soft); color: #1257c0; }
.tag.orange { background: var(--orange-soft); color: #b35a00; }
.tag.teal { background: var(--teal-soft); color: #007774; }
.tag.coral { background: var(--coral-soft); color: #b83a2b; }
.tag.navy { background: var(--navy-soft); color: var(--navy); }
.tag.yellow { background: var(--yellow-soft); color: #8a6a00; }
.tag.green { background: var(--green-soft); color: #13703b; }
.tag.solid { background: var(--navy); color: #fff; }

.section { padding-block: 60px; }
.section.tight { padding-block: 36px; }
.section.alt { background: var(--bg-2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(23px, 3vw, 30px); color: var(--navy); }
.sec-head p { color: var(--ink-2); margin-top: 6px; max-width: 760px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; color: var(--orange); letter-spacing: .02em; margin-bottom: 8px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; color: var(--navy); }
.card.pad-lg { padding: 28px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 22px; }
.stack > *, .stack-lg > *, .grid > * { min-width: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid #f3dd8a; color: #5c4a00; font-size: 15px; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #b98a00; }
.notice.blue { background: var(--blue-soft); border-color: #bcd6fb; color: #173f7a; }
.notice.blue svg { color: var(--blue); }
.notice.teal { background: var(--teal-soft); border-color: #b5e3e1; color: #0b4f4d; }
.notice.teal svg { color: var(--teal); }
.notice.coral { background: var(--coral-soft); border-color: #f6c7c0; color: #6a2a22; }
.notice.coral svg { color: var(--coral); }
.notice strong { color: inherit; }
.src { font-size: 13px; color: var(--ink-3); }
.src a { color: var(--ink-2); }

/* 페이지 머리 */
.page-hero { background: linear-gradient(180deg, #f3f7fd 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); padding-block: 34px 30px; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.page-hero .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; background: var(--c, var(--navy)); padding: 4px 13px; border-radius: 999px; font-size: 13.5px; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); }
.page-hero .lead { font-size: 17.5px; color: var(--ink-2); margin-top: 10px; max-width: 820px; }

/* ---------- 홈 ---------- */
.hero { padding-block: 38px 64px; background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 36px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-copy .vision { width: min(340px, 100%); mix-blend-mode: multiply; }
/* 슬로건 움직임(assets/img/vision-motion.svg, 선도학교 누리집과 같은 그림) */
.hero-copy .vmw { position: relative; width: min(340px, calc(100% - 34px)); }
.hero-copy .vmw .vision { width: 100%; display: block; }
.hero-copy .vmw > svg.vm { display: block; width: 100%; height: auto; margin: -1.2% 0; }
.vm-toggle { position: absolute; right: -32px; bottom: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9); color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .7; }
.vm-toggle:hover, .vm-toggle:focus-visible { opacity: 1; color: var(--navy); border-color: var(--navy); }
.vm-toggle svg { width: 13px; height: 13px; }
.hero-copy h1 { font-size: clamp(30px, 4.3vw, 46px); color: var(--navy); }
.hero-copy h1 em { font-style: normal; color: var(--orange); }
.hero-copy .lead { font-size: 18px; color: var(--ink-2); }
.ask-box { display: flex; gap: 8px; background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 6px 6px 6px 20px; align-items: center; box-shadow: var(--shadow); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 8px 0; background: transparent; }
.ask-box button { border: 0; background: var(--navy); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ask-box button svg { width: 20px; height: 20px; }
/* 음성 단추: 눈에 띄게 빨강(듣는 중엔 더 진한 빨강+물결) */
.ask-box button.mic { background: #e03131; color: #fff; border: 1px solid #e03131; box-shadow: 0 3px 10px rgba(224,49,49,.35); }
.ask-box button.mic:hover { background: #c92a2a; border-color: #c92a2a; }
.ask-box button.mic.rec { background: #a51d2d; border-color: #a51d2d; color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ask-box button.mic.rec { animation: none; } }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--ink-2); }
.ask-chips button:hover { border-color: var(--navy); color: var(--navy); }

/* 홈 오른쪽: 보고서 구조 그림 */
.report-visual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); position: relative; }
.report-visual h3 { font-size: 15px; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; }
.chain { display: grid; gap: 8px; }
.chain .row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.chain .no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c); font-size: 14px; }
.chain .body { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 8px 12px; background: #fff; }
.chain .body b { color: var(--navy); font-size: 15px; }
.chain .body span { display: block; color: var(--ink-3); font-size: 13px; }
.chain-link { margin-top: 14px; border-radius: 12px; background: var(--navy); color: #fff; padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.chain-link .flow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-weight: 700; }
.chain-link .flow span { background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 8px; }
.chain-link .flow i { color: var(--yellow); font-style: normal; }

.quick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: -30px; position: relative; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 6px; text-decoration: none; font-weight: 700; color: var(--navy); text-align: center; font-size: 14.5px; box-shadow: 0 4px 14px rgba(1,45,99,.05); }
.quick a:hover { border-color: var(--navy); transform: translateY(-1px); }
.quick .ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg, var(--blue-soft)); color: var(--fg, var(--blue)); }
.quick .ico svg { width: 24px; height: 24px; }

.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.journey a { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: var(--radius); padding: 20px 16px 18px; min-height: 230px; }
.journey a:hover { border-color: var(--c); }
.journey .num { font-size: 13px; font-weight: 800; color: var(--c); letter-spacing: .02em; }
.journey h3 { font-size: 18px; color: var(--navy); }
.journey p { font-size: 14.5px; color: var(--ink-2); }
.journey .go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.journey .go svg { width: 16px; height: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; align-content: start; }
.stat b { display: block; font-size: 32px; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 16px; margin-left: 2px; }
.stat span { color: var(--ink-2); font-size: 15px; }
.stat .src { margin-top: 4px; }

.effect-bars { display: grid; gap: 8px; }
.effect-bars .eb { display: grid; grid-template-columns: 210px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 14.5px; }
.effect-bars .eb .track { height: 14px; background: var(--line-2); border-radius: 7px; overflow: hidden; }
.effect-bars .eb .track i { display: block; height: 100%; border-radius: 7px; background: var(--c, var(--blue)); }
.effect-bars .eb b { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }

.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; }
.band h2 { font-size: 24px; }
.band p { color: #cfdaeb; margin-top: 6px; }
.band ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.band .tag { background: rgba(255,255,255,.12); color: #fff; }

/* 일정 */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 110px 18px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 128px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .d { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; margin-top: 5px; position: relative; z-index: 1; }
.timeline li.past .dot { border-color: #c4ccd8; }
.timeline li.past .t { color: var(--ink-3); }
.timeline li.next .dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,125,0,.18); }
.timeline .t b { display: block; color: var(--navy); }
.timeline .t span { font-size: 14px; color: var(--ink-3); }
.dday { font-size: 12px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 6px; padding: 1px 7px; margin-left: 6px; }

/* 목록형 게시판 */
.list { list-style: none; border-top: 2px solid var(--navy); }
.list li { border-bottom: 1px solid var(--line); }
.list a, .list .item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 6px; text-decoration: none; }
.list a:hover { background: var(--bg-2); }
.list .title { font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.list .empty { padding: 26px 6px; color: var(--ink-3); text-align: center; display: block; }

/* ---------- 폼 ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-weight: 700; color: var(--navy); font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field .hint { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
/* 필수·선택 꼬리표(2026-10-24 사용자 요청: 필수는 눈에 띄는 세련된 빨강, 선택은 녹색) */
.field .hint.need { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; color: #c8283c; background: #fdecef; border: 1px solid #f6c3cb; vertical-align: 1px; }
.field .hint.need.opt { color: #12784a; background: #e6f6ee; border-color: #b5e3cb; }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: #fff; font-size: 15.5px; line-height: 1.55; }
.textarea { min-height: 110px; resize: vertical; }
.textarea.tall { min-height: 220px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.seg { display: inline-flex; border: 1px solid #cdd5e1; border-radius: 12px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: #fff; padding: 9px 14px; font-weight: 700; color: var(--ink-2); font-size: 14.5px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.counter { font-size: 12.5px; color: var(--ink-3); text-align: right; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button, .tabs a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.tabs [aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.tbl thead th { background: var(--navy-soft); color: var(--navy); font-weight: 800; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .ok { color: var(--green); font-weight: 800; }
.tbl .no { color: #c0392b; font-weight: 800; }

/* 대화상자 */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(1, 45, 99, .25); }
dialog.wide { width: min(920px, calc(100% - 32px)); }
/* 바로 보기(자료실 한글 양식·원문 PDF) */
.btn-view { background: var(--teal-soft); color: var(--teal-ink, #0b5e57); border-color: #9fd6cf; }
.btn-view:hover { border-color: var(--teal); }
dialog.viewer { width: min(1100px, calc(100% - 24px)); height: calc(100vh - 32px); max-height: none; display: flex; flex-direction: column; }
dialog.viewer:not([open]) { display: none; }
dialog.viewer .dlg-head { padding: 12px 14px 12px 20px; flex: none; }
dialog.viewer .dlg-head h2 { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.viewer .dlg-body { flex: 1; max-height: none; padding: 0; display: block; overflow: auto; background: #eef1f6; }
.vw-tools { display: flex; gap: 6px; align-items: center; flex: none; }
.vw-zoom { display: inline-flex; gap: 4px; }
.vw-btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.vw-btn:hover { background: rgba(255,255,255,.24); }
.vw-btn svg { width: 16px; height: 16px; }
.vw-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.vw-note { margin: 16px 16px 0; font-size: 13.5px; color: var(--ink-3); }
.vw-hwp { padding-bottom: 20px; }
.vw-hwp .dv-docwrap { padding: 12px; }
.vw-pages { position: relative; }
.vw-list { margin: 0 auto; padding: 10px; display: grid; gap: 10px; min-width: 100%; box-sizing: border-box; }
.vw-page { position: relative; width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(1,45,99,.15); display: grid; place-items: center; }
.vw-page canvas { display: block; width: 100%; height: auto; }
.vw-pno { color: var(--ink-3); font-size: 13px; }
.vw-count { position: sticky; bottom: 10px; margin: 0 auto 10px; width: max-content; background: rgba(1,25,55,.78); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.vw-status { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 40px 16px; color: var(--ink-2); text-align: center; }
@media (max-width: 640px) {
  dialog.viewer { width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .vw-btn .t { display: none; }
  .vw-btn { padding: 7px 9px; }
  .vw-hwp .dv-docwrap { padding: 6px; }
  .vw-list { padding: 6px; gap: 6px; }
}
dialog::backdrop { background: rgba(1, 25, 55, .55); }
.dlg-head { background: var(--navy); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h2 { font-size: 19px; }
.dlg-head button { background: transparent; border: 0; color: #fff; padding: 4px; }
.dlg-body { padding: 22px 24px; display: grid; gap: 14px; overflow: auto; max-height: calc(100vh - 200px); }
.dlg-foot { padding: 0 24px 22px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* 알림 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); z-index: 200; opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b3261e; }

/* 로그인 안내 */
.login-gate { border: 1px dashed #b9c6da; border-radius: var(--radius-lg); background: #fbfcfe; padding: 36px 24px; display: grid; justify-items: center; text-align: center; gap: 12px; }
.login-gate h2 { color: var(--navy); font-size: 22px; }
.login-gate p { color: var(--ink-2); max-width: 560px; }
.login-gate .gbtn { min-height: 44px; }
/* 로그인 잠금(첫 화면 말고 다른 메뉴): 로그인 전에는 화면 내용 대신 안내만 */
.pp-locked #main > :not(#site-gate) { display: none !important; }
.pp-locked #main { min-height: 60vh; }
#site-gate { max-width: 760px; }
.mail-ev { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.mail-ev .chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ai-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ai-bar .field { margin: 0; flex: 1; min-width: 260px; }
.ai-cur { font-size: 15px; }
.ai-spec { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.ai-info ul { margin: 8px 0 0; }
.ai-test-out { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; display: grid; gap: 8px; }
.ai-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.lg-bar .field { margin: 0; min-width: 140px; }
.lg-bar .field:nth-child(2) { flex: 1; min-width: 180px; }
.lg-sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.lg-sum b { color: var(--navy); font-size: 17px; }
.login-note { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 600px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--teal-soft); border: 1px solid #a9ddd8; }
.login-note > svg { flex: none; width: 22px; height: 22px; color: #0b7d79; margin-top: 2px; }
.login-note b { color: #0b5e5b; font-size: 15.5px; }
.login-note p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: none; }

/* 마크다운 본문 */
.md { font-size: 15.5px; line-height: 1.75; }
.md > * + * { margin-top: .7em; }
.md h1, .md h2 { font-size: 20px; color: var(--navy); margin-top: 1.2em; }
.md h3 { font-size: 17px; color: var(--navy); margin-top: 1.1em; }
.md h4 { font-size: 15.5px; color: var(--navy); }
.md ul, .md ol { padding-left: 22px; }
.md li + li { margin-top: .25em; }
.md blockquote { margin: 0; border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.md code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.md table { border-collapse: collapse; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; overflow-wrap: break-word; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--navy-soft); color: var(--navy); }
.md .cite { font-size: 12.5px; color: #1257c0; background: var(--blue-soft); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.md hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- 채팅 ---------- */
.chat-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding-block: 24px 40px; }
.chat-shell { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; min-height: calc(100vh - 220px); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.chat-top .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 900; }
.chat-top b { color: var(--navy); display: block; }
.chat-top small { color: var(--ink-3); }
.chat-top .spacer { margin-left: auto; display: flex; gap: 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg .bubble { border-radius: 16px; padding: 12px 16px; }
.msg.user .bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .tools { display: flex; gap: 4px; flex-wrap: wrap; }
.msg .tools button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 9px; font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.msg .tools button:hover { border-color: var(--navy); color: var(--navy); }
.msg .tools svg { width: 14px; height: 14px; }
.msg .tools button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chat-top .voice-toggle.on { background: var(--navy-soft); border-color: var(--navy); color: var(--navy); }
.chat-top .voice-toggle { padding-inline: 9px; }
.chat-top .voice-toggle svg { width: 18px; height: 18px; }
.msg .status { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources span { font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--ink-2); }
.attach { border: 1px solid #bcd6fb; background: var(--blue-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.attach h4 { color: var(--navy); display: flex; gap: 8px; align-items: center; }
.attach .doc-prev { background: #fff; border-radius: 10px; padding: 12px 14px; max-height: 260px; overflow: auto; font-size: 14px; }
.chat-input { border-top: 1px solid var(--line); padding: 12px 14px; background: #fff; }
/* 입력 상자: 둥근 테두리 안에 글칸 + 오른쪽 음성(빨강)·보내기(남색) 동그라미 단추 */
.chat-input form { display: flex; gap: 8px; align-items: flex-end; background: #fff; border: 2px solid var(--navy); border-radius: 26px; padding: 6px 6px 6px 18px; }
.chat-input form:focus-within { box-shadow: 0 0 0 3px rgba(1,45,99,.12); }
.chat-input textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; box-shadow: none; background: transparent; border-radius: 0; padding: 11px 0; min-height: calc(3em + 22px); max-height: 180px; font-size: 15.5px; line-height: 1.5; }
.chat-input textarea:focus { outline: 0; box-shadow: none; }
.chat-input button[type="submit"] { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.chat-input button[type="submit"]:disabled { opacity: .5; }
/* 공지 꾸밈(선도학교와 같은 편집기) */
.rt-c-red { color: #d32f2f; } .rt-c-blue { color: #1565c0; } .rt-c-green { color: #2e7d32; } .rt-c-orange { color: #e65100; } .rt-c-purple { color: #6a1b9a; }
.rt-bg-yellow { background: #fff176; padding: 0 2px; border-radius: 2px; }
.rt-sm { font-size: .88em; } .rt-lg { font-size: 1.2em; } .rt-xl { font-size: 1.45em; line-height: 1.5; }
.rt-body { line-height: 1.8; overflow-wrap: anywhere; }
.rte { border: 1px solid #cdd5e1; border-radius: 12px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rte-bar button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rte-bar button:hover { background: #fff; border-color: var(--line); }
.rte-bar .sw span { width: 16px; height: 16px; border-radius: 50%; background: var(--c); display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.rte-bar .sw.plain span { background: #1f2937; }
.rte-bar .hl { background: #fff176; padding: 0 4px; border-radius: 3px; color: var(--ink); }
.rte-bar select { height: 32px; width: auto; padding: 0 8px; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-area { min-height: 220px; max-height: 55vh; overflow: auto; padding: 12px 14px; line-height: 1.8; outline: none; white-space: pre-wrap; word-break: break-word; }
.rte.single .rte-area { min-height: 0; max-height: none; white-space: normal; font-size: 16px; }
.rte-area font[size="1"], .rte-area font[size="2"] { font-size: .88em; }
.rte-area font[size="3"] { font-size: 1em; }
.rte-area font[size="4"], .rte-area font[size="5"] { font-size: 1.2em; }
.rte-area font[size="6"], .rte-area font[size="7"] { font-size: 1.45em; }
.chat-input .mic { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid #e03131; background: #e03131; color: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(224,49,49,.35); }
.chat-input .mic:hover { background: #c92a2a; border-color: #c92a2a; }
.chat-input .mic svg { width: 22px; height: 22px; }
.chat-input .mic.rec { background: #a51d2d; border-color: #a51d2d; color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,49,49,.55); } 50% { box-shadow: 0 0 0 9px rgba(224,49,49,0); } }
@media (prefers-reduced-motion: reduce) { .chat-input .mic.rec { animation: none; } }
.chat-input .hint { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; flex-wrap: wrap; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; display: grid; gap: 8px; align-content: start; }
.side-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.side-card .q { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--ink-2); }
.side-card .q:hover { border-color: var(--navy); color: var(--navy); }
.chat-aside { display: grid; gap: 14px; align-content: start; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 가이드 ---------- */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-block: 34px 60px; }
.toc { position: sticky; top: 140px; align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; max-height: calc(100vh - 170px); overflow: auto; }
.toc b { display: block; color: var(--navy); font-size: 14px; margin: 4px 6px 8px; }
.toc a { display: block; text-decoration: none; padding: 6px 8px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.toc a:hover, .toc a.on { background: var(--navy-soft); color: var(--navy); font-weight: 700; }
.chapter { scroll-margin-top: 140px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.chapter:last-child { border-bottom: 0; }
.chapter > .ch-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.chapter > .ch-head .no { width: 52px; height: 52px; border-radius: 14px; background: var(--c, var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: none; }
.chapter > .ch-head h2 { font-size: clamp(22px, 2.8vw, 28px); color: var(--navy); }
.chapter > .ch-head p { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.chapter h3 { font-size: 19px; color: var(--navy); margin: 26px 0 10px; display: flex; gap: 8px; align-items: center; }
.chapter h3 .k { font-size: 12px; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 6px; }
.chapter p + p { margin-top: 10px; }
ul.dots { padding-left: 20px; display: grid; gap: 6px; }
.funnel { display: grid; gap: 6px; margin: 16px 0; }
.funnel div { margin-inline: auto; width: var(--w); background: var(--c); color: #fff; border-radius: 10px; padding: 11px 16px; font-weight: 700; text-align: center; font-size: 15px; }
.funnel div small { display: block; font-weight: 500; opacity: .9; font-size: 13px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.compare > div { border-radius: 12px; padding: 16px 18px; border: 1px solid; }
.compare .bad { background: #fff5f4; border-color: #f3c9c3; }
.compare .good { background: #f1faf5; border-color: #bfe5cf; }
.compare h4 { font-size: 14px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.compare .bad h4 { color: #b3261e; }
.compare .good h4 { color: #13703b; }
.compare p, .compare li { font-size: 14.5px; }
.compare ul { padding-left: 18px; }
.keybox { border-radius: 14px; background: var(--navy); color: #fff; padding: 18px 20px; margin: 16px 0; }
.keybox h4 { color: var(--yellow); margin-bottom: 8px; font-size: 15px; }
.keybox ul { padding-left: 18px; display: grid; gap: 4px; color: #e6edf7; }
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.five div { border: 2px solid var(--navy); border-radius: 12px; padding: 12px 8px; text-align: center; background: #fff; }
.five b { display: block; font-size: 22px; color: var(--navy); }
.five span { font-size: 13.5px; color: var(--ink-2); }
.five div.opt { border-style: dashed; border-color: #9aa8bd; }
.five div.opt b { color: var(--ink-3); }
.stars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- 작성 도우미(위저드) ---------- */
.wiz { display: grid; grid-template-columns: 240px minmax(0, 1fr) 360px; gap: 18px; padding-block: 22px 60px; align-items: start; }
.wiz-steps { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px; display: grid; gap: 4px; }
.wiz-steps .doc { padding: 6px 8px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: grid; gap: 6px; }
.wiz-steps .doc b { color: var(--navy); font-size: 14.5px; }
.wiz-steps button.st { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.wiz-steps button.st .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; font-size: 13px; color: var(--ink-3); }
.wiz-steps button.st.done .n { background: var(--green-soft); color: var(--green); }
.wiz-steps button.st[aria-current="step"] { background: var(--navy-soft); color: var(--navy); font-weight: 800; }
.wiz-steps button.st[aria-current="step"] .n { background: var(--navy); color: #fff; }
.wiz-steps .pct { font-size: 12px; color: var(--ink-3); }
.wiz-main { display: grid; gap: 16px; min-width: 0; }
.wiz-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 24px; display: grid; gap: 18px; }
.wiz-card > header h2 { font-size: 23px; color: var(--navy); }
.wiz-card > header p { color: var(--ink-2); margin-top: 6px; }
.tipbox { border-radius: 12px; background: var(--teal-soft); border: 1px solid #b5e3e1; padding: 14px 16px; font-size: 14.5px; color: #0b4f4d; }
.tipbox b { color: #006a67; }
.tipbox ul { padding-left: 18px; margin-top: 6px; display: grid; gap: 3px; }
.repeat { display: grid; gap: 12px; }
.repeat .ri { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fbfcfe; display: grid; gap: 12px; position: relative; }
.repeat .ri .ri-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.repeat .ri .ri-head b { color: var(--navy); }
.form-row.sch-row { grid-template-columns: 150px 150px minmax(0, 1fr) auto; align-items: center; }
.wiz-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wiz-ai { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; max-height: calc(100vh - 160px); }
.wiz-ai header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.wiz-ai header b { color: var(--navy); display: flex; gap: 8px; align-items: center; }
.wiz-ai .out { padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 160px; }
.wiz-ai .out:empty::before { content: "이 단계를 쓰고 'AI 피드백'을 누르면 작성 지침과 체크리스트를 기준으로 검토 의견을 드립니다."; color: var(--ink-3); font-size: 14px; }
.wiz-ai footer { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; }
.lint { display: grid; gap: 6px; }
.lint div { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.lint .ok { background: var(--green-soft); color: #13552f; }
.lint .warn { background: var(--yellow-soft); color: #6b5300; }
.lint .err { background: var(--coral-soft); color: #7a2a20; }
.lint svg { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.matrix td, .matrix th { font-size: 13.5px; }
.matrix td.miss { background: #fff5f4; color: #b3261e; font-weight: 700; }

/* ---------- 심층 피드백 결과 ---------- */
.drop { border: 2px dashed #b9c6da; border-radius: var(--radius-lg); background: #fbfcfe; padding: 34px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop .big { font-size: 18px; font-weight: 800; color: var(--navy); }
.drop svg { width: 40px; height: 40px; color: var(--blue); }
.fileinfo { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; flex-wrap: wrap; }
.fileinfo b { color: var(--navy); }
.progressbar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progressbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); width: 0; transition: width .4s; }
.progressbar.indet i { width: 35%; animation: indet 1.4s ease-in-out infinite; }
/* 공지 첨부파일(쓰기 창의 작은 끌어다 놓기 칸, 목록·본문의 파일 줄) */
.drop.sm { padding: 16px 14px; gap: 6px; }
.drop.sm svg { width: 26px; height: 26px; }
.drop.sm .big { font-size: 15px; }
.drop.off { opacity: .55; pointer-events: none; }
.nf-list { display: grid; gap: 8px; }
.nf-list .fileinfo { padding: 10px 12px; gap: 10px; flex-wrap: nowrap; }
.nf-list .fileinfo > svg { flex: none; color: var(--blue); }
.nf-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nf-name b { overflow-wrap: anywhere; }
.nf-name .progressbar { margin-top: 4px; }
.nf-list .fileinfo .btn { flex: none; }
.nf-clip { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--ink-3); }
.nf-clip svg { width: 15px; height: 15px; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.overall { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; border-radius: var(--radius-lg); padding: 24px; background: var(--navy); color: #fff; }
.overall .lvl { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #fff; color: var(--navy); font-weight: 900; font-size: 20px; line-height: 1.2; border: 8px solid var(--c, var(--yellow)); }
.overall p { color: #e6edf7; }
.overall h2 { font-size: 22px; margin-bottom: 8px; }
.crit { display: grid; gap: 10px; }
.crit .c { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; display: grid; gap: 6px; }
.crit .c .top { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.crit .c .top b { color: var(--navy); font-size: 15px; }
.score { display: flex; gap: 3px; justify-content: flex-end; }
.score i { width: 22px; height: 10px; border-radius: 3px; background: var(--line-2); }
.score i.on { background: var(--c, var(--blue)); }
.crit .c p { font-size: 14.5px; color: var(--ink-2); }
.crit .c p b { color: var(--ink); }
.issue { border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 14px 16px; background: #fff; display: grid; gap: 8px; }
.issue .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.issue .quote { background: var(--bg-2); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--ink-2); border-left: 3px solid #c4ccd8; }
.issue .rewrite { background: var(--green-soft); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; color: #13552f; }
.issue p { font-size: 14.5px; }
.pri-필수 { --c: var(--coral); }
.pri-권장 { --c: var(--orange); }
.pri-참고 { --c: var(--blue); }

.side-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }

/* 체크리스트 페이지 */
.cl-group { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cl-group > h3 { background: var(--navy-soft); color: var(--navy); padding: 12px 18px; font-size: 16.5px; display: flex; justify-content: space-between; gap: 10px; }
.cl-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line-2); cursor: pointer; }
.cl-item input { width: 22px; height: 22px; accent-color: var(--green); margin-top: 1px; }
.cl-item .t { font-size: 15.5px; }
.cl-item .t .req { font-size: 11.5px; font-weight: 800; color: #fff; background: var(--coral); border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.cl-item .t .opt { font-size: 11.5px; font-weight: 800; color: var(--ink-3); background: var(--bg-2); border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.cl-item .why { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.cl-item:has(input:checked) .t { color: var(--ink-3); }
.meter { height: 12px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); width: 0; transition: width .3s; }

/* 모델 */
.model-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.model-tabs button { text-align: left; border: 2px solid var(--line); border-top: 6px solid var(--c); background: #fff; border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.model-tabs button b { color: var(--navy); font-size: 15px; }
.model-tabs button span { font-size: 13px; color: var(--ink-3); }
.model-tabs button[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 6px 16px rgba(1,45,99,.08); }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stages div { border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.stages div b { display: block; font-size: 12px; color: var(--c); font-weight: 900; }
.stages div span { font-size: 14px; color: var(--navy); font-weight: 700; }
.yn { display: inline-flex; border: 1px solid #cdd5e1; border-radius: 10px; overflow: hidden; flex: none; }
.yn button { border: 0; background: #fff; padding: 5px 11px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.yn button[aria-pressed="true"].y { background: var(--green); color: #fff; }
.yn button[aria-pressed="true"].p { background: var(--yellow); color: #5a4500; }
.yn button[aria-pressed="true"].n { background: var(--coral); color: #fff; }
.mc-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line-2); }
.mc-item .sn { font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 6px; text-align: center; padding: 2px 0; }
.stage-score { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stage-score div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: #fff; }
.stage-score b { display: block; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stage-score span { font-size: 12.5px; color: var(--ink-3); }
.stage-score .weak { border-color: var(--coral); background: var(--coral-soft); }

/* 통계 */
.stat-io { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
.result-box { border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: grid; gap: 14px; }
.result-box .sent { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; line-height: 1.8; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kv div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.kv b { display: block; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kv span { font-size: 12.5px; color: var(--ink-3); }
textarea.data { font-family: ui-monospace, Consolas, "D2Coding", monospace; font-size: 14px; min-height: 200px; white-space: pre; }

/* 제출 */
.sub-items { display: grid; gap: 10px; }
.sub-items label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #fff; }
.sub-items label:has(input:checked) { border-color: var(--navy); background: #fbfcfe; }
.sub-items input { width: 20px; height: 20px; accent-color: var(--navy); margin-top: 2px; }
.sub-items b { color: var(--navy); display: block; }
.sub-items span { font-size: 14px; color: var(--ink-2); }
.sub-items label.closed { opacity: .55; cursor: not-allowed; }
.status-접수 { background: var(--blue-soft); color: #1257c0; }
.status-확인중, .status-확인\ 중 { background: var(--yellow-soft); color: #8a6a00; }
.status-확인완료, .status-확인\ 완료 { background: var(--green-soft); color: #13703b; }
.status-보완요청, .status-보완\ 요청 { background: var(--coral-soft); color: #b83a2b; }

/* 관리자 */
.admin-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding-block: 24px 60px; }
.admin-nav { position: sticky; top: 140px; align-self: start; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px; }
.admin-nav a { text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.admin-nav a.on, .admin-nav a:hover { background: var(--navy-soft); color: var(--navy); }
.admin-sec { display: grid; gap: 16px; scroll-margin-top: 140px; margin-bottom: 30px; }
.admin-sec > h2 { font-size: 22px; color: var(--navy); }

/* ---------- 바닥글 ---------- */
.site-foot { background: #1d2433; color: #aeb7c7; font-size: 14px; margin-top: 40px; }
.site-foot .wrap { padding-top: 28px; padding-bottom: 32px; display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.site-foot img { height: 36px; width: auto; opacity: .95; }
.site-foot .fi-txt { flex: 1; min-width: 260px; line-height: 1.8; }
.site-foot a { color: #dfe6f3; }
.site-foot .copy { color: #7f8aa0; font-size: 13px; margin-top: 6px; }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; text-decoration: none; padding: 10px 18px 10px 12px; border-radius: 999px; box-shadow: 0 10px 28px rgba(1,45,99,.35); }
.fab .av { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.fab b { display: block; font-size: 14.5px; }
.fab small { display: block; font-size: 12px; color: #cfdaeb; }

/* AI 도우미 알림 움직임: 평소엔 6초마다 빛줄기가 지나가고(머리글 버튼·오른쪽 아래 버튼),
   처음 들어왔을 때(창마다 한 번) 오른쪽 아래 버튼이 통통 튀며 말풍선 인사 */
.btn-ai, .fab { position: relative; overflow: hidden; isolation: isolate; }
.fab { position: fixed; }
.btn-ai::after, .fab::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg); animation: aiShine 6s ease-in-out infinite; }
.fab::after { animation-delay: .5s; }
.btn-ai .dot { animation: aiDot 6s ease-in-out infinite; }
@keyframes aiShine { 0%, 62% { transform: translateX(-120%) skewX(-18deg); } 80%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes aiDot { 0%, 70%, 100% { box-shadow: 0 0 0 3px rgba(255,205,27,.3); } 78% { box-shadow: 0 0 0 7px rgba(255,205,27,.55); } }
.fab.hello { animation: fabHop 1.3s ease-in-out .5s both; transform-origin: 50% 100%; }
.fab.hello .av { animation: fabWave 1.3s ease-in-out .5s both; }
@keyframes fabHop { 0%, 100% { transform: none; } 25% { transform: translateY(-12px); } 50% { transform: none; } 70% { transform: translateY(-6px); } 88% { transform: none; } }
@keyframes fabWave { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }
.fab-bubble { position: fixed; right: 24px; bottom: 84px; z-index: 31; background: #fff; color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(1,45,99,.14); white-space: nowrap;
  opacity: 0; transform: scale(.6) translateY(8px); transform-origin: 85% 100%; transition: opacity .35s ease, transform .45s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.fab-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-bubble::after { content: ""; position: absolute; right: 26px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .wiz { grid-template-columns: 220px minmax(0, 1fr); }
  .wiz-ai { grid-column: 1 / -1; position: static; max-height: none; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .gnb { display: none; }
  .gnb.open { display: block; }
  .gnb ul { flex-direction: column; padding-block: 6px; }
  .gnb a { border-bottom: 0; border-left: 3px solid transparent; padding: 11px 10px; }
  .gnb a[aria-current="page"] { border-left-color: var(--orange); background: var(--bg-2); }
  .gnb .m-only { display: block; border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
  .gnb .m-only + .m-only { border-top: 0; margin-top: 0; padding-top: 0; }
  .hero-grid, .stat-io, .guide-layout, .chat-page, .admin-grid, .side-grid { grid-template-columns: minmax(0, 1fr); }
  .toc, .admin-nav { position: static; max-height: none; }
  .g3, .g4, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz { grid-template-columns: minmax(0, 1fr); }
  .wiz-steps { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-steps .doc { grid-column: 1 / -1; }
  .stages, .stage-score, .five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .effect-bars .eb { grid-template-columns: 150px minmax(0, 1fr) 50px; }
  .chat-shell { min-height: 70vh; }
}
@media (max-width: 640px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .md .cite { white-space: normal; }
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .brand .jbe { height: 30px; }
  .brand .bar, .brand .svc small { display: none; }
  .brand { flex-wrap: wrap; gap: 3px 10px; padding-block: 8px; }
  .brand .svc { flex-basis: 100%; }
  .brand .svc b { font-size: 13.5px; white-space: normal; }
  .btn-ai span.t { display: none; }
  .btn-ai { padding: 10px 12px; }
  .util-links { display: none; }
  .util .wrap { padding-bottom: 7px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .journey, .g2, .g3, .g4, .stat-row, .form-row, .form-row.three, .compare, .model-tabs, .kv { grid-template-columns: minmax(0, 1fr); }
  .form-row.sch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .form-row.sch-row input[type="date"] { grid-column: 1 / -1; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav a { padding: 8px 10px; font-size: 14.5px; }
  .admin-sec .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stages, .stage-score, .five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band, .overall { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { flex-direction: column; gap: 14px; }
  .timeline li { grid-template-columns: 88px 16px minmax(0, 1fr); }
  .timeline li::before { left: 103px; }
  .effect-bars .eb { grid-template-columns: minmax(0, 1fr) 48px; }
  .effect-bars .eb .track { grid-column: 1 / -1; grid-row: 2; }
  .crit .c .top { grid-template-columns: minmax(0, 1fr); }
  .score { justify-content: flex-start; }
  .msg { max-width: 96%; }
  .fab .t { display: none; }
  /* AI 도우미 머리: 단추는 그림만, 제목 줄이 눌려 세로로 쌓이지 않게 */
  .chat-top { padding: 12px; gap: 10px; }
  .chat-top > div:not(.spacer) { min-width: 0; }
  .chat-top small { display: none; }
  .chat-top .spacer .t { display: none; }
  .chat-top .spacer .btn { padding-inline: 9px; }
  .chat-input { padding: 10px; }
  .chat-input form { padding-left: 14px; gap: 6px; }
  .fab { padding: 8px; }
  .fab-bubble { right: 16px; bottom: 76px; }
  .fab-bubble::after { right: 22px; }
  .list a, .list .item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wiz-steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 44px; }
}

@media print {
  .util, .masthead, .site-foot, .fab, .no-print, .wiz-steps, .wiz-ai, .toc { display: none !important; }
  body { font-size: 12pt; }
  .card, .issue, .crit .c { break-inside: avoid; }
  .guide-layout, .wiz { display: block; }
}
