/* 오픈카톡 콘솔 공통 — 기준판: 위드바나나블로그 글 쓰기 · 가볍게(굵기 500~600, 테 1px) */
:root {
  --ink: #14254b; --ink-2: #2b3a5e; --yel: #f5c400; --yel-soft: #fff7d1;
  --line: #e6e8ef; --bg: #f6f7fa; --white: #ffffff; --text: #4a5568; --muted: #8a93a6;
  --ok: #1f7a4d; --ok-soft: #e8f5ee; --stop: #b42318; --stop-soft: #fdecea;
  --r: 16px; --r-s: 10px; --press: 44px; --w: 1120px; --left: 760px; --right: 336px;
  --font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); }

/* 흰 고정 머리 */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.top .in { max-width: var(--w); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 17px; text-decoration: none; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--yel); display: inline-block; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.nav a.on { color: var(--ink); background: var(--bg); font-weight: 600; }
.top .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--ink); white-space: nowrap; }
.pill.y { background: var(--yel); border-color: var(--yel); }
.pill.off { color: var(--muted); background: var(--bg); }
.pill.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.pill.stop { color: var(--stop); background: var(--stop-soft); border-color: transparent; }

/* 본문 틀 */
.wrap { max-width: var(--w); margin: 0 auto; padding: 28px 8px 80px; }
.steps { display: flex; gap: 12px; margin: 0 0 24px; }
.steps .s { flex: 1; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.steps .s b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--bg); color: var(--muted); }
.steps .s.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .s.on b { background: var(--yel); color: var(--ink); }
.steps .s.done { color: var(--ink); }
.steps .s.done b { background: var(--yel-soft); color: var(--ink); }
.grid { display: grid; grid-template-columns: var(--left) var(--right); gap: 24px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.panel + .panel { margin-top: 16px; }
.q { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--ink); font-size: 20px; font-weight: 600; }
.q .n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.sub { color: var(--muted); font-size: 14px; margin: -12px 0 20px 44px; }
h2.side { font-size: 16px; color: var(--ink); font-weight: 600; margin: 0 0 14px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { color: var(--ink); font-weight: 600; }
.foot { display: flex; justify-content: flex-end; margin-top: 20px; }

/* 단추 · 입력 */
.btn { height: var(--press); padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 15px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn.y { background: var(--yel); border-color: var(--yel); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.in-text, textarea, select { width: 100%; height: var(--press); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 15px var(--font); color: var(--ink); background: #fff; }
textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
label.l { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }

/* 카드 — 한 줄 3개 같은 규격 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 148px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.card h3 { margin: 0; font-size: 17px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.card p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.card .big { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.card.pick { cursor: pointer; }
.card.pick:hover, .card.sel { border-color: var(--ink); }
.card .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.tag.y { background: var(--yel-soft); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.stop { background: var(--stop-soft); color: var(--stop); }

/* 끌어 놓기 칸 */
.drop { border: 1.5px dashed #c9cfdc; border-radius: 14px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); background: #fbfcfe; text-align: center; padding: 24px; }
.drop.over { border-color: var(--ink); background: var(--yel-soft); }
.drop strong { color: var(--ink); font-size: 17px; font-weight: 600; }

/* 표 */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
table.t tr:hover td { background: #fafbfd; }

/* 띠 · 알림 */
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 0 0 16px; }
.bar i { display: block; height: 100%; width: 40%; background: var(--yel); animation: run 1.2s ease-in-out infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.note { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin: 0 0 16px; }
.note.stop { background: var(--stop-soft); color: var(--stop); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.info { background: var(--bg); color: var(--ink-2); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; font-weight: 600; }

/* 가운데 위 큰 판 (초안 · AI 제안) */
.hero { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; margin: 0 0 24px; }
.hero .who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero .why { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero textarea { font-size: 16px; min-height: 180px; }
.hero .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; }
