/* Affilinity — design system v5. Light, borderless surfaces separated by tone; one blue for actions; icon tiles; big type. */
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #F7F8FA; --surface-3: #F0F2F4;
  --line: #EEF0F3; --line-strong: #E1E4E8;
  --ink: #191F28; --ink-2: #4E5968; --ink-3: #8B95A1; --ink-4: #B0B8C1;
  --brand: #3182F6; --brand-hover: #1B64DA; --brand-tint: #EBF3FE; --brand-tint-2: #DCEAFE; --brand-ink: #1957C2;
  --ok: #0EA371; --ok-tint: #E6F7F0; --warn: #E08600; --warn-tint: #FFF4E3; --red: #F04452; --red-tint: #FEECEE; --violet: #7B5CF5; --violet-tint: #F1EDFE;
  /* legacy aliases used by screens */
  --paper: var(--surface); --canvas: var(--bg); --raised: var(--surface-2); --line-2: var(--line-strong);
  --green: var(--brand); --green-2: var(--brand-hover); --green-soft: var(--brand-tint); --green-line: var(--brand-tint-2);
  --amber: var(--warn); --amber-soft: var(--warn-tint); --red-soft: var(--red-tint); --blue: var(--brand-ink); --blue-soft: var(--brand-tint);
  --r: 12px; --r-sm: 8px; --r-lg: 16px; --r-xl: 20px; --ring: 0 0 0 3px rgba(49,130,246,.25);
  --shadow: 0 1px 2px rgba(0,23,51,.04), 0 8px 24px rgba(0,23,51,.06); --shadow-lg: 0 24px 64px rgba(0,23,51,.18);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
  --rail: 248px;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: 28px; font-weight: 800; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; color: var(--ink-2); font-weight: 600; }
p { margin: 0; } small { font-size: 12.5px; color: var(--ink-3); }
.hidden, [hidden] { display: none !important; } .muted { color: var(--ink-3); } .num { font-variant-numeric: tabular-nums; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; } .i.s { width: 14px; height: 14px; } .i.l { width: 22px; height: 22px; }
.btn .i { width: 17px; height: 17px; }

/* ── icon tiles ── */
.hic { --c: var(--brand); --t1: #F2F7FF; --t2: #E1ECFE; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, var(--t1), var(--t2)); color: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1px 2px rgba(0,23,51,.04); }
.hic .i { width: 17px; height: 17px; stroke-width: 2.1; vertical-align: 0; }
.hic.lg { width: 40px; height: 40px; border-radius: 13px; } .hic.lg .i { width: 20px; height: 20px; }
.hic.xl { width: 56px; height: 56px; border-radius: 18px; } .hic.xl .i { width: 26px; height: 26px; stroke-width: 1.9; }
.t-blue   { --c: #3182F6; --t1: #F2F7FF; --t2: #E1ECFE; }
.t-violet { --c: #7B5CF5; --t1: #F6F3FF; --t2: #EAE4FE; }
.t-teal   { --c: #0B9E96; --t1: #EEFAF8; --t2: #DAF3EF; }
.t-green  { --c: #0EA371; --t1: #EEF9F3; --t2: #DAF2E6; }
.t-orange { --c: #EE8100; --t1: #FFF8EE; --t2: #FFEBD2; }
.t-red    { --c: #EE3D4C; --t1: #FFF3F4; --t2: #FDE1E4; }
.t-pink   { --c: #E2457F; --t1: #FFF2F7; --t2: #FDE0EB; }
.t-ink    { --c: #4E5968; --t1: #F4F6F8; --t2: #E8EBEF; }

/* ── wordmark ── */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.wordmark .mark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(145deg, #4C96FF, #1B64DA); position: relative; box-shadow: 0 2px 6px rgba(49,130,246,.35); }
.wordmark .mark::after { content: ''; position: absolute; inset: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 12 6l6 12M8.6 13.5h6.8'/%3E%3C/svg%3E") center/68% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 12 6l6 12M8.6 13.5h6.8'/%3E%3C/svg%3E") center/68% no-repeat; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r); border: 0; background: var(--surface-3); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, transform .06s; }
.btn:hover { background: #E6E9ED; text-decoration: none; } .btn:active { transform: translateY(1px); } .btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.danger { color: var(--red); background: var(--red-tint); } .btn.danger:hover { background: #FDDCE0; } .btn.danger.ghost { background: transparent; } .btn.danger.ghost:hover { background: var(--red-tint); }
.btn.soft { background: var(--brand-tint); color: var(--brand-ink); } .btn.soft:hover { background: var(--brand-tint-2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; } .btn.block { width: 100%; height: 48px; font-size: 15px; } .btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; } .btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.18); border-top-color: currentColor; color: var(--ink-3); animation: spin .7s linear infinite; }
.btn.primary.busy::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); } .icon-btn .i { width: 20px; height: 20px; }

/* ── inputs ── */
label { display: block; font-size: 13.5px; color: var(--ink-2); } label > span { display: block; margin-bottom: 7px; font-weight: 600; color: var(--ink-2); }
label small { display: block; margin-top: 6px; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid transparent; border-radius: var(--r); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; transition: background .12s, border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { background: var(--surface-3); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:disabled, input[readonly] { background: var(--surface-2); color: var(--ink-3); }
.select.slim { height: 34px; font-size: 13px; width: auto; padding-right: 30px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B95A1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.chip:hover { background: var(--surface-3); } .chip input { display: none; } .chip.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--brand); }
.stack > * + * { margin-top: 18px; } .stack > small { display: block; margin-top: 6px; } .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.form-msg { min-height: 20px; font-size: 13.5px; color: var(--red); } .form-msg.ok { color: var(--ok); } .hint { font-size: 13px; color: var(--ink-3); }
.fieldset { background: var(--surface-2); border-radius: var(--r-lg); padding: 18px; } .fieldset > h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; color: var(--ink); } .fieldset .stack > * + * { margin-top: 14px; }
.fieldset input, .fieldset select, .fieldset textarea { background: var(--surface); } .fieldset .chip { background: var(--surface); }

/* ── status ── */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-tint); color: var(--ok); } .tag.warn { background: var(--warn-tint); color: var(--warn); } .tag.bad { background: var(--red-tint); color: var(--red); } .tag.info { background: var(--brand-tint); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); display: inline-block; } .dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); } .dot.warn { background: var(--warn); }

/* ── skeleton & loading ── */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; color: transparent !important; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-block { display: grid; gap: 12px; padding: 4px 0; } .skel-block .skel { height: 16px; } .skel-block .skel.h { height: 26px; width: 40%; } .skel-block .skel.w60 { width: 60%; } .skel-block .skel.w80 { width: 80%; } .skel-block .skel.card { height: 120px; border-radius: var(--r-lg); }

/* ── auth / landing ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-story { padding: 48px 64px; display: flex; flex-direction: column; gap: 40px; background: linear-gradient(160deg, #EAF2FF 0%, #F4F7FB 55%, #FFF 100%); position: relative; overflow: hidden; }
.auth-story::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(49,130,246,.18), transparent 65%); }
.auth-story > * { position: relative; }
.auth-story h1 { font-size: 46px; max-width: 14ch; margin-top: 48px; letter-spacing: -0.035em; line-height: 1.15; font-weight: 800; }
.auth-story .lede { font-size: 17px; color: var(--ink-2); max-width: 50ch; line-height: 1.65; margin-top: -18px; }
.proof { margin: auto 0 0; display: grid; gap: 12px; max-width: 56ch; } .proof > div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: rgba(255,255,255,.78); border-radius: var(--r-lg); backdrop-filter: blur(6px); }
.proof > div > .i { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); flex: none; } .proof > div > div { min-width: 0; }
.proof dt { font-weight: 700; } .proof dd { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; } .auth-card .sub { color: var(--ink-3); font-size: 14.5px; margin-bottom: 24px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; } .tabs button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,23,51,.1); }
.auth-foot { margin-top: 28px; font-size: 12.5px; color: var(--ink-4); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.landing { background: var(--surface); } .lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.lp-sec { padding: 72px 0; } .lp-sec h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; } .lp-sec .lede { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; margin-bottom: 36px; line-height: 1.65; }
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .lp-feat { background: var(--surface-2); border-radius: var(--r-xl); padding: 24px; } .lp-feat h3 { margin: 16px 0 8px; font-size: 17px; } .lp-feat p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; } .lp-step { padding: 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lp-step .n { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .06em; } .lp-step h3 { margin: 10px 0 6px; font-size: 16px; } .lp-step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.lp-faq { max-width: 760px; } .lp-faq details { border-top: 1px solid var(--line); padding: 6px 0; } .lp-faq details:last-child { border-bottom: 1px solid var(--line); } .lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 700; font-size: 15.5px; }
.lp-faq summary::-webkit-details-marker { display: none; } .lp-faq summary::after { content: '+'; font-size: 20px; color: var(--ink-3); } .lp-faq details[open] summary::after { content: '–'; } .lp-faq details p { color: var(--ink-2); padding: 0 0 16px; line-height: 1.65; max-width: 66ch; }
.lp-cta { background: linear-gradient(135deg, #1B64DA, #3182F6); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.lp-cta h2 { color: #fff; font-size: 30px; margin: 0 0 6px; } .lp-cta p { opacity: .9; } .lp-cta .btn { background: #fff; color: var(--brand-ink); height: 48px; padding: 0 24px; font-size: 15px; }
.lp-foot { padding: 24px 0 40px; color: var(--ink-4); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ── app shell ── */
.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { background: var(--surface); padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.rail .wordmark { padding: 0 8px; }
.rail .select, .rail select { height: 42px; font-size: 14px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; } .nav a { display: flex; align-items: center; gap: 11px; padding: 5px 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a .hic { --c: var(--ink-3); --t1: var(--surface-2); --t2: var(--surface-3); width: 28px; height: 28px; border-radius: 8px; box-shadow: none; } .nav a .hic .i { width: 16px; height: 16px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); } .nav a.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; }
.nav a.on .hic { --c: var(--brand); --t1: #fff; --t2: #EAF2FF; box-shadow: 0 1px 2px rgba(0,23,51,.06); }
.nav .nav-group { font-size: 11.5px; color: var(--ink-4); padding: 12px 12px 4px; font-weight: 700; letter-spacing: .04em; }
.nav a.ext .i.s { margin-left: auto; color: var(--ink-4); }
.rail-foot { margin-top: auto; display: grid; gap: 10px; }
.agent-pill { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); }
.me { font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 0 10px; } .me span { color: var(--ink); font-weight: 600; }
.main { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 32px; }
.topbar .menu { display: none; } .crumbs { font-size: 13.5px; color: var(--ink-3); font-weight: 500; } .top-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn .count { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.banner { margin: 0 32px 10px; padding: 12px 16px; background: var(--warn-tint); color: #8A5300; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.banner .btn { background: #fff; }
.page { padding: 4px 32px 56px; max-width: 1200px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 24px; }
.page-head .ttl { display: flex; align-items: center; gap: 14px; } .page-head h1 { font-size: 28px; }
.page-head p { color: var(--ink-3); margin-top: 6px; font-size: 14.5px; max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; flex-shrink: 0; }
.hello { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; } .hello-sub { font-size: 15.5px; color: var(--ink-2); margin-top: 6px; }

/* ── panels, tables ── */
.panel { background: var(--surface); border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 4px; font-weight: 700; font-size: 15.5px; }
.panel-h > span:first-child { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.panel-h > span:last-child { text-align: right; min-width: 0; font-weight: 500; font-size: 13.5px; color: var(--ink-3); }
.panel-h + .panel-b, .panel-h + .table, .panel-h + .timeline, .panel-h + .setup, .panel-h + .empty { margin-top: 8px; }
.panel-b { padding: 18px 22px 22px; } .panel-b.tight { padding: 10px 22px 16px; }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-bottom-color: var(--line-strong); } .table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; } .table tbody tr:hover td { background: var(--surface-2); }
.table td.r, .table th.r { text-align: right; } .table td .sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.table .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); vertical-align: middle; }
.empty { padding: 44px 22px; text-align: center; color: var(--ink-3); font-size: 14.5px; } .empty b { display: block; color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 6px; } .empty .hic { margin: 0 auto 14px; display: grid; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .toolbar input, .toolbar select { width: auto; min-width: 150px; height: 40px; font-size: 14px; }
.toolbar .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; } .seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.seg button:hover { color: var(--ink); } .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,23,51,.1); }
.panel .seg, .toolbar .seg { background: var(--surface-3); }

/* ── money line (dashboard hero) ── */
.money { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.money > div { padding: 22px 24px; background: var(--surface); border-radius: var(--r-lg); }
.money .label { font-size: 13.5px; color: var(--ink-3); font-weight: 500; } .money .value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; line-height: 1.1; } .money .value.green { color: var(--brand); }
.money .sub { font-size: 13px; color: var(--ink-3); margin-top: 8px; } .money .value small { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 14px; } .bars i { flex: 1; background: var(--brand-tint-2); border-radius: 3px 3px 0 0; min-height: 3px; } .bars i.zero { background: var(--surface-3); } .bars i.hi { background: var(--brand); }
.chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .chan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; } .chan .st { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-4); } .chan.on .st { color: var(--ok); }
.timeline { display: grid; gap: 0; } .timeline .item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; } .timeline .item:last-child { border-bottom: 0; }
.timeline .when { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; font-weight: 600; } .timeline .what { font-weight: 600; } .timeline .what .sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 0 22px 22px; } .setup .step { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--surface-2); min-height: 112px; }
.setup .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); } .setup .step.done .n { background: var(--ok); color: #fff; box-shadow: none; }
.setup .t { font-weight: 600; font-size: 14px; flex: 1; } .setup .step.done .t { color: var(--ink-3); } .setup .step .btn { align-self: flex-start; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.product { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.product img, .product .noimg { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface); display: block; border-bottom: 1px solid var(--line); } .product .noimg { display: grid; place-items: center; color: var(--ink-4); font-size: 13px; }
.product .body { padding: 12px 14px; display: grid; gap: 6px; flex: 1; } .product .title { font-weight: 700; font-size: 14px; line-height: 1.35; } .product .meta { font-size: 12.5px; color: var(--ink-3); } .product .price { font-weight: 700; }
.product .foot { padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product .pimg { display: block; } .product a.title { color: inherit; text-decoration: none; } .product a.title:hover { color: var(--brand); }
.product.added { opacity: .72; } .product .addedtag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 999px; }
.product .pick { position: absolute; top: 8px; right: 8px; z-index: 1; background: var(--surface); border-radius: 7px; padding: 3px 5px; display: flex; box-shadow: 0 1px 3px rgba(0,23,51,.12); } .product .pick input { margin: 0; }
.product.picked { box-shadow: inset 0 0 0 2px var(--brand); }
.product .btn.added { background: var(--ok-tint); color: var(--ok); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; } .media-grid .m { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .media-grid .m input { width: 100%; border: 0; border-radius: 0; height: 32px; font-size: 12px; background: var(--surface); }
.media-grid .m .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(25,31,40,.72); color: #fff; cursor: pointer; font-size: 13px; }
.media-grid .m.req::before { content: '★'; position: absolute; top: 5px; left: 7px; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); font-size: 13px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 24px; text-align: center; color: var(--ink-3); font-size: 14px; cursor: pointer; background: var(--surface-2); } .dropzone:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.plan { border-radius: var(--r-xl); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px var(--line); } .plan.current { box-shadow: inset 0 0 0 2px var(--brand); }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; } .plan .price small { font-size: 13px; color: var(--ink-3); font-weight: 500; } .plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan ul li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-3); padding: 2px 7px; border-radius: 6px; word-break: break-all; }
pre.body { white-space: pre-wrap; font: 14px/1.65 var(--font); background: var(--surface-2); padding: 16px; border-radius: var(--r); max-height: 360px; overflow: auto; margin: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .slot { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; font-size: 12.5px; } .slot .d { font-weight: 700; }

/* ── modal, dialog, toast, popover ── */
.modal-mask { position: fixed; inset: 0; background: rgba(25,31,40,.48); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 50; overflow-y: auto; animation: fade .12s; }
.modal { width: 640px; max-width: 100%; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: calc(100vh - 96px); animation: pop .16s; } .modal.wide { width: 920px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; flex: none; } .modal-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; display: flex; align-items: center; gap: 12px; }
.modal-b { padding: 8px 24px 24px; overflow-y: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; flex: none; border-top: 1px solid var(--line); } .modal-f .btn { min-width: 96px; }
.modal.dlg { width: 420px; } .modal.dlg .modal-h { padding: 12px 16px 0; min-height: 0; } .modal.dlg .modal-h h2 { display: none; } .modal.dlg .modal-b { text-align: center; padding: 8px 28px 8px; } .modal.dlg .modal-b .hic { margin: 4px auto 16px; display: grid; } .modal.dlg .modal-b p { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); } .modal.dlg .modal-b .sub { font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 8px; }
.modal.dlg .modal-f { border-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 24px 24px; } .modal.dlg .modal-f .btn { height: 48px; font-size: 15px; width: 100%; }
.modal.dlg .btn.danger { background: var(--red); color: #fff; } .modal.dlg .btn.danger:hover { background: #D93644; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; } .toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 500; max-width: 420px; box-shadow: 0 12px 32px rgba(0,23,51,.25); animation: pop .18s; } .toast.bad { background: var(--red); }
.popover { position: absolute; top: 60px; right: 32px; width: 380px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 40; max-height: 70vh; overflow: auto; }
.popover .n { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; } .popover .n.unread { background: var(--brand-tint); } .popover .n .t { font-weight: 700; } .popover .n .b { color: var(--ink-2); margin-top: 2px; } .popover .n time { display: block; color: var(--ink-4); font-size: 12px; margin-top: 4px; }
.help-body h4 { margin: 18px 0 6px; font-size: 15px; color: var(--ink); } .help-body p, .help-body li { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); } .help-body ul { padding-left: 18px; margin: 4px 0; }
.help-body .tip { background: var(--brand-tint); color: var(--brand-ink); border-radius: var(--r); padding: 12px 14px; margin: 12px 0; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; } .help-body .tip::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3C/svg%3E") center/contain no-repeat; } .help-body .tip.warn { background: var(--warn-tint); color: #8A5300; }

/* ── affiliate ── */
.netstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.netcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; }
.netcard.on { box-shadow: inset 0 0 0 1.5px var(--brand-tint-2); } .netcard.bad { box-shadow: inset 0 0 0 1.5px #F9C9CE; }
.nethead { display: flex; align-items: center; gap: 10px; } .netname { font-weight: 700; font-size: 15.5px; flex: 1; }
.netlogo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; flex: none; background: var(--ink-3); }
.netlogo.coupang { background: #E52528; } .netlogo.clickbank { background: #1F2A44; font-size: 12px; } .netlogo.awin { background: #E8322A; } .netlogo.impact { background: #0B0F3B; } .netlogo.flexoffers { background: #0A7CC2; }
.netmeta { font-size: 13px; color: var(--ink-3); line-height: 1.45; min-height: 36px; } .netmeta b { color: var(--ink); font-weight: 700; } .netmsg { font-size: 12.5px; color: var(--red); }
.netact { display: flex; gap: 6px; margin-top: auto; }
.netchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; }
.netchip.awin { color: #B3261E; background: #FDEBEA; } .netchip.impact { color: #0B0F3B; background: #E8E9F3; } .netchip.flexoffers { color: #0A5F96; background: #E4F1FA; }
.explorer { display: grid; grid-template-columns: 264px 1fr; gap: 16px; align-items: start; }
.xside { background: var(--surface); border-radius: var(--r-lg); padding: 12px; position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.xside input { width: 100%; height: 38px; margin-bottom: 8px; font-size: 14px; } .xlist { overflow: auto; flex: 1; }
.xnet { margin-bottom: 10px; } .xnethead { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; font-size: 12px; }
.xbrand { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.xbrand:hover { background: var(--surface-2); } .xbrand.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; }
.xbrand .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbrand .c { font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; } .xbrand .s { font-size: 12px; opacity: .7; }
.xmain { min-width: 0; } .xhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; } .xhead h3 { margin: 0 0 4px; font-size: 20px; } .xhead .actions { display: flex; gap: 6px; flex: none; }
.pdetail { display: grid; grid-template-columns: 300px 1fr; gap: 22px; } .pgal img#pdMain { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r); background: var(--surface-2); }
.pthumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .pthumbs img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--surface-2); cursor: pointer; opacity: .7; } .pthumbs img.on, .pthumbs img:hover { opacity: 1; box-shadow: inset 0 0 0 2px var(--brand); }
.pinfo .meta { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; } .pprice { font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; } .pdesc { font-size: 14px; line-height: 1.65; white-space: pre-wrap; max-height: 220px; overflow: auto; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); margin-bottom: 12px; }
.bulkbar { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; } .bulkbar span { flex: 1; font-weight: 700; } .bulkbar .btn.ghost { color: #fff; } .bulkbar .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ── responsive ── */
/* ── billing (이용권·이니시스) ── */
.bistat { display: flex; align-items: center; gap: 14px; } .bistat b { display: block; font-size: 18px; letter-spacing: -0.02em; } .bistat .sub { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.bistat.off b { color: var(--red); }
.bihead { margin: 26px 0 12px; gap: 12px; flex-wrap: wrap; } .h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.seg em.off { font-style: normal; color: var(--red); font-weight: 700; font-size: 12px; margin-left: 2px; }
.plans { gap: 16px; margin-bottom: 14px; } .plan.pick { box-shadow: inset 0 0 0 2px var(--brand); } .plan h3 { margin: 0; font-size: 17px; } .plan .btn.block { margin-top: auto; }
.plan .price { line-height: 1.15; } .plan .muted.small { font-size: 13px; margin-top: -6px; } .plan ul li b { color: var(--ink); }
.tag.brand { background: var(--brand-tint); color: var(--brand-ink); }
.binotes { margin: 0 0 22px; padding: 0 0 0 18px; color: var(--ink-3); font-size: 13px; display: grid; gap: 4px; } .binotes a { color: var(--brand-ink); }
.paysum { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.paysum b { font-size: 15px; } .paysum .tag { margin-left: 6px; } .paysum .sub { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.paysum .r { text-align: right; } .paysum .big { display: block; font-size: 22px; letter-spacing: -0.02em; } .paysum s { font-size: 12.5px; }
.paycur { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); } .paycur b { display: block; } .paycur .sub { color: var(--ink-3); font-size: 12.5px; }
.banner.warn { background: var(--red-tint); color: #B4232F; }
.xnethead .xadd { margin-left: auto; height: 26px; padding: 0 8px; font-size: 12px; }
/* 가입 동의 */
.agree { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); } .agree .check { font-size: 13.5px; } .agree a { color: var(--brand-ink); }
.agree .check:first-child { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
/* 랜딩 요금제 */
.lp-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin-top: 24px; }
.lp-plan { padding: 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.lp-plan.pick { box-shadow: inset 0 0 0 2px var(--brand); }
.lp-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .lp-plan-h h3 { margin: 0; font-size: 18px; }
.lp-plan-p b { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; } .lp-plan-p span { color: var(--ink-3); margin-left: 4px; font-size: 14px; }
.lp-plan-d { margin: 0; color: var(--ink-2); font-size: 14px; }
.lp-plan-t { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; } .lp-plan-t td { padding: 8px 0; border-top: 1px solid var(--line); } .lp-plan-t td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-plan-t em { font-style: normal; color: var(--red); font-weight: 700; font-size: 12.5px; }
.lp-note { color: var(--ink-3); font-size: 13px; margin-top: 14px; } .lp-note a { color: var(--brand-ink); }
.lp-foot { flex-direction: column; gap: 8px; } .lp-links { display: flex; gap: 16px; flex-wrap: wrap; } .lp-links a { color: var(--ink-2); text-decoration: none; } .lp-links a:hover { color: var(--ink); }
.lp-biz { margin: 0; line-height: 1.8; } .auth-foot a + a { margin-left: 12px; }
@media (max-width: 720px) { .lp-price { grid-template-columns: 1fr; } .paysum { flex-direction: column; } .paysum .r { text-align: left; } }

@media (max-width: 1100px) { .auth { grid-template-columns: 1fr; } .auth-story { padding: 36px 28px; } .auth-story h1 { margin-top: 20px; font-size: 34px; } .proof { display: none; } .two, .money { grid-template-columns: 1fr; } .explorer { grid-template-columns: 1fr; } .xside { position: static; max-height: 260px; } .netstrip { grid-template-columns: 1fr; } .lp-feats, .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .money .value { font-size: 28px; } .banner { flex-direction: column; align-items: flex-start; }
  .app { grid-template-columns: 1fr; } .rail { position: fixed; left: 0; top: 0; z-index: 45; transform: translateX(-100%); transition: transform .18s; width: var(--rail); box-shadow: none; } .rail.open { transform: none; box-shadow: 0 0 0 100vw rgba(25,31,40,.4); }
  .topbar .menu { display: inline-grid; } .page, .topbar { padding-left: 16px; padding-right: 16px; } .banner { margin: 0 16px 8px; } .popover { right: 8px; left: 8px; width: auto; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; } .page-head { flex-direction: column; align-items: flex-start; } .kv { grid-template-columns: 1fr; } .table { display: block; overflow-x: auto; }
  .seg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; } .seg button { white-space: nowrap; } .toolbar { flex-wrap: wrap; } .netact { flex-wrap: wrap; } .pdetail { grid-template-columns: 1fr; } .lp-feats, .lp-steps { grid-template-columns: 1fr; } .lp-cta { flex-direction: column; align-items: flex-start; padding: 32px; } .lp-sec h2 { font-size: 28px; }
  .modal-mask { padding: 0; align-items: flex-end; } .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: sheet .2s; } .modal-f { padding-bottom: calc(16px + env(safe-area-inset-bottom)); } .toasts { left: 16px; right: 16px; transform: none; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.check a, .modal .stack a { color: var(--brand-ink); font-weight: 600; }
[tabindex="-1"]:focus { outline: none; }
.tscroll { overflow-x: auto; } .tscroll table { min-width: 680px; } .tscroll td, .tscroll th { white-space: nowrap; }

/* 쿠팡 공유 링크 */
.cpmode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cpopt { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.cpopt.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-tint); } .cpopt input { position: absolute; opacity: 0; pointer-events: none; } .cpopt b { font-size: 14.5px; } .cpopt span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cpsteps { margin: 0; padding: 14px 14px 14px 32px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; display: grid; gap: 4px; }
.cpmore summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); font-weight: 600; } .cpmore[open] summary { margin-bottom: 12px; }
.cpres { display: grid; gap: 8px; margin-top: 4px; } .cpitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.cpitem img, .cpitem .noimg { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); }
.cpitem .grow { min-width: 0; flex: 1; } .cpitem b { display: block; font-size: 14px; } .cpitem .sub { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpitem.bad b { color: var(--red); } .cpitem .i.ok { color: var(--ok); }
.cpfix { display: flex; gap: 6px; margin-top: 8px; } .cpfix input { height: 34px; font-size: 13px; } .cpfix input:first-child { flex: 2; } .cpfix input:nth-child(2) { flex: 1; }
@media (max-width: 720px) { .cpmode { grid-template-columns: 1fr; } .cpfix { flex-wrap: wrap; } }

.cpfix input { background: var(--surface); }
/* 채널 성장 */
.grtips { display: grid; gap: 8px; margin: 0 0 18px; } .grtips > div { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--brand-tint); color: var(--brand-ink); font-size: 14px; } .grtips .i { flex: none; }
.grgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.grcard { background: var(--surface); border-radius: var(--r-xl); padding: 18px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 2px rgba(0,23,51,.04); } .grcard.off { opacity: .72; }
.grcard-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .grcard-h b { font-size: 15px; }
.grbig span { display: block; font-size: 12.5px; color: var(--ink-3); } .grbig b { font-size: 26px; letter-spacing: -0.03em; } .grbig em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.grdelta { display: inline-block !important; margin-left: 6px; font-size: 12px !important; font-weight: 700; } .grdelta.up { color: var(--ok) !important; } .grdelta.down { color: var(--red) !important; }
.grkv { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; margin: 0; font-size: 13px; } .grkv dt { color: var(--ink-3); } .grkv dd { margin: 0; text-align: right; font-weight: 600; } .grkv small { color: var(--ink-3); font-weight: 500; }
.grlast { font-size: 12.5px; color: var(--ink-3); } .grlast a { color: var(--brand-ink); }
.grchart { position: relative; } .grchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.grchart .gl { stroke: var(--line); stroke-width: 1; } .grchart .bl { stroke: var(--ink-4, #B0B8C1); stroke-width: 1; } .grchart .ax { font-size: 11px; fill: var(--ink-3); } .grchart .tv { font-size: 11px; fill: var(--ink-2); font-weight: 700; }
.grchart .b-ct { fill: #3182F6; } .grchart .b-ad { fill: #F59E0B; } .grchart .hit { fill: transparent; } .grchart .wk:hover .hit { fill: rgba(0,23,51,.04); }
.grleg { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; } .grleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; } .grleg i.b-ct { background: #3182F6; } .grleg i.b-ad { background: #F59E0B; }
.grtip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.money .value.warn { color: var(--warn); }
@media (max-width: 1280px) { .grgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grgrid { grid-template-columns: 1fr; } }
/* 쿠팡 파트너스: 공유 링크 + API */
.cprows { display: grid; gap: 6px; margin: 2px 0 4px; } .cprow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.cprow b { margin-left: auto; font-weight: 700; color: var(--ok); } .cprow.off b { color: var(--ink-3); } .cprow .i { color: var(--ink-3); }
.cpcaps { display: grid; gap: 10px; } .cpcap { display: block; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.cpcap.on { box-shadow: inset 0 0 0 2px var(--ok); background: var(--ok-tint); }
.cpcap > summary, .cpcap.on { display: flex; gap: 12px; align-items: flex-start; } .cpcap > summary { list-style: none; cursor: pointer; } .cpcap > summary::-webkit-details-marker { display: none; }
.cpcap[open] { box-shadow: inset 0 0 0 2px var(--brand); } .cpcap div b { display: block; font-size: 14.5px; } .cpcap div span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; } .cpcap > summary > div, .cpcap.on > div { flex: 1; } .cpcap .tag { flex: none; }
.cpman { display: grid; gap: 14px; } .cpman section { padding: 16px; border-radius: var(--r-lg, 16px); background: var(--surface-2); display: grid; gap: 12px; }
.cpman-h { display: flex; gap: 12px; align-items: flex-start; } .cpman-h > div { flex: 1; } .cpman-h b { display: block; font-size: 15px; } .cpman-h span { font-size: 13px; color: var(--ink-3); line-height: 1.55; } .cpman-h .tag { flex: none; }
.cpman-b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cpman-b > span { font-size: 13.5px; margin-right: auto; }
.cpman .kv { margin: 0; } .cpkeys summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--brand-ink); } .cpkeys[open] summary { margin-bottom: 10px; } .cpkeys input { background: var(--surface); }
.srctag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.banner .btn.primary { background: var(--brand); color: #fff; } .banner.warn .btn.primary { background: var(--red); }

/* ═══ 수익 영역 (제휴·캠페인·출금) ═══ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi > span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi > b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi > b small { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.kpi > em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.kpi.em { background: var(--ink); color: #fff; } .kpi.em > span, .kpi.em > em { color: rgba(255,255,255,.62); }

/* 차트 */
.bchart { position: relative; } .bchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bchart .gl { stroke: var(--line); stroke-width: 1; } .bchart .bl { stroke: var(--line-strong); stroke-width: 1; }
.bchart .ax { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.bchart .hit { fill: transparent; } .bchart .bk:hover .hit { fill: var(--surface-2); }
.bleg { display: flex; gap: 16px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; } .bleg span { display: inline-flex; align-items: center; gap: 6px; } .bleg i { width: 10px; height: 10px; border-radius: 3px; }
.btip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; white-space: nowrap; z-index: 2; }

/* 제휴: 알림·네트워크 바 */
.afalert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--red-tint); color: var(--red); margin-bottom: 14px; }
.afalert > div { flex: 1; min-width: 0; } .afalert b { display: block; color: var(--ink); font-size: 14.5px; } .afalert span { font-size: 13px; color: var(--ink-2); }
.netbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.netpill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 0; border-radius: 14px; background: var(--surface); font: inherit; cursor: pointer; text-align: left; flex: none; position: relative; }
.netpill:hover { background: var(--surface-2); } .netpill .netlogo { width: 30px; height: 30px; font-size: 12px; }
.netpill b { display: block; font-size: 13.5px; color: var(--ink); } .netpill em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.netpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); margin-left: 4px; } .netpill .dot.on { background: var(--ok); }
.netpill.bad { box-shadow: inset 0 0 0 1.5px var(--red); } .netpill.bad em { color: var(--red); }
.netpill.add { padding: 8px 14px; color: var(--brand-ink); font-weight: 700; font-size: 13.5px; background: transparent; border: 1.5px dashed var(--line-strong); }

/* 제휴: 첫 화면 */
.onb { background: var(--surface); border-radius: var(--r-xl); padding: 28px; }
.onb-h h2 { font-size: 22px; margin-bottom: 18px; }
.onb-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.onb-steps li { counter-increment: s; padding: 14px 16px 14px 52px; position: relative; border-top: 3px solid var(--line); }
.onb-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.onb-steps li.on { border-top-color: var(--brand); } .onb-steps li.on::before { background: var(--brand); color: #fff; }
.onb-steps b { display: block; font-size: 15px; } .onb-steps span { font-size: 13px; color: var(--ink-3); }
.onb-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.onb-net { background: var(--surface-2); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.onb-net p { font-size: 13.5px; color: var(--ink-2); flex: 1; } .onb-net .btn { align-self: flex-start; }

/* 네트워크 관리 · 상품 추가 */
.nm { display: grid; gap: 8px; }
.nm-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.nm-row.bad { background: var(--red-tint); }
.nm-i { flex: 1; min-width: 0; } .nm-i > div { display: flex; align-items: center; gap: 8px; } .nm-i b { font-size: 15px; }
.nm-i > span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; } .nm-i > em { display: block; font-style: normal; font-size: 12.5px; color: var(--red); margin-top: 2px; }
.nm-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 52%; }
.hub { display: grid; gap: 8px; }
.hub-o { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-radius: var(--r-lg); background: var(--surface-2); font: inherit; text-align: left; cursor: pointer; color: var(--ink-3); }
.hub-o:hover { background: var(--brand-tint); } .hub-o > span { flex: 1; } .hub-o b { display: block; font-size: 15px; color: var(--ink); } .hub-o em { font-style: normal; font-size: 13px; color: var(--ink-3); }

/* 캠페인: 준비 상태 */
.cpready { background: var(--surface); border-radius: var(--r-xl); padding: 22px 24px; margin-bottom: 18px; }
.cpready-h { display: flex; align-items: center; gap: 14px; } .cpready-h > div { flex: 1; } .cpready-h b { display: block; font-size: 18px; } .cpready-h span { font-size: 13.5px; color: var(--ink-2); }
.cpready-n { font-size: 15px; color: var(--ink-3); font-weight: 700; } .cpready-n b { display: inline; font-size: 28px; color: var(--ink); font-weight: 800; }
.cpchk { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cpchk li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.cpchk li > div { flex: 1; min-width: 0; } .cpchk b { display: block; font-size: 14px; } .cpchk span { font-size: 12.5px; color: var(--ink-3); }
.cpchk li.ok > .i { color: var(--ok); } .cpchk li.no > .i { color: var(--warn); } .cpchk li.no { background: var(--warn-tint); }
.cpready.all .cpchk { display: none; }

/* 캠페인: 보드 */
.cpboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cpcol { background: var(--surface-3); border-radius: var(--r-xl); padding: 14px; display: grid; gap: 10px; }
.cpcol header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 0; } .cpcol header b { font-size: 15px; } .cpcol header span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--surface); border-radius: 99px; padding: 1px 8px; }
.cpcol-s { font-size: 12.5px; color: var(--ink-3); padding: 0 4px; margin-top: -4px; }
.cpcol-e { font-size: 13px; color: var(--ink-4); text-align: center; padding: 22px 0; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.cpc { background: var(--surface); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 12px; }
.cpc.closed { opacity: .78; }
.cpc-h { display: flex; gap: 10px; align-items: flex-start; } .cpc-h > div { flex: 1; min-width: 0; } .cpc-h b { display: block; font-size: 14.5px; line-height: 1.35; } .cpc-h span { font-size: 12.5px; color: var(--ink-3); }
.cptrack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.cptrack li { display: grid; justify-items: center; gap: 5px; position: relative; font-size: 11px; color: var(--ink-4); text-align: center; }
.cptrack li::before { content: ''; position: absolute; top: 4px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); } .cptrack li:first-child::before { display: none; }
.cptrack li i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); position: relative; z-index: 1; }
.cptrack li.done i, .cptrack li.done::before, .cptrack li.cur::before { background: var(--violet); } .cptrack li.done { color: var(--ink-3); }
.cptrack li.cur i { background: var(--surface); box-shadow: 0 0 0 3px var(--violet); } .cptrack li.cur { color: var(--violet); font-weight: 700; }
.cpc-note { font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); padding: 8px 10px; border-radius: var(--r-sm); display: flex; gap: 6px; }
.cpc-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cpc-pay { font-weight: 800; font-size: 15px; }
.cpc-left { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--warn); font-weight: 600; }
.cpclosed { margin-top: 14px; } .cpclosed summary { cursor: pointer; font-size: 13.5px; color: var(--ink-3); font-weight: 600; padding: 6px 0; }
.cpclosed-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 8px; }
.cpd { display: grid; gap: 8px; } .cpd h4 { margin-top: 10px; }
.cpd-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: 13.5px; } .cpd-top b { font-size: 22px; color: var(--ink); }
.cpd-box { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.cpd-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; } .cpd-tl li { display: flex; gap: 12px; } .cpd-tl time { color: var(--ink-3); min-width: 120px; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border-radius: var(--r); cursor: pointer; }
.switch-row > span { flex: 1; margin: 0; } .switch-row b { display: block; color: var(--ink); font-size: 14.5px; } .switch-row em { font-style: normal; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--ink-4); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch:checked { background: var(--brand); } .switch:checked::after { transform: translateX(18px); } .switch:focus-visible { box-shadow: var(--ring); }
.lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--brand); }

/* 수익·출금 */
.ea-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.ea-hero { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 26px 28px; display: flex; flex-direction: column; }
.ea-hero > span { font-size: 14px; color: rgba(255,255,255,.66); font-weight: 600; }
.ea-hero > b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 10px; line-height: 1.15; }
.ea-hero-m { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: rgba(255,255,255,.62); }
.ea-hero-a { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; } .ea-hero-a em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.62); }
.ea-btn { background: #fff; color: var(--ink); border: 0; font-weight: 800; } .ea-btn:hover:not(:disabled) { background: var(--brand-tint); color: var(--brand-ink); } .ea-btn:disabled { background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); }
.ea-acc { background: var(--surface); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 2px; }
.ea-acc > span { font-size: 13px; color: var(--ink-3); font-weight: 600; } .ea-acc > b { font-size: 18px; margin-top: 6px; } .ea-acc > em { font-style: normal; font-size: 13px; color: var(--ink-3); flex: 1; } .ea-acc .btn { align-self: flex-start; margin-top: 14px; }
.ea-src { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-xl); margin-bottom: 18px; }
.ea-src section { padding: 22px 26px 20px; } .ea-src section + section { border-left: 1px solid var(--line); }
.ea-src h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; } .ea-src h3 i { width: 10px; height: 10px; border-radius: 3px; }
.ea-src p { font-size: 13px; color: var(--ink-3); margin: 6px 0 14px; } .ea-src p a { color: var(--brand-ink); font-weight: 600; white-space: nowrap; }
.ea-src dl { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 14px; }
.ea-src dt, .ea-src dd { padding: 9px 0; border-top: 1px solid var(--line); } .ea-src dt { color: var(--ink-2); } .ea-src dd { margin: 0; text-align: right; font-weight: 700; }
.ea-src dt:first-of-type, .ea-src dd:first-of-type { font-weight: 800; color: var(--ink); }
.ea-bottom { margin-top: 18px; }
.ea-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.ea-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); } .ea-list li:hover { background: var(--surface-2); }
.ea-list li > div { flex: 1; min-width: 0; } .ea-list b { display: block; font-size: 14.5px; } .ea-list li > div > span { font-size: 12.5px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; } .ea-ico.in { background: #FEF3E2; color: #B76E00; } .ea-ico.out { background: var(--surface-3); color: var(--ink-2); }
.ea-list em { font-style: normal; font-weight: 800; font-size: 15px; white-space: nowrap; } .ea-list em.p { color: var(--brand-ink); } .ea-list em.m { color: var(--ink); }
.ea-info { list-style: none; margin: 0; padding: 4px 22px 20px; display: grid; gap: 14px; } .ea-info b { display: block; font-size: 14.5px; } .ea-info span { font-size: 13px; color: var(--ink-3); }
.wd-acc { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface-2); border-radius: var(--r); } .wd-acc b { display: block; color: var(--ink); } .wd-acc span { font-size: 12.5px; color: var(--ink-3); }
.wd-amt { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--brand); padding-bottom: 4px; }
.wd-amt input { border: 0 !important; box-shadow: none !important; padding: 0 !important; font-size: 30px; font-weight: 800; background: transparent; flex: 1; min-width: 0; color: var(--ink); }
.wd-amt em { font-style: normal; font-size: 22px; font-weight: 700; color: var(--ink-2); }
.wd-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px !important; }
.wd-calc { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r); font-size: 14px; }
.wd-calc dt { color: var(--ink-3); } .wd-calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wd-calc .t { border-top: 1px solid var(--line-strong); padding-top: 10px; color: var(--ink); font-weight: 800; } .wd-calc dd.t { font-size: 18px; color: var(--brand-ink); }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cpboard { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .ea-top, .ea-src, .cpchk, .onb-steps { grid-template-columns: 1fr; } .ea-src section + section { border-left: 0; border-top: 6px solid var(--bg); }
  .ea-hero > b { font-size: 32px; } .kpi > b { font-size: 20px; } .kpi { padding: 14px 16px; }
  .nm-row { flex-wrap: wrap; } .nm-a { max-width: none; width: 100%; justify-content: flex-start; }
  .cpready-h { flex-wrap: wrap; } .onb { padding: 20px; }
}
.ea-bottom > div, .ea-top > *, .ea-src > * { min-width: 0; }
@media (max-width: 860px) {
  .bchart .ax { font-size: 22px; } .ea-bottom { grid-template-columns: 1fr; }
  .ea-list li { flex-wrap: wrap; padding: 12px 8px; } .ea-list li > div { flex-basis: calc(100% - 48px); } .ea-list li > div > span { white-space: normal; }
  .ea-list li > .tag { margin-left: 48px; } .ea-list li > em { margin-left: auto; }
  .cpready { padding: 18px; } .cpready-h > .hic { display: none; }
}

/* ═══ 매뉴얼·도움말 ═══ */
.help-btn { color: var(--ink-2); } .help-btn .i { color: var(--violet); }
.mhelp-btn { margin-left: auto; margin-right: 6px; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--violet-tint); color: var(--violet); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mhelp-btn:hover { background: #E6DEFD; } .mhelp-btn .i { width: 15px; height: 15px; }
.modal-h h2 + .mhelp-btn + .icon-btn { margin-left: 0; }
.man { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.mtoc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
.mtoc input { width: 100%; margin-bottom: 14px; }
.mtoc-g { margin-bottom: 16px; } .mtoc-g b { display: block; font-size: 12.5px; color: var(--ink-3); padding: 0 10px 6px; }
.mtoc-g a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); } .mtoc-g a:hover { background: var(--surface); text-decoration: none; }
.mtoc-g a.on { background: var(--surface); color: var(--brand-ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.mtoc-none { font-size: 13px; color: var(--ink-3); padding: 0 10px; }
.mtoc-sel { display: none; width: 100%; margin-bottom: 16px; }
.mmain { background: var(--surface); border-radius: var(--r-xl); padding: 32px 40px 28px; min-width: 0; }
.mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .mhead h2 { font-size: 24px; }
.mdoc { max-width: 760px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.mdoc > p { margin: 0 0 14px; } .mdoc b { color: var(--ink); } .mdoc a { color: var(--brand-ink); font-weight: 600; }
.mdoc .mlead { font-size: 16.5px; color: var(--ink); line-height: 1.7; margin-bottom: 22px; }
.mdoc h3 { font-size: 17px; color: var(--ink); margin: 30px 0 10px; }
.msteps { list-style: none; counter-reset: ms; margin: 6px 0 20px; padding: 0; }
.msteps li { counter-increment: ms; position: relative; padding: 0 0 16px 44px; }
.msteps li::before { content: counter(ms); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.msteps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--line-strong); }
.msteps b { display: block; font-size: 15px; } .msteps span { display: block; font-size: 14.5px; }
.msh { margin: 18px 0 26px; }
.msh-f { display: block; cursor: zoom-in; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line-strong); }
.msh-f img { display: block; width: 100%; height: 100%; }
.msh-m { position: absolute; border: 2px solid #F04452; border-radius: 6px; pointer-events: none; }
.msh-m i, .msh-l i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #F04452; color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.msh-m i { position: absolute; left: -11px; top: -11px; box-shadow: 0 0 0 2px #fff; }
.msh figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.msh-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.msh-l li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; } .msh-l li span { padding-top: 1px; }
.mnote { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; margin: 16px 0; font-size: 14.5px; }
.mnote p { margin: 0; } .mnote.tip { background: var(--brand-tint); } .mnote.tip .i { color: var(--brand); } .mnote.warn { background: var(--warn-tint); } .mnote.warn .i { color: var(--warn); }
.mnote .i { margin-top: 3px; }
.mqa { margin: 12px 0 18px; border-top: 1px solid var(--line); }
.mqa details { border-bottom: 1px solid var(--line); } .mqa summary { cursor: pointer; padding: 13px 4px; font-weight: 700; color: var(--ink); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.mqa summary::-webkit-details-marker { display: none; } .mqa summary::after { content: '+'; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; } .mqa details[open] summary::after { content: '−'; }
.mqa details p { margin: 0 4px 14px; font-size: 14.5px; }
.mgo { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; } .mgo a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.mpn { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.mpn a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); min-width: 0; } .mpn a:hover { text-decoration: none; background: var(--brand-tint); }
.mpn a.nx { text-align: right; margin-left: auto; } .mpn span { font-size: 12.5px; color: var(--ink-3); } .mpn b { font-size: 15px; }
.mhelp-b .mdoc { max-width: none; font-size: 14.5px; } .mhelp-b .mlead { font-size: 15.5px; }
@media (max-width: 860px) {
  .man { grid-template-columns: 1fr; } .mtoc { display: none; } .mtoc-sel { display: block; }
  .mmain { padding: 20px 18px; } .mhead h2 { font-size: 20px; }
  .msh-m i { width: 18px; height: 18px; font-size: 11px; left: -9px; top: -9px; }
}
.rail > * { flex-shrink: 0; } .rail > .nav { flex-shrink: 1; min-height: 0; scrollbar-width: thin; }
