/* 수정요청 보드 (work.commercepro.kr/workppt) */
:root {
  --bg: #f3f4f7; --card: #fff; --line: #e1e4ea; --ink: #1c2230; --sub: #6b7385; --pri: #3b5bdb; --pri-d: #2f4ac0;
  --req: #e03131; --doing: #1971c2; --ask: #e8890c; --done: #2f9e44; --hold: #868e96; --manual: #7048e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.sp { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; white-space: nowrap; font-weight: 600; }
.btn:hover { background: #f6f7fa; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-d); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: #444c5e; flex: none; }
.ib:hover { background: #e9ecf3; }
.loading, .empty { padding: 80px 20px; text-align: center; color: var(--sub); }
.empty { grid-column: 1 / -1; }
.empty p { margin: 0 0 16px; }

/* ---------- 첫 화면: 업체 목록 ---------- */
.list { max-width: 1180px; margin: 0 auto; padding: 36px 20px 80px; }
.lhead { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.lhead > div:first-child { flex: 1; min-width: 260px; }
.lhead h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.5px; }
.lhead p { margin: 0; color: var(--sub); line-height: 1.5; }
.lact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { height: 36px; width: 200px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { position: relative; display: block; padding: 18px 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: #b9c2e8; box-shadow: 0 6px 20px rgba(40, 60, 140, .1); }
.ctop { display: flex; align-items: center; gap: 6px; }
.ctop strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock { color: #a0a7b6; display: inline-flex; }
.lock svg { width: 15px; height: 15px; }
.site { margin-top: 3px; color: var(--sub); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 12px; }
.chip { padding: 3px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--hold); }
.chip.zero { background: #eef0f4 !important; color: #a3a9b6; font-weight: 500; }
.chip.st-req, .seg .st-req.on { background: var(--req); }
.chip.st-doing, .seg .st-doing.on { background: var(--doing); }
.chip.st-ask, .seg .st-ask.on { background: var(--ask); }
.chip.st-done, .seg .st-done.on { background: var(--done); }
.chip.st-hold, .seg .st-hold.on { background: var(--hold); }
.chip.st-manual, .seg .st-manual.on { background: var(--manual); }
.cfoot { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid #eef0f4; color: var(--sub); font-size: 12px; }
.cadm { position: absolute; top: 10px; right: 8px; display: flex; }
.cadm .ib { width: 28px; height: 28px; }

/* ---------- 모달 · 알림 ---------- */
#modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20, 26, 40, .45); align-items: center; justify-content: center; padding: 16px; }
#modal.on { display: flex; }
.box { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.box h2 { margin: 0 0 6px; font-size: 19px; }
.box .desc { margin: 0 0 14px; color: var(--sub); line-height: 1.5; font-size: 13px; }
.box label { display: block; margin-top: 12px; }
.box label span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #444c5e; }
.box input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.box input:focus, .search:focus, .panel textarea:focus, .ptitle:focus { outline: 2px solid #b9c5f5; border-color: var(--pri); }
.box .err { min-height: 18px; margin: 10px 0 0; color: var(--req); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 22px; background: rgba(28, 34, 48, .92); color: #fff; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 덱 화면 ---------- */
.pg-deck { overflow: hidden; }
.deck { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.dname { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save.bad { color: var(--req); }
.tools { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 5px 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.tg { display: flex; align-items: center; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line); flex: none; }
.tg:last-child { border-right: 0; }
.tg:empty { display: none; }
.tb { display: inline-flex; align-items: center; gap: 5px; height: 34px; min-width: 34px; width: auto; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; white-space: nowrap; font-size: 13px; color: #333a4a; }
.tb:hover { background: #eef0f5; }
.tb.on { background: #e3e8fb; color: var(--pri-d); font-weight: 700; }
.sw { width: 22px; height: 22px; margin: 0 2px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; padding: 0; flex: none; }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pri); }
.body { flex: 1; display: flex; min-height: 0; }
.side { width: 196px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.sidehead { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid #eef0f4; }
.filter { height: 32px; min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 4px; }
.thumbs { flex: 1; overflow-y: auto; padding: 10px 10px 30px; }
.thumb { --tw: 148px; position: relative; display: grid; grid-template-columns: 20px var(--tw); column-gap: 6px; margin-bottom: 12px; cursor: pointer; }
.thumb .no { grid-row: 1 / 3; font-size: 12px; color: var(--sub); text-align: right; padding-top: 2px; }
.mini { position: relative; width: var(--tw); height: calc(var(--tw) * .5625); overflow: hidden; background: #fff; border: 1px solid #cfd4de; border-radius: 4px; }
.thumb.on .mini { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri); }
.mini-in { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform: scale(.115625); transform-origin: 0 0; pointer-events: none; }
.thumb.st-done .mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--done) calc(50% - 1.5px), var(--done) calc(50% + 1.5px), transparent calc(50% + 1.5px)), rgba(255, 255, 255, .45); }
.tst { grid-column: 2; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--hold); }
.tmc { position: absolute; right: 0; bottom: 0; font-size: 11px; color: var(--sub); }
.thumb.st-req .tst { color: var(--req); } .thumb.st-doing .tst { color: var(--doing); } .thumb.st-ask .tst { color: var(--ask); } .thumb.st-done .tst { color: var(--done); } .thumb.st-manual .tst { color: var(--manual); }
.wrap { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #e9ebf0; }
.holder { position: relative; flex: none; background: #fff; box-shadow: 0 2px 14px rgba(20, 30, 60, .16); }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; --inv: 1; }
.stage.tool-text { cursor: text; }
.stage.tool-rect, .stage.tool-oval, .stage.tool-arrow { cursor: crosshair; }
.el { position: absolute; }
.el.img img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.el.text { padding: 4px 8px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; border-radius: 4px; }
.el.text.editing { outline: calc(2px * var(--inv)) solid var(--pri); user-select: text; -webkit-user-select: text; cursor: text; min-width: 60px; }
.el.arrow { left: 0; top: 0; overflow: visible; pointer-events: none; }
.tool-select .el { cursor: move; }
.selbox { position: absolute; z-index: 99999999; outline: calc(1.5px * var(--inv)) solid var(--pri); pointer-events: none; }
.selbox.line { left: 0; top: 0; outline: 0; }
.selbox i { position: absolute; width: calc(12px * var(--inv)); height: calc(12px * var(--inv)); margin: calc(-6px * var(--inv)) 0 0 calc(-6px * var(--inv)); background: #fff; border: calc(1.5px * var(--inv)) solid var(--pri); border-radius: 50%; pointer-events: auto; touch-action: none; }
.h-nw { left: 0; top: 0; cursor: nwse-resize; } .h-n { left: 50%; top: 0; cursor: ns-resize; } .h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.h-e { left: 100%; top: 50%; cursor: ew-resize; } .h-se { left: 100%; top: 100%; cursor: nwse-resize; } .h-s { left: 50%; top: 100%; cursor: ns-resize; }
.h-sw { left: 0; top: 100%; cursor: nesw-resize; } .h-w { left: 0; top: 50%; cursor: ew-resize; }
.selbox.line i { cursor: crosshair; }
.stamp { position: absolute; right: 24px; top: 20px; z-index: 99999990; padding: 6px 18px; border: 4px solid var(--done); border-radius: 8px; color: var(--done); font-size: 30px; font-weight: 800; transform: rotate(8deg); background: rgba(255, 255, 255, .85); pointer-events: none; }
.hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 180px; text-align: center; color: #9aa1b0; pointer-events: none; }
.hint b { font-size: 34px; color: #7d8597; }
.hint span { font-size: 22px; line-height: 1.5; }

.panel { width: 320px; flex: none; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); min-height: 0; }
.phead { display: flex; align-items: center; gap: 2px; padding: 8px 8px 8px 14px; border-bottom: 1px solid #eef0f4; color: var(--sub); }
.pno { color: var(--ink); }
.psec { padding: 12px 14px; border-bottom: 1px solid #eef0f4; }
.psec.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; border-bottom: 0; }
.plabel { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: var(--sub); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; min-width: 0; height: 34px; padding: 0 2px; border: 0; border-right: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 12px; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button.on { color: #fff; font-weight: 700; }
.prow { display: flex; gap: 6px; margin-top: 8px; }
.pkd, .ptitle { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; min-width: 0; }
.ptitle { flex: 1; }
.thread { flex: 1; overflow-y: auto; min-height: 60px; margin: 0 -4px; padding: 0 4px; }
.thread .none { color: #9aa1b0; line-height: 1.6; font-size: 13px; margin: 6px 0; }
.msg { margin-bottom: 10px; padding: 9px 11px; border-radius: 10px; background: #f3f4f7; }
.msg.r-staff { background: #e8edff; }
.msg.r-ai { background: #e6f6ea; }
.mh { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.mh .role { padding: 1px 6px; border-radius: 10px; background: rgba(0, 0, 0, .08); font-size: 11px; font-weight: 700; }
.r-ai .role { background: var(--done); color: #fff; }
.r-staff .role { background: var(--pri); color: #fff; }
.mh time { color: var(--sub); margin-left: auto; }
.mdel { border: 0; background: transparent; cursor: pointer; color: var(--sub); font-size: 15px; line-height: 1; padding: 0 2px; }
.msg p { margin: 5px 0 0; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; line-height: 1.5; }
.pwrite { padding: 10px 14px 12px; border-top: 1px solid #eef0f4; }
.pwrite textarea { display: block; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 64px; line-height: 1.45; }
.who { font-size: 12px; color: var(--sub); }

/* ---------- 폰 ---------- */
@media (max-width: 860px) {
  .pg-deck { overflow: auto; }
  .deck { height: auto; min-height: 100vh; }
  .top { position: sticky; top: 0; z-index: 50; }
  .top .btn span, .tb span { display: none; }
  .body { flex-direction: column; }
  .side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidehead { padding: 8px 10px; }
  .filter { flex: none; width: 96px; }
  .sidehead .btn span { display: inline; }
  .thumbs { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; }
  .thumb { --tw: 96px; grid-template-columns: var(--tw); margin: 0; flex: none; }
  .thumb .no { position: absolute; left: 4px; top: 3px; z-index: 2; padding: 0 5px; background: rgba(28, 34, 48, .7); color: #fff; border-radius: 8px; font-size: 10px; }
  .mini-in { transform: scale(.075); }
  .tst { grid-column: 1; }
  .tmc { display: none; }
  .wrap { flex: none; padding: 8px 0; }
  .panel { width: auto; border-left: 0; border-top: 1px solid var(--line); }
  .thread { max-height: 46vh; }
  .list { padding: 22px 14px 60px; }
  .lhead h1 { font-size: 22px; }
  .search { flex: 1; width: auto; min-width: 120px; }
}

/* ---------- 영상 · 글자 크기 · 날짜 · 불러오기 · AI처리 ---------- */
.el.video { background: #14181f; overflow: hidden; }
.el.video img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.vname { position: absolute; left: 12px; top: 10px; color: #aeb6c6; font-size: 20px; font-weight: 700; pointer-events: none; }
.vplay { position: absolute; left: 50%; top: 50%; width: 88px; max-width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); cursor: pointer; }
.vplay svg { display: block; width: 100%; height: 100%; }
#modal.vid { background: rgba(10, 12, 18, .86); }
.vbox { display: flex; flex-direction: column; gap: 10px; max-width: min(1200px, 96vw); }
.vbox video { display: block; max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); background: #000; border-radius: 8px; }
.vbar { display: flex; justify-content: flex-end; gap: 8px; }
.tlabel { padding: 0 4px 0 6px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.fsel { height: 32px; width: 64px; padding: 0 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; cursor: pointer; }
.wrap { flex-direction: column; gap: 10px; }
.sdate { flex: none; height: 20px; line-height: 20px; font-size: 12px; color: var(--sub); white-space: pre; }
.tdt { grid-column: 2; margin-top: 1px; font-size: 10px; color: #99a0af; white-space: nowrap; }
.btn.wide { width: 100%; justify-content: center; height: 42px; }
.box .desc.sm { margin: 6px 0 10px; font-size: 12px; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: #a0a7b6; font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.impstate { min-height: 18px; margin: 10px 0 0; color: var(--pri); font-size: 13px; font-weight: 600; }
.btn.ai { border-color: #c9b8f5; color: #5f3dc4; background: #f6f2ff; }
.btn.ai:hover { background: #ede5ff; }
.aibox { max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.aibox h2 { display: flex; align-items: center; gap: 6px; color: #5f3dc4; }
.aistat { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f3f4f7; }
.aistat .on, .aistat .off { margin-left: auto; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--done); }
.aistat .off { background: var(--hold); }
.ainote { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--ask); }
.aijob { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--doing); border-radius: 8px; }
.aijob.st-D { border-left-color: var(--done); } .aijob.st-E { border-left-color: var(--req); } .aijob.st-X, .aijob.st-Q { border-left-color: var(--hold); }
.aijob b { display: block; }
.aijob span { font-size: 12px; color: var(--sub); }
.aijob p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.aiitems { margin-top: 10px; overflow-y: auto; min-height: 60px; flex: 1; }
.aiitem { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid #eef0f4; }
.aiitem:hover { background: #f8f9fc; }
.aiitem .chip { flex: none; margin-top: 1px; }
.aiitem div { min-width: 0; }
.aiitem b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiitem p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: var(--sub); white-space: pre-wrap; word-break: break-word; }
.ailog { margin-top: 10px; max-height: 120px; overflow-y: auto; padding: 8px 10px; border-radius: 8px; background: #1c2230; color: #c9d1e3; font-size: 12px; line-height: 1.6; flex: none; }
.ailog time { color: #7f8aa3; }
@media (max-width: 860px) {
  .tdt, .tlabel { display: none; }
  .sdate { white-space: normal; height: auto; padding: 0 10px; text-align: center; }
}
.btn.pai { margin-top: 8px; height: 36px; }
/* WP261010_HCJ_AIOK : AI 처리 승인 */
.btn.pok { margin-top: 8px; height: 36px; }
.btn.pok.on { background: #e8f7ee; border-color: #8fd3a8; color: #1b7a3d; font-weight: 600; }
.aimemo { display: block; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid #c9b8f5; border-radius: 10px; resize: vertical; min-height: 84px; line-height: 1.5; flex: none; }
.aimemo:focus { outline: 2px solid #d9cdfa; border-color: #7950f2; }
.aijob p.aiq { padding: 8px 10px; border-radius: 8px; background: #f6f2ff; color: #3b2a80; white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow-y: auto; }
.aiitem.free:hover { background: transparent; }
.aiitem.free p { color: var(--ink); font-size: 13px; }

/* 상태 줄 옆 [AI로그] + AI 작업로그 창 (관리자만) */
.strow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.strow .seg { flex: 1 1 200px; min-width: 0; }
.ailgbtn { flex: none; padding: 0 8px; height: 34px; border: 1px solid #d9d2f2; border-radius: 8px; background: #f6f2ff; color: #5f3dc4; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ailgbtn:hover { background: #ede6ff; }
.ailgbtn.zero { border-color: var(--line); background: #fff; color: #a3a9b6; font-weight: 500; }
.ailgbox { max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.ailgbox h2 { display: flex; align-items: center; gap: 6px; color: #5f3dc4; }
.ailgitems { margin: 6px 0 10px; overflow-y: auto; flex: 1; min-height: 60px; }
.ailgitem { padding: 10px 0; border-top: 1px solid #eef0f4; }
.ailgh { display: flex; align-items: center; gap: 8px; }
.ailgh time { font-size: 12px; color: var(--sub); }
.ailgh b { font-size: 12px; color: var(--sub); font-weight: 600; }
.ailgd { margin: 6px 0 0; font-size: 12px; color: var(--sub); }
.ailgq { margin: 6px 0 0; padding: 7px 9px; border-radius: 8px; background: #f6f2ff; color: #3b2a80; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 110px; overflow-y: auto; }
.ailgn { margin: 6px 0 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* WP261018_PRO4_AICRIT AI처리 기준 */
.aicrit{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 10px}
.aicg{border:1px solid #e3e6ee;border-radius:10px;padding:9px 11px;font-size:12.5px;line-height:1.5}
.aicg b{display:block;font-size:13px;margin-bottom:2px}
.aicg p{margin:0 0 4px;color:#667085}
.aicg ul{margin:0;padding-left:16px}
.aicg.free{background:#f0faf3;border-color:#cdebd6}.aicg.free b{color:#1f8a46}
.aicg.need{background:#fdf6ec;border-color:#f1dcb8}.aicg.need b{color:#b4690e}
@media (max-width:560px){.aicrit{grid-template-columns:1fr}}

/* WP261018_PRO4_AIFIT AI처리 창이 화면보다 길어 닫기·시작 버튼이 가려지던 것 — 기준 상자 압축, 넘치면 창 안에서 스크롤, 버튼 줄은 아래 고정 */
.aibox { overflow-y: auto; padding: 20px 22px 0; }
.aibox h2 { margin-bottom: 4px; }
.aibox .desc { margin-bottom: 10px; font-size: 12.5px; line-height: 1.45; }
.aicrit { flex: none; gap: 6px; margin: 0 0 8px; }
.aicg { padding: 7px 10px; font-size: 12px; line-height: 1.4; }
.aicg b { font-size: 12.5px; margin-bottom: 1px; }
.aicg p { margin-bottom: 3px; font-size: 11.5px; }
.aicg ul { display: flex; flex-wrap: wrap; gap: 2px 5px; padding: 0; list-style: none; }
.aicg li { padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.06); }
.aiitems { min-height: 48px; }
.ailog { max-height: 90px; }
.aimemo { min-height: 64px; margin-top: 10px; }
.aibox .err { min-height: 0; margin-top: 6px; }
.aibox > .row { position: sticky; bottom: 0; flex: none; background: #fff; padding: 10px 0 18px; margin-top: 0; }
