/* 연동·발송 (모듈 4) — 접두어 m- */
.m-page { display: flex; flex-direction: column; gap: 12px; }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.m-bal { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(135deg, #0b1533, #1e3a8a); color: #fff; box-shadow: var(--sh-2); }
.m-bal span { font-size: 12px; opacity: .75; } .m-bal b { font-size: 16px; letter-spacing: -.01em; } .m-bal .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.m-tabs { flex-wrap: wrap; } .m-tabs .tab { white-space: nowrap; }
.m-body { min-height: 0; }
.m-pad { padding: 16px; }
.m-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.m-grid > .card { padding: 14px 16px; min-width: 0; } .m-wide { grid-column: span 3; }
.m-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; } .m-two > .card { padding: 14px 16px; min-width: 0; }
.m-kpi { display: flex; flex-direction: column; gap: 4px; } .m-kpi span { font-size: 12px; color: var(--mute); font-weight: 600; }
.m-kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-kpi b.m-sm { font-size: 15px; color: var(--text); background: none; -webkit-text-fill-color: var(--text); } .m-kpi em { font-style: normal; font-size: 12px; color: var(--mute); }
.m-kpi.big { background: linear-gradient(135deg, #0b1533, #1e3a8a 60%, #0e7490); border: 0; } .m-kpi.big span, .m-kpi.big em { color: rgba(255,255,255,.75); } .m-kpi.big b { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.m-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; } .m-ch h3 { margin: 0; font-size: 14px; font-weight: 800; }
.m-mut { color: var(--mute); font-size: 12px; font-style: normal; font-weight: 500; }
.m-ok { color: var(--ok); font-weight: 700; } .m-bad { color: var(--bad); font-weight: 700; }
.m-bars { display: flex; align-items: flex-end; height: 140px; gap: 0; padding-bottom: 16px; position: relative; }
.m-bar { position: relative; height: 100%; display: flex; flex-direction: column-reverse; align-items: center; padding: 0 2px; }
.m-bar i { display: block; width: 70%; background: linear-gradient(180deg, #22d3ee, #2563eb); border-radius: 3px 3px 0 0; min-height: 0; }
.m-bar b { display: block; width: 70%; background: #f87171; border-radius: 3px 3px 0 0; }
.m-bar span { position: absolute; bottom: -16px; font-size: 10px; color: var(--mute-2); }
.m-kind { display: flex; flex-direction: column; gap: 8px; } .m-kbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.m-klg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; } .m-klg span { display: inline-flex; align-items: center; gap: 4px; } .m-klg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.k-ata { background: #fbbf24; } .k-sms { background: #3b82f6; } .k-lms { background: #22d3ee; } .k-mms { background: #a78bfa; } .k-cta, .k-cti { background: #34d399; }
.m-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); font-size: 13px; min-width: 0; }
.m-li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-li > span:last-child { flex-shrink: 0; }
.m-click { cursor: pointer; border-radius: 8px; padding: 8px 8px; } .m-click:hover { background: #eff6ff; } .m-click.on { background: #e0ecff; }
.m-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; } .m-filters .inp { height: 32px; }
.m-hist { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 360px; } .m-hist .vt { flex: 1; min-height: 0; }
.m-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-cu { color: var(--blue-500); margin-left: 4px; }
.m-err { padding: 12px; border-radius: 10px; background: #fef2f2; color: var(--bad); font-size: 13px; } .m-wait, .m-empty { padding: 24px; text-align: center; color: var(--mute); font-size: 13px; }
.m-det dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; font-size: 13px; margin: 0 0 12px; } .m-det dt { color: var(--mute); } .m-det dd { margin: 0; } .m-det a { color: var(--blue-500); cursor: pointer; margin-left: 6px; }
.m-mono { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; word-break: break-all; }
.m-pre, .m-bubble pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.6; margin: 0; }
.m-pre { background: var(--surface-2); padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.m-list { max-height: calc(100vh - 260px); overflow: auto; }
.m-bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--sh-1); max-width: 380px; }
.m-bubble.ata { background: #fffbe6; border-color: #fde68a; } .m-bh { font-size: 12px; font-weight: 800; color: #92400e; margin-bottom: 8px; }
.m-bbtn { margin-top: 8px; padding: 8px; text-align: center; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 600; }
.m-send { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.m-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .m-pv { position: sticky; top: 0; align-self: start; }
.m-seg { display: flex; gap: 6px; } .m-lb { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-top: 6px; } .m-lb em { margin-left: 6px; }
.m-full { width: 100%; box-sizing: border-box; } .m-ta { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; font-family: inherit; }
.m-vars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .m-vars label, .m-g2 label, .m-full-l { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); } .m-vars .inp { width: 100%; box-sizing: border-box; }
.m-pick { position: relative; } .m-hits { position: absolute; z-index: 5; left: 0; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 4px; }
.m-hits button { display: flex; width: 100%; gap: 6px; align-items: baseline; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; } .m-hits button:hover { background: #eff6ff; } .m-hits span { margin-left: auto; color: var(--mute); font-size: 12px; }
.m-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 110px; overflow: auto; } .m-chips i { font-style: normal; cursor: pointer; margin-left: 4px; opacity: .6; } .m-chips i:hover { opacity: 1; }
.m-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.m-prog { position: relative; height: 26px; border-radius: 8px; background: var(--line-2); overflow: hidden; } .m-prog i { position: absolute; inset: 0 auto 0 0; background: var(--grad); } .m-prog span { position: relative; font-size: 12px; line-height: 26px; padding-left: 10px; font-weight: 700; }
.m-ask { border: 1px solid #bcd0ff; background: #f0f6ff; border-radius: 12px; padding: 12px 14px; } .m-ask p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.m-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; } .m-tb th { text-align: left; color: var(--mute); font-weight: 700; padding: 6px; border-bottom: 1px solid var(--line); } .m-tb td { padding: 6px; border-bottom: 1px solid var(--line-2); }
.m-sw { position: relative; display: inline-block; width: 34px; height: 20px; margin-right: 8px; vertical-align: middle; } .m-sw input { opacity: 0; width: 0; height: 0; }
.m-sw i { position: absolute; inset: 0; border-radius: 10px; background: #cbd5e1; transition: background var(--t); cursor: pointer; } .m-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.m-sw input:checked + i { background: var(--grad); } .m-sw input:checked + i::after { transform: translateX(14px); }
.m-rule-ed { padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.m-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.m-modal { width: min(920px, 92vw); max-height: 86vh; overflow: auto; padding: 0 20px 18px; box-sizing: border-box; }
.m-mh { position: sticky; top: 0; z-index: 2; margin: 0 -20px 14px; padding: 16px 20px 12px; background: linear-gradient(135deg, #0b1533, #1e3a8a 70%, #0e7490); color: #fff; }
.m-mh h3 { margin: 0; font-size: 16px; } .m-mh .m-mut { color: rgba(255,255,255,.75); margin: 4px 0 0; }
.m-form { display: flex; flex-direction: column; gap: 8px; } .m-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .m-g2 .inp, .m-full-l .inp { width: 100%; box-sizing: border-box; }
.m-checks { display: flex; flex-direction: column; gap: 6px; } .m-row { display: flex; gap: 8px; align-items: center; } .m-row .inp { min-width: 0; }
.m-fs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .m-fs legend { font-size: 12.5px; font-weight: 800; color: var(--navy-600); padding: 0 4px; }
.m-sum { font-size: 13.5px; margin: 6px 0; }
.m-steps { display: flex; flex-direction: column; gap: 10px; } .m-step { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; opacity: .55; }
.m-step > b { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--mute); font-size: 13px; }
.m-step h4 { margin: 2px 0 4px; font-size: 14px; } .m-step p { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.m-step.on { opacity: 1; border-color: #93c5fd; background: #f0f7ff; box-shadow: 0 0 0 3px rgba(59,130,246,.12); } .m-step.on > b { background: var(--grad); color: #fff; }
.m-step.done { opacity: 1; } .m-step.done > b { background: #d1fae5; color: var(--ok); }
.m-res { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; } .m-res h4 { margin: 0 0 6px; }
@media (max-width: 1100px) { .m-grid { grid-template-columns: 1fr 1fr; } .m-wide { grid-column: span 2; } .m-two, .m-send { grid-template-columns: 1fr; } }
