/*
 * 랜딩페이지 편집모달 — 히스토리 탭 (.lphi-*)  2026-08-22 신설
 * A-4 전폭 2컬럼: 좌(1.4) = 날짜 그룹 타임라인 + 종류 칩 필터 | 우(1) = 활동 요약·주요 이벤트.
 * 반응형 = 컨테이너 쿼리(.lphi-wrap 이 컨테이너) ≤1100px 1컬럼.
 */

.lphi-wrap {
  container-type: inline-size;
  text-align: left;
  color: #374151;
}

.lphi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lphi-title { font-size: 15px; font-weight: 800; color: #0f172a; padding-left: 10px; border-left: 4px solid #3e6187; letter-spacing: -0.2px; }
.lphi-sub { font-size: 11.5px; color: #94a3b8; }

.lphi-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lphi-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.lphi-sec { background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; overflow: hidden; }
.lphi-sec-title { font-size: 12px; font-weight: 700; color: #3e6187; margin: 0; padding: 8px 14px; background: #f3f7fb; border-bottom: 1px solid #e4edf5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lphi-sec-meta { font-size: 10.5px; font-weight: 400; color: #94a3b8; }
.lphi-sec-bd { padding: 12px 14px; }

/* 종류 칩 필터 */
.lphi-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.lphi-chip { border: 1px solid #cbd5e1; background: #fff; color: #64748b; font-size: 10.5px; padding: 3px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.lphi-chip.on { border-color: #3e6187; background: #eef4f9; color: #3e6187; }

/* 날짜 그룹 */
.lphi-dhead { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.lphi-dgroup:first-child .lphi-dhead { margin-top: 0; }
.lphi-dhead b { font-size: 11.5px; font-weight: 800; color: #3e6187; background: #eef4f9; border: 1px solid #dbe6f0; border-radius: 9px; padding: 2px 10px; }
.lphi-dhead .n { font-size: 10.5px; color: #94a3b8; }
.lphi-dhead::after { content: ""; flex: 1; height: 1px; background: #eef4f9; }

/* 타임라인 아이템 */
.lphi-ti { display: flex; gap: 10px; }
.lphi-rail { display: flex; flex-direction: column; align-items: center; width: 24px; flex-shrink: 0; }
.lphi-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex-shrink: 0; }
.lphi-line { width: 2px; flex: 1; background: #e4edf5; }
.lphi-ti:last-child .lphi-line { background: transparent; }
.d-blue { background: #3b82f6; } .d-green { background: #22c55e; } .d-red { background: #ef4444; } .d-gray { background: #94a3b8; }
.lphi-body { flex: 1; min-width: 0; padding: 2px 0 14px; }
.lphi-msg { font-size: 12.5px; color: #1e293b; line-height: 1.5; word-break: break-all; }
.lphi-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 10.5px; color: #94a3b8; flex-wrap: wrap; align-items: center; }
.lphi-badge { font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 7px; background: #f1f5f9; color: #64748b; }
.lphi-badge.k-pub { background: #ecfdf5; color: #059669; }
.lphi-badge.k-edit { background: #eef4f9; color: #3e6187; }
.lphi-badge.k-addr { background: #f1f5f9; color: #64748b; }

/* 우측: 활동 요약 */
.lphi-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.lphi-kpi { border: 1px solid #dbe6f0; border-radius: 9px; padding: 9px 11px; text-align: center; background: #fbfdfe; }
.lphi-kpi .l { font-size: 10px; color: #8aa2b8; font-weight: 700; }
.lphi-kpi .v { font-size: 17px; font-weight: 800; color: #1e293b; margin-top: 2px; }
.lphi-fsub { font-size: 10.5px; font-weight: 700; color: #8aa2b8; margin: 12px 0 7px; letter-spacing: 0.3px; }
.lphi-fsub:first-of-type { margin-top: 0; }
.lphi-brow { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 11px; }
.lphi-blabel { width: 72px; color: #6b7280; text-align: right; flex-shrink: 0; }
.lphi-btrack { flex: 1; height: 12px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.lphi-bfill { height: 100%; border-radius: 4px; }
.lphi-bval { width: 34px; color: #374151; font-weight: 600; flex-shrink: 0; }
.lphi-who { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #f1f6fa; font-size: 12px; color: #374151; }
.lphi-who:last-child { border-bottom: 0; }
.lphi-ava { width: 26px; height: 26px; border-radius: 50%; background: #eef4f9; color: #3e6187; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.lphi-who .cnt { margin-left: auto; font-size: 11px; color: #94a3b8; }

/* 주요 이벤트 */
.lphi-ms { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #eef4f9; border-radius: 9px; margin-bottom: 6px; background: #fbfdfe; }
.lphi-ms:last-child { margin-bottom: 0; }
.lphi-ms .ic { font-size: 15px; flex-shrink: 0; }
.lphi-ms .mm { flex: 1; min-width: 0; }
.lphi-ms b { font-size: 12px; color: #1e293b; display: block; word-break: break-all; }
.lphi-ms small { font-size: 10.5px; color: #94a3b8; }

.lphi-empty { text-align: center; padding: 60px 20px; background: #fbfdfe; border: 2px dashed #dbe6f0; border-radius: 12px; }
.lphi-empty p { color: #6b7280; font-size: 14px; margin: 0; }

@container (max-width: 1100px) {
  .lphi-cols { grid-template-columns: minmax(0, 1fr); }
}
