/* Gas 웹 사이트(W 계획). 매뉴얼 정적 HTML도 이 파일을 쓴다. SuroCAD 사이트의 구성을 따르고 색만 바꿨다.
   어두운 머리와 첫 화면, 밝은 본문. 강조색은 가스 불꽃의 주황, 보조는 LPG 용기의 파랑.
   글꼴: Pretendard(본문), JetBrains Mono(숫자). */
:root {
  --top-h: 62px;
  --ink: #0b1018;
  --ink-2: #121a26;
  --ink-line: #243044;
  --brand: #e8590c;
  --brand-2: #ff922b;
  --brand-soft: #fff1e6;
  --orange: #4dabf7;
  --fg: #172030;
  --muted: #5d6779;
  --line: #e3e8ef;
  --soft: #f4f7fb;
  --warn: #b4441c;
  --ok: #1f9d8b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
#root { display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.3; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 820px; }
.page { flex: 1; width: 100%; }
.muted, .meta, .date { color: var(--muted); }
.meta, .date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.warn { color: var(--warn); }
.note { color: var(--brand); }

/* 머리(어두운 띠) */
html { scroll-padding-top: calc(var(--top-h) + 12px); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 16, 24, 0.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--ink-line); }
.top-inner { display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 10px 28px; }
.top .brand { display: flex; align-items: center; }
.top .brand img { height: 34px; width: auto; display: block; }
.top nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.top nav a { color: #aab6c8; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 13px; }
.top nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.top nav a.on { color: #fff; background: rgba(255, 146, 43, 0.14); box-shadow: inset 0 -2px 0 var(--brand-2); }

/* 단추 */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.primary { background: linear-gradient(180deg, #f76707, var(--brand)); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35); }
.button.ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #e8edf5; }
.button.big { padding: 13px 24px; font-size: 13.5px; border-radius: 12px; }
.button.small { padding: 7px 14px; font-size: 12px; }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* 첫 화면: CAD 모형 공간 */
.hero { position: relative; overflow: hidden; color: #e8edf5; background: radial-gradient(1200px 600px at 75% 30%, #16253d 0%, var(--ink) 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 48px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 72px 28px 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand-2); background: rgba(255, 146, 43, 0.1); border: 1px solid rgba(255, 146, 43, 0.25); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.2); }
.hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 20px; color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #ff922b, #ffd43b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-body { font-size: 14.5px; color: #b3bfd1; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 11px; color: #c9d5e2; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.badges li svg { color: var(--brand-2); }
.hero-art { min-width: 0; }
.cad-scene { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 146, 43, 0.15), 0 0 60px rgba(232, 89, 12, 0.18); }
.cad-ui { font: 500 13px var(--sans); }
.cad-ui-s { font: 500 11px var(--sans); }
.cad-mono { font: 500 13px var(--mono); }
.cad-mono-s { font: 400 10.5px var(--mono); }
.cad-draw { stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: cad-draw 2.6s 0.3s ease-out forwards; }
.cad-caret { animation: cad-blink 1.1s steps(1) infinite; }
.cad-cursor { animation: cad-fade 0.6s 2.4s both; }
@keyframes cad-draw { to { stroke-dashoffset: 0; } }
@keyframes cad-blink { 50% { opacity: 0; } }
@keyframes cad-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cad-draw { animation: none; stroke-dashoffset: 0; }
  .cad-caret, .cad-cursor { animation: none; }
  .button:hover { transform: none; }
}

/* 띠(본문 묶음) */
.band { padding: 72px 0; }
.band.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 23px; font-weight: 800; margin: 0 0 10px; }
.section-title.small { font-size: 18px; margin: 48px 0 18px; }
.section-lead { font-size: 14.5px; color: var(--muted); margin: 0 0 36px; max-width: 720px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.features article:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f5c9a8; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); margin-bottom: 14px; }
.features h3 { font-size: 15px; margin: 0 0 8px; }
.features p { margin: 0; color: var(--muted); font-size: 13px; }

/* 작업 순서 */
/* 관로 설계 방식 비교(D-217) */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; table-layout: fixed; }
/* 열 너비를 고정해 긴 글이 한 열만 넓히지 않게 한다(항목 22%, 세 열 26%씩) */
.compare thead th:first-child { width: 22%; }
.compare td { word-break: keep-all; }
.compare .cell { display: flex; align-items: flex-start; gap: 8px; }
.compare .cell .mark { flex: none; margin: 5px 0 0; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th { background: var(--soft); font-size: 13px; font-weight: 700; vertical-align: bottom; border-bottom: 2px solid var(--line); }
.compare thead th.ours { background: var(--brand); color: #fff; border-bottom-color: var(--brand); }
.compare thead th small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.85; }
.compare tbody th { font-weight: 600; }
.compare td.ours { background: var(--brand-soft); font-weight: 600; color: #a63f06; }
.compare .mark { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.compare .mark.yes { background: var(--ok); }
.compare .mark.part { border: 2px solid var(--orange); width: 10px; height: 10px; box-sizing: border-box; }
.compare .mark.no { border: 2px solid #c3cad5; box-sizing: border-box; }
.compare tr.group th { background: #fff; color: var(--brand); font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; padding: 16px 16px 6px; border-bottom: 1px solid var(--line); }
.compare-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.compare-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: flow; position: relative; }
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: calc(50% + 46px); right: calc(-50% + 46px); border-top: 2px dashed #b9c9de; }
.flow-step { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 20px; color: #fff; background: linear-gradient(140deg, #f76707, #c2410c); box-shadow: 0 10px 24px rgba(232, 89, 12, 0.3); margin-bottom: 14px; }
.flow-no { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 11px var(--mono); display: flex; align-items: center; justify-content: center; border: 3px solid var(--soft); }
.flow h3 { margin: 0 0 6px; font-size: 15px; }
.flow p { margin: 0; color: var(--muted); font-size: 13px; }
.flow.small .flow-step { width: 56px; height: 56px; border-radius: 16px; }
.flow.small li:not(:last-child)::after { top: 28px; left: calc(50% + 38px); right: calc(-50% + 38px); }
.flow.small .flow-no { border-color: #fff; }

/* 출력 예시 */
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.sheets figure { margin: 0; padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, #eef3f9, #e3eaf3); border: 1px solid var(--line); }
.sheet { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.16); background: #fff; }
.sheets figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.sheet-title { font: 700 16px var(--sans); fill: #172030; }
.sheet-label { font: 500 11px var(--sans); fill: #2b3445; }
.sheet-mono { font: 400 10px var(--mono); fill: #3a4457; }

/* 내려받기 띠 */
.cta { background: linear-gradient(120deg, #0f1b2e, #173a6b); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 21.5px; margin: 0 0 6px; }
.cta p { margin: 0; color: #b3c3da; }

/* 쪽 머리(다운로드·공지) */
.page-head { padding: 56px 0 36px; background: linear-gradient(180deg, #f2f6fc, #fff); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(232, 89, 12, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 89, 12, 0.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent); }
.page-head .wrap { position: relative; }
.page-head .eyebrow { color: var(--brand); background: var(--brand-soft); border-color: #cfe1f9; }
.page-head h1 { font-size: 27.5px; font-weight: 800; margin: 0 0 10px; }
.page-head .section-lead { margin-bottom: 8px; }

/* 다운로드 */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.platform { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.platform h2 { margin: 4px 0 0; font-size: 18px; }
.platform p { margin: 0; }
.platform-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #26344b, #0f1622); }
.sha summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.sha code { display: block; margin-top: 6px; font: 10px var(--mono); word-break: break-all; color: var(--muted); }
.notice-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: #fff7ed; border: 1px solid #fcdcb4; color: #7a3d0c; }
.notice-box p { margin: 0 0 4px; }
.notice-box svg { flex: none; margin-top: 3px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; background: #fff; }
.empty-box { display: flex; align-items: center; gap: 10px; padding: 28px; border: 1px dashed #c8d3e2; border-radius: var(--radius); color: var(--muted); background: var(--soft); }

/* 공지 */
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notice-list li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow 0.15s, border-color 0.15s; }
.notice-list li:hover { box-shadow: var(--shadow); border-color: #f5c9a8; }
.notice-list li.important { border-color: #f6c9a8; background: #fffaf5; }
.notice-list li a { flex: 1; color: var(--fg); text-decoration: none; font-weight: 600; }
.notice-list li a:hover { color: var(--brand); }
.notice-icon { color: var(--brand); flex: none; }
.notice-list li.important .notice-icon { color: var(--warn); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; margin-right: 8px; border-radius: 999px; background: var(--warn); color: #fff; vertical-align: 2px; }
.notice-view h1 { font-size: 21.5px; margin: 0 0 8px; }
.back { text-decoration: none; font-weight: 600; }
.prose img { max-width: 100%; }
.prose pre, .manual-body pre { background: var(--ink); color: #e8edf5; padding: 14px 16px; overflow-x: auto; border-radius: 10px; font: 11px var(--mono); }
.prose code, .manual-body code { font-family: var(--mono); font-size: 0.92em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.prose pre code, .manual-body pre code { background: none; padding: 0; }
.prose table, .manual-body table { border-collapse: collapse; margin: 16px 0; }
.prose td, .prose th, .manual-body td, .manual-body th { border: 1px solid var(--line); padding: 8px 12px; }
.prose th, .manual-body th { background: var(--soft); }
.manual-body blockquote, .prose blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--brand-2); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: #24406a; }

/* 꼬리 */
.foot { background: var(--ink); color: #aab6c8; padding: 32px 0; margin-top: auto; }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 30px; width: auto; }
.foot p { margin: 0; font-size: 12px; }
.foot .muted { color: #6f7c90; }

/* 관리 화면 */
.admin .row { display: flex; gap: 16px; flex-wrap: wrap; }
.admin .preview { border: 1px dashed var(--line); padding: 12px; border-radius: 8px; min-height: 60px; }
.admin .notice-list li { justify-content: space-between; }
.dialog-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; }
.dialog { background: #fff; border-radius: 12px; padding: 22px; max-width: 420px; box-shadow: var(--shadow); }

/* 매뉴얼(정적 HTML) */
.manual-hero { background: var(--ink); color: #e8edf5; padding: 28px 0; border-bottom: 1px solid var(--ink-line); }
.manual-hero .wrap { display: flex; align-items: center; gap: 14px; }
.manual-hero h1 { margin: 0; font-size: 18px; color: #fff; }
.manual-hero svg { color: var(--brand-2); }
.manual-wrap { flex: 1; display: flex; width: 100%; max-width: 1240px; margin: 0 auto; }
.manual-toc { width: 280px; flex: none; padding: 24px 18px; border-right: 1px solid var(--line); font-size: 12.5px; position: sticky; top: var(--top-h); align-self: flex-start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; }
.manual-toc h3 { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin: 20px 0 6px; text-transform: none; }
.manual-toc h3 svg { color: var(--brand); }
.manual-toc ul { list-style: none; padding: 0; margin: 0; }
.manual-toc li a { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--fg); }
.manual-toc li a:hover { background: var(--soft); }
.manual-toc li a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.manual-toc li a svg { flex: none; color: var(--muted); }
.manual-toc li a.on svg { color: var(--brand); }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.manual-toc input { width: 100%; font: inherit; padding: 8px 10px 8px 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.manual-toc input:focus { outline: 2px solid var(--brand-2); background: #fff; }
#manual-results { margin: 8px 0 12px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.manual-body { flex: 1; min-width: 0; padding: 36px 48px 64px; max-width: 900px; }
.manual-body h1 { font-size: 24.5px; font-weight: 800; }
.manual-body h2 { font-size: 16.5px; margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.parts a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); background: #fff; transition: box-shadow 0.15s, transform 0.15s; }
.parts a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.parts .part-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.parts strong { display: block; font-size: 14.5px; }
.parts span.count { color: var(--muted); font-size: 12px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.prevnext a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.prevnext a:hover { background: var(--soft); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .flow li::after { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .top { position: static; }
  html { scroll-padding-top: 12px; }
  .top-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .top-cta { display: none; }
  .band { padding: 48px 0; }
  .manual-wrap { flex-direction: column; }
  .manual-toc { width: auto; border-right: none; border-bottom: 1px solid var(--line); position: static; max-height: none; }
  .manual-body { padding: 24px 18px 40px; }
}

/* 오픈소스 사용권 */
.foot a { color: #aab6c8; }
.license-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.license-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.license-list h2 { margin: 0 0 4px; font-size: 15px; }
.license-list p { margin: 0; }
.license-list a { display: inline-flex; align-items: center; gap: 6px; }

/* 매뉴얼 화면 이미지(D-162). 원고는 「![설명](../images/x.png)」 한 줄로 쓰고, 바로 다음 줄의 기울임 글을 그림 설명으로 쓴다 */
.manual-body img { display: block; max-width: 100%; height: auto; margin: 18px 0 6px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 22px rgba(16, 24, 40, 0.1); background: #1c1f24; }
.manual-body p:has(> img:only-child) { margin: 0; }
.manual-body p:has(> img:only-child) + p > em:only-child { display: block; margin: 0 0 22px; color: var(--muted); font-size: 12px; font-style: normal; }
.manual-body a[href*="/manual/examples/"] svg { vertical-align: -0.15em; margin-right: 4px; }
.manual-body h1 .chapter-icon { display: inline-flex; vertical-align: -3px; margin-right: 8px; color: var(--brand); }
.manual-body .ribbon-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 2px; color: var(--brand); }

/* 매뉴얼 꾸밈: 사이드바는 부마다 구분하고, 본문은 제목과 항목에 브랜드색을 쓴다 */
.manual-toc { background: var(--soft); padding: 20px 14px 32px; }
.manual-toc input { background: #fff; }
.manual-toc section { padding: 12px 0; border-top: 1px solid var(--line); }
.manual-toc .search-box + #manual-results + section, .manual-toc #manual-results + section { margin-top: 14px; }
.manual-toc h3 { margin: 0 0 6px; padding: 2px 6px; font-size: 12.5px; font-weight: 800; color: var(--fg); }
.manual-toc h3 svg { box-sizing: content-box; padding: 5px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.manual-toc section:has(a.on) h3 { color: var(--brand); }
.manual-toc section:has(a.on) h3 svg { background: var(--brand); border-color: var(--brand); color: #fff; }
.manual-toc ul { margin-left: 16px; padding-left: 8px; border-left: 2px solid var(--line); }
.manual-toc section:has(a.on) ul { border-left-color: var(--brand-2); }
.manual-toc li a { padding: 4px 8px; }
.manual-toc li a:hover { background: #fff; }
.manual-toc li a.on { background: #fff; box-shadow: inset 3px 0 0 var(--brand), 0 1px 2px rgba(16, 24, 40, 0.08); }
.manual-body h1 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 18px; padding-bottom: 14px; background: linear-gradient(90deg, var(--brand), var(--orange)) left bottom / 64px 3px no-repeat, linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat; }
.manual-body h1 .chapter-icon { flex: none; width: 42px; height: 42px; margin: 0; align-items: center; justify-content: center; border-radius: 11px; background: var(--brand-soft); }
.manual-body article > h1 + p { font-size: 14.5px; color: #3b4658; }
.manual-body h2 { font-size: 17.5px; font-weight: 800; margin-top: 40px; padding: 8px 12px; border-top: none; border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; background: linear-gradient(90deg, var(--brand-soft), rgba(232, 241, 253, 0)); }
.manual-body h3 { position: relative; font-size: 14.5px; font-weight: 700; margin: 26px 0 8px; padding-left: 15px; color: #a63f06; }
.manual-body h3::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.manual-body ul, .manual-body ol { padding-left: 22px; }
.manual-body li { margin: 4px 0; }
.manual-body ul > li::marker { color: var(--brand-2); }
.manual-body ol > li::marker { color: var(--brand); font-weight: 800; }
.manual-body .term, .manual-body li > strong:first-child { color: #a63f06; font-weight: 700; }
.manual-body code { background: var(--brand-soft); color: #a63f06; }
.manual-body pre code { color: inherit; }
.manual-body table { width: 100%; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; }
.manual-body td, .manual-body th { border: none; border-bottom: 1px solid var(--line); }
.manual-body tr:last-child td { border-bottom: none; }
.manual-body th { background: var(--brand-soft); color: #a63f06; font-weight: 700; text-align: left; }
.manual-body tbody tr:nth-child(even) td { background: #fafbfd; }
.manual-body td:first-child { font-weight: 600; }
.manual-body .prevnext a { background: var(--soft); }
.manual-body .prevnext a:hover { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
@media (max-width: 760px) {
  .manual-body table { display: block; overflow-x: auto; }
}

.manual-body img[src$=".svg"] { background: #fff; box-shadow: none; }
.flow-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }

/* 계정 화면(웹계정-계획.md 6절) */
.top-account { display: flex; align-items: center; gap: 12px; margin-right: 8px; font-size: 13px; }
.top-account a, .top-account .link { color: #aab6c8; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.top-account a:hover, .top-account .link:hover { color: #fff; }
button.link { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--brand); }
.auth { max-width: 520px; }
.auth h1 { font-size: 24px; margin: 0 0 8px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 16px; }
.auth-form .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.auth-form input { font: inherit; font-size: 14px; color: var(--fg); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.auth-form input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.auth-form .button { align-self: flex-start; }
.form-error { color: #c0392b; margin: 0; font-size: 13px; }
.form-info { color: #1f7a4d; margin: 0; font-size: 13px; }
.account-card { margin: 16px 0; padding: 20px 22px; }
.account-card h2 { font-size: 16px; margin: 0 0 10px; }
.license-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.license-table th, .license-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.license-table tr.revoked, .license-table tr.expired { color: var(--muted); }
.badge.soft { background: var(--brand-soft); color: var(--brand); margin-left: 6px; }

/* 자료실·체험판·좌석(웹2c-계획.md) */
.library-list { list-style: none; padding: 0; margin: 0; }
.library-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.library-list li:first-child { border-top: none; }
.library-list p { margin: 2px 0 0; }
.trial-box { margin: 0 0 12px; }
.seat-actions { display: flex; gap: 6px; align-items: center; }
.seat-actions input { width: 180px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.agree input { margin-top: 3px; }
.button.danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.button.danger:disabled { opacity: 0.5; }

/* 관리 화면(D-187): 왼쪽 메뉴, 오른쪽 작업 영역 */
.admin { min-height: 100vh; margin-left: 232px; padding: 28px 36px 56px; background: var(--soft); color: var(--fg); font-size: 13.5px; }
.admin-inner { max-width: 1120px; margin: 0 auto; }
.admin h1 { font-size: 22px; font-weight: 800; margin: 0; }
.admin h2, .admin h3 { font-size: 14.5px; font-weight: 700; margin: 0 0 12px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.admin-head + .muted { margin: 0 0 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 16px 0; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.admin label { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.admin label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.admin input, .admin textarea, .admin select { font: inherit; font-size: 13.5px; font-weight: 400; color: var(--fg); padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.admin input[type="checkbox"] { padding: 0; width: 15px; height: 15px; accent-color: var(--brand); }
.admin input:focus, .admin textarea:focus, .admin select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.admin button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--fg); cursor: pointer; }
.admin button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.admin button:disabled { opacity: 0.5; cursor: default; }
.admin button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin button.primary:hover:not(:disabled) { background: #2569c4; color: #fff; }
.admin button.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; }
.admin-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.admin-row input { flex: 1 1 220px; }
.admin-row p { flex: 1 1 100%; margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 4px; }
.admin thead th { background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.admin td, .admin th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin tbody tr:hover { background: #fafcff; }
.admin td input[type="date"] { padding: 5px 8px; font-size: 12.5px; }
.admin td button { padding: 5px 10px; font-size: 12px; }
.admin td { white-space: nowrap; }
.admin td:last-child { white-space: normal; }
.admin-actions { display: inline-flex; gap: 8px; flex: none; }
.admin-row label { flex-direction: row; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.admin-row label input { flex: none; }
.admin label.check { white-space: nowrap; grid-column: 1 / -1; }
.admin .dialog h3 { margin-bottom: 8px; }
.admin .dialog input { width: 100%; }
.admin .dialog { width: 340px; }
.dialog-back { z-index: 10; }
.admin .actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; margin-bottom: 8px; }
.admin-note { padding: 9px 13px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); margin: 12px 0; }
.admin-note.warn { background: #fdf0ea; color: var(--warn); }

.admin-side { position: fixed; inset: 0 auto 0 0; width: 232px; display: flex; flex-direction: column; background: var(--ink); color: #c9d3e2; padding: 20px 14px; z-index: 5; }
.admin-side > a img { display: block; margin: 0 8px 22px; }
.admin-side ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.admin-side li a { display: block; padding: 9px 12px; margin: 2px 0; border-radius: 9px; color: #c9d3e2; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.admin-side li a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-side li a.on { background: rgba(255, 146, 43, 0.16); color: #fff; font-weight: 700; }
.admin-who { border-top: 1px solid var(--ink-line); padding: 14px 8px 2px; font-size: 13px; }
.admin-who b { display: block; color: #fff; margin-bottom: 8px; }
.admin-who button { display: block; border: 0; background: none; padding: 3px 0; color: #9fb0c6; font: inherit; font-size: 12.5px; cursor: pointer; }
.admin-who button:hover { color: #fff; }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--ink); }
.admin-login form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--radius); padding: 30px 30px 26px; }
.admin-login img { display: block; margin: 0 auto 4px; }
.admin-login h1 { font-size: 16px; font-weight: 700; text-align: center; margin: 0 0 6px; }
.admin-login label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.admin-login input { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.admin-login .button { justify-content: center; margin-top: 6px; }
.admin-login .warn { margin: 0; font-size: 13px; text-align: center; }

@media (max-width: 860px) {
  .admin { margin-left: 0; padding: 18px 16px 40px; }
  .admin-side { position: static; width: auto; }
  .admin-side > a img { margin-bottom: 10px; }
  .admin-side ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .admin-who { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
  .admin-who b { margin: 0; }
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 12px 0; }
.admin button.admin-stat { width: 100%; text-align: left; font-weight: 400; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; display: flex; flex-direction: column; gap: 0; }
.admin button.admin-stat.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.admin-stat b { font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--ink, inherit); }
.admin-list-more { margin-top: 10px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0; }
.admin-stat span { font-size: 11.5px; white-space: nowrap; color: var(--muted); }

/* 내 계정(고객계정-기획.md) */
.account-head { background: linear-gradient(180deg, #f2f6fc, #fff); border-bottom: 1px solid var(--line); padding: 34px 0 28px; }
.account-head-row { display: flex; align-items: center; gap: 18px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #f76707, var(--brand)); }
.account-who { min-width: 0; flex: 1; }
.account-who h1 { margin: 0 0 2px; font-size: 22px; font-weight: 800; }
.account-who p { margin: 0; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.pill.big { padding: 6px 15px; font-size: 12.5px; }
.pill.active { color: #177a6c; background: #e6f6f3; border-color: #bfe7df; }
.pill.ending { color: #9a5a00; background: #fff4e0; border-color: #f4dcae; }
.pill.expired, .pill.revoked { color: var(--warn); background: #fdeee8; border-color: #f6d3c5; }
.account-body { background: var(--soft); padding: 28px 0 72px; flex: 1; }
.account-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 9px 14px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.account-nav a:hover { background: #e9eff7; }
.account-nav a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.account-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.account-main .account-card { margin: 0; padding: 22px 26px; }
.account-main .auth-form { max-width: 420px; margin-bottom: 0; }
.next-card { padding: 24px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #1b4f96, var(--brand)); box-shadow: var(--shadow); }
.next-card h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #cfe1f9; }
.next-card p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.next-card .muted { color: #e8f1fd; }
.next-card .next-sub { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.next-card .form-info { color: #d9f7ee; margin-bottom: 8px; }
.next-card.good { color: var(--fg); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.next-card.good h2 { color: var(--ok); }
.next-card .trial-box { margin: 0; padding: 0; border: 0; background: none; }
.next-card .trial-box .button.primary { margin-top: 14px; background: #fff; border-color: #fff; color: var(--brand); box-shadow: none; }
.next-card:not(.good) .next-actions .button.primary { background: #fff; border-color: #fff; color: var(--brand); box-shadow: none; }
.next-card:not(.good) .next-actions .button:not(.primary) { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.account-main .license-table { min-width: 620px; }
.account-main .account-card:has(.license-table) { overflow-x: auto; }
.account-main .license-table th { white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.account-main .license-table td { vertical-align: middle; }
.account-main .license-table input { font: inherit; font-size: 13px; width: 100%; min-width: 150px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sum-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.sum-card:hover { border-color: var(--brand); }
.sum-card span { font-size: 12.5px; color: var(--muted); }
.sum-card b { font-size: 17px; font-weight: 800; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list a { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.check-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: var(--soft); }
.check-list li.done { color: var(--muted); }
.check-list li.done .tick { color: #fff; background: var(--ok); border-color: var(--ok); }
.lic-list { display: grid; gap: 10px; }
.lic-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.lic-card p { margin: 2px 0 0; font-size: 12.5px; }
.lic-card.expired, .lic-card.revoked { background: var(--soft); }
.lic-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; }
.part-list { margin: 0; padding-left: 18px; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.danger-zone[open] summary { color: var(--warn); margin-bottom: 10px; }
@media (max-width: 860px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .account-nav { position: static; flex-direction: row; overflow-x: auto; }
  .account-nav a { white-space: nowrap; }
  .account-head-row { flex-wrap: wrap; }
}
@media (max-width: 520px) { .sum-grid { grid-template-columns: minmax(0, 1fr); } }

/* 가입, 로그인 화면 */
.band:has(> .wrap.auth) { background: var(--soft); flex: 1; }
.wrap.auth { max-width: 460px; padding: 30px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 가격 */
.promo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: linear-gradient(90deg, #fff2e3, #fff8ef); border: 1px solid #ffd7a8; color: #8a4a06; }
.promo-banner svg { color: var(--orange); }
.promo-banner b { font-size: 15px; }
.promo-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.promo-price s { color: var(--muted); font-size: 12.5px; }
.promo-price b { color: var(--warn); font-size: 15px; }
.promo-price .off { padding: 1px 7px; border-radius: 999px; background: #fdeee6; color: var(--warn); font-size: 11.5px; font-weight: 700; }
.admin-sub { font-size: 15px; margin: 18px 0 6px; }
.price-notice { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #f7faff, #fff); box-shadow: var(--shadow); }
.price-notice h2 { margin: 12px 0 6px; font-size: 21px; font-weight: 800; }
.price-notice p { margin: 0; max-width: 520px; }
.price-notice .next-actions { justify-content: center; margin-top: 20px; }
.price-notice-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; color: var(--brand); background: var(--brand-soft); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 12px 0; }
.plan-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-card b { font-size: 16px; font-weight: 800; }
.plan-card p { margin: 4px 0 0; font-size: 13px; }
.plan-card.both { border-color: #cfe1f9; background: var(--brand-soft); }

/* 내용이 짧아도 바닥글까지 바탕색이 이어지게 한다 */
main.page { flex: 1; display: flex; flex-direction: column; }
main.page > * { flex-shrink: 0; }
.account-body, .band:has(> .wrap.auth) { flex: 1 0 auto; }
.account-main .license-table td:nth-child(-n+2), .account-main .license-table .button, .account-main .license-table button { white-space: nowrap; word-break: keep-all; }

/* 자료실(자료실-공유-계획.md) */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lib-body { display: flex; flex-direction: column; gap: 16px; }
.lib-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lib-tabs { display: flex; gap: 2px; padding: 3px; margin-right: auto; background: #e9eff7; border-radius: 10px; }
.lib-tabs button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.lib-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.lib-tools select, .lib-tools input, .share-form input:not([type="checkbox"]), .share-form select, .share-form textarea, .lib-report input { font: inherit; font-size: 13px; color: var(--fg); padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.lib-tools input { width: 200px; }
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lib-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lib-card.hidden { background: var(--soft); }
.lib-main { min-width: 0; flex: 1; }
.lib-main b { font-size: 15px; }
.lib-main p { margin: 2px 0 0; }
.lib-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.lib-cat { font-size: 12px; color: var(--muted); }
.pill.official { color: var(--brand); background: var(--brand-soft); border-color: #cfe1f9; }
.lib-warn { font-size: 12.5px; color: #9a5a00; }
.lib-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lib-actions .link { font: inherit; font-size: 12px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.lib-actions .link:hover { color: var(--fg); text-decoration: underline; }
.lib-actions .link.danger:hover { color: var(--warn); }
.lib-report { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.lib-report .field { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.small { font-size: 12.5px; }
.share-form h2 { margin: 0 0 6px; font-size: 18px; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 14px 0 10px; }
.share-grid .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.share-grid .wide { grid-column: 1 / -1; }
.share-form .agree { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 13px; line-height: 1.6; }
.share-form .agree input { margin-top: 4px; flex: none; }
@media (max-width: 640px) {
  .share-grid { grid-template-columns: minmax(0, 1fr); }
  .lib-card { flex-direction: column; align-items: stretch; }
  .lib-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .lib-tabs { margin-right: 0; width: 100%; overflow-x: auto; }
  .lib-tools input { width: 100%; }
}

/* 게시판(게시판-계획.md) */
.community-tabs { display: flex; gap: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.community-tabs a { padding: 8px 2px; margin-bottom: -1px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.community-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.board-search { display: flex; gap: 6px; }
.board-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board-list li + li { border-top: 1px solid var(--line); }
.board-list li.hidden { background: var(--soft); }
.board-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; color: inherit; text-decoration: none; }
.board-list a:hover { background: var(--soft); }
.board-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.board-row b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.board-tags { display: inline-flex; align-items: center; gap: 6px; }
.board-count { font-size: 12px; font-weight: 600; color: var(--brand); }
.board-meta { flex: none; font-size: 12.5px; color: var(--muted); }
.board-pages { display: flex; align-items: center; justify-content: center; gap: 12px; }
.board-post h2 { margin: 8px 0 4px; font-size: 21px; overflow-wrap: anywhere; }
.board-post.hidden { background: var(--soft); }
.board-text { margin: 14px 0 0; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 10px 14px; font-size: 13px; background: var(--soft); border-radius: 9px; overflow-wrap: anywhere; }
.board-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.board-links .link { font: inherit; font-size: 12.5px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: none; }
.board-links .link:hover { color: var(--fg); text-decoration: underline; }
.board-links .link.danger:hover { color: var(--warn); }
.board-report { width: 100%; }
.board-reply-title { margin: 12px 0 0; font-size: 16px; }
.board-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-replies li { padding: 13px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.board-replies li.staff { border-color: var(--brand); }
.board-replies li.hidden { background: var(--soft); }
.board-replies .board-text { margin-top: 8px; }
.board-reply-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13.5px; }
.board-reply-head .board-links { margin-top: 0; }
.board-reply-form { display: grid; gap: 8px; }
.board-reply-send { display: flex; gap: 8px; justify-content: flex-end; }
.board-reply-form textarea, .board-reply-edit textarea, .board-reply-send input, .admin-board-form input, .admin-board-form textarea, .admin-board-form select, .admin-board-detail textarea { box-sizing: border-box; font: inherit; font-size: 14px; color: var(--fg); padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.board-reply-form textarea, .board-reply-edit textarea, .admin-board-detail textarea { width: 100%; }
.board-reply-send input { width: 170px; }
.board-reply-edit { display: grid; gap: 8px; margin-top: 8px; }
.admin-board-form { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.admin-board-form textarea { grid-column: 1 / -1; }
.admin-board-form button { grid-column: 1 / -1; justify-self: end; }
.admin-board-detail { display: grid; gap: 8px; margin-top: 10px; max-width: 640px; }
.admin-board-detail h3 { margin: 6px 0 0; font-size: 13px; }
.admin-board-detail ul { margin: 0; padding-left: 18px; font-size: 13px; }
.admin-board-reply { padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.admin-board-reply p { margin: 0; }
tr.reported td { background: #fff8ec; }
@media (max-width: 640px) {
  .board-list a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .board-search { width: 100%; }
  .board-search input { flex: 1; width: auto; }
  .board-reply-send { flex-wrap: wrap; }
  .board-reply-send input { flex: 1; width: auto; }
  .admin-board-form { grid-template-columns: 1fr; }
}

/* 관리자 목록 그리드(관리자그리드-계획.md 3.3). AnGrid 테마 위에 관리자 화면 규칙을 더한다 */
.admin-grid-box { margin: 6px 0 4px; }
.admin-grid-box + div > h3 { margin-top: 18px; }
/* 자동 높이 그리드의 빈 목록용 최소 높이(150px)를 없앤다. 빈 목록은 그리드 대신 문구를 보인다 */
.admin-grid-box .ag-center-cols-viewport, .admin-grid-box .ag-center-cols-container { min-height: 0 !important; }
/* 단추·체크박스가 든 칸은 가운데에 맞춘다 */
.admin-grid-box .ag-cell:has(button, input, .badge) { display: flex; align-items: center; }
.admin-grid-box .ag-row.admin-grid-pick { cursor: pointer; }
.admin-grid-box .ag-row.admin-grid-on { background: #dce8fb; }
.admin-grid-box .ag-center-cols-container .ag-row.admin-grid-on { box-shadow: inset 3px 0 0 var(--brand); }
.admin-grid-box .ag-row.reported { background: #fdf6f2; }
/* 줄바꿈 자체는 wrapText(ag-cell-wrap-text)가 맡고, 여기서는 줄 간격과 한글 줄바꿈 규칙을 정한다 */
.admin-grid-box .ag-cell.admin-grid-wrap { line-height: 1.55; padding-top: 7px; padding-bottom: 7px; word-break: keep-all; overflow-wrap: anywhere; }
/* 촘촘한 목록: 여러 줄 칸의 줄 간격과 여백, 칸 안 링크 글자를 줄인다. 높이를 고정한 그리드는 칸 안을 채운다 */
.admin-grid-compact .ag-cell.admin-grid-wrap { line-height: 1.35; padding-top: 5px; padding-bottom: 5px; }
.admin-grid-compact .ag-cell button.link { font-size: 12px; line-height: 1.35; }
.admin-grid-box[style] > div { height: 100%; }
.admin-grid-box .ag-cell.admin-in-use { color: var(--ok); font-weight: 600; }
.admin-grid-box .ag-cell.warn { color: var(--warn); }
/* 그리드 안 단추는 행(36px)보다 낮게 둔다 */
.admin-grid-box .ag-cell button:not(.link) { height: 26px; padding: 0 10px; font-size: 12px; line-height: 24px; border-radius: 7px; }
.admin-grid-box .ag-cell button.link { text-align: left; font-size: 13px; line-height: 1.5; }
.admin-grid-box .ag-cell input[type="date"] { height: 26px; padding: 0 6px; font-size: 12px; border-radius: 7px; }
.admin-grid-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-grid-box .badge { margin: 0; vertical-align: baseline; }
.admin-grid-box .admin-grid-wrap .admin-grid-actions { padding: 2px 0; }

/* 방문 현황(D-223) */
.admin-stats > div.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; display: flex; flex-direction: column; }
.admin-visit-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.admin-visit-top h3 { font-size: 13px; }
.admin-filter-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 600; }
.admin-page-name .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }

/* 자주 묻는 질문(Q&A): 검색 줄은 위에 붙고, 묶음 탭 → 분류 칩 → 질문 */
.faq-bar { position: sticky; top: var(--top-h); z-index: 5; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.faq-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 10px 0; background: none; color: var(--fg); }
.faq-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.faq-suggest button { font: inherit; font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); cursor: pointer; }
.faq-suggest button:hover, .faq-suggest button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.faq-band { padding-top: 28px; }
.faq-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.faq-tabs button { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.faq-tabs button.on { color: var(--fg); border-bottom-color: var(--brand); }
.faq-tabs button span { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.faq-chips button { font: inherit; font-size: 13.5px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--fg); cursor: pointer; }
.faq-chips button span { margin-left: 4px; font-size: 12px; color: var(--muted); }
.faq-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.faq-chips button.on span { color: rgba(255, 255, 255, 0.8); }
.faq-found { margin: 0 0 8px; color: var(--muted); }
.faq-group > h2 { font-size: 18px; margin: 28px 0 4px; }
.faq-section { scroll-margin-top: calc(var(--top-h) + 120px); }
.faq-section h3 { font-size: 14px; margin: 24px 0 8px; color: var(--muted); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 8px 0; scroll-margin-top: calc(var(--top-h) + 130px); transition: border-color 0.15s, box-shadow 0.15s; }
.faq-item:hover { border-color: #c9d4e3; }
.faq-item[open] { border-color: var(--brand); box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08); }
.faq-item summary { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 14px 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q, .faq-a { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.faq-q { background: var(--brand-soft); color: var(--brand); }
.faq-a { background: var(--soft); color: var(--muted); margin-top: 2px; }
.faq-text { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.5; }
.faq-copy { flex: none; display: inline-flex; align-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; opacity: 0; }
.faq-item:hover .faq-copy, .faq-item[open] .faq-copy, .faq-copy:focus-visible { opacity: 1; }
.faq-copy:hover { background: var(--soft); color: var(--brand); }
.faq-copied { font-size: 12px; color: var(--brand); white-space: nowrap; }
.faq-chevron { flex: none; color: var(--muted); transition: transform 0.15s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-answer { display: flex; gap: 12px; padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.faq-answer > div { flex: 1; min-width: 0; }
.faq-answer .prose { font-size: 14.5px; }
.faq-answer .prose p:first-child { margin-top: 10px; }
.faq-refs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.faq-ref { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); text-decoration: none; background: #fff; }
.faq-ref:hover { border-color: var(--brand); background: var(--brand-soft); }
.faq mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.faq-more h2 { font-size: 17px; margin: 0 0 4px; }
.faq-more p { margin: 0; }
.faq-more-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .faq-bar { top: 0; }
  .faq-chips, .faq-suggest { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .faq-chips button, .faq-suggest button { flex: none; }
  .faq-tabs button { padding: 10px 10px; font-size: 14px; }
  .faq-copy { opacity: 1; }
}

/* 방문 현황 그래프(D-236). 색은 dataviz 기준 팔레트 1·2번, 흰 바탕 색각 검사 통과 */
.visit-chart, .visit-bars { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; }
.visit-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.visit-chart-legend { display: flex; gap: 16px; color: var(--fg); font-size: 13px; }
.visit-chart .key { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.visit-chart .key.s1 { background: var(--series-1); }
.visit-chart .key.s2 { background: var(--series-2); }
.visit-chart .key.s3 { background: var(--series-3); }
.visit-chart .key.s4 { background: var(--series-4); }
.visit-chart-range { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.visit-chart-range button { border: 0; background: #fff; padding: 4px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.visit-chart-range button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.visit-chart-sum { margin: 6px 0 4px; font-size: 13px; }
.visit-chart-plot { position: relative; }
.visit-chart-plot svg { display: block; cursor: pointer; touch-action: pan-y; }
.visit-chart .grid { stroke: var(--line); stroke-width: 1; }
.visit-chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.visit-chart .cross { stroke: #9aa3b2; stroke-width: 1; }
.visit-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.visit-chart .line.s1 { stroke: var(--series-1); }
.visit-chart .line.s2 { stroke: var(--series-2); }
.visit-chart .line.s3 { stroke: var(--series-3); }
.visit-chart .line.s4 { stroke: var(--series-4); }
.visit-chart .dot { stroke: #fff; stroke-width: 2; }
.visit-chart .dot.s1 { fill: var(--series-1); }
.visit-chart .dot.s2 { fill: var(--series-2); }
.visit-chart .dot.s3 { fill: var(--series-3); }
.visit-chart .dot.s4 { fill: var(--series-4); }
.visit-chart-tip { position: absolute; top: 8px; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.visit-chart-tip b { font-variant-numeric: tabular-nums; }
.visit-chart-hint { font-size: 12px; margin-top: 2px; }
.visit-bars { list-style: none; margin: 8px 0 16px; padding: 0; }
.visit-bars li + li { margin-top: 2px; }
.visit-bars button { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 4px 6px; border-radius: 6px; text-align: left; cursor: pointer; color: var(--fg); font: inherit; }
.visit-bars button:hover, .visit-bars button:focus-visible { background: var(--soft); }
.visit-bars .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.visit-bars .track { height: 14px; }
.visit-bars .bar { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.visit-bars button:hover .bar { filter: brightness(1.12); }
.visit-bars .value { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .visit-bars button { grid-template-columns: 1fr auto; } .visit-bars .track { grid-column: 1 / -1; } }

/* 다운로드: Windows 실행 경고 안내 그림 */
.win-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 12px 0; }
.win-guide figure { margin: 0; }
.win-guide img { display: block; width: 100%; max-width: 534px; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.win-guide figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; }

/* Gas: 첫 화면의 프로그램 캡처와 출력 예시 그림 */
.hero-art .shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--ink-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); background: #fff; }
.sheets.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.sheets figure img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
