:root { --bg:#f7f5ef; --card:#fff; --ink:#1c1d1f; --sub:#666a70; --line:#e4e0d6; --main:#1f5eff; --main-ink:#fff; --soft:#eaf0ff; --warn:#b3261e; --ok:#0b7a43; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.55 "Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif; word-break:keep-all; }
main { max-width:560px; margin:0 auto; padding:20px 16px 48px; }
header.top { max-width:560px; margin:0 auto; padding:16px 16px 0; display:flex; justify-content:space-between; align-items:center; }
header.top a { color:var(--ink); text-decoration:none; font-weight:800; font-size:18px; }
header.top small { color:var(--sub); }
h1 { font-size:26px; line-height:1.3; margin:18px 0 8px; letter-spacing:-0.02em; }
h2 { font-size:18px; margin:0 0 10px; }
p { margin:0 0 10px; }
.sub { color:var(--sub); font-size:14px; font-weight:400; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin:14px 0; }
label { display:block; font-weight:700; font-size:14px; margin:12px 0 6px; }
input[type=text], textarea { width:100%; border:1px solid var(--line); border-radius:10px; padding:12px; font:inherit; background:#fff; color:var(--ink); }
textarea { min-height:120px; resize:vertical; }
input:focus, textarea:focus { outline:2px solid var(--main); outline-offset:1px; }
button, .btn { display:inline-block; border:0; border-radius:10px; padding:13px 16px; font:inherit; font-weight:700; cursor:pointer; background:var(--main); color:var(--main-ink); text-decoration:none; text-align:center; }
button.wide, .btn.wide { display:block; width:100%; margin-top:12px; }
button.ghost, .btn.ghost { background:#fff; color:var(--ink); border:1px solid var(--line); }
button.text { background:none; color:var(--sub); padding:8px; font-weight:400; text-decoration:underline; }
button:disabled { opacity:.5; cursor:default; }
.row { display:flex; gap:8px; flex-wrap:wrap; }
.row > * { flex:1; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.chips button { background:var(--soft); color:var(--main); font-weight:500; font-size:14px; padding:7px 10px; border-radius:999px; }
.err { color:var(--warn); font-size:14px; margin-top:10px; }
.err:empty { display:none; }
ol.q, ul.q { margin:6px 0 0; padding-left:20px; }
ol.q li, ul.q li { margin:4px 0; }
.quote { background:var(--soft); border-radius:10px; padding:12px; white-space:pre-wrap; }
.linkbox { font-size:14px; background:#f1efe8; border-radius:10px; padding:12px; word-break:break-all; white-space:pre-wrap; }
.badge { display:inline-block; font-size:13px; font-weight:700; padding:3px 9px; border-radius:999px; background:#eee; color:var(--sub); }
.badge.open { background:#fff3d6; color:#8a5a00; }
.badge.done { background:#dff5e8; color:var(--ok); }
.steps { display:grid; gap:8px; margin:14px 0; padding:0; list-style:none; counter-reset:s; }
.steps li { counter-increment:s; padding-left:34px; position:relative; }
.steps li::before { content:counter(s); position:absolute; left:0; top:1px; width:24px; height:24px; border-radius:50%; background:var(--ink); color:#fff; font-size:13px; font-weight:700; display:grid; place-items:center; }
.chat { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.msg { max-width:86%; padding:10px 13px; border-radius:14px; white-space:pre-wrap; }
.msg.ai { align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; }
.msg.them { align-self:flex-end; background:var(--main); color:#fff; border-bottom-right-radius:4px; }
.msg.wait { color:var(--sub); }
.say { position:sticky; bottom:0; background:var(--bg); padding:10px 0 14px; display:flex; gap:8px; }
.say textarea { min-height:48px; height:48px; flex:1; }
.say button { flex:none; }
dl.qa { margin:0; }
dl.qa dt { font-weight:700; margin-top:10px; font-size:14px; color:var(--sub); }
dl.qa dd { margin:2px 0 0; }
a { color:var(--main); }
footer { max-width:560px; margin:0 auto; padding:0 16px 32px; color:var(--sub); font-size:13px; }
footer a { color:var(--sub); }
.mine a { display:flex; justify-content:space-between; gap:8px; padding:10px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.mine a:first-child { border-top:0; }
[hidden] { display:none !important; }
