:root {
  --navy: #1f3a5f;
  --navy-dark: #152a45;
  --blue: #1f5fa8;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #dde3eb;
  --text: #1c2533;
  --muted: #6b778a;
  --ok-bg: #e6f4ec; --ok: #1d6b43;
  --err-bg: #fbeaea; --err: #a52a2a;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Malgun Gothic', '맑은 고딕', -apple-system, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* ── 버튼 ── */
.btn {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--text); font: inherit; cursor: pointer; text-decoration: none;
  line-height: 1.4;
}
.btn:hover { background: #eef2f7; text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #18508f; }
.btn.danger { color: var(--err); border-color: #e3b8b8; }
.btn.danger:hover { background: var(--err-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.wide { width: 100%; padding: 10px; font-size: 15px; }
.linkbtn { background: none; border: 0; color: #cfe0f5; font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* ── 로그인 ── */
/* 가운데 정렬은 카드의 margin:auto 로 한다 — align-items:center 를 쓰면 화면보다 긴
   계정 신청 카드의 윗부분이 화면 위로 밀려 스크롤로도 볼 수 없게 된다 */
.login-page { display: flex; justify-content: center; height: auto; min-height: 100vh; padding: 16px;
  /* 공항 계류장 사진 위에 남색 반투명 막을 얹어 카드 글씨가 잘 보이게 한다 */
  background: linear-gradient(120deg, rgba(21, 42, 69, .55) 0%, rgba(21, 42, 69, .15) 60%, rgba(21, 42, 69, .35) 100%),
              url("/static/login-bg.jpg") center 70% / cover no-repeat fixed, var(--navy); }
.login-page .login-card { background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); }

/* ── 로그인 성공 연출: 카드가 문처럼 좌우로 열리고 배경 속으로 들어간다 ── */
.login-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, rgba(21, 42, 69, .55) 0%, rgba(21, 42, 69, .15) 60%, rgba(21, 42, 69, .35) 100%),
              url("/static/login-bg.jpg") center 70% / cover no-repeat;
  transition: transform 1.3s cubic-bezier(.6, 0, .2, 1); will-change: transform; }
/* 문 열림 1.2초: 좌우로 밀려나면서 점점 커지고(1.8배) 서서히 사라진다 */
.door { position: fixed; z-index: 20; margin: 0 !important; pointer-events: none;
  transition: transform 1.2s cubic-bezier(.65, 0, .25, 1), opacity 1s ease .2s;
  /* 끊김 방지(2026-10-06): 카드의 배경 흐림(backdrop-filter)은 움직이는 동안 매 프레임 다시 계산돼 무거우므로 문 조각에서는 끈다.
     will-change 로 시작 전에 미리 GPU 레이어를 만들어 첫 프레임 멈칫을 없앤다 */
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff !important;
  will-change: transform, opacity; backface-visibility: hidden; }
.door-left { clip-path: inset(0 50% 0 0); transform-origin: left center; }
.door-right { clip-path: inset(0 0 0 50%); transform-origin: right center; }
body.opening .door-left { transform: perspective(1400px) translateX(-50vw) rotateY(30deg) scale(1.8); opacity: 0; }
body.opening .door-right { transform: perspective(1400px) translateX(50vw) rotateY(-30deg) scale(1.8); opacity: 0; }
body.opening .login-bg { transform: scale(1.35); }   /* 밝아지는 느낌은 아래 빛 번짐(opacity)이 대신한다 */
/* 갈라지는 틈에서 빛이 퍼지는 효과 */
body.login-page::after { content: ""; position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 55%);
  transition: opacity .9s ease .45s; }
body.opening::after { opacity: 1; }

/* 비밀번호가 틀렸을 때 카드 흔들기 */
.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); } 40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}

/* 로그인 직후 메인 화면이 다가오며 자리 잡는 효과 */
body.entering .topbar, body.entering .shell { animation: enter 1.1s cubic-bezier(.2, .7, .2, 1) both; }
body.entering .shell { animation-delay: .12s; }
/* 화면 전체 흐림(blur) 애니메이션은 무거워 끊기므로 opacity·transform 만 쓴다 (2026-10-06) */
@keyframes enter { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .door, .login-bg, body.login-page::after { transition: none; }
  .shake, body.entering .topbar, body.entering .shell { animation: none; }
}
@media (max-width: 820px) { .login-page { background-attachment: scroll; } }
.login-card { width: 100%; max-width: 380px; margin: auto; background: #fff; border-radius: 12px; padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-mark { display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  letter-spacing: 2px; padding: 6px 14px; border-radius: 6px; margin-bottom: 12px; }
.login-brand h1 { font-size: 20px; }
/* 로그인 화면 표지(제목 겸용): 기본 글자(14px)보다 5pt 크게(약 20.7px), 한글이라 자간은 좁힌다.
   휴대폰처럼 좁은 화면에서는 한 줄에 들어가도록 화면 폭에 맞춰 줄인다 */
.login-brand .login-mark-lg { font-size: min(calc(14px + 5pt), 4.9vw); letter-spacing: 1px; margin: 0 0 12px; line-height: 1.4;
  white-space: nowrap; }
/* 긴 과제명은 '원료의' 뒤에서 줄을 나눠 한 단어만 따로 떨어지지 않게 한다 (로그인 카드 폭이 고정이라 줄바꿈 위치를 직접 지정) */
.login-brand .project-name { display: inline-block; }
.login-brand p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.login-card label { display: block; margin-bottom: 14px; font-weight: 600; }
.login-card input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 0; line-height: 1.6; }
.signup-link { margin-top: 10px; text-align: center; }
.signup-card { max-width: 440px; margin: auto; }
.signup-card .form label { margin-bottom: 12px; font-weight: 400; }
.signup-card .form label small { color: var(--muted); font-size: 12px; }
.signup-card .section-title { margin: 14px 0 10px; }
.consent { background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
  margin: 8px 0 16px; font-size: 13px; }
.consent ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.consent label.check { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; }
.consent label.check input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }   /* 입력칸 공통 폭(100%)이 체크박스까지 늘리지 않게 */
.doc-card { max-width: 720px; line-height: 1.7; font-size: 14px; }
.doc-card h2 { font-size: 15px; color: var(--navy); margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #e3ecf8; }
.doc-card ul { margin: 6px 0; padding-left: 20px; }
.doc-card p { margin: 6px 0; }
.privacy-link { color: var(--muted); text-decoration: underline; }
.site-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 0 0; }
.site-foot a { color: var(--muted); text-decoration: underline; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--err);
  color: #fff; font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.pending-card { border-color: #f2c14e; background: #fffaf0; margin-bottom: 18px; }
.pending-card h2 { margin: 0 0 12px; }
.approve-form { display: inline-flex; gap: 6px; align-items: center; }
.approve-form select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }

/* ── 상단바·레이아웃 ── */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; padding: 0 20px; height: 52px; }
.brand { font-weight: 700; font-size: 16px; }
.brand span { font-weight: 400; font-size: 12px; color: #a9c1de; margin-left: 10px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.who a { color: #cfe0f5; }
.shell { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 210px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.nav-group { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .5px;
  margin: 14px 10px 6px; }
.nav-group:first-child { margin-top: 2px; }
.sidebar a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); font-size: 14.5px; }
.sidebar a:hover { background: #eef2f7; text-decoration: none; }
.sidebar a.active { background: #e3ecf8; color: var(--blue); font-weight: 700; }
.content { flex: 1; min-width: 0; padding: 24px 28px 40px; }

/* ── 왼쪽 아래 시계·달력: 긴 화면에서도 스크롤을 따라 화면 아래에 붙어 있다 ── */
.sidebar { display: flex; flex-direction: column; }
.side-widget { margin-top: auto; position: sticky; bottom: 12px; padding: 18px 4px 4px; text-align: center; }
.side-widget .clock { width: 150px; height: 150px; display: block; margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(31, 58, 95, .25)); }
.clock-date { margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.mini-cal { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px 6px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-title { font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer; }
.cal-nav { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 0 8px; line-height: 1.2; border-radius: 4px; }
.cal-nav:hover { background: #eef2f7; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; font-size: 12px; }
.cal-grid span { height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.cal-grid .dow { font-weight: 700; }
.cal-grid .sun { color: #d0343c; }
.cal-grid .sat { color: #1f6fd1; }
.cal-grid .today { position: relative; color: #fff; font-weight: 700; z-index: 0; }
.cal-grid .today::before { content: ""; position: absolute; width: 23px; height: 23px; border-radius: 50%;
  background: var(--blue); z-index: -1; }
@media (max-height: 640px) { .side-widget { display: none; } }

/* ── 페이지 머리·툴바 ── */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head h1 .sub { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.count { color: var(--muted); font-size: 13px; }
.back { display: inline-block; font-size: 13px; margin-bottom: 6px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.search { display: flex; gap: 6px; }
.search input { width: 260px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── 표 ── */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { background: #f0f3f8; text-align: left; font-weight: 700; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: bottom; word-break: keep-all; }
table.data th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
table.data td { padding: 9px 12px; border-bottom: 1px solid #edf0f4; vertical-align: top; white-space: nowrap; }
table.audit td:last-child { white-space: normal; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 전체 항목 목록: 옆으로 스크롤, 첫 열(번호) 고정, 구역 머리줄 */
table.data.wide th { white-space: nowrap; word-break: normal; }
table.data.wide tr.group-row th.grp { text-align: center; background: #e3ecf8; color: var(--navy);
  border-left: 2px solid #fff; font-size: 12px; padding: 6px 12px; }
table.data .sticky-col { position: sticky; left: 0; z-index: 2; background: #fff;
  box-shadow: 2px 0 0 var(--line); }
table.data th.sticky-col { background: #f0f3f8; z-index: 3; }
tr.clickable:hover td.sticky-col { background: #f6f9fd; }
td.note-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f6f9fd; }
td.empty { text-align: center; color: var(--muted); padding: 36px; }
.row-actions { white-space: nowrap; text-align: right; }

/* ── 배지 ── */
.vis, .role, .act { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.vis-public { background: #e6f0fb; color: #1f5fa8; }
.vis-org { background: #fdf0e1; color: #a5600f; }
.role { background: rgba(255, 255, 255, .15); }
.content .role-admin { background: #ede7f6; color: #5b3d8f; }
.content .role-editor { background: #e6f4ec; color: #1d6b43; }
.content .role-viewer { background: #eef1f5; color: #4a5568; }
.act-insert { background: #e6f4ec; color: #1d6b43; }
.act-update { background: #e6f0fb; color: #1f5fa8; }
.act-delete { background: var(--err-bg); color: var(--err); }

/* ── 카드·상세 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card.note { margin-top: 16px; }
.card.note ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
dl.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 24px; margin: 0; }
dl.fields dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
dl.fields dd { margin: 0; font-size: 15px; white-space: pre-wrap; }
.span-all { grid-column: 1 / -1; }
.section-title { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid #e3ecf8; padding-bottom: 6px; margin-top: 8px; }
.section-title:first-child { margin-top: 0; }
.topbar .role-admin { background: #f2c14e; color: #3b2a00; font-weight: 700; }
.meta-line { color: var(--muted); font-size: 12px; margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── 폼 ── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.form label { display: block; }
.form label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form input:not([type=radio]):not([type=file]):not([type=checkbox]), .form select, .form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.form input[readonly] { background: #f3f5f9; color: var(--muted); }
.form.narrow { max-width: 460px; }
.form.narrow label { margin-bottom: 14px; }
.req { color: var(--err); margin-left: 3px; }
.vis-choice { border: 1px solid var(--line); border-radius: 6px; margin: 18px 0 0; padding: 10px 14px; }
.vis-choice legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.vis-choice label { display: inline-block; margin-right: 18px; }
.vis-choice small { display: block; color: var(--muted); margin-top: 6px; }
.form-actions { margin-top: 18px; display: flex; gap: 8px; }

/* ── 알림 ── */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }

/* ── 엑셀 업로드 ── */
.steps { display: grid; gap: 22px; }
.step { display: flex; gap: 14px; }
.step-no { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step p { margin: 0 0 10px; color: var(--muted); }
.step input[type=file] { display: block; margin-bottom: 4px; }
.step .btn.primary { margin-top: 14px; }

/* ── 변경 이력 ── */
ul.changes { list-style: none; margin: 0; padding: 0; font-size: 13px; }
ul.changes li { margin-bottom: 2px; }
.clab { color: var(--muted); margin-right: 6px; }
del { color: var(--err); }
ins { color: var(--ok); text-decoration: none; font-weight: 600; }

/* ── 그래프 ── */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card h2 { margin: 0; font-size: 15px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.chart-controls select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 380px; }
.chart-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* ── 전처리 계통·전후 비교 ── */
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.indent { display: inline-block; width: calc(var(--depth) * 16px); color: #9aa7b8; text-align: right; padding-right: 4px; }
.page-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 10px; }
.page-sub h2 { margin: 0; }
.lineage-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.lineage-path .node { padding: 3px 10px; border-radius: 12px; background: #eef2f7; font-weight: 600; }
.lineage-path .node.current { background: var(--blue); color: #fff; }
.lineage-path .arrow { color: var(--muted); font-size: 12px; }
ul.tree { list-style: none; margin: 0; padding: 0; }
ul.tree li { padding: 7px 10px 7px calc(10px + var(--depth) * 26px); border-top: 1px solid #edf0f4;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
ul.tree li:first-child { border-top: 0; }
ul.tree li.current { background: #f3f8ff; }
ul.tree li.current a { font-weight: 700; }
ul.tree .cond { color: var(--muted); font-size: 13px; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.tag-raw { background: #fdf0e1; color: #a5600f; }
.tag-pre { background: #e6f4ec; color: #1d6b43; }
.tag-bp { background: #f1ece4; color: #7a5a2b; }
table.compare tr.grp-row td { background: #f0f3f8; font-weight: 700; color: var(--navy); font-size: 12px; padding: 5px 12px; }
table.compare th.cur-col, table.compare td.cur-col { background: #f3f8ff; }
table.compare td.sticky-col { background: #fff; }
.chg { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; }
.chg.down { color: #1d6b43; }
.chg.up { color: var(--err); }
tr.cur-row td { background: #f3f8ff; }
.lineage + h2, .chart-card { margin-top: 16px; }

/* ── 삭제 확인창 ── */
.btn.danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-solid:hover { background: #8a2121; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; border-radius: 10px; padding: 22px 24px; width: 100%; max-width: 400px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.modal p { margin: 8px 0 20px; color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── 오류 ── */
.error-card { text-align: center; max-width: 420px; margin: 40px auto; }
.error-code { font-size: 40px; font-weight: 700; color: var(--navy); }

/* ── 좁은 화면 ── */
@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-group { display: none; }
  .sidebar { flex-direction: row; }
  .side-widget { display: none; }
  .content { padding: 16px; }
  .chart-grid { grid-template-columns: 1fr; }
  .who span:first-child { display: none; }
  .search input { width: 100%; }
  /* 아이폰은 16px 보다 작은 입력칸을 누르면 화면을 확대해 칸이 잘려 보인다 */
  input, select, textarea { font-size: 16px !important; }
  .login-card { padding: 24px 18px; }
}

/* ── 분석 결과 입력·표시 (값 + 미만/초과/ND 기호 + 분석방법) ── */
label.measure .measure-row { display: flex; gap: 6px; }
label.measure .measure-row input { min-width: 0; }
label.measure .measure-row > input:first-child { flex: 0 0 74px; text-align: right; font-variant-numeric: tabular-nums; }
label.measure .measure-row input.method { flex: 1; font-size: 12px; color: #39465a; background: #f8fafc; }
input.filled { background: #fff8d6 !important; transition: background .3s; }
.paste-box { grid-column: 1 / -1; border: 1px dashed #b8c7dc; border-radius: 8px; padding: 10px 14px; background: #f8fbff; }
.paste-box summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.paste-box summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.paste-box textarea { width: 100%; margin-top: 10px; font-family: Consolas, monospace; font-size: 12px; }
.paste-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.paste-result { margin-top: 10px; font-size: 13px; }
.paste-result > div { padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; }
.paste-result .ok { background: #e7f5ec; color: #1d6b40; }
.paste-result .warn { background: #fff4e0; color: #8a5300; }
.paste-result .miss { background: #fdecec; color: #9b2c2c; }
.paste-result ul { margin: 4px 0 0; padding-left: 18px; }
table.analysis { max-width: 820px; }
table.analysis tr.grp-row td { background: #f0f3f8; font-weight: 700; color: var(--navy); font-size: 12px; padding: 5px 12px; }
table.analysis tr.empty-row td { color: #a5adb9; }
.qual { display: inline-block; font-size: 11px; color: #6a4a00; background: #fff1c2; border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.mixed { display: inline-block; font-size: 11px; color: #8a5300; background: #fff4e0; border-radius: 4px; padding: 0 5px; }

/* ── 분석 항목 관리 ── */
.page-desc { color: var(--muted); margin: -4px 0 14px; line-height: 1.6; }
.item-add { margin-bottom: 18px; }
.item-add .form-grid label input[hidden] { display: none; }
#grpNew { margin-top: 6px; }
.iconbtn { border: 1px solid var(--line); background: #fff; border-radius: 4px; width: 26px; height: 24px; cursor: pointer; font-size: 10px; color: var(--navy); }
.iconbtn:hover { background: #eef2f7; }
table.items-table tr.hidden-item td { color: #a5adb9; background: #fafbfc; }
table.items-table td.wrap-cell { white-space: normal; min-width: 160px; }

/* ── 분석방법 후보 고르기 ── */
.method-wrap { position: relative; flex: 1; display: flex; min-width: 0; }
.method-wrap input.method { flex: 1; min-width: 0; }
.method-wrap .mpick { flex: 0 0 26px; margin-left: -1px; border: 1px solid var(--line); background: #eef2f7; color: var(--navy);
  border-radius: 0 6px 6px 0; cursor: pointer; font-size: 11px; }
.method-wrap:has(.mpick) input.method { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mpick-menu { position: absolute; top: calc(100% + 2px); right: 0; z-index: 20; min-width: 100%; background: #fff;
  border: 1px solid #b8c7dc; border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 40, 70, .15); padding: 4px; }
.mpick-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px;
  font-size: 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.mpick-menu button:hover { background: #eef4fc; }
.mpick-menu button.on { font-weight: 700; color: var(--blue); }
.mpick-hint { font-size: 11px; color: var(--muted); padding: 4px 10px 2px; border-top: 1px solid #edf0f4; margin-top: 2px; }
.alt-method { font-size: 11px; color: var(--muted); }

/* ── 로그인 특수 효과 (지정 사용자): 3D 도어 + 워프 + 백광. 움직임은 transform·opacity 만 사용 ── */
.fx-stage { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.fx-warp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; }
.fx-door { position: fixed; margin: 0 !important; will-change: transform, opacity; backface-visibility: hidden;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff !important; }
.fx-door-left { clip-path: inset(0 50% 0 0); transform-origin: left center; }
.fx-door-right { clip-path: inset(0 0 0 50%); transform-origin: right center; }
.fx-slit { position: fixed; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; opacity: 0;
  box-shadow: 0 0 12px 4px rgba(120, 230, 255, .95), 0 0 40px 14px rgba(110, 90, 255, .7), 0 0 90px 30px rgba(255, 120, 220, .35);
  will-change: transform, opacity; }
.fx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; will-change: opacity; }

/* 메인 화면 정착: 백광이 걷히며 메뉴·카드가 시차를 두고 살짝 줌아웃되어 자리 잡는다 */
body.warp-enter::before { content: ""; position: fixed; inset: 0; z-index: 50; background: #fff; pointer-events: none;
  animation: warp-flash .76s ease-out both; }   /* 백광 1.4배 */
body.warp-enter .warp-item { animation: warp-settle .66s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 54ms + 72ms); }   /* 로그인 연출과 같은 1.2배 */
@keyframes warp-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes warp-settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.warp-enter::before, body.warp-enter .warp-item { animation: none; } }
.fx-badge { display: inline-block; font-size: 11px; color: #5b3fd0; background: #efeaff; border-radius: 4px; padding: 0 5px; }
.check-line { display: flex !important; gap: 8px; align-items: flex-start; flex-direction: row !important; }
.check-line input { width: auto !important; margin-top: 3px; }
.fx-dark { position: absolute; inset: 0; opacity: 0; will-change: opacity;
  background: radial-gradient(circle at center, rgba(20, 16, 60, .55) 0%, rgba(6, 8, 28, .92) 55%, #03040f 100%); }

/* 로그인 화면 '아이디 저장' */
.login-card label.remember { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 13px;
  color: var(--muted); margin: -4px 0 12px; cursor: pointer; font-weight: 400; }
.login-card label.remember input { width: 16px; height: 16px; margin: 0; }

/* ── 로그인 후 메인 화면 등장 효과 3안 (opacity·transform 만 사용) ──
   --es: 전체 속도 배율 (1 = 처음 만든 속도, 2026-10-06 사용자 요청으로 1.5). 바꾸면 layout.html 의 ENTER_SLOW 도 같게 */
body[class*="enter-"] { --es: 1.5; }
/* 공통 조각: 메뉴는 왼쪽에서, 블록은 아래에서, 표 행은 차례로 떠오른다 */
body[class*="enter-"] .ent-side { animation: ent-side calc(.5s * var(--es)) cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc((var(--i) * 40ms + var(--base, .25s)) * var(--es)); }
body[class*="enter-"] .ent-block { animation: ent-up calc(.55s * var(--es)) cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc((var(--i) * 70ms + var(--base, .3s)) * var(--es)); }
body[class*="enter-"] .ent-row { animation: ent-row calc(.45s * var(--es)) cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc((var(--i) * 28ms + var(--base, .5s)) * var(--es)); }
@keyframes ent-side { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes ent-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ent-row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* A. 캐스케이드: 상단바가 위에서 내려오고 이어서 메뉴·내용·행이 순서대로 */
body.enter-cascade .topbar { animation: ent-drop calc(.55s * var(--es)) cubic-bezier(.2, .8, .2, 1) both; }
body.enter-cascade .sidebar { animation: ent-fade calc(.4s * var(--es)) ease both calc(.1s * var(--es)); }
@keyframes ent-drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes ent-fade { from { opacity: 0; } to { opacity: 1; } }

/* B. 아이리스: 빛의 고리가 퍼지며 원 안으로 화면이 열린다.
   화면 가운데(높이 45%)에서 원이 열리고, 원 안은 원래 밝은 바탕, 바깥은 짙은 남색. 상단바는 원이 닿을 즈음 내려온다 */
body.enter-iris .shell { background: var(--bg); animation: ent-iris calc(.9s * var(--es)) cubic-bezier(.5, 0, .2, 1) both; }
body.enter-iris .topbar { animation: ent-drop calc(.5s * var(--es)) cubic-bezier(.2, .8, .2, 1) both calc(.45s * var(--es)); }
body.enter-iris { --base: .55s; background: #0b1730; }
@keyframes ent-iris { from { clip-path: circle(0 at var(--cx, 50%) var(--cy, 45vh)); } to { clip-path: circle(150vmax at var(--cx, 50%) var(--cy, 45vh)); } }
.iris-ring { position: fixed; left: 50%; top: 45vh; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; z-index: 60;
  border-radius: 50%; pointer-events: none; border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 30px 8px rgba(120, 200, 255, .7), inset 0 0 30px 8px rgba(120, 200, 255, .5);
  animation: ent-ring calc(1s * var(--es)) cubic-bezier(.5, 0, .2, 1) both; will-change: transform, opacity; }
@keyframes ent-ring { 0% { transform: scale(0); opacity: 1; } 70% { opacity: .8; } 100% { transform: scale(4.2); opacity: 0; } }

/* C. 셔터: 남색 판 6장이 왼쪽부터 차례로 위로 걷힌다 */
body.enter-shutter { --base: .55s; }
.shutter { position: fixed; inset: 0; z-index: 60; display: flex; pointer-events: none; }
.shutter i { flex: 1; background: linear-gradient(180deg, #1f3a5f, #152a45); margin-right: -1px;
  animation: ent-shutter calc(.6s * var(--es)) cubic-bezier(.7, 0, .3, 1) both;
  animation-delay: calc((var(--i) * 60ms + 80ms) * var(--es)); will-change: transform; }
@keyframes ent-shutter { from { transform: none; } to { transform: translateY(-101%); } }

@media (prefers-reduced-motion: reduce) {
  body[class*="enter-"] *, .shutter, .iris-ring { animation: none !important; }
  .shutter, .iris-ring { display: none; }
}

/* ── 워프 → 아이리스 연계: 워프의 백광이 우주색(짙은 남색)으로 걷힌 뒤 빛 고리와 함께 원형으로 열린다 ──
   0.3초 늦춤은 layout.html 의 WARP_GAP 과 같게 */
body.warp-iris::before { content: ""; position: fixed; inset: 0; z-index: 70; background: #fff; pointer-events: none;
  animation: warp-flash .6s ease-out both; }
body.warp-iris { --base: .75s; background: #070d22; }
body.warp-iris .shell { animation-delay: .3s; }
body.warp-iris .iris-ring { animation-delay: .3s; }
body.warp-iris .topbar { animation-delay: calc(.45s * var(--es) + .3s); }
/* 상단바 과제명은 길어서 좁은 화면에서는 숨긴다 */
@media (max-width: 1100px) { .brand span { display: none; } }

/* ── 상세 화면 첨부: 오른쪽 사진 패널 · 끌어다 놓기 · 크게 보기 · 크로마토그램 ── */
.card.detail-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.card.detail-top > dl.fields { align-content: start; }
@media (max-width: 1000px) { .card.detail-top { grid-template-columns: 1fr; } }
.photo-panel { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1000px) { .photo-panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; } }
.photo-head { font-size: 14px; font-weight: 700; color: var(--navy); }
.photo-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #f3f5f9; cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12px; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6)); display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.photo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.photo-thumb { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #f3f5f9; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb:hover, .photo-main:hover { border-color: var(--blue); }
.photo-empty { color: var(--muted); font-size: 13px; padding: 24px 0; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.drop-zone { border: 2px dashed #b8c7dc; border-radius: 8px; background: #f8fbff; padding: 16px 12px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 4px; transition: background .15s, border-color .15s; }
.drop-zone b { color: var(--navy); font-size: 13px; }
.drop-zone.over { background: #e8f1ff; border-color: var(--blue); }
.drop-zone.wide { margin-top: 14px; padding: 22px 12px; }
.drop-status { margin-top: 6px; font-size: 12px; color: var(--blue); white-space: pre-line; }
.drop-status.err { color: var(--err); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 30, .85); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; max-width: 94vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lb-close { position: absolute; top: -40px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav { position: absolute; top: 40%; background: rgba(255, 255, 255, .85); border: 0; width: 40px; height: 56px; font-size: 30px;
  border-radius: 6px; cursor: pointer; color: var(--navy); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: #fff; padding: 8px 12px; border-radius: 8px; }
.lb-bar input[name=caption] { width: 200px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }
.lb-cap { font-size: 13px; color: var(--text); margin-right: 6px; }
.chrom-card .chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-box.chrom-box { height: 380px; }
table.chrom-files .cap-form { display: flex; gap: 6px; }
table.chrom-files .cap-form input { width: 180px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }

/* ── 원료 등록: 시료 코드 만들기 (2026-10-08) ── */
.code-builder { border: 1px solid #c9d8ec; background: #f5f9fe; border-radius: 10px; padding: 14px 16px 12px; margin-bottom: 18px; }
.cb-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.cb-head b { color: var(--navy); font-size: 15px; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.cb-grid > label, .cb-class { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cb-grid select, .cb-grid input[type=date], .cb-grid input[type=number], .cb-grid input:not([type]) { padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; color: var(--text); }
.code-builder .cb-inline { display: flex !important; gap: 6px; }
.code-builder .cb-inline select { flex: 1; min-width: 0; width: auto !important; }
.cb-inline input { flex: none; }
.code-builder [hidden] { display: none !important; }
#cbSupNew { width: 56px !important; text-transform: uppercase; }
#cbSupNo { width: 64px !important; }
.cb-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-radios label { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  cursor: pointer; color: var(--text); font-size: 13.5px; }
.cb-radios label:has(input:checked) { border-color: var(--blue); background: #e3ecf8; }
.cb-radios input { margin: 0; width: auto !important; }
.cb-check { display: flex; align-items: center; gap: 6px; color: var(--text); padding-top: 6px; }
.cb-check input { width: auto !important; margin: 0; }
.cb-result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #c9d8ec; }
#cbPreview { font-size: 17px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid #c9d8ec; border-radius: 6px; padding: 4px 10px; letter-spacing: .3px; }
.cb-manual { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.cb-manual input { width: auto !important; margin: 0; }
.warn-text { color: #a5600f; }
.form input.locked { background: #eef3fa !important; color: var(--navy) !important; font-weight: 700; cursor: not-allowed; }
/* 시료 코드 만들기 — 줄마다 이름 + 누르는 버튼 (2026-10-08 드롭다운 대신) */
.cb-rows { display: flex; flex-direction: column; gap: 8px; }
.cb-row { display: flex; align-items: center; gap: 12px; }
.cb-label { flex: none; width: 84px; font-size: 13px; color: var(--muted); font-weight: 700; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
  font-size: 13.5px; cursor: pointer; line-height: 1.3; font-family: inherit; }
.cb-chip:hover { border-color: #9db8dc; }
.cb-chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.cb-chip.on b { color: #fff; }
.cb-wrap { flex-wrap: wrap; align-items: center; }
.cb-no { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-left: 6px; }
.code-builder .cb-row input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; width: auto !important; }
.code-builder .cb-row input:not([type]), .code-builder .cb-row input[type=number] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
@media (max-width: 600px) { .cb-row { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ── 목록 표: 아래 여백 · 엑셀식 필터 (2026-10-08) ── */
.table-wrap.list-wrap { padding-bottom: 22px; }
.list-wrap table.data tr:last-child td { border-bottom: 1px solid #edf0f4; }
table.data th .fbtn { margin-left: 4px; border: 1px solid transparent; background: none; color: #8a96a8; cursor: pointer;
  font-size: 11px; padding: 0 4px; border-radius: 4px; line-height: 1.5; vertical-align: middle; }
table.data th .fbtn:hover { border-color: #b9c6d8; background: #fff; color: var(--navy); }
table.data th .fbtn.on { background: var(--blue); color: #fff; }
table.data th small + .fbtn { margin-left: 0; }
table.sorted .indent { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 8px;
  padding: 7px 12px; border-radius: 8px; background: #fff7e6; border: 1px solid #f0d9a8; font-size: 13px; color: #6b4e16; }
.fpop { position: absolute; z-index: 50; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, .18); padding: 8px; font-size: 13px; }
.fpop-title { font-weight: 700; color: var(--navy); padding: 2px 4px 6px; }
.fpop .fsort { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 6px; border-radius: 5px;
  cursor: pointer; font: inherit; color: var(--text); }
.fpop .fsort:hover { background: #eef2f7; }
.fpop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.fpop .fsearch { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; margin-bottom: 6px; }
.fpop label { display: flex; align-items: center; gap: 5px; padding: 3px 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpop label small { color: var(--muted); }
.fpop label input { margin: 0; }
.fpop .fall { border-bottom: 1px dashed var(--line); padding-bottom: 5px; margin-bottom: 3px; }
.fpop .flist { max-height: 240px; overflow-y: auto; }
.fpop-act { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.fpop-act span { flex: 1; }

/* ── 사진마다 삭제(×) 버튼 (2026-10-08) — 마우스를 올리면 진하게 ── */
.photo-item { position: relative; display: block; }
.photo-thumbs .photo-item .photo-thumb { width: 100%; display: block; }
.photo-del { position: absolute; top: 6px; right: 6px; margin: 0; z-index: 2; }
.photo-thumbs .photo-del { top: 2px; right: 2px; }
.photo-x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20, 30, 45, .55); color: #fff;
  font-size: 17px; line-height: 26px; padding: 0; cursor: pointer; opacity: .75; }
.photo-thumbs .photo-x { width: 20px; height: 20px; font-size: 14px; line-height: 20px; }
.photo-item:hover .photo-x, .photo-x:focus { opacity: 1; }
.photo-x:hover { background: #c2434b; }
/* 피크 표(적분 결과) */
.peak-box { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fbfcfe; }
.peak-box summary { cursor: pointer; font-size: 13.5px; }
.peak-scroll { max-height: 360px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.peak-table th { position: sticky; top: 0; z-index: 1; cursor: pointer; }
.peak-table th[data-dir=asc]::after { content: " ▲"; color: var(--blue); }
.peak-table th[data-dir=desc]::after { content: " ▼"; color: var(--blue); }
.peak-table td { padding: 5px 10px; font-size: 12.5px; }
.peak-table tbody tr { cursor: pointer; }
.peak-table tbody tr:hover td { background: #f3f7fd; }
.peak-table tbody tr.cur td { background: #fff1d6; }
.chrom-files .cap-form input[name=caption] { width: 300px; max-width: 46vw; }
/* 목록 첨부 표시: P 사진 · F FID (2026-10-08) — 첨부가 있는 목록이면 자리를 맞춰 시료번호가 가지런하게 */
.att-marks { display: inline-flex; gap: 3px; vertical-align: 1px; }
table.has-att .att-marks { width: 38px; }
.att-mark { display: inline-block; width: 16px; height: 16px; line-height: 16px; border-radius: 4px; text-align: center;
  font-size: 10.5px; font-weight: 800; color: #fff; font-family: Arial, sans-serif; }
.att-p { background: #2e9e6b; }
.att-f { background: #c2434b; }

/* ── 관련 사이트(통합 허브): 외부 사이트를 화면 안에 iframe 으로 (2026-10-09) ── */
.sidebar a.site-link .ext { font-size: 11px; color: var(--muted); }
.site-head { align-items: flex-start; }
.site-desc { margin: 4px 0 0; }
.site-url { color: #8a96a8; word-break: break-all; }
.site-note { margin: 0 0 10px; font-size: 12.5px; color: #6b4e16; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; padding: 7px 12px; }
.site-frame-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.site-frame { display: block; width: 100%; height: calc(100vh - 230px); min-height: 560px; border: 0; background: #fff; }
/* 왼쪽 메뉴: 상단바 아래에 붙은 독립 세로 칸(내용이 길면 메뉴만 스크롤) — 시계·달력은 그 맨 아래.
   예전 '시계만 sticky' 방식은 창이 낮을 때 시계가 메뉴 글자를 덮었다 (2026-10-09) */
.topbar { position: sticky; top: 0; z-index: 30; }
.sidebar { position: sticky; top: 52px; align-self: flex-start; height: calc(100vh - 52px); overflow-y: auto; overscroll-behavior: contain; }
.side-widget { position: static; margin-top: auto; padding-bottom: 10px; }
@media (max-width: 820px) {
  .topbar { position: static; }
  .sidebar { position: static; height: auto; overflow: visible; }
}

/* ── ISCC 정보 다운로드 (2026-10-09) ── */
.sidebar a.sub-link { padding: 6px 12px 6px 22px; font-size: 13.5px; color: #44536a; }
.iscc-form { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.iscc-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px 16px; }
.iscc-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .iscc-grid { grid-template-columns: 1fr; } }
.chk-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-size: 13px; cursor: pointer; }
.chk-chip:has(input:checked) { border-color: var(--blue); background: #e3ecf8; }
.chk-chip input { width: auto !important; margin: 0; }
.country-extra { width: 210px !important; padding: 5px 8px; font-size: 13px; }
.iscc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 6px; border-top: 1px dashed var(--line); }
.iscc-actions select { width: auto !important; }
.iscc-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 10px; }
.iscc-result-head h2 { margin: 0; font-size: 16px; }
.iscc-table td.note-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.st { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.st-유효 { background: #e6f4ec; color: #1d6b43; } .st-정지 { background: #fff1d6; color: #a5600f; }
.st-만료, .st-종료, .st-철회 { background: #f1f3f6; color: #6b778a; }
.iscc-search { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); max-width: 640px; }
.period-dates { display: inline-flex; align-items: center; gap: 6px; }
.period-dates input { width: auto !important; padding: 4px 8px; }
.period-dates[hidden] { display: none; }
/* 받아 둔 ISCC 데이터 (2026-10-09) */
.iscc-store { margin-bottom: 14px; }
.store-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.store-head h2 { margin: 0; font-size: 16px; }
.store-line { margin: 6px 0 0; }
.store-running { margin: 8px 0 0; color: #1d6b43; font-size: 13px; }
.store-error { margin: 8px 0 0; color: #a3262e; font-size: 13px; }
.store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.live-box { margin-top: 18px; }
.live-box > summary { cursor: pointer; }
.live-box .live-form { margin-top: 10px; }
.live-box h3 { font-size: 14px; margin: 16px 0 6px; }

/* ── ISCC 세계지도 (2026-10-09) ── */
.map-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px 14px; }
.map-filters .cb-label { width: 72px; }
.inline-label { width: auto !important; margin-left: 10px; }
.grp-chip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.map-filters select, .map-search { width: auto !important; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.map-search { min-width: 220px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .map-layout { grid-template-columns: 1fr; } }
.map-card { padding: 10px 12px; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.map-toolbar .btn { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--blue); color: #fff; }
.map-box { position: relative; background: #e4edf7; border-radius: 8px; overflow: hidden; }
.map-box svg { display: block; width: 100%; height: auto; cursor: grab; }
.map-box path.country { cursor: pointer; transition: fill .2s; }
.map-box path.country:hover { stroke: #1f3a5f; stroke-width: 1; }
.map-box path.country.sel, .map-box circle.small.sel { stroke: #c2434b !important; stroke-width: 1.6 !important; }
.map-box circle.small { cursor: pointer; }
.map-tip { position: absolute; pointer-events: none; background: rgba(20, 32, 50, .92); color: #fff; padding: 6px 9px; border-radius: 6px;
  font-size: 12.5px; max-width: 220px; z-index: 5; }
.map-tip .tip-sub { margin-top: 3px; font-size: 11.5px; color: #cfe0f5; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted);
  background: rgba(247, 250, 253, .7); font-size: 14px; }
.map-loading[hidden] { display: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 2px 4px; font-size: 12px; }
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, .08); }
.cont-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.cont-card { text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; cursor: pointer;
  font: inherit; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.cont-card:hover { border-color: var(--blue); }
.cont-card b { font-size: 14px; color: var(--navy); }
.cont-card .mini { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.map-side { padding: 12px 14px; max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 64px; }
.map-side h2 { margin: 0 0 6px; font-size: 16px; }
.map-side h3 { font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; }
.side-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.st-line { display: flex; flex-wrap: wrap; gap: 4px; }
.bar-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 46px; align-items: center; gap: 6px; font-size: 12px; margin: 3px 0; }
.bar-row .bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.bar-row .bt { background: #eef1f5; border-radius: 3px; height: 9px; overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; border-radius: 3px; }
.bar-row .bn { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-row .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.top-list { display: flex; flex-direction: column; }
.top-list a { display: flex; gap: 8px; padding: 4px 6px; border-radius: 5px; color: var(--text); font-size: 13px; }
.top-list a:hover { background: #eef2f7; text-decoration: none; }
.top-list a b { width: 18px; color: var(--muted); font-weight: 700; }
.top-list a span { margin-left: auto; color: var(--muted); }
.country-list { margin-top: 14px; padding: 12px 14px; }
.map-main { min-width: 0; }
/* 말줄임 표 (2026-10-11): 칸 너비는 머리줄 기준으로 고정 — 유난히 긴 회사·공정 이름이 표를 넓히지 않고 … 로 줄고, 마우스를 올리면 전체 */
table.ellip-table { table-layout: fixed; width: 100%; }
table.ellip-table th, table.ellip-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ellip-table th.rownum { width: 46px; }
#clBack { margin-left: auto; }
#countryList .cl-head .btn-excel { margin-left: 0; }
.cl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cl-head h2 { margin: 0; font-size: 16px; }
.country-list td.note-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
/* ── ISCC 시계열 (2026-10-09) ── */
.trend-card { margin-bottom: 14px; padding: 12px 14px; }
.trend-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.trend-head h2 { margin: 0; font-size: 16px; margin-right: auto; }
.sankey-box { position: relative; overflow: hidden; }
.sankey-box svg { display: block; width: 100%; height: auto; }
.sk-range { width: 260px; }

/* ── SAF 생산 시설·생산량 ── */
.head-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.saf-source { padding: 10px 14px; margin-bottom: 12px; display: grid; gap: 5px; font-size: 13px; }
.saf-source .src-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.src-tag { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; color: #fff; flex: none; }
.src-tag.icao { background: #1f5fa8; }
.src-tag.iata { background: #2e9e6b; }
.saf-source .inline-form { display: inline; margin-left: 6px; }
.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; margin: 0; }
.kpi .kpi-l { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 21px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .kpi-s { font-size: 11.5px; color: var(--muted); }
.metric-note { margin: 4px 2px 0; }
.saf-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) { .saf-charts { grid-template-columns: 1fr; } }
.saf-charts .trend-card { margin-bottom: 0; }
.saf-charts h2 { font-size: 15px; margin: 0 0 8px; }
.saf-table th[data-k] { cursor: pointer; white-space: nowrap; }
.saf-table th.sorted { color: var(--blue); }
.saf-table .fac-row { cursor: pointer; }
.saf-table .fac-detail td { background: #f7f9fc; font-size: 12.5px; white-space: normal; }
.saf-table .dot, .howto .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sg-pill { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11.5px; color: #1d2733; white-space: nowrap; }
.howto { margin-top: 14px; padding: 14px 18px; }
.howto h2 { margin-top: 0; }
.howto-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.howto-table { margin: 6px 0; font-size: 12.5px; width: auto; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .rule-grid { grid-template-columns: 1fr; } }
.ok-mark { color: var(--ok); font-weight: 700; font-size: 12px; }
/* 메인 메뉴와 관련 사이트 사이를 띄우고 옅은 선으로 나눈다 */
.nav-group.nav-gap { margin-top: 40px; padding-top: 18px; border-top: 2px solid var(--line); }   /* 우리가 입력하는 데이터 ↔ 외부 자료 참고 구분 */
.sidebar a.sub-link { flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; letter-spacing: -.2px; }
.saf-table td.co { min-width: 130px; max-width: 210px; white-space: normal; }
.saf-table .co-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.saf-table .co-partner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saf-table td.city { max-width: 130px; white-space: normal; word-break: break-word; }
.saf-table td.feed { max-width: 150px; }
.fpop .fhint { padding: 4px 4px 0; }
.frame-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
.frame-head h2 { margin: 0; font-size: 16px; color: var(--navy); }
.site-frame-wrap.multi { margin-bottom: 8px; }
.site-frame-wrap.multi .site-frame { height: auto; aspect-ratio: 16 / 10; min-height: 420px; max-height: 88vh; }
.chg { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11.5px; }
.chg-new { background: #dff3e7; color: #1f7a4d; }
.chg-removed { background: #f6e0e0; color: #a33; }
.chg-change { background: #e3edf9; color: #1f5fa8; }
.chg-table td { white-space: normal; }
details.howto > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.howto > summary::-webkit-details-marker { display: none; }
details.howto > summary h2 { margin: 0; }
details.howto > summary h2::before { content: "▸ "; color: var(--muted); }
details.howto[open] > summary h2::before { content: "▾ "; }
details.howto[open] > summary { margin-bottom: 10px; }
#facList .cl-head { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
#facList .cl-head .btn-excel { margin-left: auto; }
.btn.btn-excel { display: inline-flex; align-items: center; gap: 6px; background: #1d6f42; border-color: #1d6f42; color: #fff; font-weight: 600; }
.btn.btn-excel:hover { background: #185c37; border-color: #185c37; color: #fff; }
.btn-excel .xl-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; background: rgba(255,255,255,.2); border-radius: 3px; padding: 1px 4px; }
table.data th .fbtn.sorted { color: var(--blue); font-weight: 700; }
table.data th .fbtn.sorted.on { color: #fff; }
.filter-bar[hidden] { display: none; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 26px 0 4px; padding-top: 14px; border-top: 2px solid var(--line); scroll-margin-top: 70px; }
.section-title h2 { margin: 0; font-size: 19px; color: var(--navy); }
.section-title h2 .sub { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.trend-scope { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.trend-hint { margin: 0 0 10px; }
.map-only .cb-label small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
/* 필터·정렬이 걸린 칸 — 사이트 모든 목록 표 공통 */
table.data th.f-on { background: #dbe8f8; box-shadow: inset 0 -3px 0 var(--blue); }
table.data th.f-sorted { color: var(--blue); }
.filter-bar .fb-icon { color: var(--blue); font-weight: 700; }
/* SAF 공급 공항·정책 */
.src-tag.geo { background: #7b5ea7; }
.bar-row .bt.stack { display: flex; }
.bar-row .bt.stack i { border-radius: 0; }
tr.muted-row td { color: #8a96a8; background: #fafbfc; }
.po-cards { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.po-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; display: grid; gap: 3px; }
.saf-table td.po-title { white-space: normal; min-width: 220px; max-width: 360px; }
.bar-row .bl a { color: inherit; }
.sidebar a.site-link.open { color: var(--navy); font-weight: 600; }
.sidebar a.site-link + a.site-link, .sidebar a.sub-link + a.site-link { margin-top: 6px; }

/* ── UX 통일 2차 (2026-10-09) ── */
/* 데이터 내려받기 버튼: 표 위 머리 줄의 오른쪽 끝 */
.cl-head, .iscc-result-head { justify-content: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.cl-head .btn-excel, .iscc-result-head .btn-excel, .page-sub .btn-excel { margin-left: auto; }
/* 외부 사이트로 나가는 버튼·링크: 청록색 + 바깥으로 나가는 화살표, 늘 새 탭 */
:root { --ext: #0e7c86; }
.btn.btn-ext { display: inline-flex; align-items: center; gap: 6px; color: var(--ext); border-color: var(--ext); background: #fff; font-weight: 600; }
.btn.btn-ext:hover { background: #e7f5f6; color: var(--ext); }
.btn.btn-ext svg { flex: none; }
a[target="_blank"]:not(.btn):not(.privacy-link) { color: var(--ext); }
a[target="_blank"]:not(.btn):not(.privacy-link)::after { content: "↗"; display: inline-block; margin-left: 2px; font-size: .85em; text-decoration: none; }
.sidebar a .ext { color: var(--ext); font-weight: 700; }
.btn.btn-ext, .btn.btn-excel { white-space: nowrap; flex-shrink: 0; }

/* 화면 오른쪽 위 '원래 대시보드로' 버튼 + 어디로 가는지 한 줄 (2026-10-09) */
.head-ext { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.head-ext > .small { font-size: 11.5px; }
.head-ext-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .page-head.site-head { flex-wrap: wrap; } .head-ext { align-items: flex-start; } }
.sidebar a.site-link { white-space: nowrap; font-size: 14px; letter-spacing: -.4px; padding-right: 3px; }
.sidebar a.site-link .paren { font-size: 12px; letter-spacing: -.5px; }

/* 전세계 SAF NEWS (2026-10-09) */
.tag-pill { display: inline-block; padding: 0 6px; margin: 1px 0; border: 1px solid #b9c3d0; border-radius: 9px; font-size: 11.5px; color: #44536a; white-space: nowrap; }
.tag-pill.hefa { border-color: #e07b39; color: #b85a1c; background: #fff4ec; font-weight: 600; }
.saf-table.nw-table td.nw-title { white-space: normal; min-width: 300px; max-width: 560px; line-height: 1.4; }
.saf-table.nw-table td { vertical-align: top; }
.saf-table.nw-table td:nth-child(4), .saf-table.nw-table td:nth-child(5) { white-space: normal; min-width: 90px; max-width: 170px; }
.saf-table.nw-table td:nth-child(6) { white-space: normal; max-width: 120px; }
.nw-scroll { max-height: 720px; overflow: auto; }
.nw-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }
.nw-table td.nw-title a { color: var(--navy); }
.saf-charts .nw-wide { grid-column: 1 / -1; }
.trend-card h2 .seg { margin-left: 8px; vertical-align: middle; font-weight: 400; }

/* 조건 칸 '전체' 버튼 — 모두 켜졌을 때 파랗게 (2026-10-09) */
.btn.all-btn { font-weight: 600; }
.btn.all-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.all-btn.on::before { content: "✓ "; }
.cb-label small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.cb-note { margin: 4px 0 0; }

.tag-pill.guess { border-style: dashed; opacity: .85; }
.nw-sum { margin-top: 2px; font-size: 12.5px; color: #44536a; }
.src-pill { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.src-pill.ai { background: #e8f0fa; color: #1f5fa8; }
.src-pill.rule { background: #f1f3f6; color: #7a8696; }

/* 관련 사이트 화면 머리 — 제목 아래 '출처 · 업데이트 기준일 · 서버 반영' 한 줄 (모든 화면 같은 모양, 2026-10-10) */
.data-src { margin-top: 6px; display: grid; gap: 4px; font-size: 14px; color: #2b3a52; }
.data-src .ds-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.data-src .ds-k { font-size: 12px; font-weight: 700; color: #fff; background: #5b6f8c; border-radius: 4px; padding: 1px 7px; line-height: 1.5; }
.data-src .ds-v { margin-right: 10px; }
.data-src .ds-date { font-weight: 700; color: var(--navy); }
.data-src .ds-chg { color: var(--muted, #667); font-size: .92em; }
.data-src .ds-tools { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.data-src .ds-tools .inline-form { display: inline; }
.page-foot { margin-top: 18px; }

/* 목록 번호 칸 (list-filter.js 가 붙임, 2026-10-11) */
table.data th.rownum, table.data td.rownum { width: 44px; min-width: 44px; text-align: right; color: #7a8696; font-variant-numeric: tabular-nums; font-size: 12px; padding-right: 8px; }
table.data.numbered .rownum { position: sticky; left: 0; z-index: 2; background: #fff; }
table.data.numbered th.rownum { background: #f0f3f8; z-index: 3; }
table.data.numbered .sticky-col { left: 44px; }
/* 긴 목록 상자 (list-box.js, 2026-10-11) — N줄 높이 + 상자 안 스크롤(머리글 고정) / 크게 보기 / 접기 */
.table-wrap.lb { overflow: auto; }
.table-wrap.lb thead th { position: sticky; top: 0; z-index: 2; background: #f0f3f8; }
.table-wrap.lb.lb-fold { overflow: hidden; }
.table-wrap.lb-big { position: fixed; inset: 3vh 2.5vw; z-index: 1001; max-height: none !important; overflow: auto; box-shadow: 0 12px 48px rgba(15,30,55,.35); padding-top: 40px; }
.lb-mask { position: fixed; inset: 0; background: rgba(15,30,55,.45); z-index: 1000; }
.lb-close { position: absolute; top: 6px; right: 10px; z-index: 4; }
body.lb-noscroll { overflow: hidden; }
.lb-bar { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.cl-head .lb-btn { margin-left: auto; }
.cl-head .lb-btn + .btn-excel { margin-left: 8px; }
/* 변경 이력 — 관련 사이트 업데이트 내역·자동 받기 일정 (2026-10-11) */
.ext-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ext-actions .inline-form { display: inline; }
.sched-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.sched-form h3 { margin: 0 0 4px; font-size: 15px; }
.sched-table td { vertical-align: middle; }
.sched-table .chk-chip { margin: 1px 2px; }
.sched-act { margin-top: 10px; }

/* 전세계 ISCC 인증현황 — 추이 2개 한 줄 · 나라 강조 (2026-10-11) */
.trend-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trend-pair .trend-card { margin: 0; }
.trend-pair .trend-card.big { grid-column: 1 / -1; }
.trend-pair .trend-head { flex-wrap: wrap; }
.trend-pair .trend-card:not(.big) .chart-box.tall { height: 340px; }
@media (max-width: 1100px) { .trend-pair { grid-template-columns: 1fr; } }
.map-box svg.focus-on path.country.dim { fill-opacity: .12 !important; stroke-opacity: .35; }
.map-box svg.focus-on path.country.focus { stroke: #c2434b !important; stroke-width: 2px !important; vector-effect: non-scaling-stroke; fill-opacity: 1 !important; }
.map-box svg.focus-on circle.dim { opacity: .1; }
.map-hint { margin-left: auto; }
.trend-pair { margin-bottom: 14px; }
