:root {
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Noto Serif KR', 'Batang', 'Apple Myungjo', serif;
  --bg: #EDF0F3; --surface: #FFFFFF; --surface-2: #F5F7F9;
  --ink: #17212B; --ink-2: #44525F; --ink-3: #5C6B79;
  --line: #D3DAE1; --line-2: #E4E9EE;
  --hold: #1F3A5F; --hold-bg: #E7EDF6; --aff: #0B6B63;
  --btn-bg: #1F3A5F; --btn-ink: #FFFFFF; --focus: #2B6CB0;
  --warn: #7A4E00; --warn-bg: #FFF1CF; --ok: #1B6A38; --ok-bg: #DFF2E5; --bad: #9B2C2C; --bad-bg: #FBE5E5;
  --c0: #E5ECF8; --c1: #E4F1E8; --c2: #FBEBDD; --c3: #ECE5F6; --c4: #ECEEF0;
  --c0i: #274E8A; --c1i: #1F6A3A; --c2i: #8A4A12; --c3i: #59318F; --c4i: #46515C;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--sans); }
a { color: var(--hold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 8px 20px 0; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.brand { font: 700 18px/1.3 var(--serif); padding-bottom: 8px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.tabs { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; overflow: visible; }
.tab { padding: 9px 12px; border-bottom: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--hold); }
.logout { padding-bottom: 8px; }
.page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 72px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 20px 28px; color: var(--ink-3); font-size: 12px; }
.narrow { max-width: 620px; margin: 0 auto; }
.wizard { max-width: 760px; margin: 0 auto; }

.h1 { font: 700 24px/1.4 var(--sans); margin-bottom: 10px; }
.h1.serif { font-family: var(--serif); }
.h2 { font: 700 18px/1.4 var(--serif); }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; font-weight: 400; }
.strong { font-weight: 700; }
.sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.crumb { margin-bottom: 8px; font-size: 13px; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }

.btn { display: inline-block; appearance: none; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); border-radius: 6px; padding: 7px 16px; min-height: 36px; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.alt { background: var(--surface); color: var(--ink); border-color: var(--hold); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.big { padding: 12px 28px; font-size: 16px; min-height: 48px; }
.link { appearance: none; background: none; border: 0; padding: 2px 6px; color: var(--hold); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.muted { color: var(--ink-3); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 8px; }
.actions.between { justify-content: space-between; }
.actions.left { justify-content: flex-start; }

.intro { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.steps li span { color: var(--ink-2); font-size: 13px; }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; justify-content: space-between; }
.block { margin-top: 36px; scroll-margin-top: 70px; }
.inline-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-filter input, .inline-filter select, .filters input, .filters select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

.twrap { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list.wide { min-width: 900px; }
table.list th { text-align: left; font-size: 12.5px; color: var(--ink-3); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: top; }
table.list tr:first-child td { border-top: 0; }
td.num { text-align: center; color: var(--ink-3); }
td.row-actions { white-space: nowrap; }
td.row-actions form { display: inline; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 32px 20px; text-align: center; color: var(--ink-2); }
.empty p { margin-top: 12px; }

.chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.st-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.st-draft { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.c0 { background: var(--c0); color: var(--c0i); border-color: transparent; }
.chip.c1 { background: var(--c1); color: var(--c1i); border-color: transparent; }
.chip.c2 { background: var(--c2); color: var(--c2i); border-color: transparent; }
.chip.c3 { background: var(--c3); color: var(--c3i); border-color: transparent; }
.chip.c4 { background: var(--c4); color: var(--c4i); border-color: transparent; }

.whead { margin-bottom: 18px; }
.whead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 6px 0 4px; }
.meta div { display: flex; gap: 8px; align-items: baseline; }
.meta dt { color: var(--ink-3); font-size: 12.5px; }
.meta dd { margin: 0; font-weight: 500; }
.danger-zone { margin-top: 28px; color: var(--ink-3); }
.danger-zone summary { cursor: pointer; font-size: 13px; }
.danger-zone form { margin-top: 10px; }

.form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.field textarea { resize: vertical; }
.help { font-size: 12.5px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.check input { width: auto; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.filters .grow { flex: 1 1 200px; }
.filters .check { flex-direction: row; align-items: center; padding-bottom: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; }
.stats strong { font: 700 26px/1.2 var(--serif); }
.stats span { color: var(--ink-3); font-size: 12.5px; }
.h2 + .muted, .h2 { margin-top: 0; }
section + .h2, .twrap + .h2, .stats + .h2 { margin-top: 24px; }
h2.h2 { margin-bottom: 8px; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 960px; }
table.matrix th, table.matrix td { border: 1px solid var(--line-2); padding: 8px 6px; text-align: center; font-size: 13px; }
table.matrix thead th { background: var(--surface-2); font-weight: 700; }
table.matrix th.left { text-align: left; padding-left: 12px; white-space: nowrap; background: var(--surface-2); }
table.matrix th.role { font-family: var(--serif); }
table.matrix th.c0 { background: var(--c0); color: var(--c0i); } table.matrix th.c1 { background: var(--c1); color: var(--c1i); }
table.matrix th.c2 { background: var(--c2); color: var(--c2i); } table.matrix th.c3 { background: var(--c3); color: var(--c3i); }
table.matrix th.c4 { background: var(--c4); color: var(--c4i); }
table.matrix td.tot { font-weight: 700; background: var(--surface-2); }
table.matrix .num { display: inline-block; min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--hold-bg); color: var(--hold); font-weight: 700; text-decoration: none; }
table.matrix .zero { color: var(--ink-3); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-top: 14px; }
.qno { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.qtext { font: 700 22px/1.5 var(--serif); margin: 4px 0 6px; }
.example { margin-top: 10px; background: var(--surface-2); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.trail { margin: 16px 0 0; padding-left: 20px; color: var(--ink-3); font-size: 13px; }
.result { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.res-head { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.warn-box { margin-top: 8px; background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 6px; }

.jump { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; }
.check-box { border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px; font-size: 13px; }
.check-box.good { background: var(--ok-bg); color: var(--ok); }
.check-box.warn { background: var(--warn-bg); color: var(--warn); }
.check-box.bad { background: var(--bad-bg); color: var(--bad); }
.check-box ul { margin: 6px 0 0; padding-left: 18px; }
.restore { margin-top: 16px; max-width: 480px; }

dialog { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(620px, 94vw); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(10, 18, 26, .55); }
dialog .dlg-title { margin-bottom: 14px; }

@media (max-width: 760px) {
  .page { padding: 16px 14px 56px; }
  .topbar-in { padding: 6px 14px 0; gap: 8px; }
  .row2, .answers { grid-template-columns: 1fr; }
  .intro { padding: 16px; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
  table.list.wide { min-width: 0; }
  table.list thead { display: none; }
  table.list tr { border-top: 1px solid var(--line); padding: 8px 0; }
  table.list tr:first-child { border-top: 0; }
  table.list td { border: 0; padding: 3px 12px; }
  table.list td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); font-weight: 700; }
  td.num { text-align: left; }
}
@media print {
  .topbar, .actions, .row-actions, .danger-zone, .flash { display: none !important; }
  body { background: #fff; }
}

.who { font-size: 13px; color: var(--ink-2); margin-right: 6px; }
.logout { display: flex; align-items: center; gap: 4px; padding-bottom: 8px; }
.admin-link { margin-top: 20px; font-size: 13px; }
.fresh { background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 10px; padding: 18px 20px; margin: 16px 0 8px; }
.code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.code { font: 700 28px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2px; background: var(--surface); padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.inline-form select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.invite-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; align-items: end; }
.invite-form .btn { margin-bottom: 14px; }

/* 방식별 판단 화면 */
.how { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0 14px; line-height: 1.7; }
.summary { position: sticky; top: 50px; z-index: 5; background: var(--hold-bg); color: var(--hold); padding: 8px 14px; border-radius: 8px; font-weight: 700; margin-bottom: 14px; }
.aband { display: grid; grid-template-columns: 120px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.aband-head { margin: 0; padding: 14px; font: 700 17px/1.4 var(--serif); }
.aband-head.c0 { background: var(--c0); color: var(--c0i); } .aband-head.c1 { background: var(--c1); color: var(--c1i); }
.aband-head.c2 { background: var(--c2); color: var(--c2i); } .aband-head.c3 { background: var(--c3); color: var(--c3i); }
.aband-head.c4 { background: var(--c4); color: var(--c4i); }
.mrow2 { padding: 14px 16px; border-top: 1px solid var(--line-2); scroll-margin-top: 110px; }
.mrow2:first-child { border-top: 0; }
.mrow2.on { background: var(--surface-2); }
.mhead { display: flex; gap: 14px; align-items: flex-start; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; cursor: pointer; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.switch input { width: 18px; height: 18px; margin: 0; }
.mrow2.on .switch { background: var(--hold); border-color: var(--hold); color: var(--btn-ink); }
.mtitle { flex: 1; min-width: 0; }
.mline { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.blocks { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.blk { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 12px; display: grid; gap: 10px; }
.blk.readonly { background: var(--surface-2); }
.blk-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.blk-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.f input, .f select, .f textarea { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 400; color: var(--ink); width: 100%; }
.f textarea { resize: vertical; }
.chip.div { background: var(--hold-bg); color: var(--hold); border-color: transparent; }
.savebar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 18px; }
@media (max-width: 760px) {
  .aband { grid-template-columns: 1fr; }
  .blk-row, .grid2 { grid-template-columns: 1fr; }
  .mhead { flex-direction: column; gap: 8px; }
  .summary { top: 44px; }
}

/* v1.5 단계별 입력 화면 */
.assign { font-size: 15px; line-height: 1.7; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 16px 0 18px; }
.stepper li { flex: 1; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-3); }
.stepper .no { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.stepper .tt { display: flex; flex-direction: column; font-weight: 700; line-height: 1.3; }
.stepper small { font-weight: 400; font-size: 12px; }
.stepper li.now { border-color: var(--hold); color: var(--ink); background: var(--hold-bg); }
.stepper li.now .no { background: var(--hold); color: var(--btn-ink); border-color: var(--hold); }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .no { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.progress { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-weight: 700; color: var(--hold); }
.progress .bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--hold); width: 0; }
.mrow3 { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.mrow3:first-child { border-top: 0; }
.mrow3.is-o { background: var(--ok-bg); }
.mrow3.is-x { background: var(--surface-2); }
.minfo { flex: 1; min-width: 0; }
.mname { font-size: 16px; }
.mq { margin: 2px 0; font-weight: 500; }
.note { color: var(--warn); font-size: 13px; margin: 4px 0 0; }
.pick { display: flex; gap: 8px; flex: none; }
.pbtn { appearance: none; border: 2px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 8px; padding: 9px 16px; min-width: 104px; min-height: 44px; font-weight: 700; font-size: 14px; cursor: pointer; }
.pbtn:hover { border-color: var(--hold); }
.pbtn.O[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.pbtn.X[aria-pressed="true"] { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.stepbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
.stepbar .grow { flex: 1; }
.warn-inline { color: var(--bad); font-size: 13px; margin: 0; max-width: 520px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cchip { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.cchip.now { background: var(--hold); border-color: var(--hold); color: var(--btn-ink); font-weight: 700; }
.phead { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.ptitle { font: 700 22px/1.4 var(--serif); margin: 2px 0 6px; display: flex; align-items: center; gap: 8px; }
.concrete { display: grid; gap: 12px; padding: 12px; background: var(--hold-bg); border-radius: 8px; }
.blk-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.f .req { color: var(--bad); }
.f .help { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.f textarea.bad { border-color: var(--bad); background: var(--bad-bg); }
.summary2 { background: var(--hold-bg); color: var(--hold); padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; font-size: 16px; }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rv-blk { padding: 8px 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.rv-blk:first-of-type { border-top: 0; }
.judge-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.jchip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.jchip.O { background: var(--ok-bg); border-color: transparent; }
.jchip.X { background: var(--surface-2); color: var(--ink-3); }
.jchip.u { border-style: dashed; color: var(--warn); }
.jchip b { font-size: 15px; }
.lines { white-space: pre-line; }
@media (max-width: 760px) {
  .stepper { flex-direction: column; }
  .mrow3 { flex-direction: column; align-items: stretch; }
  .pick { width: 100%; }
  .pbtn { flex: 1; }
  .stepbar { position: static; }
}

/* v1.6 AI 도우미 · 단계별 저장 */
.ok-inline { color: var(--ok); font-size: 13px; margin: 0; max-width: 460px; }
.ai-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--hold-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.ai-card-t { flex: 1; min-width: 0; }
.ai-card-t p { margin: 2px 0 0; }
dialog.aidlg { width: min(760px, 96vw); max-height: 92vh; overflow: auto; }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ai-warn { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; line-height: 1.6; }
.ai-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.ai-step { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.ai-step.cur { border-color: var(--hold); }
.ai-step h3 { margin: 0 0 4px; font: 700 16px/1.4 var(--sans); }
.ai-live { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.ai-live.ok { background: var(--ok-bg); color: var(--ok); }
.ai-live.bad { background: var(--bad-bg); color: var(--bad); }
.ai-pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Consolas, monospace; max-height: 220px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 10px; }
.ai-ta { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: 13px/1.5 ui-monospace, Consolas, monospace; }
.ai-pv { margin: 10px 0; }
.ai-opts { display: grid; gap: 4px; margin: 8px 0; }
.helper-state { font-weight: 700; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); }
.helper-state.ok { background: var(--ok-bg); color: var(--ok); }
.how-list { line-height: 1.9; padding-left: 20px; }
.wide-narrow { max-width: 760px; }
.log-box { margin-top: 24px; }
.log-box summary { cursor: pointer; font-weight: 700; }
.log-box .twrap { margin-top: 8px; }
.mask-form { max-width: 560px; }
.h3 { font: 700 16px/1.4 var(--serif); margin: 22px 0 6px; }
textarea.mono { font: 12.5px/1.6 ui-monospace, Consolas, monospace; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
@media (max-width: 760px) { .ai-card { flex-direction: column; align-items: stretch; } }

/* v1.7 보고서 · 서버 AI */
.report { margin: 28px 0 8px; }
.report-body { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 26px; line-height: 1.85; font-size: 15px; }
.report-body h2, .report-body h3 { font: 700 20px/1.5 var(--serif); margin: 24px 0 8px; }
.report-body h4 { font: 700 17px/1.5 var(--serif); margin: 22px 0 6px; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--hold); }
.report-body h5 { font-size: 15px; margin: 14px 0 4px; }
.report-body p { margin: 6px 0; }
.report-body ul { margin: 4px 0 10px; padding-left: 22px; }
.report-body li { margin: 3px 0; }
.ai-mode { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.ai-mode.server { background: var(--ok-bg); color: var(--ok); }
.ai-mode.helper { background: var(--hold-bg); color: var(--hold); }
.ai-keys { margin: 10px 0; }
.ai-settings { max-width: 760px; }
@media print { .report-body { border: 0; padding: 0; } .report .actions { display: none; } }

/* v2 플랫폼 */
.wtabs { display: flex; gap: 4px; margin: 6px 0 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wtabs a { padding: 8px 16px; border-radius: 8px 8px 0 0; color: var(--ink-3); text-decoration: none; font-weight: 500; }
.wtabs a[aria-current="page"] { color: var(--hold); font-weight: 700; background: var(--hold-bg); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; }
.filters input, .filters select, .inline-form select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.inline-form { display: inline-block; margin-left: 10px; font-weight: 400; }
.inline-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-row .field { min-width: 130px; margin: 0; }
.inline-row .field.grow { flex: 1; min-width: 200px; }
.late { color: var(--bad); font-weight: 700; }
.sub { display: block; font-size: 12px; color: var(--ink-3); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); }
.cal th { padding: 6px; background: var(--surface-2); font-size: 13px; border: 1px solid var(--line); }
.cal td { border: 1px solid var(--line); vertical-align: top; height: 104px; padding: 4px 6px; font-size: 12px; overflow: hidden; }
.cal td.out { background: var(--surface-2); color: var(--ink-3); }
.cal td.today { outline: 2px solid var(--hold); outline-offset: -2px; }
.cal .dn { font-weight: 700; margin-bottom: 2px; }
.cal .ev { background: var(--hold-bg); border-radius: 4px; padding: 1px 5px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.done { text-decoration: line-through; opacity: .6; }
.cal .ev a { color: inherit; text-decoration: none; }
@media (max-width: 760px) { .cal td { height: 70px; font-size: 11px; } }

.bell { text-decoration: none; color: var(--ink-2); position: relative; margin-right: 6px; }
.bell b { background: var(--bad); color: var(--btn-ink); border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 2px; }

.tabgroup { position: relative; display: inline-block; }
.tabgroup summary { list-style: none; cursor: pointer; }
.tabgroup summary::-webkit-details-marker { display: none; }
.tabmenu { position: absolute; top: 100%; left: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-width: 150px; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tabmenu a { padding: 8px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tabmenu a:hover { background: var(--hold-bg); }

/* v2.1 검색 선택 · 업무 템플릿 · 입력 보존 */
.combo { position: relative; display: flex; width: 100%; }
.combo-in { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: var(--surface); color: var(--ink); }
.combo-btn { width: 36px; border: 1px solid var(--line); border-radius: 0 6px 6px 0; background: var(--surface-2); cursor: pointer; color: var(--ink-2); }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; max-height: 260px; overflow: auto; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.combo-list li { padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.combo-list li:hover, .combo-list li.act { background: var(--hold-bg); }
.combo-list li.sel { font-weight: 700; }
.combo-empty { color: var(--ink-3); }
.combo-none { color: var(--ink-3); cursor: default !important; }
.tmpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 8px 0; }
.tmpl-grid .field { margin: 0; }
.tmpl-grid .wide { grid-column: 1 / -1; }
.tmpl-grid input, .tmpl-grid textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.tmpl-grid textarea { resize: vertical; }
.tmpl-grid .ai-filled { background: #FFF8DC; border-color: #D9B100; }
.tmpl-preview { margin: 6px 0 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); }
.tprev { white-space: pre-line; line-height: 1.8; margin-top: 6px; }
.tmpl-ai-card { align-items: flex-start; }
.tmpl-ai-card textarea { width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.keep-note { background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 760px) { .tmpl-grid { grid-template-columns: 1fr; } }

.ai-why { background: #EEF2FF; border-radius: 6px; padding: 4px 8px; }
#ai-judge-bar { margin: 0 0 14px; }

/* R&R 체크리스트 */
.rrc-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.rrc { display: flex; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rrc.bad { border-color: #E5A5A5; background: #FFF5F5; }
.rrc.warn { background: #FFFBEA; }
.rrc.wait { background: var(--surface-2); }
.rrc-pr { margin: 4px 0 0; padding-left: 18px; font-size: .9em; color: var(--ink-2); }
.rrcheck { margin: 16px 0; }

/* R&R 점검 체크리스트(보고서 양식) */
.ck-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0; }
.ck-top .progress { flex: 1 1 260px; }
.ck-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ck-sec { margin: 18px 0; }
.ck-info input, .ck-items input.ck-n, .ck-sec table input.ck-task, .ck-sec table input.ck-w { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.ck-sec textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.ck-row.ok td { background: #F3FBF5; }
.ck-row.bad td { background: #FFF5F5; }
.ck-why { color: #B42318; font-size: .88em; margin-top: 2px; }
.ck-mark { text-align: center; white-space: nowrap; }
.ck-opts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ck-sg.stale { color: #B42318; }
.ck-sign td, .ck-sign th { text-align: center; }
.h4 { font-size: 1em; margin: 12px 0 4px; }

.ck-row.ck-ai td { background: #FFF8DC !important; }
.ck-ai-block { outline: 2px solid #D9B100; outline-offset: 2px; }
.ck-aibar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ai-filled { background: #FFF8DC; border-color: #D9B100; }
.aifill-card { margin: 0 0 12px; }

/* R&R 정의(6단계) */
.df-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.df-pills a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .9em; }
.df-card { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.df-card .row2 { display: flex; gap: 12px; flex-wrap: wrap; } .df-card .grow { flex: 1 1 260px; }
.df-card input:not([type]), .df-card input[type=text], .df-card textarea, .df-card select, #df-overview { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.df-blk { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } .df-grid .wide { grid-column: 1 / -1; }
.ck-redo { margin-left: 8px; font-size: .85em; }
@media (max-width: 760px) { .df-grid { grid-template-columns: 1fr; } }

/* 업무 개요 작성 */
.bf-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 8px 0; padding: 0; }
.bf-steps li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bf-steps li.cur { background: #E8EFFA; border-color: #9DB4DA; }
.bf-steps li span { color: var(--ink-3); font-size: .9em; margin-left: 6px; }
.bf-q { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.bf-qt { font-weight: 700; margin-bottom: 4px; }
.bf-q textarea, .bf-paste textarea, #bf-memo, #bf-text, .bf-f { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.bf-paste { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.bf-mk { font-size: .85em; color: var(--ink-3); }

/* 업무 개요: 업무명 · 질문 카드 · 개요 카드 */
.bf-title { margin: 10px 0; } .bf-title input { width: 100%; padding: 10px 12px; font-size: 1.15em; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.bf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bf-chip { padding: 5px 12px; border: 1px solid #9DB4DA; border-radius: 999px; background: #F3F7FD; color: #1F3864; cursor: pointer; font: inherit; font-size: .92em; }
.bf-chip:hover { background: #E3ECFA; } .bf-chip.on { background: #1F3864; color: #fff; border-color: #1F3864; }
.bf-q { position: relative; margin: 12px 0; padding: 12px 14px 10px 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.bf-qn { position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #1F3864; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bf-qt { font-size: 1.08em; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.bf-why { display: inline-block; font-size: .8em; color: #5A6B85; background: #EEF2F8; border-radius: 999px; padding: 1px 9px; margin-bottom: 6px; }
.bf-q textarea { margin-top: 6px; }
.bf-done { background: #1E7B4B; color: #fff; border-color: #1E7B4B; }
.bf-edit { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.ov-card { border: 1px solid #C9D6EA; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px rgba(31,56,100,.08); overflow: hidden; margin: 8px 0 12px; }
.ov-head { padding: 18px 22px; background: linear-gradient(135deg, #1F3864, #2F5597); color: #fff; }
.ov-kicker { font-size: .8em; letter-spacing: .08em; opacity: .85; margin-bottom: 4px; }
.ov-title { margin: 0 0 6px; font-size: 1.5em; line-height: 1.3; color: #fff; }
.ov-purpose { margin: 0; font-size: 1.02em; line-height: 1.6; opacity: .95; }
.ov-st { float: right; font-size: .8em; background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 12px; }
.ov-sec { padding: 14px 22px; border-top: 1px solid #E3EAF5; }
.ov-sec h4 { margin: 0 0 8px; font-size: .95em; color: #1F3864; letter-spacing: .02em; }
.ov-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 4px; align-items: center; }
.ov-steps li { position: relative; padding: 6px 14px; background: #EEF3FB; border: 1px solid #C9D6EA; border-radius: 999px; font-weight: 600; color: #1F3864; }
.ov-steps li + li { margin-left: 18px; } .ov-steps li + li::before { content: "→"; position: absolute; left: -17px; color: #7A8CAB; font-weight: 700; }
.ov-note { margin: 8px 0 0; color: #4A5A75; font-size: .92em; }
.ov-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 22px; border-top: 1px solid #E3EAF5; }
.ov-role { border-radius: 10px; padding: 12px 14px; line-height: 1.65; } .ov-role h4 { margin: 0 0 6px; font-size: .95em; }
.ov-h { background: #EEF3FB; border-left: 5px solid #2F5597; } .ov-a { background: #EFF8F2; border-left: 5px solid #2E8B57; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 14px 22px; border-top: 1px solid #E3EAF5; }
.ov-tile { padding: 10px 12px; border: 1px solid #E3EAF5; border-radius: 10px; background: #FAFBFD; } .ov-tile b { display: block; font-size: .8em; color: #5A6B85; margin-bottom: 3px; }
.ov-text { margin: 0; padding: 16px 22px 18px; border-top: 1px solid #E3EAF5; background: #FBF9F3; line-height: 1.85; font-size: 1.02em; color: #2B2B2B; }
.ov-text::before { content: "개요 요약"; display: block; font-size: .8em; color: #8A6D1F; font-weight: 700; margin-bottom: 6px; }
.ov-empty { color: #66758A; } .ov-card mark { background: #FFF0C2; color: #7A4B00; border-radius: 3px; padding: 0 3px; }
@media (max-width: 760px) { .ov-roles { grid-template-columns: 1fr; } .bf-q { padding-left: 46px; } }
@media print { .ov-card { box-shadow: none; } }

/* 업무 진행 현황 */
.wp-bar { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid #C9D6EA; border-radius: 12px; background: #F6F9FE; }
.wp-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 8px; padding: 0; }
.wp-steps li a { display: flex; gap: 6px; align-items: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; }
.wp-steps li.done a { border-color: #9FD3B4; background: #F0FAF4; } .wp-steps li.doing a { border-color: #E6C766; background: #FFFAE8; }
.wp-steps li span:last-child { color: var(--ink-3); font-size: .88em; }
.wp-next { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .wp-next small { color: var(--ink-3); } .wp-next.ok { color: #1E7B4B; font-weight: 600; }
.wp-nl { font-weight: 700; color: #1F3864; }

.how { margin: 4px 0 8px; } .how summary, .ai-adv summary { cursor: pointer; } .ai-adv { margin-top: 10px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 8px; }

.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: #B42318; color: #fff; font-size: .8em; text-align: center; }

.wp-todo { margin-top: 8px; } .wp-todo summary { cursor: pointer; font-weight: 600; color: #1F3864; } .wp-todo ul { margin: 6px 0 0; padding-left: 1.2em; } .wp-todo li { margin: 2px 0; }

.ck-bulk { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ck-bulk details { flex-basis: 100%; } .ck-bulkrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; align-items: center; }
.ck-hide-ok .ck-row.ok:not(.ck-keep) { display: none; } .ck-sec-done { display: none; }
.ck-sel { margin-right: 4px; }

/* 문서 출력(보고서·업무명세서·업무절차서) */
.doc-switch { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.doc-switch a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.doc-switch a[aria-current="page"] { background: #1F3864; color: #fff; border-color: #1F3864; }
.rpt { max-width: 860px; margin: 18px auto 40px; padding: 48px 56px 56px; background: #fff; color: #1b1b1b; border: 1px solid #D5DCE8; box-shadow: 0 6px 24px rgba(31,56,100,.12); line-height: 1.75; font-size: 1.02em; }
.rpt-cover { text-align: center; padding: 34px 0 22px; margin-bottom: 18px; border-bottom: 4px double #1F3864; }
.rpt-kicker { letter-spacing: .18em; color: #2F5597; font-size: .85em; font-weight: 700; margin-bottom: 10px; }
.rpt-cover h1 { margin: 0 0 8px; font-size: 2.1em; color: #1F3864; line-height: 1.3; }
.rpt-sub { font-size: 1.35em; font-weight: 700; color: #2F5597; margin-bottom: 8px; }
.rpt-tag { margin: 0; color: #5a6475; font-style: italic; }
.rpt-meta, .rpt-table, .rpt-kv { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.rpt-meta th, .rpt-kv th { width: 22%; background: #DCE6F2; color: #1F3864; text-align: left; font-weight: 700; }
.rpt-meta th { width: 14%; }
.rpt-meta th, .rpt-meta td, .rpt-table th, .rpt-table td, .rpt-kv th, .rpt-kv td { border: 1px solid #B7C4D9; padding: 8px 12px; vertical-align: top; }
.rpt-table thead th { background: #1F3864; color: #fff; text-align: left; }
.rpt-table tbody th { background: #F3F6FB; color: #1F3864; text-align: left; }
.rpt-table tbody tr:nth-child(even) td { background: #FAFBFD; }
.rpt-h1 { margin: 34px 0 12px; padding-bottom: 6px; font-size: 1.35em; color: #1F3864; border-bottom: 2px solid #2F5597; }
.rpt-h2 { margin: 20px 0 8px; font-size: 1.12em; color: #2F5597; }
.rpt-p { margin: 6px 0 10px; }
.rpt-callout { margin: 14px 0 18px; padding: 12px 18px; border-left: 6px solid #1F3864; background: #EAF1FB; border-radius: 0 8px 8px 0; }
.rpt-callout b { display: block; margin-bottom: 4px; color: #1F3864; } .rpt-callout p { margin: 2px 0; }
.rpt-callout.warn { border-color: #E0A800; background: #FFF4D6; } .rpt-callout.warn b { color: #8A5A00; }
.rpt-callout.note { border-color: #7F8FA6; background: #F2F4F7; } .rpt-callout.note b { color: #4A5A75; }
.rpt-break { border: 0; border-top: 1px dashed #C9D3E3; margin: 28px 0; }
.rpt-card { margin: 14px 0; border: 1px solid #B7C4D9; border-radius: 10px; overflow: hidden; page-break-inside: avoid; }
.rpt-card > header { background: #1F3864; color: #fff; padding: 8px 16px; } .rpt-card > header span { opacity: .85; }
.rpt-card-cols { display: grid; grid-template-columns: 1fr 1fr; }
.rpt-card-cols > div { padding: 10px 16px; } .rpt-card-cols h4 { margin: 0 0 6px; font-size: .95em; color: #1F3864; }
.rpt-card-cols .h { background: #EEF3FB; border-right: 1px solid #B7C4D9; } .rpt-card-cols .a { background: #F0F8F3; }
.rpt-card-cols p { margin: 3px 0; } .rpt-card-cols .mode { color: #5a6475; font-size: .9em; }
.rpt-card > footer { padding: 8px 16px; background: #F3F6FB; border-top: 1px solid #B7C4D9; }
.rpt-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 4px; margin: 10px 0 18px; padding: 0; counter-reset: st; }
.rpt-flow li { position: relative; padding: 8px 18px; background: #1F3864; color: #fff; border-radius: 8px; font-weight: 700; }
.rpt-flow li + li { margin-left: 22px; } .rpt-flow li + li::before { content: "▶"; position: absolute; left: -20px; color: #2F5597; }
.rpt-sign td { height: 36px; } .rpt-sign td.sig { height: 56px; }
@media (max-width: 760px) { .rpt { padding: 22px 16px; } .rpt-card-cols { grid-template-columns: 1fr; } }
@media print {
  .no-print, .topbar, header.topbar, nav.tabs, .wtabs, .wp-bar, .flash, footer, .site-footer { display: none !important; }
  body { background: #fff !important; }
  .rpt { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; font-size: 11pt; }
  .rpt-h1 { page-break-after: avoid; } .rpt-table tr, .rpt-kv tr { page-break-inside: avoid; }
  .rpt-break { page-break-after: always; border: 0; margin: 0; }
}

.ck-aibar { position: sticky; top: 0; z-index: 6; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ck-ctl { white-space: nowrap; } .ck-ctl label.check { display: block; margin: 2px 0; } .ck-nalab { color: var(--muted, #6b7280); font-size: .92em; }
.resume-card { border: 2px solid #1F3864; background: #F3F6FB; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.resume-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-top: 1px solid #D5DCE8; } .resume-row:first-of-type { border-top: 0; }
.resume-row .rr-name { flex: 1 1 260px; } .resume-row .rr-name b { display: block; }

.wp-legend { margin: 4px 0 2px; }

/* 문서 화면: 문장 단위 줄바꿈과 화살표(→) 단계 강조 (Word 문서와 같은 규칙) */
.lns .ln { display: block; margin: 0 0 3px; line-height: 1.7; }
.lns .ln.em { font-weight: 700; color: #2F5597; }
.lns .ln.ar { padding-left: 1.1em; border-left: 3px solid #9DB4DA; margin-left: .2em; }

/* v5.2: 생성문서 목록 · 관리자 대시보드 · 도움말 */
.stats small { font: 500 13px var(--sans); color: var(--ink-3); }
.stats .k-warn { border-color: #E0A800; background: var(--warn-bg); } .stats .k-bad { border-color: var(--bad); background: var(--bad-bg); }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.docs-table .doc-links a { display: inline-block; margin: 0 8px 4px 0; white-space: nowrap; }
.dl-btn { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--surface-2); }
.dl-btn:hover { background: var(--hold-bg); }
.dl-n { display: inline-block; margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--hold); color: var(--btn-ink); font-size: 11px; text-align: center; }
.help-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 8px 20px; background: var(--hold-bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.dash-card .h3 { margin-bottom: 8px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 38px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.hb-t { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: #6A8FC7; } .hb-t.mini { display: inline-block; width: 70px; vertical-align: middle; }
.hb-t i.st-ok { background: #3C9460; } .hb-t i.st-4 { background: #D9A21B; } .hb-t i.st-6 { background: #8A98A8; } .hb-t i.st-7 { background: #B8C2CC; } .hb-t i.st-3 { background: #6A8FC7; } .hb-t i.st-8 { background: #C9CED4; }
.hb-n { text-align: right; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 14px; margin-bottom: 10px; background: var(--hold-bg); border: 1px solid var(--line); border-radius: 8px; }
.bulk-bar label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.bulk-bar select, .bulk-bar input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.bulk-del { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.stage-chips .chip { margin-right: 3px; }
.help-sec { margin-top: 30px; scroll-margin-top: 70px; }
.help-steps > li { margin-bottom: 14px; line-height: 1.75; } .help-steps ul { margin: 6px 0 0 4px; }
.check-list { list-style: none; padding: 0; margin: 8px 0; } .check-list li { padding: 7px 12px; margin: 5px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.check-list li.ok { border-color: #3C9460; } .check-list li.bad { border-color: var(--bad); background: var(--bad-bg); }
.note-box { margin: 12px 0; padding: 10px 14px; background: var(--warn-bg); border-left: 5px solid #E0A800; border-radius: 0 8px 8px 0; }
.help-page .helper-state { font-size: 15px; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); margin: 8px 0; }
.help-page .helper-state.ok { background: var(--ok-bg); color: var(--ok); }
.help-page details.how { margin: 8px 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; } .help-page details.how summary { cursor: pointer; }
.help-page pre.mono { max-height: 260px; overflow: auto; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; white-space: pre-wrap; }
@media (max-width: 760px) { .hbar { grid-template-columns: 90px 1fr 34px; } .bulk-del { margin-left: 0; } }
.bf-chip.on::before { content: "✓ "; }
.bf-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; font-size: 12.5px; }
.bf-chips { max-height: none; }

.bf-up { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line, #ccd); border-radius: 8px; }
.bf-flist { margin: 6px 0; padding-left: 18px; }
.linkbtn { background: none; border: 0; color: #c0392b; cursor: pointer; text-decoration: underline; font-size: 12px; }

/* 공통 하단 진행 막대 */
.stepbar { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 18px -4px 0; padding: 10px 14px; background: #fff; border: 1px solid #c9d3e6; border-radius: 10px; box-shadow: 0 -4px 14px rgba(20, 40, 90, .12); }
.stepbar .sb-l { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.stepbar .sb-r { display: flex; gap: 8px; flex-wrap: wrap; }
.stepbar .sb-step { background: #1f4fa3; color: #fff; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.stepbar .sb-status { font-size: 13px; color: #334; }
.stepbar .sb-prev { font-size: 13px; color: #1f4fa3; text-decoration: none; }
.stepbar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.bf-final { border: 2px solid #1f4fa3; border-radius: 10px; padding: 12px 14px; margin-top: 14px; background: #f5f8ff; }
.bf-final ol { margin: 6px 0 10px; padding-left: 20px; }
.bf-adv summary { cursor: pointer; }
@media (max-width: 640px) { .stepbar { margin: 12px 0 0; } .stepbar .sb-r, .stepbar .btn { width: 100%; } }
#bf-aicard { display: block; }
#bf-aicard textarea { width: 100%; box-sizing: border-box; }
#bf-aicard #bf-ask { display: none; }            /* 같은 일을 하는 하단 진행 막대의 큰 버튼 하나만 보이게 한다 */

/* 점검표 개선 */
.ck-guide { margin: 6px 0 10px; padding-left: 20px; }
.ck-goto { color: #1f4fa3; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.ck-flash { animation: ckflash 2.4s ease-out; }
@keyframes ckflash { 0%, 60% { outline: 3px solid #f5a623; background: #fff4d6; } 100% { outline: 3px solid transparent; } }
.ck-warns { border-color: #e0a100; background: #fff8e1; } .ck-warns ul { margin: 4px 0 0; padding-left: 18px; }
.ck-sectools { margin-left: 10px; font-size: 12px; font-weight: 400; display: inline-flex; gap: 10px; flex-wrap: wrap; }
.ck-sec.ck-collapsed > :not(h3) { display: none; }
#ck-org.warn { border-color: #c0392b; background: #fff0ee; }

.sub-banner { margin: 0 0 12px; padding: 9px 14px; border-radius: 8px; background: #eef3ff; border: 1px solid #b9c9f2; color: #20407f; font-size: 13px; }

/* ===== AI 프롬프트 관리 ===== */
.pm .pm-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 16px; padding: 0; list-style: none; counter-reset: pm; }
.pm .pm-flow li { background: var(--surface, #f6f8fc); border: 1px solid var(--line, #d7deea); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.pm .pm-flow li b { color: #1f4fa3; font-size: 14px; } .pm .pm-flow li span { font-size: 12.5px; color: #4a5568; line-height: 1.5; }
.pm .pm-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: #8ea2c9; font-weight: 700; z-index: 1; background: #fff; border-radius: 50%; width: 16px; text-align: center; font-size: 12px; }
.pm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pm-tile { border: 1px solid var(--line, #d7deea); border-radius: 10px; padding: 10px 14px; background: #fff; display: flex; flex-direction: column; }
.pm-tile span { font-size: 12px; color: #5b6578; } .pm-tile b { font-size: 26px; line-height: 1.2; color: #1f2d4d; } .pm-tile small { color: #7b8599; font-size: 11.5px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pm-card { border: 1px solid var(--line, #d7deea); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.pm-card.pm-need { border-color: #e0a100; box-shadow: 0 0 0 2px #fff3cf inset; }
.pm-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .pm-card h2 { font-size: 16px; margin: 0; line-height: 1.35; }
.pm-flag { background: #fff0c9; color: #7a5200; border-radius: 10px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; } .pm-flag-0 { background: #eef1f6; color: #5b6578; font-weight: 500; }
.pm-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; } .pm-score b { font-size: 20px; }
.pm-stars { display: inline-block; font-size: 18px; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #f5a623 calc(var(--v) / 5 * 100%), #d9dee8 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-stars.sm { font-size: 14px; }
.pm-trend { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: #eef1f6; color: #5b6578; } .pm-trend.up { background: #e3f6ea; color: #17703c; } .pm-trend.down { background: #fde8e6; color: #b3261e; }
.pm-dist, .pm-tagbars { display: flex; flex-direction: column; gap: 3px; margin: 2px 0; padding: 0; list-style: none; }
.pm-dist > div, .pm-tagbars li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; color: #4a5568; }
.pm-tagbars li { grid-template-columns: minmax(120px, 1.3fr) 1fr 26px; }
.pm-dist i, .pm-tagbars i { display: block; height: 8px; background: #e8ecf3; border-radius: 5px; overflow: hidden; } .pm-dist u, .pm-tagbars u { display: block; height: 100%; background: #6f93d6; text-decoration: none; }
.pm-tagbars li.good u { background: #4aa771; } .pm-dist em, .pm-tagbars em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.pm-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line, #e3e8f1); padding-top: 8px; }
.pm-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13.5px; }
.pm-ver { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; background: #eef1f6; color: #4a5568; white-space: nowrap; } .pm-ver.custom { background: #e4ecff; color: #1f4fa3; font-weight: 700; }
.pm .crumb { margin: 0 0 4px; }
.pm-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; } .pm-jump a { padding: 5px 12px; border-radius: 16px; background: #eef3ff; color: #1f4fa3; text-decoration: none; font-size: 13px; font-weight: 600; }
.pm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-bottom: 16px; } .pm-side { position: sticky; top: 8px; }
@media (max-width: 980px) { .pm-cols { grid-template-columns: 1fr; } .pm-side { position: static; } .pm .pm-flow { grid-template-columns: 1fr 1fr; } .pm .pm-flow li::after { display: none; } }
.pm-ph { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 8px; } .pm-ph code { padding: 2px 8px; border-radius: 6px; font-size: 12.5px; border: 1px solid #c9d3e6; background: #f3f6fc; }
.pm-ph code.ok { background: #e6f6ec; border-color: #9fd5b3; color: #17703c; } .pm-ph code.bad { background: #fde8e6; border-color: #f0a29b; color: #b3261e; font-weight: 700; }
.pm-ta { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "D2Coding", monospace; font-size: 13px; line-height: 1.65; padding: 12px; border: 1px solid #c3cde0; border-radius: 8px; background: #fbfcff; resize: vertical; }
.pm-meta { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 10px; flex-wrap: wrap; } .pm-check.ok { color: #17703c; font-weight: 600; font-size: 13px; } .pm-check.bad { color: #b3261e; font-weight: 700; font-size: 13px; }
.pm-diff { margin-top: 10px; border: 1px solid #d7deea; border-radius: 8px; background: #fff; max-height: 460px; overflow: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.pd-l { padding: 1px 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; color: #4a5568; } .pd-add { background: #e6f7ec; color: #14532d; } .pd-del { background: #fdecea; color: #7f1d1d; text-decoration: line-through; text-decoration-color: #e8a5a0; }
.pm-sw { padding: 1px 7px; border-radius: 4px; font-size: 11.5px; } .pm-sw.add { background: #e6f7ec; color: #14532d; } .pm-sw.del { background: #fdecea; color: #7f1d1d; }
.pm-result { margin-top: 14px; padding: 14px; border: 2px solid #1f4fa3; border-radius: 10px; background: #f7faff; }
.pm-rationale { font-size: 14px; line-height: 1.7; margin: 4px 0 8px; } .pm-changes { margin: 0 0 8px; padding-left: 20px; line-height: 1.7; font-size: 13.5px; }
.pm-big { display: flex; align-items: center; gap: 10px; } .pm-big b { font-size: 34px; color: #1f2d4d; } .pm-big .pm-stars { font-size: 22px; }
.pm-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; }
.pm-comments li { border: 1px solid #e3e8f1; border-radius: 8px; padding: 8px 10px; background: #fcfdff; } .pm-comments p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.pm-table td, .pm-table th { vertical-align: middle; } .pm-table tr.pm-cur { background: #f1f7ff; } .pm-act { display: flex; gap: 6px; flex-wrap: wrap; } .pm-act form { margin: 0; }
.pm-reset { margin-top: 10px; }

/* ===== AI 결과 평가 상자 ===== */
.fb { margin: 14px 0 6px; border: 1px solid #c9d3e6; border-radius: 10px; background: #fffdf5; }
.fb > summary { cursor: pointer; padding: 10px 14px; list-style: none; } .fb > summary::-webkit-details-marker { display: none; }
.fb[open] > summary { border-bottom: 1px dashed #e4d7a8; }
.fb-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fb-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; } .fb-star { background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; color: #a9b3c4; padding: 0 2px; } .fb-star.on { color: #f5a623; } .fb-label { margin-left: 10px; }
.fb-tags { display: flex; gap: 6px; flex-wrap: wrap; } .fb-tag { cursor: pointer; } .fb-tag input { position: absolute; opacity: 0; pointer-events: none; }
.fb-tag span { display: inline-block; padding: 4px 11px; border-radius: 15px; border: 1px solid #c9d3e6; background: #fff; font-size: 12.5px; } .fb-tag input:checked + span { background: #1f4fa3; color: #fff; border-color: #1f4fa3; } .fb-tag input:focus-visible + span { outline: 2px solid #f5a623; }
.fb-comment { width: 100%; box-sizing: border-box; }

/* 구성원 표(인라인 수정) */
.pp-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; } .pp-bar input[type=search] { min-width: 220px; }
.pp-toast { font-size: 13px; font-weight: 600; margin-left: 6px; } .pp-toast.ok { color: #17703c; } .pp-toast.bad { color: #b3261e; }
.pp-table td { vertical-align: middle; } .pp-table input.pp-f, .pp-table select.pp-f { width: 100%; min-width: 96px; box-sizing: border-box; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; }
.pp-table input.pp-f:hover, .pp-table select.pp-f:hover { border-color: #c3cde0; background: #fff; } .pp-table input.pp-f:focus, .pp-table select.pp-f:focus { border-color: #1f4fa3; background: #fff; outline: 0; box-shadow: 0 0 0 2px #dbe6ff; }
.pp-table .pp-f:disabled { opacity: .7; cursor: not-allowed; } .pp-row.pp-saved td { background: #eaf8ef; transition: background .3s; } .pp-row[hidden] { display: none; }
.pp-glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; margin: 10px 0; max-height: 50vh; overflow: auto; }

/* 대시보드 요약 칸 링크 */
.kpi-grid a.kpi-link { display: block; text-decoration: none; color: inherit; cursor: pointer; } .kpi-grid a.kpi-link:hover { box-shadow: 0 0 0 2px #1f4fa3 inset; } .k-bad-text { color: #b3261e; font-weight: 600; }

.pp-bulkbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; padding: 8px 10px; background: #f3f6fb; border: 1px solid #dbe3f1; border-radius: 8px; } .pp-bulkbar .grow { flex: 1; }
.pp-ck { width: 34px; text-align: center; } .pp-restore { cursor: pointer; } .pp-code { font-size: 20px; letter-spacing: 2px; padding: 3px 10px; background: #fff; border: 1px dashed #1f4fa3; border-radius: 6px; }
.pp-fresh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .btn.danger { background: #b3261e; color: #fff; border-color: #b3261e; }

/* 기본 프레임 설명서 */
.fg-lead { font-size: 17px; line-height: 1.7; max-width: 980px; } .fg-sec { margin: 34px 0 8px; scroll-margin-top: 90px; } .fg-n { color: #0063ba; margin-right: 6px; }
.fg-banner { background: #2f3674; color: #fff; padding: 18px 24px; border-radius: 10px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .fg-banner small { color: #f3c99b; font-weight: 700; letter-spacing: 1px; } .fg-banner b { font-size: 19px; }
.fg-two { display: flex; gap: 14px; align-items: stretch; margin: 14px 0; flex-wrap: wrap; } .fg-two .fg-card { flex: 1; min-width: 240px; }
.fg-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; color: #7a8394; min-width: 110px; } .fg-mid span { font-size: 13px; font-weight: 700; background: #fbe5d6; color: #7a3f08; padding: 4px 10px; border-radius: 6px; text-align: center; }
.fg-card { border: 1px solid #cbd3e0; background: #f3f6fb; border-radius: 10px; padding: 0 0 14px; overflow: hidden; } .fg-card ul { margin: 8px 0 0; padding-left: 36px; line-height: 1.8; } .fg-card p, .fg-card small, .fg-card em { padding: 0 18px; display: block; }
.fg-h { margin: 0 0 8px; padding: 12px 18px; color: #fff; font-size: 18px; } .fg-h.navy { background: #2f3674; } .fg-h.blue { background: #0063ba; } .fg-h.amber { background: #b85f0e; }
.fg-three, .fg-five { display: grid; gap: 14px; margin: 12px 0; } .fg-three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } .fg-five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fg-three .fg-card { padding: 18px 0 14px; border-top: 6px solid #2f3674; } .fg-three .t2 { border-top-color: #0063ba; } .fg-three .t3 { border-top-color: #b85f0e; } .fg-three h3 { margin: 6px 18px 8px; font-size: 19px; color: #2f3674; }
.fg-badge { margin: 0 18px; width: 44px; height: 44px; border-radius: 50%; background: #2f3674; color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; } .t2 .fg-badge { background: #0063ba; } .t3 .fg-badge { background: #b85f0e; }
.fg-three em { font-style: normal; font-weight: 600; color: #7a3f08; background: #fbe5d6; margin: 10px 18px; padding: 6px 10px !important; border-radius: 6px; font-size: 14px; } .fg-split { margin: 6px 18px; font-size: 14px; line-height: 1.7; color: #3b4457; border-top: 1px solid #cbd3e0; padding-top: 8px; } .fg-split b { color: #2f3674; margin-right: 6px; }
.fg-rooms { display: block; margin: 8px 18px 0; font-weight: 700; color: #7a3f08; font-size: 14px; }
.fg-def { font-weight: 600; color: #2f3674; min-height: 2.8em; } .fg-five small { color: #0063ba; font-weight: 700; margin-top: 8px; } .fg-five .auto { background: #fdf3e8; border-color: #e8c9a5; }
.fg-note { background: #fdf3e8; border-left: 6px solid #d9822b; padding: 12px 18px; margin: 12px 0; border-radius: 0 8px 8px 0; line-height: 1.7; } .fg-flow { font-weight: 700; color: #2f3674; border-top: 2px solid #2f3674; padding-top: 10px; }
.fg-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; } .fg-chips div { background: #f3f6fb; border-top: 5px solid #2f3674; padding: 12px 14px; font-size: 14px; color: #3b4457; } .fg-chips b { display: block; font-size: 17px; color: #2f3674; margin-bottom: 4px; }
.fg-use { line-height: 1.9; padding-left: 22px; }

.pend-pop { position: fixed; right: 20px; top: 76px; z-index: 60; max-width: 360px; } .pend-pop[hidden] { display: none; }
.pend-pop-box { background: #fff; border: 2px solid #d9822b; border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 28px rgba(0,0,0,.22); } .pend-pop-box b { font-size: 16px; } .pend-pop-box p { margin: 8px 0 12px; line-height: 1.5; } .pend-pop-act { display: flex; gap: 8px; }

.sg-mode { border: 1px solid #dbe3f1; border-radius: 10px; padding: 12px 16px; margin: 12px 0; } .sg-mode legend { font-weight: 700; padding: 0 6px; } .sg-mode .check { display: block; margin: 8px 0; }

.ro-banner { background: #fff4d6; border-color: #e8c66a; color: #6b4a00; } .ro-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1f3a5f; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 80; font-weight: 600; } .ro-toast[hidden] { display: none; }
.ai-sitebar { display: flex; gap: 8px; align-items: center; padding: 4px 16px 0; }
.ai-sitebar:empty { display: none; }
.ai-headbtns { display: inline-flex; gap: 14px; align-items: center; }
.ai-minibar { position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; gap: 8px; align-items: center; max-width: min(560px, calc(100vw - 32px)); padding: 10px 12px; background: var(--surface); color: var(--ink); border: 2px solid var(--hold); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.ai-minibar.ok { border-color: #15803d; }
.ai-minibar.bad { border-color: #b91c1c; }
.ai-minimsg { flex: 1; font-size: 13px; line-height: 1.4; }
.ai-minibar .btn { padding: 6px 12px; white-space: nowrap; }
@media (max-width: 640px) { .ai-minibar { flex-wrap: wrap; } }
#helper-upgrade { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483600; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; background: #b91c1c; color: #fff; font-weight: 700; line-height: 1.4; box-shadow: 0 4px 16px rgba(0,0,0,.35); animation: hu-blink 1s steps(2, jump-none) infinite; }
#helper-upgrade .hu-btn { background: #fff; color: #b91c1c; padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; }
#helper-upgrade .hu-link { color: #fff; text-decoration: underline; }
body.has-helper-upgrade { padding-top: 64px; }
@keyframes hu-blink { 0%, 100% { background: #b91c1c; } 50% { background: #ef4444; } }
@media (prefers-reduced-motion: reduce) { #helper-upgrade { animation: none; } }
.df-aihead { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -4px -4px 10px; padding: 8px 12px; background: #FFF4C2; border: 1px solid #D9B100; border-radius: 8px; font-weight: 600; color: #6B5300; }
.df-card.ck-ai-block { background: #FFFDF2; outline-width: 3px; }
.df-flash { animation: df-flash 0.7s ease-in-out 3; }
@keyframes df-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,177,0,0); } 50% { box-shadow: 0 0 0 8px rgba(217,177,0,.55); } }
@media (prefers-reduced-motion: reduce) { .df-flash { animation: none; box-shadow: 0 0 0 6px rgba(217,177,0,.55); } }
.ck-row.ck-editing td { background: #E6F0FF; }
.ck-row.ck-editing .ck-n { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.25); background: #fff; }
.ck-ailist { margin: 6px 0 6px 18px; padding: 0; } .ck-ailist a { text-decoration: underline; cursor: pointer; }
.ck-aibar #ck-aiaccept, #df-aibar #df-aiaccept { margin-left: 8px; white-space: nowrap; }
