:root {
  --sea: #0b4f6c; --sea-2: #0f6a8f; --sea-50: #e8f2f6; --sea-100: #cfe4ec;
  --sun: #f2a541; --sun-50: #fff4e3;
  --ink: #16212b; --ink-2: #3b4a57; --muted: #6b7a87; --line: #e3e8ec; --bg: #f6f8f9; --card: #fff;
  --ok: #1f8a5b; --ok-50: #e6f5ee; --warn: #b26a00; --warn-50: #fff4e0; --bad: #c0392b; --bad-50: #fdecea; --info-50: #eaf1fb; --info: #2462b8;
  --r: 12px; --shadow: 0 1px 2px rgba(16,33,43,.05), 0 4px 16px rgba(16,33,43,.05);
  --font: system-ui, -apple-system, 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); word-break: keep-all; }
a { color: var(--sea-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.grow { flex: 1; } .stack > * + * { margin-top: 12px; } .mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .side { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } h1 { font-size: 22px; } }

/* topbar */
.topbar { background: var(--sea); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; white-space: nowrap; }
.brand:hover { text-decoration: none; } .brand img { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; font-size: 11px; opacity: .8; letter-spacing: .02em; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: #dcebf1; padding: 8px 11px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.nav a.on { background: rgba(255,255,255,.16); color: #fff; }
.nav a.admin { color: var(--sun); }
.userbox { display: flex; gap: 8px; align-items: center; }
.userbox select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 8px; max-width: 180px; }
.userbox select option { color: var(--ink); }
.bell { position: relative; color: #fff; padding: 6px 8px; border-radius: 8px; } .bell:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.bell .dot { position: absolute; top: 0; right: 0; background: var(--sun); color: var(--ink); border-radius: 10px; font-size: 11px; font-weight: 800; padding: 0 5px; }
.m-only { display: none !important; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--sea); flex-direction: column; padding: 8px 12px 14px; }
  .nav.open { display: flex; }
}

main { min-height: calc(100vh - 140px); padding: 26px 0 40px; outline: none; }
.footer { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--ink-2); background: #fff; }

/* components */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card.pad-s { padding: 14px 16px; }
.card h3 .muted { font-weight: 500; font-size: 13px; }
.card.link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--sea-2); text-decoration: none; transform: translateY(-1px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--sea); background: var(--sea); color: #fff; padding: 9px 16px; border-radius: 9px; font: 600 14px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sea-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--sea); } .btn.ghost:hover { background: var(--sea-50); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e9b4ae; } .btn.danger:hover { background: var(--bad-50); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.s { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.naver { background: #03c75a; border-color: #03c75a; } .btn.kakao { background: #fee500; border-color: #fee500; color: #191919; } .btn.google { background: #fff; color: #1f1f1f; border-color: #c9ced3; }
.btn.social { width: 100%; padding: 13px; font-size: 15px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f3; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge.sea { background: var(--sea-50); color: var(--sea); } .badge.sun { background: var(--sun-50); color: #8a5300; }
.badge.ok { background: var(--ok-50); color: var(--ok); } .badge.warn { background: var(--warn-50); color: var(--warn); } .badge.bad { background: var(--bad-50); color: var(--bad); } .badge.info { background: var(--info-50); color: var(--info); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; background: #f0f3f5; color: var(--ink-2); margin: 2px 4px 2px 0; }
.chip.req { background: var(--bad-50); color: var(--bad); }

.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 14px; }
.alert.info { background: var(--info-50); border-color: #c6d8f2; color: #1d4d8f; } .alert.warn { background: var(--warn-50); border-color: #f4d39b; color: #7a4a00; }
.alert.bad { background: var(--bad-50); border-color: #f2c0ba; color: #8e2a1f; } .alert.ok { background: var(--ok-50); border-color: #b9e2cd; color: #165f40; }

.stat { padding: 16px 18px; } .stat .v { font-size: 28px; font-weight: 800; color: var(--sea); line-height: 1.1; } .stat .l { color: var(--muted); font-size: 13px; }
.progress { height: 8px; background: #edf1f3; border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sea-2), var(--sea)); }
.progress.sun > i { background: var(--sun); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--sea); border-color: var(--sea); } .tabs a:hover { text-decoration: none; color: var(--ink); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: #fbfcfd; }
.tablewrap { overflow-x: auto; }

/* forms */
.form .field { margin-bottom: 14px; }
.form label.l { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 5px; color: var(--ink-2); }
.form label.l .req { color: var(--bad); margin-left: 2px; }
.form .help { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.form .err { font-size: 12.5px; color: var(--bad); margin-top: 3px; }
input[type=text], input:not([type]), input[type=password], input[type=tel], input[type=url], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd7dd; border-radius: 9px; font: 14px var(--font); background: #fff; color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sea-2); outline: none; box-shadow: 0 0 0 3px var(--sea-100); }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--bad); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #d5dce1; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; background: #fff; }
.checks label:has(input:checked) { background: var(--sea-50); border-color: var(--sea-2); color: var(--sea); font-weight: 600; }
.checks input { accent-color: var(--sea); }
fieldset.group { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 6px; margin: 0 0 16px; background: #fff; }
fieldset.group legend { font-weight: 800; padding: 0 6px; color: var(--sea); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { flex: 1; min-width: 200px; } .filters select { width: auto; }

/* list cards */
.item-card { display: flex; flex-direction: column; gap: 6px; }
.item-card .meta { font-size: 13px; color: var(--muted); }
.item-card h3 { margin: 0; font-size: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }

/* score */
.score { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 800; font-size: 16px; color: #fff; background: var(--sea); flex-shrink: 0; }
.score.mid { background: var(--sea-2); } .score.low { background: #8a9aa6; }
.factor { display: grid; grid-template-columns: 120px 1fr 54px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.factor .why { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; margin-top: -2px; }

/* notice */
.dday { font-weight: 800; color: var(--bad); } .dday.calm { color: var(--sea); }
.steps { display: flex; gap: 0; flex-wrap: wrap; font-size: 12.5px; margin: 6px 0 2px; }
.steps span { padding: 4px 10px; background: #eef2f4; color: var(--muted); position: relative; margin-right: 2px; }
.steps span:first-child { border-radius: 6px 0 0 6px; } .steps span:last-child { border-radius: 0 6px 6px 0; }
.steps span.done { background: var(--sea-100); color: var(--sea); } .steps span.now { background: var(--sea); color: #fff; font-weight: 700; }

/* selection board */
.cp { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.cp.mutual { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-50); }
.cp .state { font-size: 12.5px; font-weight: 700; }

/* messages */
.msgs { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: #f0f3f5; font-size: 14px; }
.msg.mine { align-self: flex-end; background: var(--sea-50); }
.msg .who { font-size: 11.5px; color: var(--muted); }

/* hero */
.hero { background: linear-gradient(120deg, var(--sea) 0%, #0d6b8a 55%, #1a7f93 100%); color: #fff; border-radius: 18px; padding: 34px 34px 30px; position: relative; overflow: hidden; }
.hero h1 { font-size: 30px; margin-bottom: 8px; } .hero p { opacity: .9; max-width: 640px; }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,65,.45), rgba(242,165,65,0) 70%); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; position: relative; z-index: 1; }
.flow div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.flow b { display: block; font-size: 14px; }
@media (max-width: 800px) { .flow { grid-template-columns: repeat(2, 1fr); } .hero { padding: 24px; } }

/* bars */
.bars .b { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; }
.bars .b > div { height: 14px; background: #eef2f4; border-radius: 4px; overflow: hidden; } .bars .b i { display: block; height: 100%; background: var(--sea-2); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 200; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; } .toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,25,35,.45); display: grid; place-items: center; z-index: 150; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 6px; }
.notif { display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notif.read { opacity: .65; }
.login-box { max-width: 420px; margin: 20px auto; }
.mapsvg { width: 100%; height: auto; background: linear-gradient(180deg, #e6f1f5, #d4e7ee); border-radius: 12px; }
.estimate { font-style: italic; }

@media (max-width: 640px) {
  .topbar .wrap { gap: 8px; padding: 0 12px; }
  .brand small { display: none; } .brand span { font-size: 14px; }
  .userbox .d-only { display: none; } .userbox select { max-width: 104px; font-size: 12px; }
  .nav .m-only { display: block !important; }
  .page-head > .card { width: 100%; }
}

/* ===== v2: PAI 브랜드 헤더(2단) · 업체 구분 바 · 단계 표시 ===== */
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11,79,108,.06); }
.topbar .wrap { height: auto; flex-wrap: wrap; gap: 0 18px; }
.topbar .bar1 { display: flex; align-items: center; gap: 18px; height: 64px; width: 100%; }
.brand { color: var(--sea); flex: 1; } .brand img { width: auto; height: 40px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.brand small { color: var(--muted); opacity: 1; }
.nav { width: 100%; flex: none; border-top: 1px solid var(--line); padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--ink-2); padding: 8px 12px; font-size: 14px; }
.nav a:hover { background: var(--sea-50); color: var(--sea); }
.nav a.on { background: var(--sea); color: #fff; }
.nav a.admin { color: #9a5a00; margin-left: auto; } .nav a.admin.on { color: #fff; background: #9a5a00; }
.nav .sep { width: 1px; background: var(--line); margin: 6px 4px; }
.userbox select { background: #fff; color: var(--ink); border-color: var(--line); }
.bell { color: var(--ink); } .bell:hover { background: var(--sea-50); }
.menu-btn { color: var(--sea); }
.userbox .btn.ghost.top { background: #fff; color: var(--sea); border-color: var(--sea-100); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 12px 14px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .nav.open { display: flex; } .nav .sep { display: none; } .nav a.admin { margin-left: 0; }
}
@media (max-width: 640px) { .brand img { height: 32px; } .brand span { display: none; } }
.idbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--sea-50); border: 1px solid var(--sea-100); border-left: 4px solid var(--sea); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; font-size: 14px; }
.idbar b { margin-right: 4px; } .idbar-t { font-size: 12px; color: var(--muted); margin-right: 4px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0; margin: 10px 0; counter-reset: s; }
.stepper li { background: #eef2f4; color: var(--muted); border-radius: 8px; padding: 8px 6px; font-size: 12.5px; text-align: center; font-weight: 600; }
.stepper li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-right: 4px; font-size: 11px; }
.stepper li.done { background: var(--sea-100); color: var(--sea); } .stepper li.now { background: var(--sea); color: #fff; } .stepper li.now span { color: var(--sea); }
.stepper.hold li.now { background: var(--warn); }
@media (max-width: 700px) { .stepper { grid-template-columns: repeat(3, 1fr); } }
.kanban { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.kanban .col { background: #f1f4f6; border-radius: 10px; padding: 8px; min-height: 80px; }
.kanban .col h4 { font-size: 12.5px; margin: 2px 4px 8px; color: var(--ink-2); display: flex; justify-content: space-between; }
.kanban .k { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; font-size: 12.5px; display: block; color: inherit; }
.kanban .k:hover { border-color: var(--sea-2); text-decoration: none; }
@media (max-width: 1000px) { .kanban { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.rate { display: flex; gap: 4px; } .rate label { border: 1px solid #cfd7dd; border-radius: 6px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; font-weight: 700; }
.rate input { position: absolute; opacity: 0; } .rate label:has(input:checked) { background: var(--sea); color: #fff; border-color: var(--sea); }
.timeline { border-left: 2px solid var(--sea-100); margin-left: 6px; padding-left: 14px; }
.timeline .t { position: relative; padding: 6px 0; font-size: 13.5px; } .timeline .t::before { content: ''; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--sea-2); }
.pai-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #f4fafc 0%, #e5f1f6 60%, #fff4e3 100%); border: 1px solid var(--sea-100); border-radius: 18px; padding: 30px; }
.pai-hero img { width: 100%; max-width: 440px; justify-self: center; }
@media (max-width: 800px) { .pai-hero { grid-template-columns: 1fr; padding: 20px; } }
.flowline { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; } .flowline .f { background: #fff; border: 1px solid var(--sea-100); border-radius: 10px; padding: 10px 12px; flex: 1; min-width: 150px; }
.flowline .f b { display: block; color: var(--sea); }
.kpi-big { font-size: 30px; font-weight: 800; color: var(--sea); line-height: 1.1; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-cards label { border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; }
.radio-cards label:has(input:checked) { border-color: var(--sea); background: var(--sea-50); }
.radio-cards b { display: block; font-size: 16px; }
.evalbox { border: 1px dashed var(--sea-100); border-radius: 12px; padding: 14px; background: #fbfdfe; }
.chip.ok { background: var(--ok-50); color: var(--ok); } .chip.info { background: var(--info-50); color: var(--info); } .chip.sea { background: var(--sea-50); color: var(--sea); }
.facet { display: flex; flex-wrap: wrap; gap: 2px; } .facet .chip { cursor: pointer; } .facet .chip b { font-weight: 700; color: var(--muted); margin-left: 2px; }
.facet a.chip:hover { text-decoration: none; background: var(--sea-50); } .facet .chip.on { background: var(--sea); color: #fff; } .facet .chip.on b { color: #cfe4ec; }
.rel { display: inline-flex; gap: 2px; } .rel i { width: 6px; height: 12px; border-radius: 2px; background: #e3e8ec; } .rel i.on { background: var(--sun); }
.listrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; }
.listrow:hover { text-decoration: none; background: #fbfdfe; } .listrow h3 { margin: 2px 0 4px; font-size: 16px; }
.dcard { display: flex; flex-direction: column; gap: 5px; } .dcard h3 { margin: 0; font-size: 15.5px; } .dcard .desc { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; } .pill-tabs a { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pill-tabs a.on { background: var(--sea); color: #fff; border-color: var(--sea); } .pill-tabs a:hover { text-decoration: none; border-color: var(--sea-2); }
.pill-tabs a b { margin-left: 4px; font-size: 12px; opacity: .8; }
.weights { display: grid; grid-template-columns: 1fr 90px; gap: 6px 10px; align-items: center; } .weights input { width: 90px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.mapsvg { width: 100%; height: auto; }
details > summary { cursor: pointer; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } .stat .v { font-size: 24px; } .kanban { grid-template-columns: 1fr; } .pai-hero h1 { font-size: 24px !important; } }

/* ===================== v3 피지컬 AX: 수요(주황)·공급(파랑) 구분 · 카드·이미지 중심 ===================== */
:root { --demand: #c45f0a; --demand-2: #e07a1f; --demand-50: #fff3e6; --demand-100: #ffdcb8; --supply: #0b5f8a; --supply-50: #e7f2f9; --supply-100: #c8e2f1; }
.btn.demand { background: var(--demand); border-color: var(--demand); color: #fff; } .btn.demand:hover { background: var(--demand-2); }
.btn.supply { background: var(--supply); border-color: var(--supply); color: #fff; } .btn.supply:hover { background: #0d6fa0; }
.btn.demand.ghost { background: #fff; color: var(--demand); } .btn.supply.ghost { background: #fff; color: var(--supply); }
.role-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.role-pill.demand { background: var(--demand-50); color: var(--demand); border: 1px solid var(--demand-100); }
.role-pill.supply { background: var(--supply-50); color: var(--supply); border: 1px solid var(--supply-100); }
.nav a.tone-demand { color: var(--demand); } .nav a.tone-demand.on { background: var(--demand); color: #fff; }
.nav a.tone-supply { color: var(--supply); } .nav a.tone-supply.on { background: var(--supply); color: #fff; }
.nav a i[class^="dot-"] { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.nav .dot-demand { background: var(--demand-2); } .nav .dot-supply { background: var(--supply); } .nav a.on i { background: #fff; }
.tone-bar-demand { border-top: 4px solid var(--demand-2) !important; } .tone-bar-supply { border-top: 4px solid var(--supply) !important; }
.page-head.demand h1::before, .page-head.supply h1::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: 3px; }
.page-head.demand h1::before { background: var(--demand-2); } .page-head.supply h1::before { background: var(--supply); }

/* 롤링 배너 */
.carousel { position: relative; border-radius: 18px; overflow: hidden; background: var(--sea); aspect-ratio: 1600 / 520; max-height: 380px; width: 100%; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: block; color: #fff; }
.carousel .slide.on { opacity: 1; z-index: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .cap { position: absolute; left: 0; top: 0; bottom: 0; width: min(62%, 640px); padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.carousel .cap b { font-size: clamp(20px, 3vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.carousel .cap span { font-size: 15px; opacity: .9; }
.carousel .cap .btn { align-self: flex-start; margin-top: 6px; }
.carousel .dots { position: absolute; z-index: 2; left: 44px; bottom: 18px; display: flex; gap: 8px; }
.carousel .dots button { width: 26px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.carousel .dots button.on { background: #fff; width: 40px; }
.carousel .pause { position: absolute; z-index: 2; right: 14px; bottom: 12px; background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 99px; width: 32px; height: 32px; cursor: pointer; }
@media (max-width: 700px) { .carousel { aspect-ratio: 4 / 3; max-height: none; } .carousel .cap { width: 100%; padding: 22px; background: linear-gradient(90deg, rgba(5,25,40,.75), rgba(5,25,40,.2)); } .carousel .dots { left: 22px; } }
@media (prefers-reduced-motion: reduce) { .carousel .slide { transition: none; } }

/* 수요/공급 진입 카드 */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; color: inherit; border: 1px solid var(--line); background: #fff; }
.role-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.role-card.demand { background: linear-gradient(135deg, #fff 0%, var(--demand-50) 100%); border-color: var(--demand-100); }
.role-card.supply { background: linear-gradient(135deg, #fff 0%, var(--supply-50) 100%); border-color: var(--supply-100); }
.role-card h3 { font-size: 20px; margin: 0; } .role-card.demand h3 { color: var(--demand); } .role-card.supply h3 { color: var(--supply); }
.role-card .row { margin-top: auto; }
@media (max-width: 700px) { .role-cards { grid-template-columns: 1fr; } }

/* 이미지 카드 */
.icard { display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; color: inherit; }
.icard:hover { text-decoration: none; box-shadow: 0 6px 22px rgba(16,33,43,.1); transform: translateY(-1px); }
.icard .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sea) 0%, var(--sea-2) 60%, #3d9ab8 100%); position: relative; overflow: hidden; }
.icard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icard .thumb.page img { object-position: left top; }
.icard .thumb .over { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.icard .thumb .title-over { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.icard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.icard .body h3 { margin: 0; font-size: 16px; } .icard .meta { font-size: 13px; color: var(--muted); }
.icard .thumb.demand { background: linear-gradient(135deg, #8a4106, var(--demand-2) 60%, #f2b46b); }
.icard .thumb.supply { background: linear-gradient(135deg, #073d5a, var(--supply) 60%, #4aa3cf); }
.thumb .glyph { position: absolute; right: 14px; bottom: 6px; font-size: 54px; opacity: .25; color: #fff; }

/* 행사 배너 */
.banner-hero { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1600 / 600; max-height: 360px; background: var(--sea); color: #fff; }
.banner-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-hero .cap { position: absolute; left: 0; top: 0; bottom: 0; width: min(65%, 680px); padding: 30px 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.banner-hero .cap h1 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 0; }
@media (max-width: 700px) { .banner-hero { aspect-ratio: 4 / 3; } .banner-hero .cap { width: 100%; padding: 20px; background: linear-gradient(0deg, rgba(5,25,40,.8), rgba(5,25,40,0)); } }
.prose { font-size: 15.5px; line-height: 1.8; } .prose p { margin-bottom: 1em; }

/* 블로그형 사례 */
.article { max-width: 860px; margin: 0 auto; }
.article .lead { font-size: 17px; color: var(--ink-2); }
.article h2 { margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--sea-100); }
.article figure { margin: 18px 0; } .article figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.article figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi-strip div { background: var(--sea-50); border-radius: 12px; padding: 14px; } .kpi-strip b { display: block; font-size: 22px; color: var(--sea); } .kpi-strip span { font-size: 12.5px; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,15,25,.88); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

/* 팝업 */
.promo-pop { position: fixed; inset: 0; z-index: 150; background: rgba(10,20,30,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.promo-pop .box { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.promo-pop .box img { width: 100%; display: block; aspect-ratio: 900 / 480; object-fit: cover; }
.promo-pop .box .c { padding: 18px 20px; } .promo-pop .box .f { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 14px; background: #fafbfc; }

/* 챗봇 */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 120; border: 0; border-radius: 99px; background: var(--sea); color: #fff; padding: 13px 18px; font-weight: 700; box-shadow: 0 8px 24px rgba(11,79,108,.35); cursor: pointer; font-size: 14px; }
.chat-fab:hover { background: var(--sea-2); }
.chat-panel { position: fixed; right: 20px; bottom: 80px; z-index: 121; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel header { background: var(--sea); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.chat-panel header button { background: transparent; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fa; }
.chat-log .m { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; line-height: 1.55; }
.chat-log .m.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; } .chat-log .m.me { background: var(--sea); color: #fff; align-self: flex-end; }
.chat-log .sugg { display: flex; flex-wrap: wrap; gap: 6px; } .chat-log .sugg button { border: 1px solid var(--sea-100); background: #fff; color: var(--sea); border-radius: 99px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.chat-panel form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); } .chat-panel form input { flex: 1; }
@media (max-width: 600px) { .chat-fab { right: 12px; bottom: 12px; padding: 12px 14px; } .chat-panel { right: 12px; bottom: 70px; } }

/* 가입 흐름 */
.steps-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: st; }
.steps-h div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; position: relative; }
.steps-h div b { display: block; color: var(--sea); font-size: 14px; } .steps-h div.on { border-color: var(--sea); background: var(--sea-50); }
@media (max-width: 800px) { .steps-h { grid-template-columns: 1fr 1fr; } }
.pick-list { display: flex; flex-direction: column; } .pick-list button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 6px; cursor: pointer; font: inherit; }
.pick-list button:hover { background: var(--sea-50); } .pick-list button[disabled] { opacity: .55; cursor: not-allowed; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); background: #f1f4f6; border-radius: 6px; padding: 2px 8px; }
.tabbar { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabbar a { padding: 10px 16px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabbar a.on { color: var(--sea); border-color: var(--sea); } .tabbar a:hover { text-decoration: none; color: var(--sea); }
.tabbar a b { font-size: 12px; margin-left: 4px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 6px 0; font-size: 14px; } .switch input { width: 18px; height: 18px; accent-color: var(--sea); margin: 0; }
.drop { border: 2px dashed var(--sea-100); border-radius: 12px; padding: 18px; text-align: center; background: #fbfdfe; }
.pr-card .thumb { aspect-ratio: 16 / 9; }
.tabs.admin-tabs { flex-wrap: wrap; overflow: visible; } .tabs.admin-tabs a { padding: 8px 11px; font-size: 13.5px; }
.role-card .role-pill { align-self: flex-start; }

/* ===================== v4: 비주얼 · 뉴스레터 · 회원 등급 ===================== */
:root { --news: #6d28d9; --news-50: #f3efff; --gold: #b7791f; --gold-50: #fdf6e7; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9fd8ea; }
.eyebrow.dark { color: var(--sea-2); }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 11px; }
.btn.ghost-w { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost-w:hover { background: rgba(255,255,255,.18); }
.req { color: var(--bad); }

/* 홈 히어로 (전폭 이미지) */
.home-hero { position: relative; margin-top: -26px; min-height: 520px; color: #fff; overflow: hidden; background: #06142b; display: flex; align-items: center; }
.home-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.home-hero .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,14,30,.92) 0%, rgba(4,14,30,.72) 38%, rgba(4,14,30,.1) 75%), linear-gradient(0deg, rgba(4,14,30,.55), rgba(4,14,30,0) 40%); }
.home-hero .hero-in { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 40px; }
.home-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; letter-spacing: -.03em; margin: 12px 0 14px; max-width: 760px; }
.home-hero h1 em { font-style: normal; color: var(--sun); }
.home-hero p { font-size: 17px; opacity: .9; max-width: 600px; }
.hero-cta { margin-top: 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; max-width: 860px; background: rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; backdrop-filter: blur(6px); }
.hero-stats a { background: rgba(6,20,43,.55); padding: 14px 18px; color: #fff; display: flex; flex-direction: column; }
.hero-stats a:hover { background: rgba(6,20,43,.35); text-decoration: none; }
.hero-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; } .hero-stats span { font-size: 12.5px; opacity: .8; }
@media (max-width: 800px) { .home-hero { min-height: 0; } .home-hero .hero-shade { background: rgba(4,14,30,.78); } .hero-stats { grid-template-columns: repeat(2, 1fr); } .home-hero p { font-size: 15px; } }

/* 바로가기 */
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 2; }
.quick .q { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.quick .q:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,33,43,.12); }
.quick .qi { font-size: 26px; line-height: 1; margin-bottom: 6px; } .quick b { font-size: 15px; } .quick .small { color: var(--muted); }
.quick .q-demand { border-top: 3px solid var(--demand); } .quick .q-supply { border-top: 3px solid var(--supply); } .quick .q-news { border-top: 3px solid var(--news); }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick { grid-template-columns: repeat(2, 1fr); } }
.carousel .cap-btns { gap: 8px; margin-top: 6px; }
.carousel .slide { pointer-events: none; } .carousel .slide.on { pointer-events: auto; }

/* 팝업 v4 */
.promo-pop .pimg { position: relative; } .promo-pop .pimg img { display: block; width: 100%; }
.promo-pop .pbadge { position: absolute; left: 16px; top: 14px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: .12em; padding: 3px 9px; border-radius: 99px; }

/* 등급 배지 */
.tier { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.tier::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.t-visitor { background: #eef1f3; color: #55636f; } .t-assoc { background: var(--info-50); color: var(--info); } .t-regular { background: var(--sea-50); color: var(--sea); border-color: var(--sea-100); }
.t-special { background: var(--gold-50); color: var(--gold); border-color: #f2dfb5; } .t-admin { background: #1d2a36; color: #fff; }
.t-pending { background: var(--warn-50); color: var(--warn); }
.tier-chip:hover { text-decoration: none; } .tier-chip .tier { border-color: rgba(255,255,255,.35); }
.nav a.special { color: #ffd98a; }
.nav .new-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 10px; font-style: normal; font-weight: 900; margin-right: 5px; vertical-align: 1px; }
.upgrade-alert { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 등급 사다리 */
.tier-ladder { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: t; }
.tier-ladder li { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; position: relative; border: 1px solid var(--line); background: #fff; }
.tier-ladder li::after { content: '›'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.tier-ladder li:last-child::after { display: none; }
.tier-ladder li.t-visitor { border-top: 4px solid #9aa7b2; } .tier-ladder li.t-assoc { border-top: 4px solid var(--info); } .tier-ladder li.t-regular { border-top: 4px solid var(--sea); } .tier-ladder li.t-special { border-top: 4px solid var(--gold); } .tier-ladder li.t-admin { border-top: 4px solid #1d2a36; background: #fff; color: var(--ink); }
.tier-ladder li.me { box-shadow: 0 0 0 3px var(--sun); }
.tier-ladder .tl-ic { font-size: 26px; } .tier-ladder b { font-size: 15px; color: var(--ink); } .tier-ladder em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--warn); }
@media (max-width: 900px) { .tier-ladder { grid-template-columns: 1fr 1fr; } .tier-ladder li::after { display: none; } }
table.perm td:first-child { min-width: 260px; } .ok-dot { color: var(--ok); font-size: 16px; } .no-dot { color: #c3ccd3; }
.mem-hero, .nl-hero { margin-top: -26px; padding: 44px 0 36px; color: #fff; background: linear-gradient(120deg, #06142b 0%, #0b3a5c 60%, #0e7490 100%); position: relative; overflow: hidden; }
.mem-hero::after, .nl-hero::after { content: ''; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,65,.35), rgba(242,165,65,0) 70%); }
.mem-hero h1, .nl-hero h1 { font-size: 34px; margin: 8px 0; } .mem-hero p, .nl-hero p { opacity: .9; max-width: 720px; }
.mem-hero .wrap, .nl-hero .wrap { position: relative; z-index: 1; }
.nl-hero { background: linear-gradient(120deg, #140a33 0%, #3b1d7a 55%, #0e7490 100%); }
.flow-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow-steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.flow-steps em { font-style: normal; font-weight: 700; color: var(--sea); }
@media (max-width: 800px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
.tier-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-radius: 18px; padding: 26px 30px; background: linear-gradient(120deg, #fff 0%, var(--sea-50) 60%, var(--sun-50) 100%); border: 1px solid var(--sea-100); }
.tier-band .eyebrow { color: var(--sea-2); } .tier-band h2 { margin: 4px 0 12px; }
.tier-mini { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tier-mini li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.tier-mini li.me { box-shadow: 0 0 0 2px var(--sun); }
.tier-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tier-tab { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; color: inherit; border: 1px solid var(--line); background: #fff; }
.tier-tab b { font-size: 22px; line-height: 1.1; } .tier-tab span { font-size: 12px; font-weight: 700; }
.tier-tab.on { box-shadow: 0 0 0 2px var(--sea); } .tier-tab:hover { text-decoration: none; }
.tier-tab.t-admin b, .tier-tab.t-admin span { color: #fff; }
@media (max-width: 900px) { .tier-tabs { grid-template-columns: repeat(3, 1fr); } }
.tier-stat .v { color: inherit; }
.opinions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip.warn { background: var(--warn-50); color: var(--warn); }
.upgrade-form fieldset { border: 0; padding: 0; margin: 0 0 16px; } .upgrade-form legend { font-weight: 800; margin-bottom: 8px; }
.uf-org { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 16px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; }
.pick:has(input:checked) { border-color: var(--sea); background: var(--sea-50); font-weight: 700; }
.benefits { padding-left: 18px; } .benefits li { margin: 4px 0; }
.steps-h { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 0; }
.steps-h li { background: #f0f3f5; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; }
.steps-h li span { font-weight: 500; font-size: 11.5px; }
.steps-h li.done { background: var(--ok-50); color: var(--ok); } .steps-h li.now { background: var(--sun-50); color: var(--warn); box-shadow: inset 0 0 0 1px var(--sun); }

/* 뉴스레터 */
.nl-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; opacity: .9; } .nl-stats b { font-size: 22px; margin-right: 3px; }
.nl-search { display: flex; gap: 8px; max-width: 640px; margin-top: 16px; }
.nl-search input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); font-size: 15px; }
main .nl-search input { border-color: var(--line); }
.field-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.field-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.field-tabs a i { width: 9px; height: 9px; border-radius: 50%; background: var(--fc, var(--sea)); }
.field-tabs a.on { background: var(--fc, var(--sea)); border-color: var(--fc, var(--sea)); color: #fff; } .field-tabs a.on i { background: #fff; }
.field-tabs a:hover { text-decoration: none; border-color: var(--fc); }
.ic-field { display: inline-block; background: var(--fc, var(--sea)); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.ic-field.static { font-size: 11px; padding: 2px 8px; }
.issue-card { --fc: var(--sea); display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; color: inherit; border-top: 4px solid var(--fc); }
.issue-card:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(16,33,43,.12); transform: translateY(-2px); }
.ic-thumb { position: relative; height: 170px; overflow: hidden; background: linear-gradient(135deg, #0b1d33, var(--fc)); }
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-thumb img.page { object-position: top; filter: saturate(1.05); }
.ic-thumb .ic-field { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ic-thumb .ic-draft { position: absolute; right: 10px; top: 10px; }
.ic-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ic-series { font-size: 12.5px; font-weight: 800; color: var(--fc); }
.ic-body h3 { font-size: 15.5px; margin: 4px 0; line-height: 1.4; }
.ic-top { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.ic-top li { display: flex; gap: 6px; padding: 3px 0; border-top: 1px dashed var(--line); } .ic-top b { color: var(--fc); min-width: 12px; }
.ic-top span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.ic-pdf { margin-top: auto; color: var(--muted); }
.series-card { --fc: var(--sea); padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.sc-cover { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #0b1d33; }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .sc-cover:hover img { transform: scale(1.04); }
.sc-cover .ic-field { position: absolute; left: 10px; top: 10px; }
.sc-eyebrow { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.sc-body h3 { font-size: 16px; margin-bottom: 6px; } .sc-body h3 a { color: var(--ink); }
.sc-body p { margin-bottom: 6px; } .sc-kw { margin-top: 6px; }
.sc-body .row.mt { margin-top: auto; padding-top: 12px; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 2px; } .kw-cloud .chip b { color: var(--news); margin-left: 3px; }
.kw-cloud a.chip:hover { text-decoration: none; background: var(--news-50); color: var(--news); }
.chip.ghost { background: #fff; border: 1px solid var(--line); }
.rrow { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; } .rrow:hover { text-decoration: none; } .rrow:hover b { color: var(--sea-2); }
.rrow b { font-size: 14px; font-weight: 600; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #140a33, #3b1d7a 60%, #6d28d9); }
.cta-band .small { opacity: .85; }
.series-head { --fc: var(--sea); position: relative; border-radius: 18px; overflow: hidden; color: #fff; min-height: 260px; display: flex; align-items: flex-end; background: #0b1d33; }
.series-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.series-head .sh-c { position: relative; padding: 28px; background: linear-gradient(0deg, rgba(5,12,24,.9), rgba(5,12,24,.2)); width: 100%; }
.series-head h1 { font-size: 30px; margin: 4px 0; }
.nl-issue { --fc: var(--sea); max-width: 980px; margin: 0 auto; }
.nl-head { position: relative; border-radius: 18px; overflow: hidden; color: #fff; background: #0b1d33; min-height: 300px; display: flex; align-items: flex-end; }
.nl-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-head .nh-c { position: relative; padding: 30px; width: 100%; background: linear-gradient(0deg, rgba(5,12,24,.94) 10%, rgba(5,12,24,.35)); }
.nh-series { font-weight: 800; opacity: .9; margin-top: 4px; }
.nl-head h1 { font-size: clamp(22px, 3vw, 32px); margin: 8px 0 10px; }
.nh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; opacity: .85; }
.nl-sum { margin-top: 16px; border-left: 5px solid var(--fc); } .nl-sum p { font-size: 15.5px; line-height: 1.75; }
.insight-box { background: var(--sun-50); border: 1px solid #f5d9a8; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.kpi-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpi-tiles .kt { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; border-top: 4px solid var(--fc); }
.kpi-tiles .kv { display: block; font-size: 28px; font-weight: 900; color: var(--fc); line-height: 1.1; letter-spacing: -.02em; } .kpi-tiles .kv small { font-size: 14px; font-weight: 700; margin-left: 3px; }
.kpi-tiles .kl { font-weight: 700; font-size: 13.5px; margin-top: 6px; } .kpi-tiles .kn { font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .kpi-tiles { grid-template-columns: 1fr 1fr; } }
.tl-h { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 0; overflow-x: auto; }
.tl-h li { position: relative; padding: 22px 10px 4px 0; font-size: 12.5px; border-top: 3px solid var(--line); }
.tl-h li::before { content: ''; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--fc); }
.tl-h li.now::before { background: var(--sun); border-color: var(--sun); } .tl-h li.now b { color: var(--warn); }
.tl-h b { display: block; color: var(--fc); }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.ni-rank { font-size: 34px; font-weight: 900; color: var(--fc); line-height: 1; letter-spacing: -.04em; }
.ni-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ni-body h3 { font-size: 18px; margin: 8px 0 10px; }
.ni-sec { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 14.5px; } .ni-sec b { color: var(--muted); font-size: 13px; padding-top: 2px; } .ni-sec p { margin: 0 0 10px; }
.ni-analysis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
.ni-analysis > div { background: #f7f9fa; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; } .ni-analysis b { font-size: 12.5px; color: var(--fc); } .ni-analysis p { margin: 4px 0 0; }
@media (max-width: 800px) { .ni-analysis { grid-template-columns: 1fr; } .news-item { grid-template-columns: 1fr; } }
.ni-insight { background: var(--sun-50); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 8px; } .ni-insight p { margin: 4px 0 0; }
.ni-src { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 6px; }
.stars { color: var(--sun); letter-spacing: 1px; font-size: 14px; } .stars i { color: #dde3e8; font-style: normal; }
.lock-panel { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 22px 24px; border-radius: 16px; background: linear-gradient(120deg, #f3efff, #e8f2f6); border: 1px dashed #b9a7ea; }
.lock-panel > div:nth-child(2) { flex: 1; min-width: 240px; } .lock-panel p { margin: 4px 0 0; } .lk-i { font-size: 30px; }
table.nl-t td { font-size: 13.5px; } table.nl-t td:first-child { font-weight: 700; }
.trend { position: relative; padding-top: 22px; border-top: 4px solid var(--fc); } .trend .tn { position: absolute; right: 14px; top: 8px; font-size: 30px; font-weight: 900; color: #e7ecef; }
.trend .risk { background: var(--bad-50); color: var(--bad); border-radius: 8px; padding: 6px 8px; }
.brief { padding-left: 20px; } .brief li { margin: 6px 0; }
.editor { background: #fffdf7; border-color: #f2e3bf; }
.refs { padding-left: 18px; font-size: 14px; } .refs li { margin: 5px 0; }
.hit mark { background: #fff1b8; padding: 0 2px; border-radius: 3px; }
.nl-nav .btn { min-width: 120px; }

/* 관리자 v4 */
.series-admin { border-left: 5px solid var(--fc); } .sa-cover { width: 150px; border-radius: 10px; aspect-ratio: 1200/630; object-fit: cover; }
.item-ed { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: #fbfcfd; } .item-ed summary { cursor: pointer; font-size: 14px; }
.hub-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 16px; padding: 22px 26px; color: #fff; background: linear-gradient(120deg, #022c22, #065f46 55%, #0f766e); }
.hub-hero h2 { margin: 4px 0; } .hub-hero .eyebrow { color: #a7f3d0; }
.hub-ai { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.hub-ai.on b::before { content: '● '; color: #4ade80; }
.alert.ok { background: var(--ok-50); border-color: #b5e2cb; }
.tier-tab.t-admin { background: #1d2a36; border-color: #1d2a36; }
@media (min-width: 801px) { .nav a { padding: 8px 8px; font-size: 13.5px; } .nav .sep { margin: 0 2px; } }
