/* 터랩 — 디자인 토큰 (라이트 / 다크) */
:root {
  --bg: #f6f8fa;
  --bg-2: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f1a24;
  --ink-2: #334453;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --brand: #0e7490;
  --brand-2: #0891b2;
  --brand-ink: #ffffff;
  --brand-soft: #e0f2f7;
  --accent: #d97706;
  --accent-soft: #fef3e2;
  --warn: #b45309;
  --warn-soft: #fff7e6;
  --bad: #b42318;
  --bad-soft: #fef1f0;
  --good: #15803d;
  --good-soft: #e8f6ed;
  --shadow-sm: 0 1px 2px rgba(15, 26, 36, .05);
  --shadow: 0 1px 2px rgba(15, 26, 36, .04), 0 8px 24px -8px rgba(15, 26, 36, .10);
  --shadow-lg: 0 24px 60px -20px rgba(15, 26, 36, .25);
  --header: rgba(255, 255, 255, .78);
  --hatch-a: #f1f5f9;
  --hatch-b: #e9eef4;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1117;
  --bg-2: #0f171f;
  --surface: #121b24;
  --surface-2: #16212c;
  --ink: #e6edf3;
  --ink-2: #c3cfda;
  --muted: #8b9bab;
  --line: #223140;
  --line-2: #2e4152;
  --brand: #22b8d9;
  --brand-2: #5fd0ea;
  --brand-ink: #04202a;
  --brand-soft: #0d2b36;
  --accent: #f59e0b;
  --accent-soft: #2b2110;
  --warn: #f2b45a;
  --warn-soft: #2a2112;
  --bad: #f8877d;
  --bad-soft: #2d1614;
  --good: #5ad08a;
  --good-soft: #10261a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  --header: rgba(11, 17, 23, .78);
  --hatch-a: #131c25;
  --hatch-b: #18232e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--brand); color: var(--brand-ink); }

/* 상단 */
header.top { position: sticky; top: 0; z-index: 20; background: var(--header); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #0e7490, #155e75); box-shadow: 0 4px 12px -4px rgba(14, 116, 144, .6); }
.logo .mark svg { width: 28px; height: 28px; }
.logo small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.badge-demo { font-size: 11px; background: var(--accent-soft); color: var(--warn); padding: 2px 9px; border-radius: 99px; font-weight: 700; }
header.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; font-size: 14px; }
header.top .logo, header.top .badge-demo, header.top nav > a, header.top nav .linkbtn { white-space: nowrap; flex-shrink: 0; }
header.top nav > a:not(.btn), header.top nav .linkbtn { color: var(--ink-2); padding: 7px 10px; border-radius: 8px; }
header.top nav > a:not(.btn):hover, header.top nav .linkbtn:hover { background: var(--bg-2); text-decoration: none; }
header.top nav form { display: inline; }
header.top nav .btn { margin-left: 6px; }
.theme-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; margin-left: 4px; }
.theme-btn:hover { border-color: var(--line-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; border-color: var(--line-2);
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 6px 16px -6px rgba(14, 116, 144, .55); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.btn.lg { padding: 15px 28px; font-size: 17px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.danger:hover { background: var(--bad-soft); }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { text-decoration: underline; }

/* 입력 */
input:not([type]), input[type=date], input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px;
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
/* 펼친 목록(option)은 화면마다 배경을 투명하게 둔 선택 상자에서도 테마 색으로 — 다크모드에서 흰 바탕 · 밝은 글자로 안 보이던 문제 */
select option, select optgroup { background-color: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input:disabled { background: var(--bg-2); color: var(--muted); }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── 첫 화면 ── */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
              radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.04em; }
.grad { background: linear-gradient(100deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--good); }

/* 제품 화면 그림 */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-head b { font-size: 14px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 6px; background: var(--surface); }
.mock-card .t { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; }
.mock-card svg { width: 100%; height: auto; display: block; }
.mock-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--good);
  background: var(--good-soft); padding: 3px 9px; border-radius: 99px; }
.mock-dl { display: flex; gap: 8px; }
.mock-dl span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 8px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); }
.mock-dl span:first-child { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.mock .grid-l { stroke: var(--line); stroke-width: 1; }
.mock .ground { stroke: var(--accent); stroke-width: 2.4; fill: none; stroke-linejoin: round; }
.mock .ground-fill { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.mock .center { stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 5 4; }
.mock .pt { fill: var(--brand); }
.mock .lbl { fill: var(--muted); font-size: 9px; font-family: inherit; }
.mock .gap { fill: color-mix(in srgb, var(--bad) 14%, transparent); }

/* 숫자 띠 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 8px; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 13.5px; }

section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head .kicker { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
.sec-head h2 { font-size: 32px; margin: 8px 0 10px; font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; font-size: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.icon.amber { background: var(--accent-soft); color: var(--accent); }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: var(--brand-ink); font-weight: 800; font-size: 14px; margin-bottom: 14px; }

/* 이전 / 터랩 비교 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card { padding: 26px 28px; }
.compare h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.compare ol { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.compare li { margin: 7px 0; }
.compare .before { background: var(--surface-2); }
.compare .before h3 { color: var(--muted); }
.compare .after { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--bg-2); color: var(--muted); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* 요금 */
.bill-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-top: 18px; }
.bill-toggle button, .bill-toggle a { border: 0; background: none; padding: 7px 16px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; }
.bill-toggle button.on, .bill-toggle a.on { background: var(--brand); color: var(--brand-ink); }
.bill-toggle em { font-style: normal; font-size: 11.5px; color: var(--good); margin-left: 4px; }
.bill-toggle button.on em, .bill-toggle a.on em { color: inherit; opacity: .85; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 16px; color: var(--ink-2); }
.plan .price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.03em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan .sub { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 14px; color: var(--ink-2); flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px; border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plan.featured { border: 1.5px solid var(--brand); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--brand) 55%, transparent); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; }
/* 요금 카드: 설명 | 가격(고정 폭 · 오른쪽 맞춤) | 버튼(고정 폭) — 모든 카드의 가격 · 버튼 세로줄이 맞도록 */
.bundle { display: grid; grid-template-columns: minmax(0, 1fr) 220px 200px; align-items: center; gap: 28px; margin-top: 18px; position: relative;
  border: 1.5px solid var(--brand); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--brand) 55%, transparent); padding: 26px 30px; }
.bundle .ribbon { position: absolute; top: -12px; left: 30px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; }
.bundle h3 { font-size: 20px; margin: 0 0 4px; }
.bundle p { margin: 0; color: var(--muted); font-size: 14px; }
.bundle-price { text-align: right; }
.bundle-price s { color: var(--muted); font-size: 14px; }
.bundle-price .price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.bundle-price .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.bundle-price .sub { font-size: 13px; color: var(--muted); }
.bundle > .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
@media (max-width: 760px) {
  .bundle { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .bundle-price { text-align: left; }
  .bundle .btn { width: 100%; }
}
/* 대표 요금 3개 + 펼쳐 보기 (4개 고르기 · 기능별 · 팀) */
.plans.tiers { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto; }
.plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
details.price-more { max-width: 960px; margin: 16px auto 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: var(--surface); }
details.price-more > summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.price-more > summary::-webkit-details-marker { display: none; }
details.price-more > summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
details.price-more[open] > summary::after { transform: rotate(45deg); }
details.price-more[open] { padding-bottom: 18px; }
details.price-more .plans { grid-template-columns: repeat(3, 1fr); }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* 자주 묻는 질문 */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* 마지막 권유 띠 */
.cta-band { border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0e7490, #155e75 55%, #1e3a4c); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: repeating-radial-gradient(circle at 90% 120%, transparent 0 22px, #fff 22px 23px); }
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn { position: relative; z-index: 1; background: #fff; color: #0e3a4a; border-color: #fff; }
.cta-band .btn:hover { background: #e8f7fb; }

/* 패널 / 업로드 */
.page-head { padding: 40px 0 4px; }
.page-head h1 { font-size: 28px; margin: 0 0 6px; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { margin-top: 0; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 48px 20px; text-align: center; background: var(--surface-2);
  cursor: pointer; transition: .15s; }
.drop:hover { border-color: var(--brand); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .drop-ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); }
.drop .drop-ic svg { width: 28px; height: 28px; }
.drop .big { font-size: 18px; font-weight: 700; }
.drop .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.drop .file { margin-top: 14px; font-weight: 700; color: var(--brand); }
details.settings { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details.settings summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details.settings[open] { padding-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 6px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; }
.checks small { color: var(--muted); }
.agree { margin-top: 20px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.actions { margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.msg { font-size: 14px; }
.msg.err { color: var(--bad); background: var(--bad-soft); padding: 9px 12px; border-radius: 10px; }
.msg.ok { color: var(--good); background: var(--good-soft); padding: 9px 12px; border-radius: 10px; }
.note { font-size: 13px; color: var(--muted); }

/* 로그인 · 가입 */
.auth { max-width: 440px; margin: 48px auto 24px; padding: 0 16px; }
.auth.wide { max-width: 540px; }
.auth .panel { padding: 32px; box-shadow: var(--shadow); margin: 0; }
.auth h1 { font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.auth .lead { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.auth .switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* 결과 */
.status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill.queued, .pill.running { background: var(--brand-soft); color: var(--brand); }
.pill.done { background: var(--good-soft); color: var(--good); }
.pill.error { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%;
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.summary.three { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.kpi b { font-size: 24px; display: block; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpi b.sm { font-size: 16px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.warn b { color: var(--warn); }
.log { background: #0a1016; color: #cfdbe5; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: "D2Coding", Consolas, monospace;
  font-size: 12.5px; max-height: 280px; overflow: auto; white-space: pre-wrap; }
.log .w { color: #ffcf7a; }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 6px; }
.gallery figcaption { font-size: 13px; color: #5b6b78; padding: 8px 4px 0; }
.legend { font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 10px; vertical-align: middle; margin: 0 4px 0 10px; border-radius: 2px; }
.callout { border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); color: var(--ink-2);
  padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.lockbox { border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lockbox b { font-size: 16px; }
.lockbox p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.hidden-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hidden-card { border: 1px dashed var(--line-2); border-radius: 12px; height: 120px; display: grid; place-items: center; color: var(--muted);
  font-size: 14px; background: repeating-linear-gradient(45deg, var(--hatch-a), var(--hatch-a) 10px, var(--hatch-b) 10px, var(--hatch-b) 20px); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.list.mini { font-size: 13px; margin: 8px 0 4px; }
table.list.mini th, table.list.mini td { padding: 6px; }
.table-scroll { overflow-x: auto; }

/* 아래 */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 13.5px; margin-top: 72px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--ink); text-decoration: none; }
.foot-brand p { margin: 10px 0 0; max-width: 320px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.foot-bottom .biz span + span::before { content: "·"; margin: 0 8px; opacity: .6; }

/* 소셜 로그인 */
.social { display: grid; gap: 10px; margin: 18px 0 8px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 15px; transition: filter .15s; }
.sbtn:hover { text-decoration: none; filter: brightness(.97); }
.sbtn.google { background: #fff; color: #1f1f1f; border: 1px solid #c4c7c5; }
.sbtn.naver { background: #03c75a; color: #fff; border: 1px solid #03c75a; }
.sbtn .nlogo { font: 900 17px/1 Arial, sans-serif; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* 약관·처리방침 */
.legal { max-width: 860px; line-height: 1.8; padding-top: 32px; }
.legal h1 { margin-bottom: 4px; font-size: 30px; font-weight: 800; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal ol, .legal ul { padding-left: 22px; color: var(--ink-2); }
.legal p { color: var(--ink-2); }
.legal table.list th { white-space: nowrap; vertical-align: top; }
.legal .summary-box { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: var(--brand-soft); }
.legal .summary-box ul { margin: 6px 0 0; }
.fill { background: var(--accent-soft); color: var(--warn); padding: 0 6px; border-radius: 4px; font-size: .9em; font-weight: 600; }
.consent label { display: block; margin: 6px 0; }
.consent .all { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }

/* 반응형 */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 620px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .sec-head h2 { font-size: 25px; }
  section.block { padding: 52px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid3, .summary { grid-template-columns: 1fr 1fr; }
  .compare, .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  header.top nav .hide-sm { display: none; }
  .logo small { display: none; }
  .panel { padding: 20px; }
  .auth .panel { padding: 24px; }
}
@media (max-width: 520px) {
  .grid3, .grid4, .summary, .summary.three, .plans, .mock-row, .hidden-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .badge-demo { display: none; }
  header.top nav .btn { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.foot-grid a.logo { display: inline-flex; color: var(--ink); padding: 0; }

/* ── 터랩 기능 구조 ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge.live { background: var(--good-soft); color: var(--good); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.soon { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }

/* 기능 페이지 위 띠: 세 기능 전환 */
.fnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.fnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.fnav a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.fnav a:hover { color: var(--ink); text-decoration: none; }
.fnav a.on { color: var(--ink); border-bottom-color: var(--brand); }
.fnav a .badge { font-size: 11px; padding: 1px 7px; }
.fhead { padding: 32px 0 6px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.fhead h1 { font-size: 28px; margin: 0 0 6px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fhead p { margin: 0; color: var(--muted); max-width: 640px; }
.fhead .usage { font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

/* 넣는 것 → 나오는 것 */
.io { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 18px 0; }
.io .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.io .box h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.io .box ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.io .box li { margin: 3px 0; }
.io .arrow { display: grid; place-items: center; color: var(--brand); }
.io .arrow svg { width: 26px; height: 26px; }
.soon-box { display: flex; gap: 16px; align-items: center; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; background: var(--surface-2); }
.soon-box .icon { margin: 0; flex: none; }
.soon-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 4px 0 0; padding: 0; list-style: none; }
.feat-list li { padding-left: 24px; position: relative; color: var(--ink-2); font-size: 14.5px; }
.feat-list li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* 첫 화면: 기능 카드 */
.prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .prods { grid-template-columns: repeat(2, 1fr); } }
.prod { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.prod .top { display: flex; justify-content: space-between; align-items: flex-start; }
.prod .icon { margin: 0; width: 50px; height: 50px; border-radius: 14px; }
.prod .icon svg { width: 25px; height: 25px; }
.prod h3 { font-size: 20px; margin: 6px 0 0; }
.prod > p { color: var(--muted); margin: 0; }
.prod ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); flex: 1; }
.prod li { padding: 4px 0 4px 20px; position: relative; }
.prod li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); opacity: .55; }
.prod .more { font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.prod.live { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

/* 사업 하나의 흐름 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; border-top: 2px dashed var(--line-2); }
.flow .st { text-align: center; padding: 0 10px; position: relative; }
.flow .dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--line-2); color: var(--muted); position: relative; }
.flow .dot svg { width: 24px; height: 24px; }
.flow .st.on .dot { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.flow b { display: block; font-size: 15px; }
.flow span { color: var(--muted); font-size: 13.5px; }

/* 요금: 기능 탭 */
.ptabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; justify-content: center; }
.ptabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.ptabs button.on { background: var(--ink); color: var(--bg); }
.ptabs button small { font-size: 11px; font-weight: 600; opacity: .8; }
.price-ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 30px; }
.price-ctl .bill-toggle { margin-top: 0; }
.plan .price.tbd { font-size: 22px; color: var(--muted); }
.mock-side { display: grid; grid-template-columns: 116px 1fr; }
.mock-nav { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; align-content: start; gap: 4px; background: var(--surface-2); }
.mock-nav span { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 7px 9px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.mock-nav span i { width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); }
.mock-nav span.on { background: var(--brand-soft); color: var(--brand); }
.mock-nav span.on i { background: var(--brand); }

/* 결제 */
.checkout { max-width: 560px; margin: 40px auto; }
.order { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.order th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 0; width: 40%; }
.order td { text-align: right; padding: 10px 0; }
.order tr + tr th, .order tr + tr td { border-top: 1px solid var(--line); }
.order .total td, .order .total th { font-size: 18px; font-weight: 800; color: var(--ink); }

/* 내 계정: 기능별 이용권 */
.ent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ent .kpi { display: flex; flex-direction: column; gap: 6px; }
.ent .kpi .name { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); font-size: 14px; }

@media (max-width: 980px) {
  .prods { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .flow::before { display: none; }
}
@media (max-width: 760px) {
  .io { grid-template-columns: 1fr; }
  .io .arrow { transform: rotate(90deg); }
  .feat-list, .ent { grid-template-columns: 1fr; }
  .mock-side { grid-template-columns: 1fr; }
  .mock-nav { display: none; }
}
.hero .stats { margin-top: 36px; }
.hero h1 .grad { white-space: nowrap; }
@media (max-width: 1180px) { .hero h1 { font-size: 40px; } }
@media (max-width: 760px) { .hero h1 { font-size: 30px; } .hero h1 .grad { white-space: normal; } }
.fnav .wrap { max-width: 920px; }
@media (max-width: 1180px) { .hero h1 .grad { white-space: normal; } }

.local-bar { background: var(--accent-soft); color: var(--warn); font-size: 13px; font-weight: 700; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ── 기능 작업대 화면 (종횡단면도 등, 위쪽은 터랩 공통 띠) ── */
body.wb-page { background: var(--bg); }
.wb-main { max-width: 1280px; margin: 0 auto; padding: 22px 24px 40px; }
.wb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wb-head h1 { margin: 0 0 4px; font-size: 24px; }
.wb-head p { margin: 0; color: var(--muted); font-size: 14px; }
.wb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wb-grid .panel { margin-top: 0; }
.wb-jobs h3 { margin: 0 0 10px; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.wb-jobs h3 small { font-weight: 500; color: var(--muted); font-size: 12px; }
.wb-jobs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wb-jobs li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
.wb-jobs li a:hover { border-color: var(--brand); text-decoration: none; }
.wb-jobs li b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-jobs li small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.wb-jobs .st { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); }
.wb-jobs .st-done { background: var(--good-soft); color: var(--good); }
.wb-jobs .st-running, .wb-jobs .st-queued { background: var(--brand-soft); color: var(--brand); }
.wb-jobs .st-error { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 960px) { .wb-grid { grid-template-columns: 1fr; } }

/* 작업대 탭 · 토적표 */
.wb-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.wb-tabs button { border: 0; background: none; padding: 9px 16px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.wb-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.wb-tabs button small { font-weight: 500; color: var(--muted); }
.earth-head h3 { margin: 0 0 4px; }
.earth-head h3 small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.earth-msg { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13.5px; }
.earth-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; margin: 14px 0; }
.earth-sum > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; background: var(--surface); }
.earth-sum span { font-size: 12px; color: var(--muted); font-weight: 600; }
.earth-sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.earth-sum .src b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earth-sum i { font-style: normal; font-size: 12px; color: var(--muted); }
.earth-apply { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.earth-apply > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.earth-apply > div > b { min-width: 84px; }
.earth-apply > div > span { flex: 1; min-width: 240px; color: var(--muted); font-size: 13px; }
.earth-t td.n { text-align: right; font-variant-numeric: tabular-nums; }
.earth-t tr.tot td { font-weight: 700; border-top: 2px solid var(--line-2); }
@media (max-width: 760px) { .earth-sum { grid-template-columns: 1fr 1fr; } }

/* ── 내 사업 · 사업 화면 ── */
.pj-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pj-tools input[type=search] { flex: 1 1 280px; max-width: 420px; }
.pj-tools select { width: auto; }
.pj-tools .muted { color: var(--muted); font-size: 13px; margin-left: auto; }
.pj-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pj-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 130px minmax(0, 2.4fr) 80px; gap: 14px; align-items: center; padding: 12px 16px; color: var(--ink); border-top: 1px solid var(--line); }
.pj-row:first-child { border-top: 0; }
.pj-row:hover { background: var(--surface-2); text-decoration: none; }
.pj-row.on { box-shadow: inset 3px 0 0 var(--brand); }
.pj-row[hidden] { display: none; }
.pj-main { display: flex; flex-direction: column; min-width: 0; }
.pj-main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-main span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-kind i, .pj-badge { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pj-feat { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-feat span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.pj-feat span.on { background: var(--good-soft); color: var(--good); font-weight: 600; }
.pj-when { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.pj-empty { text-align: center; padding: 40px 20px; }
.pj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.pj-back { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; margin-bottom: 6px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.pj-back:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pj-head h1 { margin: 6px 0 10px; font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pj-head h1 .pj-badge { font-size: 13px; }
.pj-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.pj-meta div { display: flex; gap: 6px; font-size: 13.5px; }
.pj-meta dt { color: var(--muted); }
.pj-meta dd { margin: 0; font-weight: 600; }
.pj-memo { margin: 10px 0 0; color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; max-width: 860px; }
.pj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pj-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s; }
.pj-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.pj-card.soon { opacity: .7; }
.pj-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.pj-ic svg { width: 22px; height: 22px; }
.pj-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pj-body b { font-size: 16px; }
.pj-body span { font-size: 13px; color: var(--muted); }
.pj-body em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pj-card.done .pj-body em { color: var(--good); font-weight: 600; }
.pj-go { font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (max-width: 900px) { .pj-row { grid-template-columns: 1fr; gap: 6px; } .pj-when { text-align: left; } .pj-cards { grid-template-columns: 1fr; } }


/* ── 첫 화면 (3초 테스트): 메시지 하나 · 버튼 하나 · 장식 없음 ── */
.hero.solo { padding: 96px 0 72px; text-align: center; }
.hero.solo::before, .hero.solo::after { display: none; }
.hero.solo h1 { font-size: 48px; line-height: 1.22; margin: 0 auto 18px; max-width: 900px; }
.hero.solo p.lead { margin: 0 auto 30px; max-width: 680px; font-size: 18px; text-wrap: balance; word-break: keep-all; }
.hero.solo h1 { text-wrap: balance; word-break: keep-all; }
.hero.solo .cta { justify-content: center; align-items: center; gap: 22px; }
.hero.solo .link-more { color: var(--ink-2); font-weight: 600; }
.hero.solo .link-more:hover { color: var(--brand); text-decoration: none; }
.hero-note { margin: 22px 0 0; color: var(--muted); font-size: 13.5px; }
.badge-demo { background: none; color: var(--muted); padding: 0; font-weight: 600; }
@media (max-width: 760px) { .hero.solo { padding: 60px 0 44px; } .hero.solo h1 { font-size: 30px; } .hero.solo p.lead { font-size: 16px; } }

/* ── 사업 화면: 토지 · 규제 · 부담금 ── */
.ld { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 22px; }
.ld-head h2 { font-size: 19px; margin: 0 0 4px; }
.ld-head p { margin: 0; color: var(--muted); font-size: 14px; }
.ld-off { margin: 14px 0 0; }
.ld-input { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.ld-input textarea { flex: 1; min-height: 46px; resize: vertical; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ld-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.ld-btns { display: flex; flex-direction: column; gap: 6px; }
.ld-msg { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.ld-msg.err { color: var(--warn); }
.ld-tw { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.ld-t { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 980px; }
.ld-t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 9px 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.ld-t td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ld-t tr:last-child td { border-bottom: 0; }
.ld-t input, .ld-t select { padding: 6px 8px; font-size: 13.5px; border-radius: 7px; }
.ld-t td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.ld-t tr.bad td { color: var(--warn); }
.ld-t tr.ld-warn td { color: var(--warn); font-size: 12.5px; padding-top: 0; background: var(--warn-soft); }
.ld-eum { display: block; font-size: 11.5px; margin-top: 3px; white-space: nowrap; }
.ld-eum.inline { display: inline; margin: 0 0 0 6px; }
.ld-t .ld-eumbtn { margin-left: 8px; padding: 4px 10px; font-size: 12px; min-height: 0; vertical-align: middle; }
.ld-t tr.ld-need td { background: var(--warn-soft); }
.ld-w { max-width: 220px; color: var(--ink-2); font-size: 12.5px; }
.ld-empty { text-align: center; color: var(--muted); padding: 20px !important; }
.ld-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px; }
.ld-x:hover { color: var(--warn); background: var(--warn-soft); }
.ld-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ld-kpis .kpi b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ld-kpis .kpi.hl { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.ld-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.ld-cols h3 { font-size: 14.5px; margin: 0 0 8px; }
.ld-cols ul { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.ld-cols li { margin: 4px 0; }
.ld-dev li.over { color: var(--warn); font-weight: 700; }
.ld-src { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .ld-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ld { padding: 16px; } .ld-input { flex-direction: column; } .ld-btns { flex-direction: row; } .ld-kpis { grid-template-columns: 1fr; } .ld-kpis .kpi b { font-size: 21px; white-space: nowrap; } }

.pj-sub { font-size: 15px; margin: 24px 0 10px; color: var(--ink-2); }

/* ── 사업 도구 공통 (위치도 · 진행관리 · 설계비 · 수량산출 · 옹벽) ── */
.tl-lead { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.ld + .ld { margin-top: 16px; }
.lm-parcels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-chk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; background: var(--surface-2); cursor: pointer; }
.chip-chk small { color: var(--muted); }
.lm-opts { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.lm-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.lm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.lm-fig { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.lm-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lm-fig figcaption .btn { padding: 8px 13px; font-size: 14px; }
.lm-img { aspect-ratio: 297 / 210; display: grid; place-items: center; background: #fff; }
.lm-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lm-wait { color: #666; font-size: 13.5px; padding: 16px; text-align: center; }
@media (max-width: 900px) { .lm-grid { grid-template-columns: 1fr; } }
.tr-share { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tr-share input { width: 340px; max-width: 80vw; font-size: 12.5px; }
.tr-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.tr-add > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.tr-add .btn { padding: 8px 13px; font-size: 14px; }
.tr-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--surface-2); }
.tr-top { display: flex; align-items: center; gap: 10px; }
.tr-name { flex: 1; font-size: 16px; font-weight: 700; }
input.tr-name { padding: 6px 8px; }
.tr-b { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.tr-b.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.tr-b.bad { color: #fff; background: #c62828; border-color: #c62828; }
.tr-b.done { color: var(--good); border-color: var(--good); }
.tr-row, .tr-supp { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.tr-row label, .tr-supp label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.tr-row label.grow, .tr-supp label.grow { flex: 1; min-width: 180px; }
.tr-row input, .tr-row select, .tr-supp input { padding: 6px 8px; font-size: 13.5px; }
.tr-supp { padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 8px; }
.tr-dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: 14px; }
.tr-dl dt { color: var(--muted); font-size: 12.5px; }
.tr-dl dd { margin: 0; font-weight: 600; }
.tr-sh { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.pj-alert { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.pj-alert b { display: block; margin-bottom: 4px; }
.pj-alert a { display: block; color: var(--ink); padding: 2px 0; }
.pj-alert .late { color: #c62828; font-weight: 700; }
.fe-acts { display: flex; gap: 8px; }
.fe-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.fe-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fe-tabs button.on { background: var(--brand); color: var(--brand-ink); }
.fe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fe-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fe-grid .inrow { display: flex; align-items: center; gap: 6px; }
.fe-hint { font-size: 12px; } .fe-hint a { margin-right: 8px; }
.fe-note { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.fe-h { font-size: 15px; margin: 20px 0 8px; } .fe-h small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.fe-t td.r, .fe-t .r { text-align: right; }
.fe-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .fe-row .btn { padding: 8px 13px; font-size: 14px; }
.fe-doc { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 36px 40px; margin-top: 18px; max-width: 820px; }
.fe-title { text-align: center; font-size: 30px; letter-spacing: .5em; margin: 0 0 22px; color: #111; }
.fe-head { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.fe-head p { margin: 4px 0; }
.fe-office { border-collapse: collapse; font-size: 13px; min-width: 300px; }
.fe-office th, .fe-office td { border: 1px solid #999; padding: 5px 8px; text-align: left; }
.fe-office th { background: #f2f2f2; white-space: nowrap; }
.fe-sum { font-size: 17px; border-top: 2px solid #111; border-bottom: 2px solid #111; padding: 10px 4px; margin: 22px 0 14px; }
.fe-sum b { font-size: 21px; margin-left: 10px; }
.fe-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fe-lines th, .fe-lines td { border: 1px solid #999; padding: 7px 9px; }
.fe-lines th { background: #f2f2f2; } .fe-lines td.r { text-align: right; white-space: nowrap; }
.fe-lines tr.t td { font-weight: 700; background: #fafafa; }
.fe-src { font-size: 11.5px; color: #555; margin-top: 14px; line-height: 1.6; }
.fe-err { color: #c62828; font-size: 13px; }
@media print {
  .no-print, #tlbar, .local-bar { display: none !important; }
  body, .wb-page { background: #fff !important; }
  .wb-main { padding: 0 !important; max-width: none !important; }
  .fe-doc { border: 0; margin: 0; padding: 0; max-width: none; }
}
.fe-acts { flex-wrap: wrap; } .fe-acts .btn { white-space: nowrap; }
@media (max-width: 760px) { .pj-head { flex-direction: column; align-items: stretch; gap: 12px; } .tr-share { align-items: stretch; } }
.to-up { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.to-up label:not(.btn) { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.to-up select { width: auto; }
.ld-t td.r { text-align: right; white-space: nowrap; }
.to-basis { font-size: 12px; color: #333; word-break: break-all; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.wl-grid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-grid legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.wl-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.wl-grid input { padding: 6px 8px; font-size: 14px; }
.wl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin: 10px 0; }
.wl-svg { width: 100%; height: auto; background: #fbfaf6; border: 1px solid #ddd; border-radius: 8px; }
.wl-h { font-size: 15px; margin: 18px 0 6px; color: #111; }
.wl-ok { color: #1b7f3b; } .wl-ng { color: #c62828; }
@media (max-width: 760px) { .wl-two { grid-template-columns: 1fr; } }
/* 설계비 견적서 v2 */
.fe-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fe-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fe-fs legend { font-size: 13.5px; font-weight: 700; padding: 0 4px; } .fe-fs legend small { color: var(--muted); font-weight: 500; }
.fe-fs label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.fe-fs input { padding: 7px 9px; font-size: 14px; }
.fe-fs textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.fe-grid .inrow select { width: 90px; flex: none; }
.fe-sum .fe-ko { font-size: 15px; margin-left: 8px; }
.fe-sum small { font-size: 12px; color: #555; margin-left: 6px; }
.fe-lines td.c { text-align: center; }
.fe-lines tr.dc td { color: #c62828; }
.fe-lines tr.g td { font-weight: 800; background: #e6eef5; font-size: 15px; }
.fe-to { font-size: 17px; }
.fe-memo { margin-top: 12px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px; }
.fe-memo p { margin: 4px 0; }
@media (max-width: 760px) { .fe-cols2 { grid-template-columns: 1fr; } .fe-head { flex-direction: column; } }
.pj-sub small { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.fhead .incl { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.fhead .incl span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

/* ── 내 사업: 월별 · 입금 · 진행 단계 ── */
.pm-sum, .pm-mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pm-sum { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; margin-bottom: 12px; font-size: 14px; }
.pm-sum b, .pm-mh b { font-size: 15px; }
.pm-sum span, .pm-mh span { color: var(--ink-2); }
.pm-sum .due, .pm-mh .due, .pm-msum .due { color: var(--warn); font-weight: 700; }
.pm-month { margin-top: 18px; }
.pm-mh { font-size: 13.5px; font-weight: 500; margin: 0 0 8px; padding: 0 4px 6px; border-bottom: 2px solid var(--line); }
.pm-mh b { font-size: 17px; color: var(--ink); margin-right: 4px; }
.pm-row { position: relative; display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(250px, 1fr) minmax(280px, 1.1fr) auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-top: 8px; }
.pm-row.on { border-color: var(--brand); }
.pm-row.fin { background: color-mix(in srgb, var(--good) 6%, var(--surface)); }
.pm-a { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pm-name { font-weight: 800; font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-sub i { font-style: normal; color: var(--brand); }
.pm-meta { font-size: 12px; color: var(--muted); }
.pm-feat span { font-size: 11px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); margin-left: 3px; color: var(--muted); }
.pm-feat span.on { color: var(--brand); border-color: var(--brand); }
.pm-steps { display: flex; gap: 4px; }
.pm-step { flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 7px; padding: 5px 0; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pm-step.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pm-step.skip { border-style: dashed; }
.pm-bar { height: 6px; border-radius: 999px; background: var(--surface-2); margin: 7px 0 3px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .2s; }
.pm-plabel { font-size: 12px; color: var(--muted); }
.pm-pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pm-pay { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 5px 8px; font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.pm-pay em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pm-pay b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pm-pay small { font-size: 11px; color: var(--good); font-weight: 700; }
.pm-pay.paid { border-color: var(--good); background: color-mix(in srgb, var(--good) 10%, var(--surface)); }
.pm-pay.empty b { color: var(--muted); }
.pm-msum { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.pm-more { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--muted); transition: transform .15s; }
.pm-more.open { transform: rotate(180deg); }
/* 순서 ↑ ↓ 는 ▾ 왼쪽에 작게 두 칸 (줄 높이는 그대로) */
.pm-side { display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr 1fr; gap: 2px 4px; align-items: stretch; }
.pm-side .pm-mv[data-mv="-1"] { grid-column: 1; grid-row: 1; }
.pm-side .pm-mv[data-mv="1"] { grid-column: 1; grid-row: 2; }
.pm-side .pm-more { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.pm-mv { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; width: 26px; height: auto; min-height: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 12px; line-height: 1; }
.pm-mv:hover { color: var(--brand); border-color: var(--brand); }
.pm-edit { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 12px; }
.pm-egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pm-egrid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-egrid legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.pm-egrid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.pm-egrid label.ck, .pm-egrid label.row { flex-direction: row; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.pm-egrid label.row input[type=date] { width: auto; flex: 1; padding: 4px 6px; font-size: 12.5px; }
.pm-egrid input { padding: 6px 8px; font-size: 13.5px; }
.pm-memo { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.pm-memo textarea { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; resize: vertical; }
@media (max-width: 1100px) { .pm-row { grid-template-columns: 1fr 1fr auto; } .pm-a { grid-column: 1 / -1; } }
@media (max-width: 680px) { .pm-row { grid-template-columns: 1fr auto; } .pm-b, .pm-c { grid-column: 1 / 2; } .pm-side { grid-row: 1; grid-column: 2; align-self: start; } }
@media (max-width: 680px) { .pm-a { grid-column: 1 / 2; } }
.team-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--surface-2); font-size: 14px; }
.team-box .ok { color: var(--good); } .team-box .warn { color: var(--warn); }
.team-list { list-style: none; padding: 0; margin: 10px 0; }
.team-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.team-add { display: flex; gap: 8px; margin-top: 8px; } .team-add input { flex: 1; }
.plan-team { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 220px 200px; gap: 28px; align-items: center; }
@media (max-width: 760px) { .plan-team { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 980px) { details.price-more .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .plans.tiers, details.price-more .plans { grid-template-columns: 1fr; } details.price-more { padding: 0 12px; } }
.ld-prov { margin-top: 10px; line-height: 1.6; } .ld-warnt { color: var(--warn, #b45309); }

/* ===== 2026-10-18 미감 · 3초룰 ===== */
/* 파일 선택 버튼 — 브라우저 기본 회색 대신 터랩 버튼 모양 */
input[type=file] { font: inherit; font-size: 13.5px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; font-size: 13.5px; margin-right: 10px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand); transition: background .15s, color .15s;
}
input[type=file]::file-selector-button:hover { background: var(--brand); color: var(--brand-ink); }

/* 사업 화면 카드: 한 것(초록 표시) · 다음(파란 강조) · 아직(흐리게) — 3초 안에 어디까지 했는지 */
@media (min-width: 1240px) { .pj-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pj-card { position: relative; padding: 16px; }
.pj-card .pj-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-card:not(.done):not(.next):not(:hover) .pj-ic { background: var(--bg-2, var(--bg)); color: var(--muted); }
.pj-card:not(.done):not(.next):not(:hover) .pj-body b { color: var(--ink-2); }
.pj-card.done { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.pj-card.done .pj-ic { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pj-ic { position: relative; }
.pj-card.done .pj-ic::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface);
  background: var(--good); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pj-card.next { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 8px 24px -12px color-mix(in srgb, var(--brand) 60%, transparent); }
.pj-card.next::before { content: "다음 할 일"; position: absolute; top: -10px; left: 16px; padding: 2px 9px; border-radius: 99px;
  background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 800; }
.pj-sub { font-size: 16px; font-weight: 800; color: var(--ink); margin: 30px 0 12px; letter-spacing: -0.02em; }

/* 작업대 첫 칸: 큰 제목 아래 설명은 두 줄까지 · 주요 버튼 크게 */
.wb-main > .wb-head h1, .tool-head h1 { letter-spacing: -0.03em; }
/* 내 사업 목록: 금액을 아직 안 넣은 사업은 빈 칸 셋 대신 '금액 넣기' 하나만 */
.pm-c.nopay .pm-pays { display: none; }
.pm-c.nopay .pm-msum a { display: inline-block; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; }
.pm-c.nopay .pm-msum a:hover { border-color: var(--brand); color: var(--brand); }
.pm-name { font-size: 16.5px; letter-spacing: -0.02em; }
.pm-row { transition: border-color .15s, box-shadow .15s; }
.pm-row:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 6px 20px -14px rgba(0,0,0,.5); }

/* ===== 2026-10-19 상태 색 (적합 · 주의 · 부적합 · 안내 · 보통) — 화면마다 색을 박지 않고 이 값을 쓴다 (다크 모드에서도 튀지 않게) ===== */
:root { --ok-bg: #eaf7ee; --ok-line: #9cd3a8; --ok-ink: #1d6b31; --warn-bg: #fff6e5; --warn-line: #f0c66b; --warn-ink: #8a5a00;
  --bad-bg: #fdeeee; --bad-line: #ee9d9d; --bad-ink: #9b1c1c; --info-bg: #e9f0ff; --info-line: #a9c1f0; --info-ink: #1e4fb0;
  --neutral-bg: #eef0f4; --neutral-ink: #4a5060; --paper: #ffffff; }
:root[data-theme="dark"] { --ok-bg: rgba(90, 208, 138, .12); --ok-line: rgba(90, 208, 138, .45); --ok-ink: #7fe0a6;
  --warn-bg: rgba(242, 180, 90, .12); --warn-line: rgba(242, 180, 90, .45); --warn-ink: #f5c27a;
  --bad-bg: rgba(255, 120, 120, .12); --bad-line: rgba(255, 120, 120, .45); --bad-ink: #ff9b9b;
  --info-bg: rgba(110, 160, 255, .13); --info-line: rgba(110, 160, 255, .45); --info-ink: #9cbcff;
  --neutral-bg: rgba(255, 255, 255, .06); --neutral-ink: #b8c4cf; --paper: #ffffff; }
.st-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.st-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.st-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.st-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }

/* AI 기능 표시 색 (사무소 자기 키로 쓰는 기능을 기본 기능과 구분) */
:root { --ai: #9333ea; } :root[data-theme="dark"] { --ai: #c084fc; }

/* 견본 사업 안내 (사업 화면 위) */
.pj-sample { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-bg); color: var(--ink); font-size: 15px; line-height: 1.6; }
.pj-sample > b { color: var(--warn-ink); }
.pj-sample ol { margin: 6px 0 6px 20px; padding: 0; }
.pj-sample a { font-weight: 700; }

/* 사업 변경 이력 (사업 화면 아래, 펼쳐 보기) */
.hs-sum { cursor: pointer; font-size: 17px; padding: 4px 0; }
.hs-sum::marker { color: var(--brand); }
.pm-trash { margin-top: 18px; }
.pm-trash summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.pm-trash table { margin-top: 8px; }

.acc-help { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }

/* 시작 3단계 (내 사업 위) */
.ob { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--brand); border-radius: 14px; background: var(--brand-soft); }
.ob-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ob-head .linkbtn { margin-left: auto; }
.ob-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ob-steps li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ob-steps li b { font-size: 16px; }
.ob-steps li p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ob-steps li.done { opacity: .7; }
.ob-steps li.done b { text-decoration: line-through; text-decoration-thickness: 1px; }
.ob-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--brand-ink); }
.ob-steps li.done .ob-n { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
