/* ===== 오류 신고 (게임 밖 운영팀에 가는 신고 앱) ===== */
.win--report .win-titlebar { background: #e8552b; color: #fff; border-bottom: none; }
.win--report:not(.is-active) .win-titlebar { background: #c98a76; color: rgba(255,255,255,0.9); }
.win--report .win-ctrl:hover { background: rgba(255,255,255,0.18); }
.win--report .win-ctrl-close:hover { background: #a3261a; }

.rp-app { display: flex; flex-direction: column; height: 100%; background: #f7f6f4; color: #1f2328; font-size: 13px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e4e1dc; }
.rp-head-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-head-brand svg { width: 30px; height: 30px; flex: 0 0 30px; }
.rp-head-name { font-weight: 700; font-size: 14px; }
.rp-head-sub { font-size: 11px; color: #7a7f87; }
.rp-head-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.rp-mode { padding: 6px 14px; font-size: 11.5px; color: #5b6472; background: #fdf3ee; border-bottom: 1px solid #f3dcd2; }
.rp-mode.is-warn { background: #fff5e0; color: #8a4b00; border-bottom-color: #f0d9a0; }
.rp-main { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 14px; }

.rp-btn { height: 30px; padding: 0 12px; border: 1px solid #c9ced6; border-radius: 4px; background: #fff; color: #1f2328; font: inherit; font-size: 12.5px; cursor: pointer; }
.rp-btn:hover { background: #f1f2f4; }
.rp-btn.is-active { border-color: #e8552b; color: #b23d17; }
.rp-btn-primary { background: #e8552b; border-color: #d64a22; color: #fff; }
.rp-btn-primary:hover { background: #d64a22; }
.rp-btn:disabled { opacity: 0.6; cursor: default; }
.rp-link { border: none; background: none; padding: 0 2px; color: #1f6f8b; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.rp-hint, .rp-dim { color: #8a9099; font-size: 12px; }
.rp-err { flex: 1 1 auto; color: #b42318; font-size: 12px; }
.rp-empty { padding: 28px 10px; text-align: center; color: #4b5563; }
.rp-empty p { margin: 0 0 8px; }
.rp-empty-sub { font-size: 12px; color: #7a7f87; max-width: 420px; margin: 0 auto 14px !important; line-height: 1.6; }

/* 상태 */
.rp-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; white-space: nowrap; background: #e5e8ec; color: #374151; }
.rp-chip.is-new { background: #e3ecf7; color: #1f4f8a; }
.rp-chip.is-wait { background: #ffe9c7; color: #8a4b00; }
.rp-chip.is-ok { background: #dcefe3; color: #1e6b3a; }
.rp-chip.is-hold { background: #e5e8ec; color: #4b5563; }
.rp-chip.is-local { background: #fff5e0; color: #8a4b00; }
.rp-kind { font-size: 11.5px; color: #6b7280; white-space: nowrap; }
.rp-at { font-size: 11px; color: #8a9099; white-space: nowrap; margin-left: auto; }

/* 목록 */
.rp-list { display: flex; flex-direction: column; gap: 6px; }
.rp-row { position: relative; display: block; width: 100%; text-align: left; padding: 10px 40px 10px 12px; border: 1px solid #e4e1dc; border-radius: 6px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.rp-row:hover { border-color: #e8552b; }
.rp-row.is-unread { border-left: 4px solid #e8552b; }
.rp-row-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-row-title { font-weight: 600; font-size: 13px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row-last { margin-top: 4px; font-size: 12px; color: #5b6472; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row-last b { color: #374151; font-weight: 600; }
.rp-row-n { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 10px; background: #eef0f3; font-size: 11px; color: #4b5563; }

/* 새 신고 */
.rp-form, .rp-thread { max-width: 760px; }
.rp-field { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: start; margin-bottom: 10px; }
.rp-field > label { padding-top: 7px; font-size: 12px; color: #4b5563; font-weight: 600; }
.rp-field > label i { color: #b42318; font-style: normal; }
.rp-field input, .rp-field select, .rp-field textarea, .rp-reply textarea { width: 100%; padding: 6px 8px; border: 1px solid #c7ccd3; border-radius: 4px; font: inherit; font-size: 12.5px; line-height: 1.5; background: #fff; box-sizing: border-box; }
.rp-field input, .rp-field select { height: 32px; }
.rp-field textarea, .rp-reply textarea { resize: vertical; }
.rp-field input:focus, .rp-field select:focus, .rp-field textarea:focus, .rp-reply textarea:focus { outline: none; border-color: #e8552b; }
.rp-opt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding-top: 6px; }
.rp-ctx { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: #4b5563; }
.rp-ctx b { color: #6b7280; font-weight: 600; margin-right: 2px; }
.rp-ctx-note { margin-top: 4px; font-size: 11px; color: #8a9099; }
.rp-ctx-detail { margin-top: 6px; padding: 8px 10px; background: #fff; border: 1px solid #e4e1dc; border-radius: 4px; font-size: 11.5px; }
.rp-ctx-sec { margin-bottom: 6px; }
.rp-ctx-sec ul { margin: 2px 0 0; padding-left: 16px; max-height: 140px; overflow: auto; }
.rp-ctx-sec li { margin: 1px 0; }
.rp-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.rp-img { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 8px; border: 1px dashed #c7ccd3; border-radius: 4px; background: #fff; font-size: 12px; color: #6b7280; }
.rp-img-empty { flex: 1 1 auto; }
.rp-img-thumb { height: 64px; max-width: 160px; object-fit: contain; border: 1px solid #e4e1dc; background: #fff; }
.rp-img-info { color: #8a9099; font-size: 11px; }
.rp-img-msg { display: block; margin-top: 3px; font-size: 11.5px; color: #b42318; }
.rp-done { margin: 0 0 10px; padding: 8px 12px; border-radius: 4px; background: #e7f4ec; color: #1e6b3a; font-size: 12.5px; }
.rp-done.is-local { background: #fff5e0; color: #8a4b00; }

/* 스레드 */
.rp-thread-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-thread-title { margin: 0; font-size: 15px; font-weight: 700; flex: 1 1 200px; min-width: 0; }
.rp-steps { margin-top: 8px; padding: 6px 10px; background: #fff; border: 1px solid #e4e1dc; border-radius: 4px; font-size: 12px; white-space: pre-wrap; }
.rp-steps b { color: #6b7280; }
.rp-ctx-line { margin-top: 8px; }
.rp-msgs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.rp-msg { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #e4e1dc; max-width: 92%; }
.rp-msg.is-user { align-self: flex-end; background: #fdf3ee; border-color: #f3dcd2; }
.rp-msg.is-ops { align-self: flex-start; background: #eef6f8; border-color: #d4e6ec; }
.rp-msg-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.rp-msg-head b { color: #374151; }
.rp-msg-body { margin-top: 4px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.rp-msg-img { margin-top: 6px; }
.rp-msg-pic { max-width: 240px; max-height: 160px; border: 1px solid #e4e1dc; background: #fff; cursor: zoom-in; }
.rp-msg-pic.is-big { max-width: 100%; max-height: none; cursor: zoom-out; }
.rp-reply { padding: 10px; background: #fff; border: 1px solid #e4e1dc; border-radius: 6px; }
.rp-reply .rp-img { margin-top: 6px; }

@media (max-width: 560px) {
  .rp-field { grid-template-columns: 1fr; gap: 3px; }
  .rp-field > label { padding-top: 0; }
  .rp-head-sub { display: none; }
}
