/* ===== 대학 성과분석시스템 공통 스타일 ===== */
:root {
  --navy: #0b1d44;
  --navy-2: #13295a;
  --blue: #0f5bd8;
  --blue-dark: #0a47ad;
  --accent: #2ecc9a;
  --bg: #eef1f5;
  --surface: #ffffff;
  --mega-bg: #f4f6f9;
  --line: #dfe3ea;
  --text: #1c2433;
  --muted: #6b7486;
  --danger: #d6453d;
  --ok: #1f9d6b;

  --pt-h: 54px;      /* 머리줄 (흰색) — 2026-11-06 60 → 54 */
  --tab-h: 40px;     /* 탭 줄 (파랑) */
  --sw: 244px;       /* 로고 칸 = 탭 줄 왼쪽 칸 = 전체 메뉴 왼쪽 분류 (shell.js align 이 로고 길이에 맞춰 244 ~ 300) */
  /* 머리줄 · 전체 메뉴 · 즐겨찾기 창의 글자 · 바탕 (다크모드는 theme.css 가 바꾼다) */
  --ink: #0f1b3d; --ink-1: #1e293b; --ink-2: #334155; --ink-3: #475569;
  --mute: #64748b; --mute-2: #94a3b8; --mute-3: #cbd5e1;
  --soft: #f1f4f9; --rail: #f6f8fb; --hair: #e2e8f0; --hair-2: #d5dce6;
  --tint: #f5f8ff; --tint-2: #eef3ff; --tint-line: #dce7fb;
  --star: #fbbf24; --star-line: #f59e0b;
  --tab-off-bg: #d5dbe4; --tab-off-hover: #e4e8ef; --tab-off-ink: #5b6475;   /* 선택 안 된 탭 */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;   /* 외부 글꼴(CDN)은 쓰지 않는다: Pretendard 는 assets/common/fonts 에 직접 둔다 */
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #eef1f6; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.container { max-width: 1880px; margin: 0 auto; padding: 0 16px; }   /* 1920x1080 모니터 기준으로 꽉 차게 */

/* ---------- 머리줄 (dashboard2 포털 틀 모양, 2026-11-04): 흰 머리줄 60 + 파란 탭 줄 40 ----------
   로고 칸 = 탭 줄 왼쪽 칸 = 전체 메뉴 왼쪽 분류 너비 (--sw, shell.js align 이 로고 길이에 맞춰 244 ~ 300)
   지금 위치: 대메뉴 = 글자색 + 아래 밑줄. 파란색은 var(--blue) 라 화면테마(theme.css)를 따른다 */
.site-header { position: relative; z-index: 100; flex: none; user-select: none; }
.site-header button { font: inherit; cursor: pointer; }
.pt-top {
  height: var(--pt-h); display: grid; grid-template-columns: var(--sw) minmax(0, 1fr) auto; align-items: center;
  padding: 0 28px 0 0; background: var(--surface); border-bottom: 1px solid var(--line);   /* 오른쪽 28 = 대시보드 내용 오른쪽 끝 (2026-11-06) */
}
.pt-logo { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 14px; white-space: nowrap; }
.pt-logo b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.logo-img { display: block; height: 26px; width: auto; flex: none; }
.logo-img.logo-dark { display: none; }   /* 다크모드용 흰 로고 (theme.css 가 바꿔 보인다) */
.pt-gnb { display: flex; justify-content: center; gap: 16px; height: 100%; min-width: 0; }
.pt-gnb a {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 150px; padding: 0 18px;
  font-size: 16px; font-weight: 700; color: var(--ink-2); letter-spacing: -.3px; white-space: nowrap;
}
.pt-gnb a::after {
  content: ""; position: absolute; left: 34px; right: 34px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--blue); transform: scaleX(0); transition: transform .2s;
}
.pt-gnb a:hover, .pt-gnb a.hv { color: var(--blue); }
.pt-gnb a.on { color: var(--blue); font-weight: 800; }
.pt-gnb a.on::after { transform: scaleX(1); opacity: 1; }
/* 메뉴 창이 열린 동안: 고른 대메뉴(.hv)만 강조하고 이름 오른쪽에 아래 화살표 (자리를 차지하지 않게), 현재 메뉴(.on) 밑줄은 잠시 숨김.
   고른 메뉴가 지금 보는 메뉴면 화살표 대신 원래 밑줄 */
.site-header.open .pt-gnb a.on:not(.hv) { color: var(--ink-2); font-weight: 700; }
.site-header.open .pt-gnb a.on:not(.hv)::after { transform: scaleX(0); opacity: 0; }
.site-header.open .pt-gnb a.hv { color: var(--blue); font-weight: 800; }
.site-header.open .pt-gnb a.hv:not(.on)::after {
  position: static; flex: none; width: 7px; height: 7px; margin: 0 -14px 3px 7px; border-radius: 1px; background: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 1; transition: none;
}
/* 메뉴 검색칸: 누르거나 글자가 있으면 왼쪽으로만 넓어진다 (대메뉴 자리는 그대로) */
.pt-sbox {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; width: 118px; height: 28px; padding: 0 12px; margin-right: 4px;   /* 2026-11-06 108 → 118 : 글꼴에 따라 메뉴 검색의 마지막 글자가 잘리던 것 */
  border: 1px solid transparent; border-radius: 14px; background: var(--soft); color: var(--mute); cursor: text;
  transition: width .22s ease, margin-left .22s ease, background .15s, border-color .15s, box-shadow .15s;
}
.pt-sbox svg { width: 15px; height: 15px; stroke-width: 2; }
.pt-sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); }
.pt-sbox input::placeholder { color: var(--mute-2); }
.pt-sbox input::-webkit-search-cancel-button { cursor: pointer; }
.pt-sbox:hover { background: var(--hair); }
.pt-sbox:focus-within, .pt-sbox:has(input:not(:placeholder-shown)) {
  width: 230px; margin-left: -112px; background: var(--surface); border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
/* 화면테마 = 반쯤 칠한 원 */
.pt-thm svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pt-thm svg path { fill: currentColor; stroke: none; }
/* 머리줄 오른쪽 도구: 아이콘만 (이름은 마우스를 올리면) */
.pt-util { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pt-util svg, .pt-pop svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pt-ic {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none;
  display: grid; place-items: center; color: var(--ink-3); transition: background .15s;
}
.pt-ic:hover, .pt-ic.open { background: var(--soft); color: var(--ink); }
.pt-ic svg { width: 19px; height: 19px; stroke-width: 2; }
.pt-ic svg.dots { stroke-width: 3.4; }
/* 잔여시간: 누르면 연장, 5분 남으면 빨강 */
.pt-time {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 0 6px; padding: 0 12px; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 14%, var(--surface)); color: var(--navy); font-size: 12px;
}
.pt-time svg { width: 15px; height: 15px; stroke-width: 1.9; color: var(--blue); }
.pt-time b { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-time:hover { background: color-mix(in srgb, var(--blue) 22%, var(--surface)); }
.pt-time.warn { background: #fde4e2; color: var(--danger); }
.pt-time.warn svg { color: var(--danger); }
/* 사용자: 보라 동그라미 (이름 두 글자) → 누르면 이름 · 소속 · 로그아웃 */
.pt-av {
  width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: #7e57c2; color: #fff; font-size: 9px; font-weight: 500; letter-spacing: -.5px; transition: box-shadow .15s;
}
button.pt-av:hover, button.pt-av.open { box-shadow: 0 0 0 3px rgba(126, 87, 194, .25); }

/* 작은 창 (사용자 · 화면테마): 버튼 아래 오른쪽 끝 맞춤 (shell.js makePop) */
.pt-pop {
  position: absolute; z-index: 210; padding: 8px; background: var(--surface); border: 1px solid var(--hair-2);
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .3);
}
.pt-pop[hidden] { display: none; }
.pt-um { width: 220px; }
.um-h { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--soft); }
.um-h .pt-av { margin: 0; flex: none; }
.um-h b { display: block; font-size: 13.5px; color: var(--ink); }
.um-h small { font-size: 11.5px; color: var(--mute-2); }
.um-it {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.um-it:hover { background: #fef2f2; color: #dc2626; }
.um-it svg { width: 16px; height: 16px; stroke-width: 2.1; }
.pt-themes { width: 180px; }
.th-h { padding: 4px 8px 8px; font-size: 12px; font-weight: 800; color: var(--mute-2); }
.th-it {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer;
}
.th-it:hover { background: var(--tint); color: var(--ink); }
.th-it.on { background: var(--tint-2); color: var(--blue); font-weight: 800; }
.th-it.on::after { content: "✓"; margin-left: auto; }
.th-it .sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-base { background: #0f5bd8; } .sw-teal { background: #0e7c86; } .sw-violet { background: #5b3cc4; }
.sw-charcoal { background: #3b4a5e; } .sw-dark { background: #0b1428; }

/* ---------- 전체 메뉴 창: 왼쪽 분류 · 오른쪽 화면 카드(3열) · 위 검색 · 아래 즐겨찾기 ---------- */
.pt-dim { position: fixed; inset: var(--pt-h) 0 0; z-index: 90; background: rgba(15, 23, 42, .28); backdrop-filter: blur(1.5px); }
.pt-dim[hidden], .pt-mega[hidden] { display: none; }
.pt-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 130; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35); animation: mgIn .16s ease-out;
}
@keyframes mgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mg-in { display: flex; min-height: 420px; max-height: calc(100vh - var(--pt-h) - 48px); }
.mg-rail { width: var(--sw); flex: none; padding: 16px 14px; overflow: auto; background: var(--rail); border-right: 1px solid var(--line); }
.mg-cat + .mg-cat { margin-top: 6px; }
.mg-c {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px;
  background: none; font-size: 14.5px; font-weight: 800; color: var(--ink-2); text-align: left;
}
.mg-c svg { width: 18px; height: 18px; fill: none; stroke: var(--mute-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mg-c small, .mg-g small { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--mute-2); }
.mg-c:hover { background: var(--soft); }
.mg-cat.on .mg-c { color: var(--ink); }
.mg-cat.on .mg-c svg { stroke: var(--blue); }
.mg-gs { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 21px; padding-left: 10px; border-left: 1px solid var(--hair); }
.mg-g {
  display: flex; align-items: center; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-align: left;
}
.mg-g:hover { background: var(--soft); color: var(--ink); }
.mg-g.on { background: var(--surface); color: var(--blue); font-weight: 800; box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 0 0 1px var(--hair); }
.mg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 28px 0; }
.mg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--soft); }
.mg-crumb { min-width: 0; font-size: 15px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-crumb b { font-size: 17px; font-weight: 800; color: var(--ink); }
/* 세분류 목록 위 '‹ 정보공시' = 중분류 카드로 돌아가기 */
.mg-up {
  display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 6px; border: 1px solid var(--hair); border-radius: 8px;
  background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; vertical-align: middle;
}
.mg-up svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mg-up:hover { background: var(--tint); border-color: var(--tint-line); color: var(--blue); }
.mg-crumb i { margin: 0 4px; font-style: normal; color: var(--mute-3); }
.mg-crumb span { margin-left: 8px; font-size: 12.5px; color: var(--mute-2); }
.mg-s {
  margin-left: auto; display: flex; align-items: center; gap: 8px; width: 400px; max-width: 45%; height: 38px; padding: 0 14px;
  border: 1.5px solid var(--hair-2); border-radius: 10px; background: var(--surface);
}
.mg-s:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.mg-s svg { width: 17px; height: 17px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; flex: none; }
.mg-q { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); }
.mg-map { flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.mg-map:hover { background: var(--hair); color: var(--blue); }
.mg-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--soft); color: var(--mute); font-size: 20px; line-height: 1; }
.mg-x:hover { background: var(--hair); }
.mg-body { flex: 1; overflow: auto; padding: 10px 0 12px; }
.mg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 8px; align-items: start; }   /* 한 줄에 4개, 간격 촘촘하게 */
.mg-it {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 8px; border: 1px solid transparent;
  border-radius: 10px; cursor: pointer; outline: none;
}
.mg-it:hover, .mg-it:focus-visible { background: var(--tint); border-color: var(--tint-line); }
.mg-it .cd, .fv-ls a em, .mg-chip em {
  flex: none; min-width: 44px; height: 24px; padding: 0 7px; border-radius: 6px; display: grid; place-items: center;
  background: var(--tint-2); color: var(--blue); font-size: 11.5px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums;
}
/* 화면 카드의 번호 칸은 같은 너비 (가장 긴 번호 12-카-4-(1) 이 들어가게) → 메뉴명이 같은 자리에서 시작한다 */
.mg-it .cd { width: 84px; min-width: 84px; }
.mg-it .cd.dot, .fv-ls a em.dot { min-width: 0; width: 8px; height: 8px; padding: 0; margin: 0 8px; border-radius: 50%; background: var(--mute-3); }
.mg-it .nm {
  flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: var(--ink-1);
}
/* 메뉴명: 길면 두 줄까지 (낱말 단위로 줄바꿈, 그래도 넘치면 …) */
.mg-it .nm .t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere;
}
.mg-it .nm small { font-size: 11px; font-weight: 500; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-it .pr { flex: none; padding: 2px 6px; border-radius: 5px; background: var(--soft); font-size: 11px; font-style: normal; font-weight: 700; color: var(--mute); }
.mg-it .now { flex: none; padding: 2px 7px; border-radius: 5px; background: var(--blue); font-size: 11px; font-style: normal; font-weight: 800; color: #fff; }
.mg-it.cur { background: var(--tint-2); border-color: color-mix(in srgb, var(--blue) 28%, transparent); }
.mg-it.cur .nm { color: var(--blue); font-weight: 800; }
.mg-it.cur .cd { background: var(--blue); color: #fff; }
.mg-it .fv, .mg-sl .fv {
  flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none;
  display: grid; place-items: center; opacity: 0; transition: opacity .12s;
}
.mg-it:hover .fv, .mg-it .fv.on, .mg-it:focus-within .fv, .mg-sl:hover .fv, .mg-sl .fv.on { opacity: 1; }
.mg-it .fv:hover, .mg-sl .fv:hover { background: #fef3c7; }
.mg-it .fv .st, .mg-sl .fv .st { width: 16px; height: 16px; fill: none; stroke: var(--mute-2); stroke-width: 2; stroke-linejoin: round; }
.mg-it .fv.on .st, .mg-sl .fv.on .st { fill: var(--star); stroke: var(--star-line); }
/* 하위가 있는 카드(4단계): ☆ 대신 하위 개수 · 펼침 단추, 펼치면 카드 아래 하위 화면 */
.mg-it .sub-n { flex: none; font-size: 11px; font-style: normal; font-weight: 700; color: var(--mute-2); }
.mg-it .cv { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--mute-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.mg-cell.open > .mg-it .cv { transform: rotate(180deg); }
.mg-cell.open > .mg-it { background: var(--tint); border-color: var(--tint-line); }
.mg-sub { margin: 4px 0 6px 30px; padding: 2px 0 2px 10px; border-left: 2px solid var(--hair); }
.mg-sl {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 8px; border-radius: 8px;
  font-size: 13px; color: var(--ink-3); cursor: pointer; outline: none;
}
.mg-sl span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-sl:hover, .mg-sl:focus-visible { background: var(--tint); color: var(--ink); }
.mg-sl.cur { color: var(--blue); font-weight: 800; }
/* 대메뉴 첫 화면: 중분류 카드 (누르면 그 중분류의 화면 목록) */
.mg-grid.mg-grps { gap: 12px; }
.mg-grp {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 14px 40px 14px 16px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); cursor: pointer; outline: none; transition: background .15s, border-color .15s;
}
.mg-grp:hover, .mg-grp:focus-visible { background: var(--tint); border-color: var(--tint-line); }
.mg-grp b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.mg-grp b small { padding: 1px 7px; border-radius: 9px; background: var(--tint-2); font-size: 11.5px; font-weight: 700; color: var(--blue); }
.mg-grp b .now { margin-left: auto; padding: 2px 7px; border-radius: 5px; background: var(--blue); font-size: 11px; font-style: normal; font-weight: 800; color: #fff; }
.mg-grp p {
  margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--mute);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.mg-grp .go { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mute-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mg-grp:hover .go { stroke: var(--blue); }
.mg-grp.cur { border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.mg-empty { padding: 60px 0; text-align: center; font-size: 13.5px; color: var(--mute-2); }
.mg-fv { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0 16px; border-top: 1px solid var(--soft); }
.mg-fv .lb { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: 12.5px; font-weight: 800; color: #b45309; }
.mg-fv .lb .st { width: 14px; height: 14px; fill: var(--star); stroke: var(--star-line); stroke-width: 1.6; }
.mg-fv .mu { font-size: 12.5px; color: var(--mute-2); }
.mg-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 300px; height: 30px; padding: 0 12px 0 4px; border: 1px solid #fde68a;
  border-radius: 8px; background: #fffbeb; font-size: 12.5px; font-weight: 700; color: #78350f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.mg-chip em { min-width: 0; height: 22px; background: #fff; color: #b45309; }
.mg-chip:hover { background: #fef3c7; }
/* 손잡이: 창 아래 가운데 (메뉴 고정 | 닫기) */
.pt-mega { overflow: visible; }
.mg-handle {
  position: absolute; left: 50%; bottom: -33px; transform: translateX(-50%); display: flex; height: 34px;
  border: 1px solid var(--hair-2); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface);
  box-shadow: 0 10px 18px -10px rgba(15, 23, 42, .35); overflow: hidden;
}
.mg-pin, .mg-close {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 0; background: none;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
}
.mg-pin + .mg-close { border-left: 1px solid var(--hair); }
.mg-pin svg, .mg-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-pin svg { transform: rotate(35deg); transition: transform .15s; }
.mg-pin:hover, .mg-close:hover { color: var(--blue); background: var(--tint); }
.mg-pin[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mg-pin[aria-pressed="true"] svg { fill: currentColor; transform: none; }
/* 고정: 창이 화면 흐름 안에 들어와 아래 탭 줄 · 화면을 밀어 낸다 (덮지 않음). 손잡이는 창 안 오른쪽 아래 */
.site-header.fixed .pt-mega { position: relative; top: auto; animation: none; box-shadow: 0 2px 0 var(--line); }
.site-header.fixed .mg-in { min-height: 0; max-height: 42vh; }
.site-header.fixed .mg-handle { left: auto; right: 28px; bottom: 12px; transform: none; border-top: 1px solid var(--hair-2); border-radius: 10px; box-shadow: none; }
.site-header.fixed .mg-fv { padding-right: 230px; }

/* ---------- 카드 창 (dashboard2, 2026-11-05): 대메뉴 드롭다운(.near) · 사이트맵(.smap) ----------
   머리줄(아이콘 · 이름 · 개수 · 전체 메뉴 보기 · 검색 · 닫기) | 중분류 열(옅은 바탕 카드) + 오른쪽 즐겨찾기 칸 */
.mg-card { display: none; }
.pt-mega.near {
  left: 20px; right: 20px; top: calc(100% + 6px); border: 1px solid var(--hair); border-top: 1px solid var(--hair); border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .38); overflow: hidden;
}
.pt-mega.near .mg-in, .pt-mega.near .mg-handle { display: none; }
.pt-mega.near .mg-card { display: flex; flex-direction: column; max-height: calc(100vh - var(--pt-h) - 30px); }
.site-header.near + .pt-dim { background: rgba(15, 23, 42, .22); backdrop-filter: none; }
.mg-hd { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--soft); }
.mg-hi { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-2); color: var(--blue); }
.mg-hi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-hi svg.dots { stroke-width: 3.2; }
.mg-hd b { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; white-space: nowrap; }
.mg-hd small { margin-left: 2px; font-size: 12.5px; color: var(--mute-2); white-space: nowrap; }
.mg-full {
  margin-left: 14px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--hair);
  border-radius: 16px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.mg-full:hover { border-color: var(--tint-line); color: var(--blue); }
.mg-full svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.mg-hs {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; width: 200px; height: 34px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 17px; background: var(--rail); color: var(--mute); cursor: text;
  transition: width .2s ease, background .15s, border-color .15s, box-shadow .15s;
}
.mg-hs svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mg-hs input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); }
.mg-hs input::placeholder { color: var(--mute-2); }
.mg-hs:focus-within, .mg-hs:has(input:not(:placeholder-shown)) {
  width: 300px; background: var(--surface); border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
/* 메뉴 고정 (검색칸과 닫기 사이) : 누르면 파랗게, 창이 열린 채로 아래 화면을 밀어 낸다 */
.mg-hpin {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: 8px; padding: 0 14px; border: 1px solid var(--hair);
  border-radius: 17px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.mg-hpin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(35deg); transition: transform .15s; }
.mg-hpin:hover { border-color: var(--tint-line); color: var(--blue); }
.mg-hpin[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.mg-hpin[aria-pressed="true"] svg { fill: currentColor; transform: none; }
/* 고정한 카드 창 : 머리줄 아래 화면 흐름 안에 (탭 줄 · 화면이 아래로 밀림) */
.site-header.fixed .pt-mega.near { position: relative; top: auto; left: auto; right: auto; margin: 6px 20px 8px; box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .3); }
.site-header.fixed .pt-mega.near .mg-card { max-height: 46vh; }
.mg-hx { flex: none; width: 34px; height: 34px; margin-left: 8px; border: 0; border-radius: 10px; background: var(--soft); color: var(--mute); display: grid; place-items: center; }
.mg-hx:hover { background: var(--hair); color: var(--ink); }
.mg-hx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mg-wrap { flex: 1; min-height: 0; display: flex; align-items: stretch; }
.mg-wrap > .mg-cols { overflow-y: auto; }
.mg-cols {
  flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  padding: 18px 20px 22px; align-content: start; align-items: start;
}
.mg-col { min-width: 0; padding: 12px 8px 10px; border-radius: 14px; background: var(--rail); }
.mg-ch {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0 6px 8px;
  border: 0; background: none; font-size: 14.5px; font-weight: 700; color: var(--ink); text-align: left;
}
button.mg-ch:hover { color: var(--blue); }
.mg-ch small {
  flex: none; min-width: 24px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 11px; font-weight: 700; color: var(--mute);
}
/* 화면 목록 = 번호 | 이름 · 끝(공시 시기 · ☆) 두 칸. 번호 칸은 그 열에서 가장 긴 번호에 맞춘 같은 너비 → 이름이 같은 자리에서 시작 */
/* 이름 + 끝(.bd): 넓은 창에서는 그냥 이어서, 열에서는 줄마다 이름 오른쪽에 그 줄의 끝만큼 */
.mg-it .bd { display: contents; }
.mg-it .tl { flex: none; display: flex; align-items: center; gap: 6px; }
.mg-col .mg-ls:not(.mg-rg) { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .bd { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mg-col .mg-ls:not(.mg-rg) > .mg-cell, .mg-col .mg-ls:not(.mg-rg) .mg-it { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.mg-col .mg-ls:not(.mg-rg) .mg-it { min-height: 36px; padding: 4px 2px 4px 6px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .cd { width: auto; min-width: 0; justify-self: stretch; height: 22px; font-size: 11px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .cd.dot, .mg-allmap .mg-ls:not(.mg-rg) .mg-it .cd.dot { justify-self: center; width: 6px; height: 6px; padding: 0; margin: 0 2px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .tl { gap: 4px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .now { padding: 1px 5px; font-size: 0; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .now::after { content: '현재'; font-size: 10.5px; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .fv { width: 24px; height: 24px; }
.mg-col .mg-ls:not(.mg-rg) .mg-sub { grid-column: 1 / -1; margin-left: 24px; }
.mg-col .mg-it .nm { font-size: 13.5px; }
/* 카드 창의 열은 좁으므로 이름을 줄 수 제한 없이 모두 (잘리지 않게). 사이트맵은 두 줄까지 */
.mg-wrap > .mg-cols:not(.mg-qr) .mg-it .nm .t, .mg-side .mg-it .nm .t { display: block; -webkit-line-clamp: none; overflow: visible; }
.mg-col .mg-ls:not(.mg-rg) .mg-it .pr { padding: 1px 4px; font-size: 10.5px; }
.mg-col .mg-it:hover, .mg-col .mg-it:focus-visible { background: var(--surface); border-color: var(--hair); }
.mg-col .mg-it.cur { background: var(--tint-2); }
.mg-more, .mg-no { grid-column: 1 / -1; }
.mg-more { justify-self: start; margin: 4px 0 0 6px; padding: 2px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--blue); }
.mg-more:hover { text-decoration: underline; }
.mg-no { padding: 5px 6px; font-size: 12px; color: var(--mute-2); }
/* 카드 창 검색 결과: 넓은 창과 같은 카드 3열 (번호 칸 같은 너비) */
.mg-qr { grid-template-columns: 1fr; }
.mg-rg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; align-items: start; }
.mg-rg .mg-it .cd { width: 84px; min-width: 84px; }
/* 오른쪽 즐겨찾기 칸 */
/*   줄은 일반 메뉴 열과 같은 모양 (.mg-col .mg-ls · card()), 제목 줄은 분류 제목(.mg-ch)에 별 · 주황 글자 */
.mg-side { flex: none; width: 310px; overflow-y: auto; padding: 18px 20px 22px 16px; border-left: 1px solid var(--soft); }
.mg-side > .mg-col { background: none; padding: 12px 0 10px; }
.mg-sh { display: flex; align-items: center; justify-content: flex-start !important; gap: 6px; margin-bottom: 8px; padding: 0 6px; font-size: 13.5px; font-weight: 700; color: #b45309; }
.mg-sh .st { width: 15px; height: 15px; fill: var(--star); stroke: var(--star-line); stroke-width: 1.6; }
.mg-sh small { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--mute-2); }
.mg-se { margin: 6px 6px 0; font-size: 12px; line-height: 1.6; color: var(--mute-2); }
.mg-fl { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer; outline: none; }
.mg-fl em {
  flex: none; height: 20px; padding: 0 6px; border-radius: 5px; display: grid; place-items: center; background: var(--tint-2);
  color: var(--blue); font-size: 10.5px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums;
}
.mg-fl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-fl:hover, .mg-fl:focus-visible { background: var(--tint); color: var(--blue); }
.mg-fl.cur { color: var(--blue); font-weight: 700; }
/* 사이트맵: 모든 대메뉴를 단으로 나눠 스크롤 없이 (shell.js packMap 이 창 높이에 맞춰 단을 나눈다) */
.mg-allmap { flex: 1; min-width: 0; overflow-y: auto; padding: 14px 24px 18px; }
/* 나누기 전: 단 하나 너비(200)로 세워 두고 줄 높이를 잰다 (여러 단 배치에서 재면 단 경계에 걸린 줄 높이가 틀린다) */
.mg-allmap:not(.packed) > .mg-sec { width: 200px; }
.mg-allmap.packed { display: flex; align-items: flex-start; }
.mg-mc { flex: 1 1 0; min-width: 0; padding: 0 14px; }
.mg-mc:first-child { padding-left: 0; }
.mg-mc:last-child { padding-right: 0; }
.mg-mc + .mg-mc { border-left: 1px solid var(--soft); }
.mg-sec { padding-bottom: 6px; }
.mg-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.mg-sec h3 .mg-hi { width: 24px; height: 24px; border-radius: 8px; }
.mg-sec h3 .mg-hi svg { width: 14px; height: 14px; }
.mg-sec h3 small { font-size: 11.5px; font-weight: 500; color: var(--mute-2); }
.mg-allmap .mg-cols { display: block; padding: 0; }
.mg-allmap .mg-col { padding: 0 0 8px; border-radius: 0; background: none; }
.mg-allmap .mg-col.cont { padding-top: 0; }
.mg-allmap .mg-ch { height: 26px; margin: 0 0 3px; padding: 0 2px; border-bottom: 1px solid var(--soft); font-size: 13px; }
.mg-allmap .mg-ch small { height: 18px; min-width: 22px; font-size: 11px; }
.mg-allmap .mg-ls:not(.mg-rg) .mg-it { min-height: 0; padding: 2px 2px 2px 4px; }
.mg-allmap .mg-it .nm { font-size: 12.5px; }
.mg-allmap .mg-ls:not(.mg-rg) .mg-it .cd { height: 18px; padding: 0 5px; font-size: 10.5px; }
/* 사이트맵: 이름 자리를 넓히려고 공시 시기는 빼고, ☆ 는 마우스를 올린 줄 · 넣은 줄에만 (이름 오른쪽 위에 겹쳐) */
.mg-allmap .mg-it .pr { display: none; }
.mg-allmap .mg-it .fv { position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: var(--surface); }
.mg-allmap .mg-it:has(.fv.on) { padding-right: 26px; }
@media (max-width: 1200px) { .mg-side { display: none; } }
/* 알림 (shell.js toast) */
.pt-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 10px; background: #0f1b3d; color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .5); transition: all .2s;
}
.pt-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1500px) { .pt-gnb { gap: 4px; } .pt-gnb a { min-width: 0; padding: 0 22px; } .mg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pt-time { display: none; } .mg-s { width: auto; flex: 1; max-width: none; } .mg-crumb { display: none; } }
@media print { .site-header, .pt-dim, .pt-pop, .fv-pop, .pt-toast { display: none !important; } }

/* ---------- 버튼 / 알림 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #f4f6fa; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-danger { background: #fff; border-color: #f0c4c1; color: var(--danger); }
.btn-danger:hover { background: #fdf1f0; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.alert { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; font-size: 13px; }
.alert-error { background: #fdecea; color: #a8322b; border: 1px solid #f5c6c2; }
.alert-ok { background: #e7f6ef; color: #16724e; border: 1px solid #bfe6d4; }

/* ---------- 로그인 ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, #173a86 100%); padding: 16px; }
.login-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; width: min(880px, 100%);
  background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.login-visual { background: var(--blue); color: #fff; padding: 48px 40px; }
.login-visual .logo { padding: 0; margin-bottom: 64px; }
.login-visual .logo-mark { background: #fff; color: var(--blue); }
.login-visual h1 { font-size: 30px; line-height: 1.3; margin: 0 0 16px; }
.login-visual p { color: #d6e3ff; margin: 0; }
.login-card { padding: 48px 40px; }
.login-card h2 { margin: 0 0 4px; font-size: 22px; }
.login-card .muted { margin: 0 0 24px; }
.login-card label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.login-card input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.login-card input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.login-card .btn { margin-top: 24px; height: 46px; font-size: 15px; }
@media (max-width: 720px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-visual { padding: 28px 24px; }
  .login-visual .logo { margin-bottom: 24px; }
  .login-visual h1 { font-size: 22px; }
  .login-card { padding: 28px 24px; }
}

/* ---------- 메인 ---------- */
.main-page { padding-top: 24px; padding-bottom: 40px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.hero {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 28px 32px; margin-bottom: 28px;
}
.hero-eyebrow { margin: 0 0 4px; color: var(--blue); font-weight: 700; font-size: 13px; }
.hero h1 { margin: 0 0 6px; font-size: 22px; }
.hero p { margin: 0; }
.section-title { font-size: 16px; margin: 0 0 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-height: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.quick-card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(15, 91, 216, .12); }
.quick-name { font-size: 16px; font-weight: 700; }
.quick-sub { font-size: 12px; color: var(--muted); }
.side-panels { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head .panel-title { margin: 0; }
.panel-title { font-size: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-head .panel-title { border: 0; padding: 0; }
.panel-title small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.rank-list, .hist-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.rank-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--blue); }
.rank {
  flex: 0 0 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: #8b93a3; color: #fff; font-size: 11px; font-weight: 700;
}
.rank-list li:first-child .rank { background: var(--blue); }
.date { font-size: 12px; color: var(--muted); }
.hist-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.hist-list li .muted { flex: 1; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge.ok { background: #e3f5ec; color: var(--ok); }
.badge.ng { background: #fdecea; color: var(--danger); }
.badge.auto { background: #eef1f6; color: var(--muted); }   /* 자동으로 정해진 값 (예: AI 설정의 기본 모델 미지정) */
.empty { color: var(--muted); margin: 8px 0; }

/* ---------- 서브 레이아웃 ---------- */
.sub-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.lnb { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-self: start; }
.lnb-title { margin: 0; padding: 22px 20px; background: var(--blue); color: #fff; font-size: 18px; }
.lnb ul { list-style: none; margin: 0; padding: 0; }
.lnb > ul > li > a { display: block; padding: 11px 20px; border-bottom: 1px solid #eef0f4; font-weight: 500; }
.lnb > ul > li.on > a { color: var(--blue); font-weight: 700; }
.lnb li ul { background: #f6f8fb; padding: 6px 0; border-bottom: 1px solid #eef0f4; }
.lnb li ul a { display: block; padding: 5px 20px 5px 30px; font-size: 13px; color: var(--muted); }
.lnb li ul li.on a { color: var(--blue); font-weight: 600; }
.lnb a:hover { color: var(--blue); }
.content { min-width: 0; }
.sub-layout > .content:first-child { grid-column: 1 / -1; }   /* 좌측 메뉴가 없는 화면은 전체 폭 */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb .sep { margin: 0 6px; }
.page-title { margin: 0 0 20px; font-size: 24px; }
.placeholder {
  background: var(--surface); border: 1px dashed #c7cfdc; border-radius: 10px; padding: 48px 32px; text-align: center;
}
.placeholder-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.meta-list { display: inline-grid; grid-template-columns: auto auto; gap: 4px 12px; margin: 20px 0 0; text-align: left; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; }

/* ---------- 관리 화면 ---------- */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.table-wrap { max-height: 640px; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; background: #f4f6f9; text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid #eef0f4; white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:hover td { background: #f8fafc; }
.tbl tr.sel td { background: #e8f0fe; }
.tbl tr.off td { color: #a0a7b4; }
/* 제목 클릭 정렬 (ListSort) */
.tbl th.sort a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.tbl th.sort a:hover { color: var(--blue); }
.tbl th.sort i { width: 8px; font-style: normal; font-size: 9px; color: #b4bac6; }
.tbl th.sort a:hover i::after { content: "▲"; }
.tbl th.sort.on { color: var(--blue); }
.tbl th.sort.on i { color: inherit; }
.tbl th.sort.asc i::after, .tbl th.sort.asc a:hover i::after { content: "▲"; }
.tbl th.sort.desc i::after, .tbl th.sort.desc a:hover i::after { content: "▼"; }
.tbl td.lvl1 { font-weight: 700; }
.tbl td.lvl2 { padding-left: 26px; }
.tbl td.lvl3 { padding-left: 44px; color: var(--muted); }
.tbl td.lvl4 { padding-left: 62px; color: var(--muted); font-size: 12px; }
/* 메뉴관리 목록: 폴더 아이콘으로 접기/펼치기 (assets/operation/js/menu.js) */
.mt-tools { display: flex; gap: 6px; }
.form-msg { margin: 12px 0 0; }
/* 공통코드관리: 왼쪽 그룹코드, 오른쪽 상세코드 (각각 목록 + 입력) */
.code-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.code-list { max-height: 340px; }
.stack { display: grid; gap: 20px; align-content: start; }   /* 한 칸에 패널 여러 개를 세로로 */
.sub-title { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .code-grid { grid-template-columns: 1fr; } }
/* 테이블정보: 왼쪽 목록, 오른쪽 컬럼·인덱스·CREATE 문 */
.tbl-info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.tbl-search { flex-wrap: wrap; align-items: center; }
.tbl-search input[name="q"] { flex: 1; min-width: 140px; }
.tbl-search .col-search { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; white-space: nowrap; cursor: pointer; }
.tbl-search .col-search input { flex: none; width: 14px; height: 14px; min-width: 0; margin: 0; padding: 0; }   /* .search-row input(높이 32px·늘어남)을 체크박스에서는 끈다 */
.tbl-by { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; background: #f6f8fb; border-radius: 6px; }
.tbl-by-title { font-size: 12px; font-weight: 700; color: var(--muted); }
.tbl-info-list { max-height: calc(100vh - 230px); }
.tbl-info-list td.url { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tbl-info-list .chk { width: 28px; padding-right: 0; }
.tbl-info-list .chk input { margin: 0; vertical-align: middle; cursor: pointer; }
.tbl-kind { display: inline-block; width: 16px; margin-right: 6px; border-radius: 3px; text-align: center; font-size: 10px; font-weight: 700; line-height: 16px; color: #fff; vertical-align: 1px; }
.tbl-kind.t { background: #5b7fd6; }
.tbl-kind.v { background: #2ea38a; }
.tbl-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 4px; font-size: 13px; }
.tbl-meta dt { color: var(--muted); }
.tbl-meta dd { margin: 0 0 0 -12px; font-weight: 600; }
.ddl-box { margin-top: 16px; }
.ddl-box summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.ddl-box pre { max-height: 360px; overflow: auto; margin: 8px 0 0; padding: 12px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 1100px) { .tbl-info-grid { grid-template-columns: 1fr; } }
.menu-tree td { padding-top: 3px; padding-bottom: 3px; line-height: 1.8; }
.menu-tree td code { padding: 0 5px; }
.menu-tree td[class^="lvl"] { white-space: nowrap; }
.menu-tree td.lvl1 { padding-left: 6px; }
.menu-tree td.lvl2 { padding-left: 22px; }
.menu-tree td.lvl3 { padding-left: 38px; }
.menu-tree td.lvl4 { padding-left: 54px; }
.mt-tog, .mt-leaf { display: inline-flex; align-items: center; justify-content: flex-end; width: 34px; height: 20px; margin-right: 3px; vertical-align: middle; }
.mt-leaf { padding-right: 2px; }
.mt-tog { gap: 3px; padding: 0 2px 0 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.mt-tog::before {   /* ▾ 펼침 / ▸ 접힘 */
  content: ""; width: 6px; height: 6px; border: solid #7d8798; border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .12s;
}
.collapsed .mt-tog::before { transform: rotate(-45deg); }
.mt-tog:hover { background: #e6ebf3; }
.mt-tog svg { width: 18px; height: 18px; fill: #f2b544; stroke: #d9962a; stroke-width: .8; }
.mt-tog .f-open { display: inline; }
.mt-tog .f-closed { display: none; }
.collapsed .mt-tog .f-open { display: none; }
.collapsed .mt-tog .f-closed { display: inline; }
.mt-leaf svg { width: 15px; height: 15px; color: #a3abb8; }
.tbl tr.dev .mt-tog svg { opacity: .5; }
.tbl td a:hover { color: var(--blue); text-decoration: underline; }
.tbl .url { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.link-sm { font-size: 12px; color: var(--blue); }
.form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.form input:not([type=checkbox]):not([type=radio]), .form select {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
.form input[readonly] { background: #f4f6f9; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 16px 0 0; padding: 8px 12px 12px; }
.form legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.form label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 6px 16px 0 0; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; }

.site-footer { padding: 20px 0 28px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .main-grid, .admin-grid { grid-template-columns: 1fr; }
  .sub-layout { grid-template-columns: 1fr; }
  .lnb { display: none; }
}
@media (max-width: 720px) {
  .pt-logo b { display: none; }
  .hero { padding: 20px; }
}

/* ---------- AI 분석보고서 ---------- */
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ai-head.no-title { justify-content: flex-end; margin-bottom: 8px; }
.ai-head[hidden] { display: none; }   /* 버튼을 왼쪽 메뉴로 보낸 대시보드: 이 줄의 버튼은 숨긴 채 대신 눌린다 */   /* 공유 화면을 다른 시스템 안에 넣었을 때: 버튼만 오른쪽에 */
/* 공유 화면을 다른 시스템 안에 넣었을 때 자료 보고서의 버튼은 왼쪽 메뉴 아래 (report_body.jspf sideActs) */
.ai-side-acts { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid rgba(255,255,255,.12); }
.ai-side-acts .btn { width: 100%; justify-content: center; background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ai-side-acts .btn:hover { background: rgba(255,255,255,.1); }
.ai-side-acts .btn-primary { background: var(--side-accent); border-color: var(--side-accent); }
.ai-side-acts .share-gen-msg { order: 9; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.8); margin: 0; }
.ai-side-layout.top .ai-side-acts { flex-direction: row; align-items: center; padding: 0 10px; border-top: 0; }
.ai-side-layout.top .ai-side-acts .btn { width: auto; }
.ai-head .page-title { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-sub { margin: 0 0 18px; font-size: 13px; }
.ai-badge { font-size: 12px; font-weight: 700; color: var(--blue); background: #e8f0fe; padding: 3px 9px; border-radius: 10px; }
.ai-actions, .ai-admin, .ai-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-empty-actions { justify-content: center; margin-top: 18px; }
.inline { display: inline; margin: 0; }
.btn.busy { opacity: .6; pointer-events: none; }


/* 탭이 넘치면 가로로만 밀리고 스크롤바는 그리지 않는다. 밑줄은 음수 여백 대신 안쪽 그림자로 그려 세로로 넘치지 않게 한다 */
.ai-tabs {
  display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden;
  border-bottom: 2px solid var(--line); scrollbar-width: none;
}
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab {
  flex: 0 0 auto; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted);
  padding: 10px 16px; cursor: pointer; white-space: nowrap;
}
.ai-tab:hover { color: var(--text); }
.ai-tab.on { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.ai-frame-wrap { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.ai-frame { display: block; width: 100%; height: 600px; border: 0; border-radius: 0 0 10px 10px; }
/* 자료 보고서: 영역을 왼쪽 메뉴로 (report.jsp 의 DataReport) */
.ai-side-layout { display: flex; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
/* 왼쪽 메뉴 색 = 보고서 분야 (보고서 패키지 이름: student·education·research·finance·operation) */
.ai-side { --side-bg: #1d3263; --side-accent: #22b089; }
.ai-side.area-student { --side-bg: #1d3263; }
.ai-side.area-education { --side-bg: #0d4f5b; }
.ai-side.area-research { --side-bg: #3d2f73; }
.ai-side.area-finance { --side-bg: #6b3d14; --side-accent: #f0b24a; }
.ai-side.area-operation { --side-bg: #1d4f37; --side-accent: #4cc38a; }
.ai-side.area-finance .ai-side-item.on .ai-side-tag { color: #3a2208; }
.ai-side { flex: 0 0 210px; align-self: stretch; display: flex; flex-direction: column; background: var(--side-bg); color: #fff; }
.ai-side-head { display: flex; flex-direction: column; gap: 3px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ai-side-head strong { font-size: 16px; }
.ai-side-logo { display: block; width: 100%; max-width: 178px; height: auto; }
.ai-side-head span { font-size: 12px; color: rgba(255,255,255,.8); }
.ai-side-head .ai-side-meta { font-size: 11px; color: rgba(255,255,255,.62); }
.ai-side-badge { align-self: flex-start; font-size: 11px !important; font-weight: 800; color: #fff !important; background: #22b089; border-radius: 4px; padding: 2px 7px; margin-bottom: 6px; }
.ai-side nav { display: flex; flex-direction: column; padding: 14px 0 14px; }   /* 로고 없이 메뉴부터 (위 여백은 대시보드 메뉴와 같게) */
.ai-side-group { margin: 14px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.ai-side-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-left: 3px solid transparent;
  background: transparent; color: rgba(255,255,255,.88); font: inherit; font-size: 14px; text-align: left; cursor: pointer; box-shadow: none; }
.ai-side-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.ai-side-item.on { background: rgba(255,255,255,.13); border-left-color: var(--side-accent); color: #fff; font-weight: 700; box-shadow: none; }
.ai-side-item:focus-visible { outline: 2px solid #8fd8c2; outline-offset: -2px; }
.ai-side-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); flex: none; }
.ai-side-item.on .ai-side-dot { background: var(--side-accent); }
.ai-side-label { flex: 1; }
.ai-side-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; }
.ai-side-item.on .ai-side-tag { background: var(--side-accent); }
.ai-side-foot { margin-top: auto; padding: 12px 16px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.12); }
.ai-side-frame { flex: 1; min-width: 0; border: 0; border-radius: 0; }
.ai-side-frame .ai-frame { border-radius: 0; }
/* 운영관리 › 메뉴공유설정 (aidisclosure/share*.jsp): 단계 표시 · 도구 줄 · 보고서 고르기 */
.share-steps { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.share-steps a { display: flex; align-items: center; gap: 8px; flex: 1 1 180px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted); text-decoration: none; font-size: 14px; }
.share-steps a b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e7ecf5; color: #64748b; font-size: 13px; }
.share-steps a:hover { border-color: var(--blue); color: var(--blue); }
.share-steps a.done b { background: #d7f2e6; color: #0f8a5a; }
.share-steps a.on { border-color: var(--blue); color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--blue); }
.share-steps a.on b { background: var(--blue); color: #fff; }
.share-help { margin: 0 0 14px; line-height: 1.7; }
.share-link { margin-bottom: 14px; }
.share-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.share-actions .muted { margin-right: auto; font-size: 12px; }
.share-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.share-bar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.share-bar label.rad { font-weight: 400; }
.share-bar select, .share-bar input:not([type=radio]) { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; }
.share-bar .btn-primary { margin-left: auto; }
.share-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.share-tree.off { opacity: .45; pointer-events: none; }
.share-grp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; }
.share-grp legend { padding: 0 4px; font-weight: 700; }
.share-rep { display: block; padding: 3px 0; font-size: 13px; cursor: pointer; }
.share-rep.unused { color: var(--muted); }
.share-urls td.url code { font-size: 12px; word-break: break-all; }
.share-urls tr.off td { color: var(--muted); }
/* 하위 메뉴 (DataReport.menuSubs): 영역 아래 들여 쓰고, 지금 보이는 부분은 점 강조 */
.ai-side-subs { display: flex; flex-direction: column; padding: 2px 0 6px; }
.ai-side-sub { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 16px 7px 36px; border: 0; background: transparent;
  color: rgba(255,255,255,.78); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ai-side-sub:hover { background: rgba(255,255,255,.07); color: #fff; }
.ai-side-sub .ai-side-dot { width: 5px; height: 5px; }
.ai-side-sub.on { color: #fff; font-weight: 700; }
.ai-side-sub.on .ai-side-dot { background: var(--side-accent); }
/* 메뉴는 스크롤해도 늘 보이게 (모든 자료 보고서). 틀이 overflow: hidden 이면 sticky 가 안 되므로 clip */
.ai-side-layout { overflow: clip; }
.ai-side-layout .ai-side nav { position: sticky; top: 0; }
.ai-side-layout.top .ai-side { position: sticky; top: 0; z-index: 5; }
.ai-side-layout.top .ai-side nav { position: static; }
/* 메뉴를 위쪽 가로줄로 (DataReport.menuTop): 로고·보고서 이름은 빼고 출처는 오른쪽 한 줄 */
.ai-side-layout.top { flex-direction: column; align-items: stretch; }
.ai-side-layout.top .ai-side { flex: none; flex-direction: row; align-items: center; width: 100%; }
.ai-side-layout.top .ai-side-head, .ai-side-layout.top .ai-side-group { display: none; }
.ai-side-layout.top .ai-side nav { flex-direction: row; flex-wrap: wrap; padding: 0 6px; }
.ai-side-layout.top .ai-side-item { width: auto; height: 42px; padding: 0 16px; border-left: 0; border-bottom: 3px solid transparent; font-size: 13.5px; }
.ai-side-layout.top .ai-side-item.on { border-bottom-color: var(--side-accent); }
.ai-side-layout.top .ai-side-foot { margin: 0 0 0 auto; padding: 0 16px; border-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ai-side-layout.top .ai-side-foot br { display: none; }
.ai-side-layout.top .ai-side-foot .sep { display: inline; }
.ai-side-foot .sep { display: none; font-style: normal; }
@media (max-width: 900px) {
  .ai-side-layout { flex-direction: column; }
  .ai-side { flex: none; width: 100%; }
  .ai-side nav { flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .ai-side-group, .ai-side-foot { display: none; }
  .ai-side-item { width: auto; border-left: 0; border-bottom: 3px solid transparent; padding: 8px 12px; }
  .ai-side-item.on { border-bottom-color: #22b089; }
}

.ai-job { margin-bottom: 16px; border-left: 4px solid var(--blue); }
.ai-job .panel-title { display: flex; align-items: center; gap: 8px; }
.ai-job .panel-title small { margin-left: auto; }
.ai-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9d6ef; border-top-color: var(--blue); display: none; }
.ai-job.running .ai-spin { display: inline-block; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-job.running .ai-spin { animation: none; } }
.ai-log { margin: 0; padding-left: 20px; font-size: 13px; max-height: 260px; overflow: auto; }
.ai-log li { padding: 2px 0; white-space: pre-wrap; word-break: break-all; }
.ai-log li.err { color: var(--danger); font-weight: 600; }
.ai-job-note { font-size: 12px; margin: 10px 0 0; }

.ai-dialog { border: 0; border-radius: 12px; padding: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ai-dialog::backdrop { background: rgba(11, 29, 68, .45); }
.ai-dialog h2 { margin: 0 0 6px; font-size: 19px; }
.ai-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; resize: vertical; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }   /* 제목 · 값 · 설명을 한 줄로 */
.stat-label { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stat-value { flex: none; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-value.ng { color: var(--danger); }
.ai-check { margin-bottom: 14px; }
.ai-check .panel-title small { font-weight: 400; }
.ai-pre { background: #f6f8fb; border: 1px solid #e6eaf0; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.55; overflow-x: auto; white-space: pre; margin: 8px 0; }
.ai-pre.small { font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.ai-check details summary { cursor: pointer; font-size: 13px; color: var(--blue); }

/* ---------- AI 보고서 생성 페이지 ---------- */
.ai-badge.admin { color: #9a3412; background: #ffedd5; }
.ai-select { height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; }
.alert-info { background: #e8f0fe; color: #1e40af; border: 1px solid #c7d7fb; }
.alert-info a { font-weight: 600; text-decoration: underline; margin-left: 6px; }
.stat-note { min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-value.sm { font-size: 16px; }
.stat-value.run { color: var(--blue); }
/* 화면 안 탭 (예: 보고서 생성 / 이력): <div class="page-tabs"><button data-tab="a" class="on">…</button></div> + <div class="page-tab" data-tab="a"> */
.page-tabs { display: flex; gap: 2px; border-bottom: 1px solid #c9d3e3; margin-bottom: 16px; }
.page-tabs button { min-width: 96px; height: 36px; padding: 0 18px; border: 1px solid #c9d3e3; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: #eef1f6; color: #3a4252; font: inherit; font-size: 14px; cursor: pointer; }
.page-tabs button.on { background: #3f78c9; border-color: #3f78c9; color: #fff; font-weight: 600; }
.page-tabs button small { margin-left: 4px; font-size: 12px; opacity: .8; }
.page-tab > .panel + .panel { margin-top: 16px; }
.gen-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.gen-grid .panel > .panel-title { margin-bottom: 4px; }
.model-row { display: flex; align-items: center; gap: 16px; }   /* AI 공급자/모델 선택 + 코드 실행 도구 체크 한 줄 */
.model-row select { flex: 1; min-width: 0; }
.form .model-row label.check { flex: none; margin: 0; white-space: nowrap; }
.form .hint, .hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; resize: vertical; }
.form .form-actions { align-items: center; }
fieldset.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 12px 0 0; }
fieldset.mode legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.mode-opt { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400 !important; }
.mode-opt:has(input:checked) { border-color: var(--blue); background: #f3f7ff; }
.mode-opt.off { opacity: .5; cursor: not-allowed; }
.mode-opt input { margin-top: 3px; }
.mode-opt span { display: flex; flex-direction: column; gap: 2px; }
.mode-opt small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 8px 0 12px; font-size: 13px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; word-break: break-all; }
.ai-job-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 12px; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--danger); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.badge.run { background: #e8f0fe; color: var(--blue); }
@media (max-width: 1100px) { .gen-grid, fieldset.mode { grid-template-columns: 1fr; } }
.link-btn.apply { color: var(--blue); font-weight: 600; }
.tbl tr.sel td { background: #eef4ff; }

/* ---------- 외부 주소 메뉴 (Spotfire 등 iframe) ---------- */
.ext-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ext-head .page-title { margin: 0; }
.ext-actions { display: flex; align-items: center; gap: 12px; }
.ext-note { font-size: 12px; }
.ext-frame-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
/* 대시보드는 한 화면에 맞춰 그려지므로 창 높이에 맞춘다 (상단 GNB·제목 줄 제외) */
.ext-frame { display: block; width: 100%; height: calc(100vh - 200px); min-height: 480px; border: 0; }
/* 창 전체를 대시보드에 쓴다 - 바닥글을 숨기고 아래 여백을 줄여 페이지 세로 스크롤이 생기지 않게 (높이는 ext.jsp 스크립트가 맞춤) */
body:has(.ext-page) .site-footer { display: none; }
.sub-layout:has(.ext-page) { padding-bottom: 12px; }
/* 탭 안에서 연 외부 주소 화면: iframe 상자는 좌우 여백 없이 탭 폭 끝까지 (.container 좌우 여백 16px 만큼 바깥으로, 좌우 테두리·모서리 없음) */
.in-frame .ext-page > .ext-frame-wrap { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; border-radius: 0; }

/* ---------- 프레임 (/main): 탭 · 즐겨찾기 ---------- */
.shell-body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.shell-body .site-footer { display: none; }
.shell { flex: 1; min-height: 0; display: flex; }
.work { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 탭 줄 (파랑): 왼쪽 칸(--sw) = 홈 · 즐겨찾기(★ + 개수), 이어서 열린 탭, 오른쪽 끝 = 다른 탭 닫기.
   탭이 화면 폭을 넘으면 다음 줄로 (줄 높이 40, 왼쪽 칸 · 오른쪽 단추는 첫 줄에) */
.tabbar {
  flex: none; display: flex; align-items: flex-start; min-height: var(--tab-h);
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 82%, #000) 0%, var(--blue) 55%, color-mix(in srgb, var(--blue) 80%, #fff) 100%);
}
.tab-lz { width: var(--sw); flex: none; height: var(--tab-h); display: flex; align-items: center; gap: 6px; padding-left: 14px; }
.tab-ib {
  height: 30px; min-width: 30px; padding: 0 7px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .14); color: #fff; font: inherit; cursor: pointer; transition: background .15s;
}
.tab-ib:hover, .tab-ib.open { background: rgba(255, 255, 255, .26); }
.tab-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tab-favs.on .st { fill: #fff; }
.tab-favs b { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .28); font-size: 10.5px; font-weight: 700; }
.tab-favs b:empty { display: none; }
.tabs { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 2px; margin: 0; padding: 0; list-style: none; }
.tab {
  position: relative; height: var(--tab-h); flex: 0 0 auto; display: flex; align-items: center; max-width: 240px;
  padding: 8px 28px 0 14px; background: none; font-size: 13px; color: var(--tab-off-ink); cursor: pointer; user-select: none; box-sizing: border-box;
}
.tab::before { content: ""; position: absolute; inset: 8px 0 0; z-index: 0; border-radius: 9px 9px 0 0; background: var(--tab-off-bg); transition: background .15s; }   /* 탭 모양 (아래 32). 선택 안 된 탭 = 회색 바탕 · 회색 글자 */
.tab > * { position: relative; z-index: 1; }
.tab:hover::before { background: var(--tab-off-hover); }
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--ink-2); font-weight: 700; }   /* 2026-11-06 800 → 700 */
.tab.on::before { background: var(--bg); }
.tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .tab-x {
  position: absolute; top: calc(50% + 4px); right: 6px; transform: translateY(-50%); width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px;
  background: none; font-size: 15px; line-height: 1; color: var(--mute-2); cursor: pointer;
}
.tab .tab-x:hover { color: var(--danger); background: rgba(0, 0, 0, .06); }
.tab.on .tab-x { color: var(--mute-2); }
.tab.on .tab-x:hover { color: var(--danger); background: rgba(0, 0, 0, .06); }
/* 메뉴 탭 이름 앞 별 (즐겨찾기 표시·토글). 모양·색은 .fav-tog */
.tab.has-fav { padding-left: 8px; }
.tab .tab-fav { width: 20px; height: 20px; margin-right: 4px; }
.tab .tab-fav svg { width: 14px; height: 14px; }
.tab .tab-fav:not(.on) { color: var(--mute-2); }
.tab .tab-fav:hover { background: rgba(0, 0, 0, .05); }
.tab.on .tab-fav:not(.on) { color: var(--mute-2); }
.tab.on .tab-fav:hover { background: rgba(0, 0, 0, .05); }
/* 즐겨찾기 구분 (2026-11-06): 즐겨찾기 탭만 노란 별이 늘 보이고, 나머지 탭은 별을 접어 두었다가 마우스를 올리면 빈 별(눌러서 추가) */
.tab.has-fav:not(.is-fav) { padding-left: 14px; transition: padding-left .15s; }
.tab.has-fav:not(.is-fav) .tab-fav { width: 0; margin-right: 0; opacity: 0; overflow: hidden; transition: width .15s, margin-right .15s, opacity .15s; }
.tab.has-fav:not(.is-fav):hover, .tab.has-fav:not(.is-fav):focus-within { padding-left: 8px; }
.tab.has-fav:not(.is-fav):hover .tab-fav, .tab.has-fav:not(.is-fav):focus-within .tab-fav { width: 20px; margin-right: 4px; opacity: 1; }
/* 탭 줄 오른쪽 끝: 현재 메뉴만 남기고 다른 탭 닫기 */
.tab-tool {
  flex: none; width: 36px; height: 30px; margin: 5px 28px 0 8px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.tab-tool:hover { background: rgba(255, 255, 255, .26); }
.tab-tool svg { width: 18px; height: 18px; }

.panes { flex: 1; min-height: 0; position: relative; }
.pane { position: absolute; inset: 0; display: none; width: 100%; height: 100%; border: 0; }
.pane.on { display: block; }
.pane-home { overflow: auto; }
.pane-frame { background: var(--bg); }

/* 즐겨찾기 별 토글 (탭 이름 앞 · 사이트맵): 노란색 = 즐겨찾기에 있음 */
.fav-tog {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 4px; background: none; cursor: pointer; color: #c3c9d3;
}
.fav-tog svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-tog:hover { background: #eef1f6; color: #e0a800; }
.fav-tog.on { color: var(--star-line); }
.fav-tog.on svg { fill: var(--star); stroke: var(--star-line); }

/* 즐겨찾기 작은 창 (탭 줄 ★): 탭 줄 바로 아래 왼쪽, 위 화살표가 ★ 를 가리킨다 (shell.js) */
.fv-pop {
  position: absolute; z-index: 200; width: 360px; max-height: calc(100vh - 124px); display: flex; flex-direction: column; padding: 10px;
  background: var(--surface); border: 1px solid #a9b8cf; border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .38), 0 0 0 3px color-mix(in srgb, var(--blue) 6%, transparent);
}
.fv-pop[hidden] { display: none; }
.fv-pop::before {
  content: ""; position: absolute; top: -8px; left: calc(var(--ax, 46px) - 8px); width: 14px; height: 14px; background: var(--surface);
  border-left: 1px solid #a9b8cf; border-top: 1px solid #a9b8cf; border-radius: 3px 0 0 0; transform: rotate(45deg);
}
.fv-h { flex: none; display: flex; align-items: center; gap: 5px; padding: 2px 2px 10px 4px; }
.fv-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.fv-h b .st { width: 16px; height: 16px; fill: var(--star); stroke: var(--star-line); stroke-width: 1.6; }
.fv-h > span { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-2); color: var(--blue); font-size: 11px; font-weight: 800; }
.fv-h button { flex: none; width: 30px; height: 28px; padding: 0; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.fv-h button:hover { background: var(--tint); border-color: var(--tint-line); color: var(--blue); }
.fv-h svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fv-cur { position: relative; margin-left: auto; }
.fv-cur .st { width: 16px; height: 16px; stroke: var(--mute-2); stroke-width: 2; }
.fv-cur i { position: absolute; right: -5px; top: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.fv-h .fv-cur.on { background: #fffbeb; border-color: #fcd34d; }
.fv-cur.on .st { fill: var(--star); stroke: var(--star-line); }
.fv-cur.on i { background: var(--mute); }
.fv-all { margin-left: auto; }
.fv-cur + .fv-all { margin-left: 0; }
.fv-all svg { width: 16px; height: 16px; stroke-width: 3.2; }
.fv-h .fv-x { width: 28px; border: 0; background: var(--soft); font-size: 18px; line-height: 1; color: var(--mute); }
.fv-h .fv-x:hover { background: var(--hair); color: var(--ink); }
.fv-ls { flex: 1 1 auto; min-height: 0; margin: 0 -4px 0 0; padding: 0 4px 0 0; list-style: none; overflow-y: auto; scrollbar-width: thin; }
.fv-ls li { display: flex; align-items: center; border-radius: 9px; }
.fv-ls li:hover { background: var(--tint); }
.fv-ls li.cur { background: var(--tint-2); }
.fv-ls a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 6px; color: var(--ink); cursor: pointer; outline: none; }
.fv-ls a em { min-width: 50px; height: 22px; padding: 0 6px; font-size: 11px; }
.fv-ls a span { flex: 1; min-width: 0; display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-ls a small { display: block; font-size: 10.5px; font-weight: 500; color: var(--mute-2); overflow: hidden; text-overflow: ellipsis; }
.fv-ls a.off span { color: #a0a7b3; }
.fv-ls a.dev span { color: #b3b9c4; }
.fv-ls li > button { padding: 0 6px; border: 0; background: none; font-size: 16px; color: var(--mute-3); cursor: pointer; }
.fv-ls li > button:hover { color: #dc2626; }
.fv-empty { padding: 16px 6px; border-radius: 10px; background: var(--rail); text-align: center; font-size: 12px; line-height: 1.6; color: var(--mute-2); }
.fv-empty b { color: var(--ink-3); }

/* ---------- 개발중 메뉴 (메뉴관리 사용여부 = 개발중, 자신 또는 상위 메뉴): 연한 회색. 클릭은 그대로 된다 ---------- */
.pt-gnb a.dev, .mg-c.dev { color: #b3b9c4; }
.mg-it.dev .nm, .mg-sl.dev span, .mg-chip.dev, .lnb a.dev, .quick-card.dev .quick-name { color: #b3b9c4 !important; }
.tbl tr.dev td, .tbl tr.dev td a { color: #b3b9c4; }

/* ---------- 비활성 메뉴 (제한사용자에게 사용제한이 안 걸린 메뉴): 회색. 누르면 '비활성메뉴입니다.' 안내만 (shell.js) ---------- */
.pt-gnb a.off, .mg-c.off { color: #a0a7b3 !important; }
.mg-it.off .nm, .mg-sl.off span, .mg-chip.off, .lnb a.off, .quick-card.off .quick-name, .quick-card.off .quick-sub { color: #a0a7b3 !important; }

/* ---------- 사이트맵(전체메뉴, /sitemap): 상단 메뉴마다 카드 하나 ---------- */
.sitemap-lead { margin: 0 0 14px; font-size: 13px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; padding-bottom: 24px; }
.sitemap-col { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sitemap-root { margin: 0; padding: 12px 16px; background: var(--navy); color: #fff; font-size: 15px; }
.sitemap-root.dev, .sitemap-root.off { color: rgba(255, 255, 255, .5); }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap-lv2 { padding: 8px 0 10px; }
.sitemap-head { display: block; padding: 5px 16px; font-size: 14px; font-weight: 600; color: var(--text); }
.sitemap-lv2 > li.grp + li, .sitemap-lv2 > li + li.grp { margin-top: 4px; border-top: 1px solid #eef0f4; padding-top: 4px; }
/* 끝 메뉴 한 줄 = 책갈피 토글 + 링크 */
.sitemap-item { display: flex; align-items: flex-start; gap: 2px; padding: 1px 12px 1px 8px; }
.sitemap-item .fav-tog { margin-top: 1px; }
.sitemap-item a { flex: 1; min-width: 0; padding: 2px 2px; }
.sitemap-lv2 > li > .sitemap-item a { font-size: 14px; font-weight: 600; color: var(--text); }
.sitemap-lv3 { margin: 0 16px 4px 22px !important; border-left: 2px solid #e3e8f0; }
.sitemap-lv3 .sitemap-item { padding-left: 4px; }
.sitemap-lv3 a { font-size: 13px; color: #4a5366; }
.sitemap-sub { display: block; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.sitemap-lv4 { margin: 0 0 4px 12px !important; border-left: 2px dotted #dfe4ec; }
.sitemap-lv4 a { font-size: 12.5px; }
.sitemap a:hover { color: var(--blue); text-decoration: underline; }
.sitemap a.dev, .sitemap .sitemap-head.dev, .sitemap .sitemap-sub.dev { color: #b3b9c4 !important; }
.sitemap a.off, .sitemap .sitemap-head.off, .sitemap .sitemap-sub.off { color: #a0a7b3 !important; }

/* ---------- 탭(iframe) 안에서 열린 화면: 머리말·좌측메뉴·위치표시는 프레임이 그린다 ---------- */
.in-frame .site-header, .in-frame .pt-dim, .in-frame .lnb, .in-frame .site-footer { display: none !important; }
.in-frame .container { max-width: none; }
.in-frame .sub-layout { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
.in-frame .sub-layout > .content { grid-column: 1 / -1; }
/* 탭 안 화면 맨 위: 상위 메뉴 경로(작은 회색) + 화면 제목, 위아래 간격은 촘촘하게 */
.in-frame .breadcrumb { margin-bottom: 0; font-size: 12.5px; line-height: 1.4; }
.in-frame .content > .page-title { margin-bottom: 10px; font-size: 22px; line-height: 1.3; }
.in-frame .ai-head .page-title { margin-bottom: 4px !important; font-size: 22px; line-height: 1.3; }   /* report.jsp 의 style="margin-bottom:8px" 보다 우선 */
/* 보고서 화면: 보고서 칸(대시보드 · 왼쪽 메뉴 보고서 · 영역 탭)은 좌우 여백 없이 탭 폭 끝까지 (제목 줄은 여백 그대로).
   .container 좌우 여백(16px)만큼 바깥으로 내고 좌우 테두리·모서리를 없앤다 */
.in-frame .ai-report > .ai-dash-wrap, .in-frame .ai-report > .ai-side-layout,
.in-frame .ai-report > .ai-tabs, .in-frame .ai-report > .ai-frame-wrap {
  margin-left: -16px; margin-right: -16px; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }

/* ---------- 운영관리 > 사용자관리 ---------- */
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input, .search-row select {
  height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: #fff;
}
.search-row input { flex: 1; min-width: 0; }
.user-meta { margin-top: 18px; }

/* ---------- 메시지 상자 (common/js/dialog.js) ---------- */
.pd-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 22, 46, .42); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .15s ease;
}
.pd-overlay.on { opacity: 1; }
.pd-box {
  --pd-c: var(--blue); --pd-bg: #e8f0fe;
  width: min(420px, 100%); background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 22, 46, .28), 0 2px 8px rgba(11, 22, 46, .12);
  transform: translateY(8px) scale(.97); transition: transform .16s ease;
}
.pd-overlay.on .pd-box { transform: none; }
.pd-success { --pd-c: var(--ok); --pd-bg: #e3f6ee; }
.pd-warning { --pd-c: #d98a00; --pd-bg: #fff4dc; }
.pd-danger  { --pd-c: var(--danger); --pd-bg: #fde8e7; }
.pd-head { display: flex; align-items: center; gap: 12px; padding: 22px 24px 4px; }
.pd-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pd-bg); color: var(--pd-c);
}
.pd-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.pd-msg {
  margin: 0; padding: 10px 24px 22px 74px; font-size: 14px; line-height: 1.65; color: #3a4252;
  white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere;
}
.pd-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: #f6f8fb; border-top: 1px solid #edf0f5; }
.pd-btn {
  min-width: 84px; height: 38px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s, box-shadow .12s;
}
.pd-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 91, 216, .3); }
.pd-cancel { background: #fff; border-color: #d3d9e3; color: #3a4252; }
.pd-cancel:hover { background: #eef1f6; }
.pd-ok { background: var(--blue); color: #fff; }
.pd-ok:hover { background: var(--blue-dark); }
.pd-ok-danger { background: var(--danger); }
.pd-ok-danger:hover { background: #b9372f; }
.pd-ok-danger:focus-visible { box-shadow: 0 0 0 3px rgba(214, 69, 61, .3); }

.pd-toasts { position: fixed; top: 116px; left: 50%; z-index: 1001; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.pd-toast {
  --pd-c: var(--ok); --pd-bg: #e3f6ee;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: #1f2a3d; color: #fff; font-size: 14px; box-shadow: 0 10px 28px rgba(11, 22, 46, .28);
  opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s;
}
.pd-toast.on { opacity: 1; transform: none; }
.pd-toast .pd-ico { width: 26px; height: 26px; }
.pd-toast .pd-ico svg { width: 16px; height: 16px; }
.pd-toast.pd-info { --pd-c: var(--blue); --pd-bg: #e8f0fe; }
.pd-toast.pd-warning { --pd-c: #d98a00; --pd-bg: #fff4dc; }
.pd-toast.pd-danger { --pd-c: var(--danger); --pd-bg: #fde8e7; }
@media (prefers-reduced-motion: reduce) {
  .pd-overlay, .pd-box, .pd-toast { transition: none; }
}

/* ---------- 정보공시 > 공시 항목 공통 화면 ---------- */
.pub-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-title .badge { font-size: 12px; }
.pub-table { max-height: calc(100vh - 260px); }
.pub-note { margin: 10px 0 0; font-size: 12px; }

/* ---------- 운영관리 > ETL (DB접속정보 · ETL관리) ---------- */
.kv-form { width: 100%; border-collapse: collapse; border-top: 2px solid var(--blue); font-size: 13px; }
.kv-form th { width: 130px; padding: 7px 10px; background: #f4f7fc; color: #33415c; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kv-form th.req::after { content: " *"; color: var(--danger); }
.kv-form td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kv-form input, .kv-form select, .kv-form textarea {
  width: 100%; height: 30px; padding: 0 8px; border: 1px solid #cfd6e2; border-radius: 4px; font: inherit; font-size: 13px; background: #fff;
}
.kv-form input[readonly] { background: #f3f5f8; color: var(--muted); }
.kv-form textarea { height: auto; padding: 6px 8px; font: 12px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.kv-form .pair { display: flex; gap: 6px; align-items: center; }
.kv-form .pair > * { flex: 1; min-width: 0; }
.kv-form .pair > .sep { flex: none; color: var(--muted); }
.kv-form .hint { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.kv-form .sec th { background: #dfe8f7; color: var(--blue); font-size: 13px; }
.etl-actions { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 10px; }
.etl-actions .left { margin-right: auto; display: flex; gap: 6px; align-items: center; }
.etl-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.etl-note code { font-size: 11px; }
.tbl .st { display: inline-block; min-width: 44px; text-align: center; }
.badge.fail { background: #fdecea; color: var(--danger); }
.tbl td.msg { max-width: 360px; white-space: normal; word-break: break-all; font-size: 12px; }
.tbl tr.off td { color: #a0a7b4; }
.etl-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.etl-filter select, .etl-filter input { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: #fff; }
.etl-filter input[name="q"] { width: 220px; }
.etl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.etl-cols .kv-form th { width: 140px; }
@media (max-width: 1100px) { .etl-cols { grid-template-columns: 1fr; } }
/* 스케줄러 관리 · 모니터링 */
.day-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.day-picks .check { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }
.day-picks .check input, .etl-filter .check input, #jobPick .chk input { width: auto; height: auto; margin: 0; }
.etl-filter .check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
#jobPick .ord { width: 60px; height: 26px; padding: 0 6px; border: 1px solid #cfd6e2; border-radius: 4px; font: inherit; font-size: 12px; }
.mon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 1100px) { .mon-grid { grid-template-columns: 1fr; } }
/* 목록 전체를 펼쳐 페이지 스크롤 하나만 쓴다 (표 머리글은 화면 위에 붙어 따라온다) */
.table-wrap.full { max-height: none; overflow: visible; }
/* 줄 간격을 줄인 표 (한 화면에 더 많이) */
.tbl.compact td { padding: 3px 10px; line-height: 1.8; }
.tbl.compact .btn-sm { height: 26px; }
/* 쪽 번호 (로그·ETL관리 목록 공통) */
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.pager a {
  min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; color: #3a4252;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager a.off { pointer-events: none; opacity: .4; }
.list-foot { position: relative; display: flex; justify-content: center; align-items: center; min-height: 32px; margin-top: 12px; }
.list-foot > .muted { position: absolute; left: 0; font-size: 12px; }
.list-foot .pager { margin: 0; }
/* ETL 그룹 상세: 왼쪽 대상 ETL ↔ 가운데 버튼 ↔ 오른쪽 그룹 등록 ETL */
.dual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: stretch; }
.dual-box { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.dual-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; margin-bottom: 8px; }
.dual-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.dual-head input { flex: 1; min-width: 160px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; }
.dual-list { height: calc(100vh - 400px); min-height: 280px; max-height: none; }
.dual-list tbody tr { cursor: pointer; user-select: none; }
.dual-list .chk input { width: auto; height: auto; margin: 0; }
.dual-mid { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dual-mid .btn { width: 120px; justify-content: center; }
.dual-mid .btn:nth-child(3) { margin-top: 18px; }
@media (max-width: 1100px) { .dual { grid-template-columns: 1fr; } .dual-mid { flex-direction: row; flex-wrap: wrap; } }
/* 정보공시설정 (우리 대학교·주요비교대학) */
.univ-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.univ-filter input[type=text], .univ-filter input:not([type]) { flex: 1; min-width: 160px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; }
.univ-filter select { flex: none; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; }
.univ-filter .check { flex: none; display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.univ-filter .check input { width: 14px; height: 14px; min-width: 0; margin: 0; padding: 0; }
.warn-note { color: #b26a00; }
/* 스케줄에 연결된 ETL 그룹 표시 */
.link-chip { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 10px; background: #e8f0fe; color: var(--blue); font-size: 12px; }
.link-chip small { color: var(--muted); }
.link-chip.off { background: #f0f2f5; color: #a0a7b4; text-decoration: line-through; }
.sched-sel { height: 32px; min-width: 320px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: #fff; }
/* ETL 화면 공통: 왼쪽 목록, 오른쪽 등록·수정 */
.etl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.etl-split .table-wrap.list { max-height: calc(100vh - 230px); min-height: 200px; }
.etl-split .kv-form th { width: 112px; }
.etl-split .tbl td .sub { display: block; font-size: 11px; color: var(--muted); }
.etl-split .tbl tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.etl-split .panel-head { gap: 8px; flex-wrap: wrap; }
.etl-split .head-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.etl-split .etl-filter input[name="q"] { width: 160px; }
.etl-split .etl-cols { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .etl-split { grid-template-columns: 1fr; } }
/* 보고서 보기의 대시보드 (2026-11-06, dashboard 시안과 같은 배치): 경로 줄 · 위 여백 · 위 선 없이 탭 줄 바로 아래부터 창 아래 끝까지 대시보드 (높이는 ai-report.js fitDash) */
.in-frame .sub-layout:has(.ai-dash-wrap) { padding-top: 0; padding-bottom: 0; }
.in-frame .ai-report:has(> .ai-dash-wrap) > .breadcrumb { display: none; }
.in-frame .ai-report > .ai-dash-wrap { border-top: 0 !important; }
/* 메뉴 카드 창 글자 = dashboard 와 같게 (2026-11-06 사용자: 얇게): 화면 이름 13.5 · 보통 굵기, 번호 = 흰 알약 · 회색 글자, 현재 화면만 파랑 */
.mg-col .mg-it .nm { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.mg-col .mg-it .cd { font-size: 10.5px; font-weight: 600; background: var(--surface); color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); }
.mg-col .mg-ls:not(.mg-rg) .mg-it .cd { height: 20px; border-radius: 10px; font-size: 10.5px; }
.mg-col .mg-it .pr { font-weight: 500; }
.mg-col .mg-it.cur .nm { color: var(--blue); font-weight: 600; }
.mg-col .mg-it.cur .cd { background: var(--blue); color: #fff; box-shadow: none; }
/* 분류 이름(학생~대학운영) = 굵게 · 진하게, 아래 화면 이름(13px · 400)과 구분 (2026-11-06). .site-header button { font: inherit } 보다 강하게 */
.site-header .mg-ch { font-size: 14.5px; font-weight: 700; color: #26344d; letter-spacing: -.3px; }   /* 2026-11-06 b : 15·800·#0B1530 → 조금 작게 · 덜 굵게 · 덜 진하게 */
html[data-theme="dark"] .site-header .mg-ch { color: #F1F5FB; }
.site-header .mg-ch.mg-sh { color: #b45309; }   /* 즐겨찾기 제목은 주황 그대로 */
html[data-theme="dark"] .site-header .mg-ch.mg-sh { color: #F5C784; }
.site-header .mg-allmap .mg-ch { font-size: 13px; }   /* 사이트맵(여러 단)은 줄 높이 계산이 있으므로 크기는 예전 13 그대로, 굵기만 */
.mg-ch small { font-weight: 600; }
/* 말풍선 (2026-11-06) : 남색 둥근 상자 · 흰 글 12px · 꼬리 = 가리키는 칸 가운데 (.up = 위로 뜸) — 대시보드 · 포털 같은 모양 */
.dtip{position:absolute;z-index:900;pointer-events:none;max-width:300px;padding:6px 11px;border-radius:8px;background:#1E293B;color:#F8FAFC;font-family:inherit;font-size:12px;font-weight:600;line-height:1.45;letter-spacing:-.2px;white-space:pre-line;word-break:keep-all;box-shadow:0 10px 24px -8px rgba(15,23,42,.45),0 2px 4px rgba(15,23,42,.12);animation:dtipIn .12s ease-out}
.dtip[hidden]{display:none}
.dtip::before{content:"";position:absolute;left:calc(var(--ax,50%) - 5px);top:-5px;border:5px solid transparent;border-top:0;border-bottom-color:#1E293B}
.dtip.up::before{top:auto;bottom:-5px;border-bottom:0;border-top:5px solid #1E293B}
@keyframes dtipIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
html[data-theme="dark"] .dtip{background:#E2E8F0;color:#0F1B3D}
html[data-theme="dark"] .dtip::before{border-bottom-color:#E2E8F0}
html[data-theme="dark"] .dtip.up::before{border-top-color:#E2E8F0}
/* 말풍선 글자 조금 얇게 (2026-11-06) : 600 → 500, ? 도움 풍선(.hqp 500)과 같게 */
.dtip{font-weight:500}
/* 사용자 동그라미 이름 (2026-11-06) : .site-header button { font: inherit } 이 .pt-av 의 글자 크기를 덮어 그동안 적용되지 않았음 → 더 강하게 */
.site-header button.pt-av, .pt-av { width: 28px; height: 28px; font-size: 11.5px; font-weight: 600; letter-spacing: -.5px; }   /* 이름 세 글자가 들어가게 : 원 28 → 30, 글자 8.5 (사용자 2026-11-06) */
