@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  --navy: #10265c;
  --navy-2: #1b3a8a;
  --brand: #2453d6;
  --brand-soft: #e8eefc;
  --teal: #0f9d8a;
  --teal-soft: #e3f5f2;
  --ink: #141a26;
  --ink-2: #4a5468;
  --ink-3: #8a93a6;
  --line: #e3e7ef;
  --line-2: #eef1f6;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --danger: #d23f3f;
  --danger-soft: #fdecec;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 38, 92, .06), 0 4px 16px rgba(16, 38, 92, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; word-break: keep-all; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ───────── 버튼 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--line-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #0b8273; }
.btn-danger { color: var(--danger); border-color: #f2c4c4; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 10px; }

/* ───────── 폼 ───────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 600; font-size: 14px; }
.req::after { content: " *"; color: var(--danger); }
.hint { font-size: 13px; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; }
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; user-select: none; }
.chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checkline input { margin-top: 4px; width: 16px; height: 16px; }

/* ───────── 배지 ───────── */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-navy { background: var(--navy); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; background: var(--line-2); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ═══════════════ 공개 사이트 ═══════════════ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -0.02em; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--teal)); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: -2px; }
.logo em { font-style: normal; color: var(--teal); }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--line-2); }
.site-nav a.active { color: var(--brand); }
.site-nav .btn { margin-left: 8px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1f5fbf 100%); color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(15,157,138,.45), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 44px; font-weight: 800; max-width: 760px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); max-width: 620px; margin: 18px 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-outline-w:hover { background: rgba(255,255,255,.1); }

.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head .kicker { color: var(--teal); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-2); margin: 10px 0 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "STEP " counter(step); display: block; font-size: 12px; font-weight: 800; color: var(--brand); margin-bottom: 12px; letter-spacing: .04em; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

.link-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lt-card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.lt-card h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.lt-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.lt-card .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-bottom: 14px; }

.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; }
.cta-band p { margin: 6px 0 0; color: var(--ink-2); }

.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero h1 { font-size: 32px; }
.page-hero p { color: var(--ink-2); margin: 10px 0 0; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.form-section + .form-section { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.form-section h2 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-section h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding: 40px 0 80px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 84px; }
.aside-card h3 { font-size: 16px; margin-bottom: 12px; }
.aside-card ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.aside-card ol li + li { margin-top: 8px; }
.privacy-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.privacy-box ul { margin: 4px 0 0; padding-left: 18px; }
.success { text-align: center; padding: 56px 24px; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 20px; }
.success h2 { font-size: 24px; margin-bottom: 10px; }
.success .receipt { display: inline-block; margin: 14px 0 26px; padding: 10px 18px; background: var(--bg); border-radius: 8px; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.interest-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--teal-soft); border-radius: 8px; color: #0b6e61; font-size: 14px; margin-bottom: 20px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chips button { height: 34px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.filter-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.startup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 80px; }
.startup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; }
.startup-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.startup-card .top { display: flex; align-items: center; gap: 12px; }
.startup-card .avatar { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.startup-card h3 { font-size: 17px; }
.startup-card p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.startup-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.count-line { color: var(--ink-2); font-size: 14px; margin-left: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 36px 0; font-size: 13px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer a { color: rgba(255,255,255,.7); }

/* ═══════════════ 내부(관리) 페이지 ═══════════════ */
.admin-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: rgba(255,255,255,.75); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; padding: 4px 8px 22px; }
.sidebar .logo small { color: rgba(255,255,255,.5); }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.4); padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.side-link .cnt { margin-left: auto; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 6px 0; font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.side-foot button, .side-foot a { background: rgba(255,255,255,.08); border: 0; color: rgba(255,255,255,.85); font-size: 12px; padding: 6px 10px; border-radius: 6px; cursor: pointer; text-decoration: none !important; }
.side-foot button:hover, .side-foot a:hover { background: rgba(255,255,255,.16); }

.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { font-size: 16px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi .k { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi .v { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.pipe-row { display: grid; grid-template-columns: 96px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.pipe-bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.pipe-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 11px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #f8faff; }
.tbl .strong { font-weight: 600; }
.tbl .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; color: var(--ink-2); font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.filters .input { height: 38px; width: auto; min-width: 140px; }
.filters .search { max-width: 320px; }
.filters .search .input { width: 100%; }

/* 모달 */
.modal-back { position: fixed; inset: 0; background: rgba(12, 20, 40, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fafbfd; border-radius: 0 0 14px 14px; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; }
.x-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 4px 8px; border-radius: 6px; }
.x-btn:hover { background: var(--line-2); }
.sub-h { font-size: 13px; font-weight: 800; color: var(--navy); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; margin: 0 0 18px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; white-space: pre-wrap; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 380px; white-space: pre-line; animation: tin .2s ease; }
.toast.err { background: var(--danger); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* 매칭 추천 */
.match-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.demand-list { max-height: calc(100vh - 150px); overflow-y: auto; }
.demand-item { padding: 14px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.demand-item:hover { background: #f8faff; }
.demand-item.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.demand-item .c { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.demand-item .t { font-weight: 700; font-size: 14px; margin: 3px 0 6px; }
.demand-item .m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.demand-summary { padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.demand-summary h2 { font-size: 19px; margin: 4px 0 8px; }
.demand-summary p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; }
.rec { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); align-items: start; }
.rec:last-child { border-bottom: 0; }
.score { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; position: relative; }
.score span { position: relative; z-index: 1; }
.score small { font-size: 10px; font-weight: 600; display: block; margin-top: -4px; text-align: center; color: var(--ink-3); }
.rec h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rec p { margin: 6px 0 8px; font-size: 14px; color: var(--ink-2); }
.why { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.why b { color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.why .hit { background: #fff6d6; color: #8a6200; padding: 1px 7px; border-radius: 4px; }
.bd { display: flex; gap: 10px; font-size: 11px; color: var(--ink-3); margin-top: 8px; flex-wrap: wrap; }
.bd span i { font-style: normal; font-weight: 700; color: var(--ink-2); }
.rec .side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* 성과 트리 */
.tree-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tree-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-left: auto; flex-wrap: wrap; }
.tree-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tree-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tree-company { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow-x: auto; }
.tc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; }
.tc-head:hover { background: #fafbfd; }
.tc-head .caret { transition: transform .15s; color: var(--ink-3); width: 18px; height: 18px; }
.tree-company.closed .caret { transform: rotate(-90deg); }
.tree-company.closed .tc-body { display: none; }
.tc-head .name { font-weight: 800; font-size: 17px; }
.tc-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tc-body { padding: 4px 18px 20px; border-top: 1px solid var(--line-2); min-width: 760px; }

/* 가로형 트리: 대기업 → 스타트업 → 연계방안 → 현재상황 */
.htree { display: flex; align-items: stretch; padding-top: 16px; }
.htree .col-root { display: flex; align-items: center; padding-right: 28px; position: relative; flex-shrink: 0; }
.htree .col-root::after { content: ""; position: absolute; right: 0; top: 50%; width: 28px; border-top: 2px solid #c9d1e2; }
.node { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px; min-width: 150px; position: relative; }
.node .lv { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--ink-3); display: block; margin-bottom: 2px; }
.node.n-company { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 800; }
.node.n-company .lv { color: rgba(255,255,255,.55); }
.node.n-startup { border-color: #c9d6f5; background: #f5f8ff; font-weight: 700; min-width: 180px; }
.node.n-startup .sub { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.node.n-link { font-weight: 700; min-width: 120px; }
.node.n-status { min-width: 240px; max-width: 360px; cursor: pointer; border-left-width: 4px; }
.node.n-status:hover { box-shadow: var(--shadow); }
.st-none { border-left-color: #d5dbe5; border-left-style: dashed; }
.node.n-status .st { font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.node.n-status .nt { font-size: 12px; color: var(--ink-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node.n-status .dt { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.node.n-wait { color: var(--ink-3); border-style: dashed; background: transparent; }
.branch { display: flex; flex-direction: column; justify-content: center; position: relative; }
.branch > .item { display: flex; align-items: center; position: relative; padding: 6px 0 6px 28px; }
/* 연결선 */
.branch > .item::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; border-top: 2px solid #c9d1e2; }
.branch > .item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid #c9d1e2; }
.branch > .item:first-child::after { top: 50%; }
.branch > .item:last-child::after { bottom: 50%; }
.branch > .item:only-child::after { display: none; }
.item > .node + .branch { margin-left: 28px; }
.item > .node { flex-shrink: 0; }
.item > .node + .branch::before { content: ""; position: absolute; left: -28px; top: 50%; width: 28px; border-top: 2px solid #c9d1e2; }
.st-0 { border-left-color: #9aa5ba; } .st-1 { border-left-color: #5b8def; } .st-2 { border-left-color: #2453d6; }
.st-3 { border-left-color: #d8a33a; } .st-4 { border-left-color: #0f9d8a; } .st-5 { border-left-color: #10265c; } .st-6 { border-left-color: #d23f3f; }
.bg-st-0 { background: #9aa5ba; } .bg-st-1 { background: #5b8def; } .bg-st-2 { background: #2453d6; }
.bg-st-3 { background: #d8a33a; } .bg-st-4 { background: #0f9d8a; } .bg-st-5 { background: #10265c; } .bg-st-6 { background: #d23f3f; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 16px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline .when { font-size: 12px; color: var(--ink-3); }

/* 로그인 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-card .logo { justify-content: center; margin-bottom: 8px; }
.login-card p.c { text-align: center; color: var(--ink-3); font-size: 14px; margin: 0 0 26px; }
.login-card.signup-card { max-width: 560px; }
.login-links { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
.login-links a { color: var(--ink-2); }
.login-links a:first-child { font-weight: 600; color: var(--blue, #2563eb); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 14px; line-height: 1.5; }
.agree input { margin-top: 3px; flex: none; }
.signup-done { text-align: center; padding: 10px 0 22px; }
.signup-done strong { display: block; font-size: 18px; margin-bottom: 8px; }
.signup-done p { color: var(--ink-3); font-size: 14px; margin: 0; }
.menu-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #f8fafc; }
.menu-checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.menu-checks.disabled { opacity: .5; pointer-events: none; }
.user-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.menu-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
@media (max-width: 600px) { .menu-checks { grid-template-columns: 1fr; } .login-card { padding: 28px 20px; } }
.form-error { color: var(--danger); font-size: 14px; margin: -6px 0 12px; min-height: 20px; white-space: pre-line; }

/* ───────── 반응형 ───────── */
@media (max-width: 1100px) {
  .match-layout { grid-template-columns: 1fr; }
  .demand-list { max-height: 320px; }
}
@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .link-types { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px; padding: 10px 12px; }
  .sidebar .logo { padding: 4px 10px 4px 4px; width: 100%; }
  .side-group { display: none; }
  .side-foot { margin: 0; border: 0; padding: 6px 0 0; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .side-foot .acts { margin: 0; }
  .main { padding: 20px 16px 48px; }
}
@media (max-width: 640px) {
  .site-header .inner { gap: 10px; padding: 0 16px; }
  .site-nav a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .logo small { display: none; }
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .steps, .link-types, .grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .cta-band { padding: 26px 20px; }
  .rec { grid-template-columns: 52px minmax(0, 1fr); }
  .rec .side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .score { width: 52px; height: 52px; font-size: 17px; }
  .dl { grid-template-columns: 96px 1fr; }
}

/* 헤더 CTA 버튼 */
.site-nav a.btn-primary { color: #fff; padding: 0 14px; }
.site-nav a.btn-primary:hover { background: var(--navy-2); }
@media (max-width: 640px) {
  .site-nav a[href="/"]:not(.btn) { display: none; }
  .site-nav .btn { display: inline-flex; margin-left: 4px; }
}

/* ───────── CI(로고) ───────── */
.ci { display: inline-flex; align-items: center; justify-content: center; height: 48px; min-width: 110px; max-width: 170px; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ci img { max-height: 34px; max-width: 100%; object-fit: contain; display: block; }
.ci-text { font-weight: 800; font-size: 14px; color: var(--navy); letter-spacing: -0.02em; text-align: center; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-inline-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci.sm { height: 34px; min-width: 0; max-width: 130px; padding: 4px 8px; border-radius: 7px; }
.ci.sm img { max-height: 24px; }
.ci.sm.ci-text { font-size: 12px; }
.logo-picker { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lp-preview { width: 160px; height: 64px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.lp-preview img { max-width: 140px; max-height: 50px; object-fit: contain; }
.lp-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ───────── 공개: 매칭 성과 ───────── */
.sc-cat + .sc-cat { margin-top: 44px; }
.sc-title { font-size: 22px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px; }
.sc-title span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sc-pair { display: flex; align-items: center; gap: 10px; }
.sc-pair .ci { flex: 1; max-width: none; }
.sc-x { font-size: 20px; font-weight: 700; color: var(--ink-3); flex-shrink: 0; }
.sc-text { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.filter-chips button .muted { font-weight: 500; margin-left: 2px; }
.filter-chips button.on .muted { color: rgba(255,255,255,.7); }
.home-showcase .sc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 640px) {
  .sc-grid, .home-showcase .sc-grid { grid-template-columns: 1fr; }
}

/* ───────── 성과 트리 보강 ───────── */
.node.n-company { display: flex; flex-direction: column; gap: 6px; }
.node.n-company .ci { background: #fff; }
.node.n-startup { max-width: 260px; }
.node.n-startup .info { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.node.n-startup .info b { color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.node.n-startup .ts { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node .pub { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
.node .pub:hover { border-color: var(--teal); color: var(--teal); }
.node .pub.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.node.n-status { padding-right: 58px; }
.plus-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed #b6c0d4; background: #fff; color: var(--ink-3); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.plus-btn:hover { border-style: solid; border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.item > .plus-btn { margin-left: 0; }
.branch > .item.add-item { padding-top: 4px; padding-bottom: 4px; }
.node.n-link .sub { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); max-width: 180px; }
.node.n-link.follow { border-style: dashed; }
.cat-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.cat-row .input { height: 36px; }
.cat-row .cnt { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
/* 트리 폭 조정: 후속 연계가 이어져도 한눈에 보이도록 */
.node.n-startup { min-width: 170px; max-width: 220px; }
.node.n-link { min-width: 110px; max-width: 170px; }
.node.n-status { min-width: 190px; max-width: 250px; }
.branch > .item { padding-left: 22px; }
.branch > .item::before { width: 22px; }
.item > .node + .branch { margin-left: 22px; }
.item > .node + .branch::before { left: -22px; width: 22px; }
.htree .col-root { padding-right: 22px; }
.htree .col-root::after { width: 22px; }
.tbl .info-clamp { -webkit-line-clamp: 3; max-width: 300px; white-space: pre-line; }

/* 성과 트리: 수요기업 직접 추가 줄 */
.add-company { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 14px; background: #fff; border: 1.5px dashed #c9d1e2; border-radius: var(--radius); color: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; }
.add-company:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.add-company:hover .plus-btn { border-style: solid; border-color: var(--brand); color: var(--brand); }
.add-company .muted { font-weight: 500; }

/* 수요기업 구분 */
.badge-purple { background: #EFEDF8; color: #4B4785; }
.chip-btn { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

/* ───────── 밋업 현황: 엑셀형 표 ───────── */
table.sheet { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.sheet th { background: #f3f5f9; color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: left; padding: 9px 8px; border: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.sheet td { border: 1px solid var(--line); padding: 0; vertical-align: top; background: #fff; }
.sheet td.num { text-align: center; color: var(--ink-3); font-size: 12px; padding-top: 11px; background: #fafbfd; }
.sheet .cell { width: 100%; border: 0; background: transparent; padding: 9px 8px; font-size: 14px; outline: none; border-radius: 0; resize: vertical; min-height: 38px; font-family: inherit; }
.sheet .cell:focus { box-shadow: inset 0 0 0 2px var(--brand); background: #f8faff; }
.sheet .cell.saved { box-shadow: inset 0 0 0 2px var(--teal); background: var(--teal-soft); transition: background .3s; }
.sheet .cell.err { box-shadow: inset 0 0 0 2px var(--danger); }
.sheet .cell-btn { width: 100%; min-height: 38px; text-align: left; border: 0; background: transparent; padding: 8px; cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--ink); display: block; }
.sheet .cell-btn:hover { background: #f3f6ff; }
.sheet .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.sheet .x-btn { margin: 4px auto; display: block; }
.sheet tbody tr:hover td { background: #fbfcff; }
.sheet-add { width: 100%; border: 0; border-top: 1px dashed var(--line); background: #fafbfd; padding: 11px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.sheet-add:hover { background: var(--brand-soft); color: var(--brand); }
.fu-sheet + .sheet-add { border: 1px dashed var(--line); border-top: 0; }
.fu-sheet textarea.cell { min-height: 54px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo { position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f3f5f9; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }

/* 메뉴 이름이 길어져 사이드바 폭 조정 */
.admin-layout { grid-template-columns: 262px minmax(0, 1fr); }
.side-link { font-size: 13.5px; white-space: nowrap; }
.field > label.btn { align-self: flex-start; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } .side-link { white-space: normal; } }

/* ───────── 언어 선택 (한국어 · EN · 日本語) ───────── */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-2); border: 1px solid var(--line); flex-shrink: 0; }
.lang-switch button { border: 0; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; cursor: pointer; line-height: 1; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: var(--navy); color: #fff; }
.site-nav .lang-switch { margin-left: 10px; }
.admin-layout { position: relative; }
.lang-switch.admin { position: absolute; top: 14px; right: 32px; z-index: 30; background: #fff; box-shadow: var(--shadow); }
.admin-layout .main { padding-top: 58px; }
.lang-switch.floating { position: fixed; top: 16px; right: 16px; z-index: 50; background: rgba(255,255,255,.95); }
/* 일본어: 가나 글꼴을 우선 */
:root[lang=ja] body { font-family: 'Pretendard Variable', Pretendard, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; }
:root[lang=en] .tbl th, :root[lang=ja] .tbl th { white-space: nowrap; }
@media (max-width: 960px) { .lang-switch.admin { position: static; margin: 8px 0 0 auto; display: flex; width: max-content; } .admin-layout .main { padding-top: 20px; } }
@media (max-width: 640px) { .site-nav .lang-switch { margin-left: 4px; } .lang-switch button { padding: 5px 7px; font-size: 11px; } }

/* 일본어는 띄어쓰기가 없어 한국어용 keep-all 대신 일반 줄바꿈 규칙 사용 */
:root[lang=ja] body { word-break: normal; line-break: strict; overflow-wrap: anywhere; }

/* ── 홈 화면 관리 ── */
.blk { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.blk.off { opacity: .55; }
.blk-ord { display: flex; flex-direction: column; gap: 4px; }
.blk-main { flex: 1; min-width: 0; }
.blk-type { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.blk-title { font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.blk-vis { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.blk-vis input { margin: 0; }
.icon-btn { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; color: var(--ink-2); font-size: 13px; line-height: 1; display: inline-grid; place-items: center; }
.icon-btn:hover:not(:disabled) { background: var(--line-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { background: #fde8e8; color: var(--danger); border-color: #f1c4c4; }
.he-list { margin-top: 4px; }
.he-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; background: var(--bg); }
.he-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; min-width: 0; }
.he-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.he-f > span { font-size: 12px; color: var(--ink-2); }
.he-f.he-wide { grid-column: 1 / -1; }
.he-ctrl { display: flex; flex-direction: column; gap: 4px; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-opt { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.icon-opt svg { width: 22px; height: 22px; }
.icon-opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) { .he-fields { grid-template-columns: 1fr; } .he-f { grid-column: 1 / -1; } }
.add-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* AI 매칭추천: Top-Down / Bottom-Up 탭 */
.rec-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rec-tabs button { flex: 1; min-width: 220px; text-align: left; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rec-tabs button b { display: block; font-size: 15px; color: var(--ink); }
.rec-tabs button span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.rec-tabs button:hover { border-color: var(--brand); }
.rec-tabs button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-50, #eef3ff); }
.rec-tabs button.on b { color: var(--brand); }

/* 매칭 성과 트리: 매칭 추가 모달 슬롯 */
.manual-slot { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.manual-slot .field:last-child { margin-bottom: 0; }
.manual-arrow { text-align: center; color: var(--ink-3); font-size: 12px; font-weight: 600; margin: 8px 0; }

/* 매칭 성과 트리: 최상위 기준(수요기업/공급기업) 토글 */
.axis-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; height: 38px; }
.axis-toggle button { border: 0; background: var(--surface); padding: 0 13px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.axis-toggle button + button { border-left: 1px solid var(--line); }
.axis-toggle button:hover:not(.on) { background: var(--line-2); }
.axis-toggle button.on { background: var(--brand); color: #fff; }
