/* 경쟁몰 최저가 모니터 — 시연용 대시보드 스타일 */
:root {
    --bg: #f5f6fa;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #4f46e5;
    --brand-dark: #1e1b4b;
    --bad: #dc2626;
    --bad-soft: #fef2f2;
    --good: #059669;
    --good-soft: #ecfdf5;
    --even: #6b7280;
    --warn: #b45309;
    --warn-soft: #fffbeb;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; }
a { color: var(--brand); text-decoration: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px;
          background: var(--brand-dark); color: #fff; }
.brand { color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25); }
.topnav { display: flex; gap: 20px; align-items: center; }
.topnav a { color: #c7d2fe; }
.topnav a:hover { color: #fff; }
.who { color: #a5b4fc; font-size: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 28px 60px; }
.back { display: inline-block; margin-bottom: 8px; color: var(--muted); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 20px; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero h1 em { font-style: normal; color: var(--bad); }
.sub { color: var(--muted); margin: 8px 0 0; max-width: 760px; line-height: 1.6; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px;
       font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-live { background: #ecfeff; color: #0e7490; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #06b6d4; display: inline-block;
         animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, .6); } 100% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card .k { color: var(--muted); font-size: 12px; font-weight: 500; }
.card .v { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.card .v.small { font-size: 20px; }
.card .v small { font-size: 14px; color: var(--muted); margin-left: 2px; font-weight: 500; }
.card .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card.bad { border-color: #fecaca; background: var(--bad-soft); }
.card.bad .v { color: var(--bad); }
.card.good { border-color: #a7f3d0; background: var(--good-soft); }
.card.good .v { color: var(--good); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin: 0 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

table.board { width: 100%; border-collapse: collapse; }
.board th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 10px;
            border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 12px 10px; border-bottom: 1px solid #f1f2f6; vertical-align: top; }
.board.compact td { padding: 8px 10px; }
.board tbody tr { cursor: pointer; }
.board tbody tr:hover { background: #f8fafc; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .strong { font-weight: 700; }
.row-adverse td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.row-favorable td:first-child { box-shadow: inset 4px 0 0 var(--good); }
.pname { font-weight: 700; }
.pcat, .muted { color: var(--muted); font-size: 12px; }
tr.best td { background: var(--good-soft); }
tr.suspect td { color: #9ca3af; text-decoration: line-through; }
tr.suspect td:last-child { text-decoration: none; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.b-adverse { background: var(--bad-soft); color: var(--bad); }
.b-favorable { background: var(--good-soft); color: var(--good); }
.b-even, .b-unknown { background: #f3f4f6; color: var(--even); }
.b-suspect { background: var(--warn-soft); color: var(--warn); }
.up { color: var(--bad); font-weight: 700; }
.down { color: var(--good); font-weight: 700; }

.source { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #fde68a; }

.evidence { width: 100%; border: 1px solid var(--line); border-radius: 10px; max-height: 520px; object-fit: cover; object-position: top; }

.spark { width: 100%; height: 160px; background: #fafbff; border-radius: 10px; margin-bottom: 8px; }
.spark .low { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.spark .our { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }

.progress { height: 10px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #06b6d4); transition: width .5s; }
.now { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feed { list-style: none; padding: 0; margin: 0 0 14px; }
.feed li { padding: 8px 0; border-bottom: 1px solid #f1f2f6; }
.feed li.ok::before { content: '✓ '; color: var(--good); font-weight: 800; }
.feed li.blocked::before, .feed li.failed::before { content: '✕ '; color: var(--bad); font-weight: 800; }

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .grid2 { grid-template-columns: 1fr; }
    .hero { flex-direction: column; align-items: flex-start; }
    .board { font-size: 12px; }
}

.briefing { border-color: #c7d2fe; background: linear-gradient(180deg, #f8f9ff, #fff); }
.brief-text { line-height: 1.8; font-size: 15px; white-space: normal; }
