/* ================================================================
   JCI Admin — 마켓 운영 (마켓 M6 · 관리자 웹 화면설계서 화면 19)
   ----------------------------------------------------------------
   ⚠ 이 파일의 모든 규칙은 뿌리 클래스 .mops 아래에만 둔다(admin.css 수정 금지 — 지시서 16 M6 §3-10).
     숨김 스위치(admin-app.js window.JC_MARKET_WEB · mktWebEnabled())가 꺼져 있으면 화면에 .mops 요소가
     생기지 않으므로 이 파일은 아무 효과가 없다. body · 창 자리에 붙는 것(창 · 확인 창 · 실패 토스트)도 .mops 를 달고 나온다.
     (@keyframes mops-spin 은 이름만 정의 — .mops 안에서만 쓴다)
   ⚠ 색 = admin.css 토큰 var(--c-*) 뿐 — 옅은 바탕은 토큰을 섞어(color-mix) 만든다. 경고 = --c-warning + 그림 + 글자(빨강 없음).
   · 화면 틀 · 탭 · 카드 · 단추 · 표 치수 = 마켓 승인(market-review.css)과 같게 · 모양 = 확정 시안 S3-09 · S3-10.
   ================================================================ */

.mops {
    /* 한글은 어절 단위로만 줄바꿈(사장님 절대 규칙 09-13 · 14) */
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.mops [hidden] { display: none !important; }

/* 화면 읽기 프로그램에만 읽히는 글자 */
.mops .mops-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 작은 그림(장식 — 뜻은 옆 글자가 전한다) ---------- */
.mops .mops-ic {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* 처리 중 — 누른 단추만 작은 로딩 */
.mops .mops-busy { position: relative; }
.mops .mops-busy::after {
    content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 6px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: mops-spin .7s linear infinite; vertical-align: -1px;
}
@keyframes mops-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .mops .mops-busy::after { animation: none; border-right-color: currentColor; opacity: .5; }
}

/* 키보드 초점 */
.mops :is(button, a, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.mops :is(h3, h4)[tabindex="-1"]:focus,
.mops .mops-err[tabindex="-1"]:focus { outline: none; }
.mops :is(h3, h4)[tabindex="-1"]:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------- 화면 틀 · 탭 4(마켓 승인 .mkt-rv-tabs 와 같은 치수) ---------- */
.mops.mops-page { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mops .mops-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--c-border); margin-top: -6px; }
.mops .mops-tab {
    position: relative; height: 50px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
    border: 0; background: none; color: var(--c-text-sub); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    white-space: nowrap;
}
.mops .mops-tab:hover { color: var(--c-text); }
.mops .mops-tab.mops-on { color: var(--c-text); font-weight: 700; }
.mops .mops-tab.mops-on::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
    background: var(--c-primary);
}
.mops .mops-tcount {
    display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--c-primary) 9%, var(--c-bg-card)); color: var(--c-primary);
    font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}

/* 카드 · 단추(마켓 승인 .mkt-rv-card · .mkt-rv-btn 과 같은 치수) */
.mops .mops-card { min-width: 0; background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: 12px; }
.mops .mops-btn {
    min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-card); color: var(--c-text);
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
    white-space: nowrap;
}
.mops .mops-btn .mops-ic { width: 17px; height: 17px; }
.mops .mops-btn:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.mops .mops-btn.mops-btn-pri { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-bg-card); }
.mops .mops-btn.mops-btn-pri:hover:not(:disabled) { background: var(--c-primary-hover); border-color: var(--c-primary-hover); color: var(--c-bg-card); }
.mops .mops-btn.mops-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.mops .mops-btn.mops-btn-ic { width: 34px; padding: 0; }
.mops .mops-btn:disabled { opacity: .5; cursor: not-allowed; }
.mops .mops-ibtn {
    width: 36px; height: 36px; padding: 0; display: grid; place-items: center; flex: none;
    border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-card); color: var(--c-text-sub); cursor: pointer;
}
.mops .mops-ibtn .mops-ic { width: 18px; height: 18px; }
.mops .mops-ibtn:hover { border-color: var(--c-primary); color: var(--c-primary); }

.mops .mops-muted { color: var(--c-text-sub); }
.mops .mops-note { font-size: 14px; line-height: 1.5; color: var(--c-text-sub); }
.mops .mops-cnt { font-size: 15px; font-weight: 600; color: var(--c-text-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 경고(경고 토큰 + 그림 + 글자 — 색만으로 가르지 않음 · 빨강 없음) */
.mops .mops-warn { display: inline-flex; align-items: flex-start; gap: 4px; color: var(--c-warning); font-weight: 700; }
.mops .mops-warn .mops-ic { width: 15px; height: 15px; margin-top: 2px; }
.mops .mops-warn > span { min-width: 0; }

/* 칸 · 동작 실패 한 줄(칸 바로 아래 — 스낵바 아님) */
.mops .mops-err { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--c-warning); }
.mops .mops-err:empty { display: none; }
.mops .mops-err .mops-ic { width: 16px; height: 16px; margin-top: 2px; }
.mops .mops-help { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--c-text-sub); }

/* ---------- 위 줄(걸러 보기 · 안내 · 개수 · 새로 고침) ---------- */
.mops .mops-tbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 16px 20px 12px 24px; }
.mops .mops-tbar .mops-note { flex: 1 1 260px; min-width: 0; }
.mops .mops-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mops .mops-chip {
    min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg-card); color: var(--c-text-sub);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.mops .mops-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.mops .mops-chip[aria-pressed="true"],
.mops .mops-chip[aria-pressed="true"]:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-bg-card); }
.mops .mops-chip-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.mops .mops-chip-n:empty { display: none; }

/* ---------- 표(마켓 승인 표와 같은 규칙 — 관리자웹 공통 표 규칙을 이 표에서만 다시 정함) ---------- */
.mops .mops-tw { overflow-x: auto; border-top: 1px solid var(--c-border); border-radius: 0 0 12px 12px; }
/* 표 칸은 overflow-wrap: anywhere 를 쓰지 않는다 — 칸 최소 폭이 글자 하나로 줄어 어절 중간에서 끊긴다(마켓 승인 10-12 실측) */
.mops .mops-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.mops .mops-table thead th {
    padding: 10px 10px; border-top: 0; border-bottom: 1px solid var(--c-border); background: transparent;
    color: var(--c-text-sub); font-size: 13px; font-weight: 600; letter-spacing: 0; text-align: left; white-space: nowrap;
}
.mops .mops-table tbody td {
    padding: 12px 10px; border-bottom: 1px solid var(--c-border); background: transparent;
    color: var(--c-text); font-size: 14px; line-height: 1.45; vertical-align: top;
}
.mops .mops-table thead th:first-child,
.mops .mops-table tbody td:first-child { padding-left: 20px; }
.mops .mops-table thead th:last-child,
.mops .mops-table tbody td:last-child { padding-right: 20px; }
.mops .mops-table tbody tr:last-child td { border-bottom: 0; }
.mops .mops-table tbody tr:hover { background: var(--c-primary-bg); }
.mops .mops-table tbody tr.mops-row { cursor: pointer; }
.mops .mops-rowbtn {
    padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--c-text);
    text-align: left; cursor: pointer;
}
.mops .mops-rowbtn:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.mops .mops-clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.mops .mops-c-sub { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--c-text-sub); }
.mops .mops-c-strong { font-weight: 700; color: var(--c-text); }
.mops .mops-c-thumb { width: 1%; }
.mops .mops-c-nw { white-space: nowrap; }
.mops .mops-c-title { min-width: 150px; }
.mops .mops-c-reason { min-width: 120px; }
.mops .mops-c-due { white-space: nowrap; }
.mops .mops-c-prog { white-space: nowrap; }
.mops .mops-c-act { width: 1%; white-space: nowrap; text-align: right; }
.mops .mops-c-flag { width: 1%; white-space: nowrap; }
.mops .mops-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mops .mops-table thead th.mops-num { text-align: right; }
.mops .mops-prog-sub { display: block; white-space: nowrap; }
.mops .mops-due { display: block; }
.mops .mops-due + .mops-due { margin-top: 2px; font-size: 13.5px; }
.mops .mops-same { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--c-text-sub); }
.mops .mops-same .mops-ic { width: 14px; height: 14px; }
.mops .mops-diff { font-weight: 800; }

/* 사진 4:3 작게 */
.mops .mops-thumb {
    position: relative; display: block; flex: none; width: 64px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px;
    background: var(--c-primary-bg); color: var(--c-text-hint);
}
.mops .mops-thumb.mops-thumb-sm { width: 48px; border-radius: 4px; }
.mops .mops-thumb.mops-thumb-lg { width: 96px; border-radius: 8px; }
.mops .mops-thumb > .mops-ic { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; stroke-width: 1.6; }
.mops .mops-thumb > img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.mops img.mops-img-bad { visibility: hidden; }

.mops .mops-more { display: flex; justify-content: center; padding: 14px 20px 18px; border-top: 1px solid var(--c-border); }

/* 빈 상태 · 오류(빨강 · 공포 톤 없이) */
.mops .mops-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 24px; text-align: center;
    border-top: 1px solid var(--c-border);
}
.mops .mops-empty > .mops-ic { width: 30px; height: 30px; margin-bottom: 4px; color: var(--c-text-hint); stroke-width: 1.6; }
.mops .mops-empty b { font-size: 15px; font-weight: 700; color: var(--c-text); }
.mops .mops-empty span { font-size: 14px; color: var(--c-text-sub); }
.mops .mops-empty .mops-btn { margin-top: 10px; }
.mops .mops-set-c .mops-empty { border-top: 0; padding: 28px 8px; }

/* 상태 = 색점 + 글자 */
.mops .mops-st { font-size: 14px; font-weight: 600; color: var(--c-text); }
.mops .mops-st::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
    background: var(--c-text-hint); vertical-align: 2px;
}
.mops .mops-st.mops-st-ok::before { background: var(--c-success); }
.mops .mops-st.mops-st-warn::before { background: var(--c-warning); }
.mops .mops-st.mops-st-pri::before { background: var(--c-primary); }
.mops .mops-ttable td:nth-child(3) { white-space: nowrap; }

/* ---------- [주제 묶음] 머리 ---------- */
.mops .mops-sec-h { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; padding: 18px 20px 6px 24px; }
.mops .mops-sec-t { flex: 1 1 360px; min-width: 0; }
.mops .mops-sec-t h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--c-text); }
.mops .mops-sec-t .mops-note { margin-top: 4px; }
.mops .mops-sec-r { display: flex; align-items: center; gap: 8px; }
.mops .mops-rule { padding: 4px 24px 14px; font-size: 13.5px; line-height: 1.55; color: var(--c-text-sub); }

/* ---------- [노출 점검] ---------- */
.mops .mops-ex-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; padding: 18px 20px 14px 24px; }
.mops .mops-ex-sel { flex: none; }
.mops .mops-ex-desc { flex: 1 1 380px; min-width: 0; padding-top: 2px; font-size: 14px; line-height: 1.6; color: var(--c-text-sub); }
.mops .mops-ex-sum { margin-top: 4px; font-weight: 700; color: var(--c-text); }
.mops .mops-ex-sum:empty { display: none; }
.mops .mops-foot-help { padding: 12px 24px 16px; border-top: 1px solid var(--c-border); font-size: 13px; line-height: 1.55; color: var(--c-text-sub); }

/* ---------- [설정] 카드(M7 이 같은 줄에 카드 2개를 더함) ---------- */
.mops .mops-set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) {
    .mops .mops-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mops .mops-set-c { display: flex; flex-direction: column; padding: 22px 22px 20px; }
.mops .mops-set-c h3 { font-size: 16.5px; font-weight: 700; line-height: 1.4; color: var(--c-text); }
.mops .mops-set-form { display: flex; flex-direction: column; flex: 1; }
.mops .mops-set-num { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mops .mops-set-unit { font-size: 14px; color: var(--c-text-sub); white-space: nowrap; }
.mops .mops-set-sub { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--c-text-sub); }
.mops .mops-set-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mops .mops-set-now { font-size: 13px; color: var(--c-text-sub); }
.mops .mops-set-skel { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.mops .mops-set-skel i { display: block; height: 14px; border-radius: 4px; background: var(--c-primary-bg); }
.mops .mops-set-skel i:first-child { width: 96px; height: 40px; border-radius: 8px; }
.mops .mops-set-skel i:last-child { width: 70%; }

/* M7 — 개통 스위치 · 미리 열기 명단 카드(지시서 16 M7 §3-4 · §4 · 화면설계서 19-5) */
.mops .mops-set-state { margin-top: 16px; line-height: 1.5; }
.mops .mops-set-state .mops-st { font-size: 15px; }
.mops .mops-set-c .mops-inline-err { margin-top: 12px; }
/* 명단 표 — 카드 안 테두리 상자 · 길어지면 상자 안에서만 스크롤(머리 줄 고정) */
.mops .mops-pv-tw { margin-top: 14px; max-height: 340px; overflow-y: auto; border: 1px solid var(--c-border); border-radius: 8px; }
.mops .mops-pv-table { width: 100%; border-collapse: collapse; overflow-wrap: break-word; }
.mops .mops-pv-table thead th {
    position: sticky; top: 0; z-index: 1; padding: 8px 10px; border-top: 0; border-bottom: 1px solid var(--c-border);
    background: var(--c-bg-card); color: var(--c-text-sub); font-size: 13px; font-weight: 600; letter-spacing: 0;
    text-transform: none; text-align: left; white-space: nowrap;
}
.mops .mops-pv-table tbody td {
    padding: 8px 10px; border-bottom: 1px solid var(--c-border); background: transparent;
    color: var(--c-text); font-size: 14px; line-height: 1.45; vertical-align: middle;
}
.mops .mops-pv-table tbody tr:last-child td { border-bottom: 0; }
.mops .mops-pv-table tbody tr:hover { background: var(--c-primary-bg); }
.mops .mops-pv-table b { font-weight: 700; }
.mops .mops-pv-table .mops-c-sub .mops-warn { font-size: 13px; }

/* ---------- 칸(입력) ---------- */
.mops fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mops legend { padding: 0; }
.mops .mops-lbl { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--c-text-sub); }
.mops .mops-lbl em { font-style: normal; font-weight: 500; }
.mops .mops-field { margin-top: 16px; }
.mops .mops-input,
.mops .mops-ta,
.mops .mops-select {
    border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-card); color: var(--c-text);
    font: inherit; font-size: 14.5px;
}
.mops .mops-input { width: 100%; height: 42px; padding: 0 12px; }
.mops .mops-input.mops-input-num { width: 96px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mops .mops-select { height: 40px; min-width: 180px; padding: 0 10px; cursor: pointer; }
.mops .mops-ta { display: block; width: 100%; min-height: 120px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.mops .mops-ta.mops-ta-sm { min-height: 76px; }
.mops .mops-ta.mops-ta-md { min-height: 96px; }
.mops :is(.mops-input, .mops-ta, .mops-select):focus {
    border-color: var(--c-primary); outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.mops .mops-cntr { margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.mops .mops-cntr > span:last-child { flex: none; }

/* 고르기(라디오 · 체크 — 진짜 입력 칸 · 강조색만 토큰) */
.mops .mops-rd-group { display: grid; gap: 2px; }
/* ④ 결과 라디오 3 — 한 줄(좁으면 다음 줄로) · ③ · ④ 가 한 화면에 들게 */
.mops .mops-rd-group.mops-rd-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mops .mops-rd-row .mops-rd { flex: 1 1 auto; min-height: 40px; padding: 0 10px; gap: 8px; }
.mops .mops-rd {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px;
    font-size: 14.5px; line-height: 1.4; color: var(--c-text); cursor: pointer;
}
.mops .mops-rd:hover { background: var(--c-primary-bg); }
.mops .mops-rd input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--c-primary); cursor: pointer; }
.mops .mops-rd:has(input:checked) { font-weight: 700; }
.mops .mops-rd.mops-rd-box { border: 1px solid var(--c-border); }
.mops .mops-rd.mops-rd-box:has(input:checked) { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 6%, var(--c-bg-card)); }
.mops .mops-cb {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 10px 12px;
    border: 1px solid var(--c-border); border-radius: 8px; font-size: 14.5px; line-height: 1.5; color: var(--c-text); cursor: pointer;
}
.mops .mops-cb input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-primary); cursor: pointer; }
.mops .mops-cb:has(input:checked) { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 5%, var(--c-bg-card)); }

/* ---------- 큰 창(openModal — 바깥 클릭으로 닫히지 않음 · 신고 상세 · 주제 묶음 편집) ---------- */
.modal-box.mops.mops-dlg {
    display: flex; flex-direction: column; width: min(560px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
    background: var(--c-bg-card);
}
.modal-box.mops.mops-dlg.mops-dlg-wide { width: min(1040px, calc(100vw - 48px)); }
.mops.mops-dlg .mops-dlg-head { flex: none; gap: 12px; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--c-border); }
.mops.mops-dlg .mops-dlg-head h3 { min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--c-text); }
.mops .mops-x {
    flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 8px; background: none; color: var(--c-text-sub); cursor: pointer;
}
.mops .mops-x .mops-ic { width: 20px; height: 20px; }
.mops .mops-x:hover { background: var(--c-primary-bg); color: var(--c-text); }
.mops.mops-dlg .mops-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 24px 12px; }
.mops.mops-dlg .mops-foot { flex: none; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 24px; }
.mops.mops-dlg .mops-foot .mops-btn { min-height: 44px; }
.mops.mops-dlg .mops-foot-note { margin-right: auto; font-size: 13.5px; line-height: 1.5; color: var(--c-text-sub); }
.mops.mops-dlg .mops-foot-note:empty { display: none; }
.mops.mops-dlg .mops-ask-q { margin-right: auto; font-size: 14px; font-weight: 600; color: var(--c-text); }
.mops.mops-dlg .mops-form-err { flex: none; margin: 0; padding: 0 24px 10px; }

/* 신고 상세 — 왼쪽 ① ② ③ · 오른쪽 ④ */
.mops .mops-rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mops .mops-rp-col { min-width: 0; padding: 16px 24px 8px 0; }
.mops .mops-rp-col + .mops-rp-col { padding: 16px 0 8px 24px; border-left: 1px solid var(--c-border); }
.mops .mops-rp-sec + .mops-rp-sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border); }
/* 오른쪽 열(③ 지금 상태 · ④ 결과) — 촘촘히: 1440×900 · 1280×800 에서 스크롤 없이 함께 보이게(10-12 UX 게이트 h) */
.mops .mops-rp-col-act .mops-field { margin-top: 12px; }
.mops .mops-rp-col-act .mops-phrs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mops .mops-rp-col-act .mops-phr { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
.mops .mops-rp-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--c-text); }
.mops .mops-rp-h i {
    flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    background: var(--c-primary-bg); color: var(--c-text); font-size: 12.5px; font-style: normal; font-weight: 800;
}
.mops .mops-rp-h small { font-size: 13px; font-weight: 500; color: var(--c-text-sub); }
.mops .mops-rp-hrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; }
.mops .mops-rp-hrow .mops-rp-h { margin: 0; }
.mops .mops-rp-hrow > .mops-btn { margin-left: auto; }
.mops .mops-rp-reason { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--c-text); }
.mops .mops-rp-quote {
    margin-top: 8px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px;
    background: var(--c-primary-bg); font-size: 14.5px; line-height: 1.6; color: var(--c-text); white-space: pre-line;
}
.mops .mops-rp-quote.mops-muted { color: var(--c-text-sub); }
.mops .mops-rp-sec > .mops-same { margin-top: 8px; }
.mops .mops-rp-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--c-text-sub); }
.mops .mops-kv { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mops .mops-rp-sub + .mops-kv { margin-top: 0; }
.mops .mops-kv-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.mops .mops-kv-row dt { font-size: 14px; line-height: 1.5; color: var(--c-text-sub); }
.mops .mops-kv-row dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-text); font-variant-numeric: tabular-nums; }
.mops .mops-kv-row dd.mops-kv-none { color: var(--c-text-hint); }
.mops .mops-rp-prod { display: flex; align-items: flex-start; gap: 12px; }
.mops .mops-rp-prod-x { flex: 1; min-width: 0; }
.mops .mops-rp-prod-x b { display: block; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--c-text); }
.mops .mops-rp-prod-x span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--c-text-sub); }
.mops .mops-rp-prod-x .mops-rp-prod-meta { font-size: 13px; }
.mops .mops-rp-skel { display: flex; gap: 12px; }
.mops .mops-rp-skel > i { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--c-primary-bg); }
.mops .mops-rp-skel span { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mops .mops-rp-skel span i { display: block; height: 13px; border-radius: 4px; background: var(--c-primary-bg); }
.mops .mops-rp-skel span i:last-child { width: 55%; }
.mops .mops-inline-err {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px; border-radius: 8px;
    background: var(--c-warning-bg); color: var(--c-text); font-size: 14px; line-height: 1.5;
}
.mops .mops-inline-err > .mops-ic { color: var(--c-warning); }
.mops .mops-inline-err > span { flex: 1 1 200px; min-width: 0; }
.mops .mops-rp-state { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.mops .mops-rp-state p { flex: 1 1 220px; min-width: 0; font-size: 14.5px; line-height: 1.5; }

/* 공개 기록(펼치기) */
.mops .mops-hist { margin-top: 6px; }
.mops .mops-ver { border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-card); }
.mops .mops-ver + .mops-ver { margin-top: 8px; }
.mops .mops-ver summary { padding: 10px 12px; min-height: 44px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--c-text); }
.mops .mops-ver summary::marker { color: var(--c-text-sub); }
.mops .mops-ver-t { font-weight: 700; }
.mops .mops-ver-s { margin-left: 8px; font-size: 13px; color: var(--c-text-sub); }
.mops .mops-ver-b { padding: 10px 12px 12px; border-top: 1px solid var(--c-border); }
.mops .mops-ver-top { display: flex; align-items: flex-start; gap: 12px; }
.mops .mops-ver-top .mops-kv { flex: 1; min-width: 0; margin-top: 0; }
.mops .mops-ver-desc {
    max-height: 220px; overflow-y: auto; padding: 10px 12px; border-radius: 8px; background: var(--c-primary-bg);
    font-size: 14px; line-height: 1.6; color: var(--c-text); white-space: pre-line;
}
/* 설명 아래 상세 이미지(지시서 26 — 조각을 틈 없이 위에서 아래로 폭 가득 · 최대 폭 480 · 조각 비율(인라인 aspect-ratio)로 자리 먼저 ·
   불러오는 중 옅은 바탕 · 못 불러오면 그 자리에 글자) */
.mops .mops-dimg { max-width: 480px; overflow: hidden; border-radius: 8px; }
.mops .mops-dimg-part { position: relative; display: block; overflow: hidden; background: var(--c-primary-bg); }
.mops .mops-dimg-part > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mops .mops-dimg-bad {
    position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 12px;
    color: var(--c-text-sub); font-size: 14px; line-height: 1.5; text-align: center;
}
.mops .mops-dimg-part > img.mops-img-bad + .mops-dimg-bad { display: flex; }
.mops .mops-link { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* ④ 결과 — 자주 쓰는 문구 · 처리됨 */
.mops .mops-phrs { display: grid; gap: 6px; }
.mops .mops-phr {
    display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px;
    border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-card); color: var(--c-text);
    font: inherit; font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer;
}
.mops .mops-phr:hover { border-color: var(--c-primary); }
.mops .mops-phr .mops-phr-add { color: var(--c-primary); }
.mops .mops-phr .mops-phr-on { display: none; color: var(--c-success); }
.mops .mops-phr[aria-pressed="true"] { background: var(--c-primary-bg); color: var(--c-text-sub); }
.mops .mops-phr[aria-pressed="true"] .mops-phr-add { display: none; }
.mops .mops-phr[aria-pressed="true"] .mops-phr-on { display: block; }
.mops .mops-done { padding: 14px 16px; border-radius: 10px; background: var(--c-primary-bg); font-size: 14.5px; line-height: 1.55; color: var(--c-text); }
.mops .mops-done b { font-weight: 700; }
.mops .mops-done-note { margin-top: 8px; white-space: pre-line; }
.mops .mops-done-sub { margin-top: 8px; font-size: 13px; color: var(--c-text-sub); }

/* 주제 묶음 편집 — 왼쪽 달 · 제목 · 기준 · 넣은 상품 · 확인 체크 · 오른쪽 상품 고르기 */
.mops .mops-th-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.mops .mops-th-col { min-width: 0; padding: 18px 24px 8px 0; }
.mops .mops-th-col + .mops-th-col { padding: 18px 0 8px 24px; border-left: 1px solid var(--c-border); }
.mops .mops-th-col > .mops-field:first-child { margin-top: 0; }
.mops .mops-month-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mops .mops-month-row .mops-rd { flex: 1 1 180px; }
.mops .mops-th-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 18px 0 6px; }
.mops .mops-th-meta .mops-lbl { margin: 0; }
.mops .mops-th-meta-c { font-size: 13px; color: var(--c-text-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mops .mops-th-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: 8px; }
.mops .mops-th-it { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; }
.mops .mops-th-it + .mops-th-it { border-top: 1px solid var(--c-border); }
.mops .mops-th-it.mops-th-bad { background: var(--c-warning-bg); }
.mops .mops-th-no { flex: none; width: 20px; text-align: center; font-size: 13px; font-weight: 800; color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.mops .mops-th-x { flex: 1; min-width: 0; }
.mops .mops-th-x b { display: block; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--c-text); }
.mops .mops-th-x > span { display: block; font-size: 13px; line-height: 1.45; color: var(--c-text-sub); }
.mops .mops-th-x .mops-warn { margin-top: 2px; font-size: 13px; }
.mops .mops-th-ops { flex: none; display: flex; gap: 4px; }
.mops .mops-th-empty { padding: 14px; border: 1px dashed var(--c-border); border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--c-text-sub); text-align: center; }
.mops .mops-pick-row { display: flex; gap: 8px; }
.mops .mops-search { position: relative; flex: 1; min-width: 0; }
.mops .mops-search .mops-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--c-text-hint); pointer-events: none; }
.mops .mops-search .mops-input { padding-left: 34px; }
.mops .mops-pick-form + .mops-note { margin-top: 10px; font-size: 13.5px; }
.mops .mops-pick-list { display: grid; gap: 8px; margin-top: 8px; }
.mops .mops-pick-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--c-border); border-radius: 8px; }
.mops .mops-pick-x { flex: 1; min-width: 0; }
.mops .mops-pick-x b { display: block; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--c-text); }
.mops .mops-pick-x span { display: block; font-size: 13px; line-height: 1.45; color: var(--c-text-sub); }
.mops .mops-already { flex: none; max-width: 140px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--c-text-sub); text-align: right; }
.mops .mops-pick-more { display: flex; justify-content: center; padding-top: 4px; }
.mops .mops-pick-skel { display: grid; gap: 8px; }
.mops .mops-pick-skel i { display: block; height: 58px; border-radius: 8px; background: var(--c-primary-bg); }

/* 좁은 창에서는 위아래로(1280 · 1440 에서는 두 칸) */
@media (max-width: 960px) {
    .mops .mops-rp-grid,
    .mops .mops-th-grid { grid-template-columns: minmax(0, 1fr); }
    .mops .mops-rp-col,
    .mops .mops-th-col { padding: 18px 0 8px; }
    .mops .mops-rp-col + .mops-rp-col,
    .mops .mops-th-col + .mops-th-col { padding: 18px 0 8px; border-left: 0; border-top: 1px solid var(--c-border); }
}

/* ---------- 확인 창 — 열린 창 위에 겹침(아래 창은 그대로) · 혼자 뜰 때는 openModal ---------- */
.mops.mops-layer {
    position: fixed; inset: 0; z-index: 510; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: color-mix(in srgb, var(--c-text) 30%, transparent);
}
.modal-box.mops.mops-cfm {
    width: min(480px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto;
    padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--c-bg-card);
}
.mops.mops-cfm .mops-cfm-title { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--c-text); }
.mops.mops-cfm .mops-cfm-msg { display: flex; flex-direction: column; gap: 8px; }
.mops.mops-cfm .mops-cfm-line { font-size: 15px; line-height: 1.6; color: var(--c-text-sub); }
.mops.mops-cfm .mops-err { margin-top: 0; }
/* M7 [마켓 열기] 확인 창 — 체크 3(모두 체크해야 [열기]) */
.mops.mops-cfm .mops-cfm-checks { display: flex; flex-direction: column; gap: 8px; }
.mops.mops-cfm .mops-cfm-checks .mops-cb { margin-top: 0; }
.mops.mops-cfm .mops-cfm-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mops.mops-cfm .mops-cfm-acts .mops-btn { min-height: 44px; min-width: 88px; }
.mops .mops-what { padding: 10px 12px; border-radius: 8px; background: var(--c-primary-bg); font-size: 14px; line-height: 1.5; color: var(--c-text); }
.mops .mops-what b { display: block; font-weight: 700; }
.mops .mops-what-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--c-text-sub); }
.mops .mops-what-note { display: block; max-height: 160px; overflow-y: auto; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-border); white-space: pre-line; }

/* 실패 토스트 — 빨강 대신 먹색(공용 showAdminToast 는 그대로 · 빨강 금지) */
.mops.mops-toast-note { background: var(--c-text); }
