/* LISIS Code Agent 포털 — lisis.kr 디자인 시스템의 색·글꼴을 그대로 쓴다 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --blue: #1f6feb; --blue-deep: #0d47c9; --red: #c72d26; --ink: #0a1024; --slate: #475069; --muted: #6b7690;
  --line: #e7eaf2; --line-strong: #d7dbe8; --bg-soft: #f6f8fc; --bg-tint: #eef3fd;
  --f-display: "Space Grotesk", "Pretendard", system-ui, sans-serif;
  --f-body: "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --shadow: 0 12px 30px -12px rgba(13, 26, 51, .18);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); color: var(--ink); background: var(--bg-soft); line-height: 1.65; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: "JetBrains Mono", "D2Coding", Consolas, monospace; font-size: .88em; }
code { background: var(--bg-tint); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: #fff; }
pre { background: var(--ink); color: #e6ecff; padding: 16px 18px; border-radius: 14px; overflow-x: auto; line-height: 1.55; margin: 8px 0 4px; }
pre code { background: none; padding: 0; color: inherit; word-break: normal; }

.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow); }
.btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
       font-family: var(--f-display); font-weight: 600; font-size: 1rem; cursor: pointer; text-align: center; }
.btn:hover { background: var(--blue); text-decoration: none; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.btn.wide { width: 100%; margin-top: 22px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
button.link:hover { text-decoration: underline; }
button.link.danger { color: var(--red); }
.help, .foot, .lead { color: var(--slate); font-size: .92rem; }
.help { margin-top: 10px; }
.msg { border-radius: 14px; padding: 13px 16px; font-size: .94rem; margin-bottom: 18px; }
.msg.ok { background: #e8f6ee; color: #136c3c; }
.msg.err { background: #fdeaea; color: var(--red); }
.msg.info { background: var(--bg-tint); color: var(--blue-deep); }
.msg.key { background: #fff8e1; color: #6b4e00; border: 1px solid #f1dc9a; }
.copy { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.copy code { flex: 1; min-width: 220px; background: #fff; border: 1px solid var(--line-strong); padding: 9px 12px; font-size: .92rem; user-select: all; }
.empty { color: var(--muted); padding: 6px 0 2px; }

/* 로그인·연결 화면 */
body.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(100%, 440px); padding: 40px 38px; }
.gate-card .logo { height: 54px; margin-bottom: 20px; }
.gate-card h1 { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 8px; }
.gate-card p { color: var(--slate); font-size: .94rem; margin-bottom: 18px; }
.gate-card label { display: block; font-size: .84rem; font-weight: 600; margin: 14px 0 6px; }
.gate-card input:not([type=hidden]) { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: inherit; }
.gate-card input:focus { outline: none; border-color: var(--blue); }
.gate-card .foot { font-size: .82rem; margin: 22px 0 0; color: var(--muted); }
.gate-card details { margin-top: 20px; font-size: .9rem; color: var(--slate); }
.gate-card summary { cursor: pointer; color: var(--blue); }
.gate-card details p { margin: 10px 0 0; }

/* 포털 */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--f-display); font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.top .who { color: var(--muted); }
.hero { padding: 46px 0 26px; }
.hero h1 { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.hero p { color: var(--slate); max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.step { position: relative; padding-top: 26px; }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
           font-family: var(--f-display); font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.step h2 { margin-bottom: 14px; }
.step ol { padding-left: 1.2em; color: var(--slate); font-size: .94rem; }
.step li { margin-bottom: 6px; }
main > .card { margin-bottom: 18px; }
main > .card:last-child { margin-bottom: 60px; }
h2 { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 8px; }
h3 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 18px; text-transform: uppercase; letter-spacing: .04em; }
.lead { margin-bottom: 16px; max-width: 820px; }
.note ul { padding-left: 1.2em; color: var(--slate); font-size: .94rem; }
.note li { margin-bottom: 5px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .94rem; }
.kv dt { color: var(--muted); }
form.inline { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
form.inline input:not([type=hidden]) { flex: 1; min-width: 200px; max-width: 320px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: .92rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td form { margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .card { padding: 24px 20px; border-radius: 18px; } .top .who { display: none; } }
