@font-face { font-family: "PanelSans"; src: url("fonts/PanelSans-subset.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
:root {
  --bg: #f4f5f3; --panel: #fff; --ink: #1b2422; --ink2: #3d4a47; --ink3: #66736f; --ink4: #9aa6a2;
  --line: #e1e6e3; --line2: #eef1ef;
  --acc: #0f6e64; --acc2: #0b5850; --accs: #e8f3f1; --acc3: #cfe6e2;
  --ok: #1a7148; --oks: #eaf6ef; --warn: #95560a; --warns: #fdf4e4; --bad: #b0352c; --bads: #fcefee;
  --side: #fbfcfb; --r: 10px; --pw: 360px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 "PanelSans", system-ui, sans-serif; letter-spacing: -0.1px; word-break: keep-all; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--acc); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.mob { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mut { color: var(--ink3); } .sm { font-size: 12.5px; } .xs { font-size: 12px; } .b { font-weight: 700; }
.n, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nw { white-space: nowrap; } .c { text-align: center; } .mono { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.r90 { transform: rotate(90deg); width: 15px; height: 15px; color: var(--ink4); }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: #c5ceca; background: #fafbfa; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.pri:hover { background: var(--acc2); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn.on { border-color: var(--acc); color: var(--acc); background: var(--accs); }
.btn.warnb { color: var(--bad); border-color: #ecc9c5; }
.lnk { background: none; border: 0; padding: 0; color: var(--acc); font-weight: 600; font-size: inherit; }
.lnk2 { border-style: dashed; }
.icb { width: 32px; height: 32px; border: 0; background: none; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.icb:hover { background: var(--line2); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accs); color: var(--acc2); font-size: 12px; font-weight: 600; white-space: nowrap; margin: 2px 4px 2px 0; }
.chip.mute { background: var(--line2); color: var(--ink3); }
.chip.pl { background: #f0eefa; color: #4b3f99; }
.chip.v2 { background: var(--warns); color: var(--warn); }
.chip.ok { background: var(--oks); color: var(--ok); }
.chip .ic { width: 14px; height: 14px; }
.chk { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--warns); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.okc { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.warnc { color: var(--warn); font-weight: 600; }
.note { background: #f7f8f6; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--ink2); margin-bottom: 12px; }

/* 틀 */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) 223px, var(--line) 223px, var(--line) 224px, transparent 224px); }
@media (min-width: 1280px) { .app.has-p { background: linear-gradient(to right, var(--side) 223px, var(--line) 223px, var(--line) 224px, transparent 224px), linear-gradient(to left, #fbfcfc var(--pw), transparent var(--pw)); } }
.app.has-p { grid-template-columns: 224px minmax(0, 1fr) var(--pw); }
.side { background: var(--side); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; overflow-y: auto; }
.side .brand { padding: 2px 10px 16px; }
.side .brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.4px; color: var(--acc2); }
.side .brand span { font-size: 12px; color: var(--ink4); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 7px; color: var(--ink2); font-size: 13.5px; font-weight: 600; text-align: left; }
.nav button:hover { background: var(--line2); }
.nav button.on { background: var(--accs); color: var(--acc2); }
.nav .grp { font-size: 11.5px; color: var(--ink4); padding: 10px 10px 3px; font-weight: 700; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.guide { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; }
.guide .gt { font-size: 11.5px; color: var(--ink4); }
.guide .gs { font-weight: 700; font-size: 13.5px; margin: 3px 0 2px; }
.guide .gh { font-size: 12px; color: var(--ink3); line-height: 1.45; }
.guide .gb, .mguide { display: flex; gap: 6px; }
.guide .gb { margin-top: 10px; }
.guide .gb button, .mguide button { min-height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; padding: 0 10px; white-space: nowrap; }
.guide .gb button.nx, .mguide button.nx { background: var(--acc); border-color: var(--acc); color: #fff; }
.mainc { min-width: 0; display: flex; flex-direction: column; }
.mtop { display: none; }
.scrim { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 28px 16px; }
.head .crumb { font-size: 12.5px; color: var(--ink3); }
.head h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.6px; margin-top: 2px; }
.head .sub { font-size: 13.5px; color: var(--ink2); margin-top: 4px; max-width: 760px; }
.head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.adm-n { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.wsw select { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 30px 0 10px; font-weight: 600; font-size: 13px; max-width: 280px; }
.body { padding: 0 28px 40px; flex: 1; }
.mguide { display: none; }
.pnl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.pnl.empty { padding: 22px; }
.pnl.goal { background: #f7fbfa; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.ph h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.ph .r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph .r select, .ph .r input { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 8px; font-size: 12.5px; }
.pb { padding: 16px 18px; }
.pad { padding: 8px 18px 12px; }
.pb > .tw { margin: 10px 0; border: 1px solid var(--line2); border-radius: 8px; }
.lead { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2 > .pnl { margin-bottom: 16px; }
.grid2.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.qbar, .wsbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.qbar { background: #f0eefa; color: #3f347f; }
.wsbar { background: var(--warns); color: var(--warn); }
.wsbar span { display: inline-flex; align-items: center; gap: 6px; }
.sh { font-size: 16px; font-weight: 700; margin: 6px 0 10px; }

/* 표 */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink3); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.tot td { font-weight: 700; background: #fafbfa; }
table.log tr.lr { cursor: pointer; }
table.log tr.lr:hover td, table.log tr.lr.on td { background: #f6faf9; }
tr.ld td { background: #fbfcfb; }
.st-done { color: var(--ok); font-weight: 600; } .st-failed { color: var(--bad); font-weight: 600; } .st-queued, .st-running { color: var(--warn); font-weight: 600; }
.jgrid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 12px; }
.jgrid pre { margin: 6px 0 0; background: #f4f6f5; border-radius: 6px; padding: 8px 10px; font-size: 11.5px; line-height: 1.45; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.jgrid ul { margin: 6px 0 0; padding-left: 18px; color: var(--warn); }
.stl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.stl.s1 { background: var(--oks); color: var(--ok); } .stl.s2 { background: var(--line2); color: var(--ink2); } .stl.s3 { background: #f0eefa; color: #4b3f99; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; font-size: 13px; color: var(--ink3); }

/* 작업 줄 */
.jl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.jl b { font-weight: 700; }
.jl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink4); flex: none; }
.jl.s-queued .dot { background: #d9a440; } .jl.s-running .dot { background: #d9a440; animation: pl 1s infinite; } .jl.s-done .dot { background: var(--ok); } .jl.s-failed .dot { background: var(--bad); }
.jl.s-failed b { color: var(--bad); } .jl.s-done b { color: var(--ok); }
@keyframes pl { 50% { opacity: .3; } }
.used { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 10px; }
.used > .mut { margin-right: 2px; }

/* 대화 패널 */
.panel { position: sticky; top: 0; height: 100vh; background: #fbfcfc; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.phd { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 16px; }
.phd b { font-size: 15px; font-weight: 800; color: var(--acc2); margin-right: 8px; }
.phd span { font-size: 12.5px; color: var(--ink3); }
.pst { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 8px; font-size: 12px; color: var(--ink3); }
.pst .conn { color: var(--acc2); font-weight: 700; }
.pctx { padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.pctx > div { margin-top: 4px; }
.pmsgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.pe { font-size: 13px; color: var(--ink3); }
.msg .q { align-self: flex-end; background: var(--acc); color: #fff; border-radius: 12px 12px 3px 12px; padding: 8px 12px; font-size: 13px; margin-left: 40px; }
.msg .a { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 9px 12px; margin-top: 8px; margin-right: 20px; }
.msg .ans { font-size: 13.5px; margin-top: 6px; }
.msg .used { margin-top: 6px; }
.psug { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 6px; border-top: 1px solid var(--line); }
.sug { border: 1px solid var(--acc3); background: #fff; color: var(--acc2); border-radius: 15px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; text-align: left; }
.sug:hover { background: var(--accs); }
.pin { display: flex; gap: 6px; padding: 8px 16px 14px; }
.pin input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.pin .btn { min-height: 36px; }
.ptog .ic { width: 16px; height: 16px; }

/* 진단 위저드 */
.wsteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wsteps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; font-size: 13px; text-align: left; color: var(--ink2); }
.wsteps button span { width: 22px; height: 22px; border-radius: 50%; background: var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.wsteps button.on { border-color: var(--acc); color: var(--acc2); background: var(--accs); }
.wsteps button.on span { background: var(--acc); color: #fff; }
.wsteps button.done span { background: var(--acc3); color: var(--acc2); }
.wform { display: grid; gap: 12px; }
.fld { display: grid; gap: 5px; }
.fld > span { font-weight: 700; font-size: 13px; }
.fld em { font-style: normal; font-weight: 400; color: var(--ink3); font-size: 12.5px; margin-left: 4px; }
.fld textarea, .fld input, .fld select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; resize: vertical; min-height: 38px; }
.fld textarea:focus, .fld input:focus, .pin input:focus { outline: 2px solid var(--acc3); border-color: var(--acc); }
.wnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line2); }
.wnav > div { display: flex; gap: 8px; flex-wrap: wrap; }
.up p { margin-bottom: 10px; }
.files { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dgc { background: #fafbfa; border: 1px solid var(--line2); border-radius: 8px; padding: 12px 14px; }
.dgc h3 { font-size: 13px; color: var(--acc2); margin-bottom: 6px; }
.dgc ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; font-size: 13px; }

/* 맥락 보드 */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; }
.ccard.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--accs); }
.cch { display: flex; align-items: center; justify-content: space-between; }
.cch b { font-size: 13.5px; }
.ver { font-size: 12px; font-weight: 700; color: var(--acc2); background: var(--accs); padding: 1px 7px; border-radius: 9px; }
.ccard p { font-size: 13px; color: var(--ink2); flex: 1; }
.ccf { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; align-items: center; }
.gbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gbar select { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: #fff; font-size: 12.5px; }
.gwrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: 8px; background: #fbfcfb; }
.graph { display: block; width: 100%; min-width: 700px; height: auto; user-select: none; -webkit-user-select: none; }
.graph .node { cursor: grab; touch-action: none; }
.graph .node rect { fill: #fff; stroke: #b9cbc6; stroke-width: 1.2; }
.graph .node.from rect { stroke: var(--acc); stroke-width: 2.5; }
.graph .node:hover rect { stroke: var(--acc); }
.graph .nl { font-size: 12.5px; font-weight: 700; fill: var(--acc2); }
.graph .nt { font-size: 12px; fill: var(--ink2); }
.graph .edge line { stroke: #a9bbb6; stroke-width: 1.6; }
.graph .edge line.hit { stroke: transparent; stroke-width: 14; cursor: pointer; }
.graph .edge.sel line { stroke: var(--bad); }
.graph .el { cursor: pointer; }
.graph .el rect { fill: #fff; stroke: #d3ddda; }
.graph .edge.sel .el rect { stroke: var(--bad); }
.graph .el text { font-size: 11px; fill: var(--ink3); text-anchor: middle; }
.vlist { display: grid; gap: 6px; margin-bottom: 14px; }
.vrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; }
.vrow.on { background: #f7fbfa; border-color: var(--acc3); }
.vrow > span:nth-child(2) { flex: 1; min-width: 120px; }
.vcs { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.vcs select { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; background: #fff; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vgrid > div { border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; background: #fafbfa; }
.vgrid p { margin-top: 4px; font-size: 13.5px; }
del { background: var(--bads); color: var(--bad); text-decoration: line-through; padding: 0 2px; border-radius: 3px; }
ins { background: var(--oks); color: var(--ok); text-decoration: none; padding: 0 2px; border-radius: 3px; }

/* 캠페인 */
.kv { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--ink3); font-weight: 600; }
.kv dd { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.plan.on { border-color: var(--acc); background: #f7fbfa; }
.plan h3 { font-size: 14.5px; }
.plan > p { font-size: 13px; color: var(--ink2); }
.split { width: 100%; display: grid; gap: 5px; }
.sp { display: grid; grid-template-columns: minmax(0, 1fr) 54px auto; align-items: center; gap: 8px; font-size: 12.5px; }
.sp i { display: block; height: 7px; border-radius: 4px; background: var(--acc3); }
.sp b { font-weight: 700; text-align: right; white-space: nowrap; }
.sp.tot { border-top: 1px solid var(--line2); padding-top: 5px; grid-template-columns: minmax(0, 1fr) auto; }
.risk { font-size: 12.5px; color: var(--ink2); background: #fafbfa; border-radius: 6px; padding: 7px 9px; width: 100%; }
.gctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; padding: 8px 10px; background: #f7fbfa; border-radius: 8px; }
.gscroll { overflow-x: auto; }
.gantt { min-width: 560px; }
.gh-row, .g-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; }
.gh-row .gd { position: relative; height: 22px; }
.gh-row .gd span { position: absolute; top: 2px; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.g-row { border-top: 1px solid var(--line2); min-height: 44px; }
.g-row.on { background: #f7fbfa; }
.gl { padding: 6px 10px 6px 0; font-size: 12.5px; display: grid; }
.gl span { color: var(--ink3); font-size: 12px; }
.g-row .gd { position: relative; height: 44px; background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 28 - 1px), #f0f3f1 calc(100% / 28 - 1px), #f0f3f1 calc(100% / 28)); }
.g-row .wk { position: absolute; top: 0; bottom: 0; width: 1px; background: #d8e0dd; }
.bar { position: absolute; top: 11px; height: 22px; border-radius: 6px; background: var(--acc); cursor: grab; touch-action: none; min-width: 10px; }
.g-row.on .bar { background: var(--acc2); box-shadow: 0 0 0 2px var(--acc3); }
.rz { position: absolute; right: 0; top: 0; bottom: 0; width: 12px; cursor: ew-resize; }
.rz::after { content: ""; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, .7); border-radius: 1px; }

/* 콘텐츠 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0 14px; overflow-x: auto; overflow-y: hidden; }
.tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--ink3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--acc2); border-color: var(--acc); }
.draft h3 { font-size: 15px; margin-bottom: 8px; }
.dbody { font-size: 14px; line-height: 1.7; background: #fafbfa; border: 1px solid var(--line2); border-radius: 8px; padding: 12px 14px; }
.afil { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.afil input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 0; flex: 1 1 200px; max-width: 320px; }
.segs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.segs button { border: 0; background: #fff; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink3); border-right: 1px solid var(--line); }
.segs button:last-child { border-right: 0; }
.segs button.on { background: var(--accs); color: var(--acc2); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.asset { margin: 0; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; background: #fff; }
.asset svg { display: block; width: 100%; height: auto; }
.asset figcaption { padding: 7px 9px; display: grid; gap: 4px; font-size: 12.5px; }
.asset select { height: 26px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: #fff; }

/* 대시보드 */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.kpi span { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.kpi b { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--ink3); }
.ch { display: block; width: 100%; height: auto; max-height: 260px; }
.ch .gl { stroke: #eef1ef; }
.ch .b { fill: var(--acc); } .ch .bx { fill: #8a7fd0; }
.ch .v { font-size: 11px; fill: var(--ink2); text-anchor: middle; }
.ch .lb { font-size: 11px; fill: var(--ink3); text-anchor: middle; }
.ch.nar .v, .ch.nar .lb { font-size: 13px; }
.ch .ln { fill: none; stroke: var(--acc); stroke-width: 2.2; }
.ch .lnx { stroke: #8a7fd0; stroke-width: 2.2; stroke-dasharray: 5 4; }
.ch .p { fill: #fff; stroke: var(--acc); stroke-width: 2; } .ch .px { fill: #fff; stroke: #8a7fd0; stroke-width: 2; }
.ch .s1 { fill: var(--acc); } .ch .s2 { fill: #9fd0c7; }
.lg { font-size: 12px; color: var(--ink3); }
.lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.lg i.s1 { background: var(--acc); } .lg i.s2 { background: #9fd0c7; }
.hb { display: grid; gap: 10px; }
.hbr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px; gap: 10px; align-items: center; font-size: 13px; }
.hbr i { display: block; height: 12px; border-radius: 6px; background: var(--acc3); }
.hbr b { text-align: right; font-variant-numeric: tabular-nums; }
.okbox, .badbox { margin-top: 14px; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.okbox { background: var(--oks); color: #155c3a; display: flex; gap: 8px; align-items: flex-start; }
.badbox { background: var(--bads); color: #7d2620; }
.badbox p { margin-bottom: 8px; }
.badbox table { background: #fff; border-radius: 6px; }
.rep { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rep > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.rep > div:first-child .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--acc); }
.rep .acts { margin-top: 0; }

/* 관리자 */
.conn2 { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.conn2 > div { display: grid; gap: 3px; }
.conn2 b { font-size: 15px; }
.conn2 .btn { margin-left: auto; }
.route { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rcol { display: grid; gap: 5px; }
.rchip { display: block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; font-weight: 600; background: #fff; }
.rarr { align-self: center; color: var(--ink4); font-size: 18px; }
.rbox { flex: 1 1 220px; border: 1.5px solid var(--acc); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; background: #f7fbfa; font-size: 12.5px; }
.rbox b { color: var(--acc2); font-size: 13.5px; }
.rbox.ag { border-style: dashed; border-color: #b9cbc6; background: #fff; flex: 0 1 200px; }
.tstep { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 4px 0 18px; }
.tstep + .tstep { border-top: 1px solid var(--line2); padding-top: 16px; }
.tn { width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tstep h3 { font-size: 15px; margin-bottom: 4px; }
.tstep p { font-size: 13px; color: var(--ink2); margin-bottom: 10px; }
.tstep .tw { margin-bottom: 12px; border: 1px solid var(--line2); border-radius: 8px; }
.okline { color: var(--ok) !important; font-weight: 600; display: flex; align-items: flex-start; gap: 6px; }
.okline .ic { margin-top: 2px; }
.pvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pv { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; background: #fff; }
.pv.warn { border-color: #ead0a6; background: #fffbf3; }
.pv.good { border-color: #bfe0cf; }
.pvh { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.pv ul { margin: 0; padding-left: 15px; display: grid; gap: 3px; }
.pv .used { margin-top: 6px; }
.inl { display: inline-flex; align-items: center; gap: 6px; }
.inl input { width: 90px; height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; }

/* 덧창 */
#ov { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 28, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
#ov[hidden] { display: none; }
.card { background: #fff; border-radius: 14px; width: 100%; max-width: 680px; padding: 26px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); outline: none; }
.card.sm { max-width: 480px; }
.card.vcard { max-width: 1000px; padding: 14px 16px 12px; }
.vcard .vh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.vcard .vh b { font-size: 15px; font-weight: 700; }
.vcard video { display: block; width: min(100%, calc((100vh - 150px) * 1.6)); aspect-ratio: 1440 / 900; height: auto; margin: 0 auto; background: #13211f; border-radius: 8px; }
.vcard .cm { text-align: center; margin-top: 8px; }
.ctag { font-size: 12px; font-weight: 700; color: var(--acc); margin-bottom: 6px; }
.card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.card h3 { font-size: 13.5px; margin: 16px 0 8px; color: var(--ink2); }
.card .cl { font-size: 14.5px; margin-bottom: 8px; }
.card .cm { font-size: 13px; color: var(--ink3); margin-bottom: 4px; }
.card .fld { margin-bottom: 12px; }
.needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.needs button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 600; text-align: left; }
.needs button:hover { border-color: var(--acc); }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.fs { margin-top: 4px; color: var(--ink4); }
.fs button { border: 0; background: none; padding: 2px 0; color: var(--acc2); font-weight: 600; }
.fs .sn { color: var(--ink3); display: inline-flex; align-items: center; gap: 2px; }
.fs .sn .ic { width: 13px; height: 13px; color: var(--ok); }
.miss { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
#toast { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 60; background: #1d2b28; color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13px; max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
#toast[hidden] { display: none; }

/* 리포트(미리보기 · PDF) */
.rwrap { width: 100%; max-width: 860px; outline: none; }
.rbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.rbar span { display: flex; gap: 6px; }
.report { display: grid; gap: 14px; }
.rp { background: #fff; border-radius: 6px; padding: 34px 38px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font-size: 12.5px; }
.rh { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink4); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 18px; }
.rp h1 { font-size: 24px; letter-spacing: -0.5px; }
.rp .rs { color: var(--ink3); margin: 4px 0 16px; }
.rp h2 { font-size: 14px; margin: 18px 0 8px; color: var(--acc2); }
.rk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rk div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; }
.rk span { font-size: 11px; color: var(--ink3); } .rk b { font-size: 16px; } .rk em { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.rp table { font-size: 12px; }
.rp td, .rp th { padding: 6px 8px; }
.ra { background: #f7fbfa; border-radius: 6px; padding: 10px 12px; }
.rf { margin-top: 18px; font-size: 10.5px; color: var(--ink4); }

/* 노트북 낮은 창: 흐름 안내를 아래 띠로 */
@media (max-height: 859px) and (min-width: 1100px) {
  .side .guide { display: none; }
  .mguide { display: flex; position: sticky; bottom: 0; z-index: 20; align-items: center; gap: 8px; padding: 8px 28px; background: #fff; border-top: 1px solid var(--line); }
  .nav button { padding: 5px 10px; }
  .side .brand { padding-bottom: 10px; }
  .nav .grp { padding-top: 6px; }
}
.mguide .mg { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink3); display: grid; }
.mguide .mg b { color: var(--ink); font-size: 13px; }

/* 1100~1279: 대화 패널은 덮는 창 */
@media (max-width: 1279px) {
  .app.has-p { grid-template-columns: 224px minmax(0, 1fr); }
  .panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(380px, 100vw); height: auto; z-index: 40; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
}
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) and (max-width: 1500px) { .app.has-p .plans { grid-template-columns: minmax(0, 1fr); } .app.has-p .dg { grid-template-columns: minmax(0, 1fr); } .app.has-p .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .app.has-p .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 1100 아래: 메뉴는 서랍, 안내는 아래 띠 */
@media (max-width: 1099px) {
  .app, .app.has-p { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 45; transform: translateX(-105%); transition: transform .2s; }
  .nav-open .side { transform: none; box-shadow: 10px 0 30px rgba(0, 0, 0, .15); }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(20, 30, 28, .35); }
  .side .guide { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mtop > button { border: 0; background: none; display: inline-flex; padding: 4px; }
  .mtop b { flex: 1; font-weight: 800; color: var(--acc2); }
  .mtop .mx { font-size: 12px; color: var(--ink3); }
  .mtop .pbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--acc3); border-radius: 15px; padding: 4px 10px; color: var(--acc2); font-weight: 700; font-size: 12.5px; }
  .head { padding: 16px 16px 12px; flex-direction: column; align-items: stretch; }
  .head .meta { justify-content: flex-start; }
  .head .ptog { display: none; }
  .body { padding: 0 16px 24px; }
  .mguide { display: flex; position: sticky; bottom: 0; z-index: 20; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border-top: 1px solid var(--line); }
  .p-open .mguide { display: none; }
  .plans, .dg, .grid2, .grid2.rev { grid-template-columns: minmax(0, 1fr); }
  .jgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .mob { display: inline; }
  .head h1 { font-size: 21px; }
  .wsw select { max-width: 100%; width: 100%; }
  .wsw { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: 1fr; }
  .wsteps { grid-template-columns: 1fr 1fr; }
  .needs { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .card { padding: 20px 18px; }
  #ov { padding: 16px 10px; }
  .panel { width: 100vw; }
  .rp { padding: 20px 16px; }
  .rk { grid-template-columns: 1fr 1fr; }
  .conn2 .btn { margin-left: 0; }
  .ph .r { justify-content: flex-start; }
  .ph .r input { flex: 1 1 100%; }
  .afil input { max-width: none; }
  .route { flex-direction: column; }
  .rarr { transform: rotate(90deg); align-self: flex-start; margin-left: 20px; }
  .mguide .mg { font-size: 12px; }
  .gantt { min-width: 600px; }
  .gh-row, .g-row { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } .jl.s-running .dot { animation: none; } }

/* 인쇄(PDF): 리포트만 */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  #app, #toast, .rbar { display: none !important; }
  #ov { position: static; background: none; padding: 0; display: block !important; overflow: visible; }
  .rwrap { max-width: none; }
  .report { display: block; }
  .rp { box-shadow: none; border-radius: 0; width: 210mm; min-height: 297mm; padding: 16mm 16mm 14mm; page-break-after: always; break-after: page; font-size: 11.5pt; }
  .rp:last-child { page-break-after: auto; break-after: auto; }
}
