:root { --navy:#1f2a44; --gold:#e2c58b; --line:#e2dccb; --red:#b3202a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Malgun Gothic", sans-serif; background: #f5f2ea; color: #26231d; line-height: 1.5; }
.wrap { max-width: 980px; margin: 0 auto; padding: 12px; }
.bar { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 20px; margin: 8px 0; } h2 { font-size: 17px; margin: 0 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; }
label { display: block; font-weight: 700; font-size: 13px; margin-top: 10px; }
label small, legend small { font-weight: 400; color: #6b6558; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfc6b0; border-radius: 8px; font: inherit; background: #fff; }
.btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; margin-top: 10px; }
.btn.ghost { background: #fff; color: var(--navy); } .btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
button[hidden], [hidden] { display: none !important; }
.err { color: var(--red); min-height: 18px; margin: 6px 0 0; font-size: 13px; } .muted { color: #6b6558; font-size: 13px; }
.tabs { display: flex; gap: 6px; margin: 8px 0; }
.tabs button { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eee; }
.pill.new { background: #fde8e8; color: var(--red); } .pill.contacted { background: #fff3cd; } .pill.done { background: #dff3e4; color: #1c6b3a; }
.bk { border-left: 4px solid var(--gold); } .bk dl { display: grid; grid-template-columns: 90px 1fr; gap: 2px 8px; margin: 8px 0; } .bk dt { color: #6b6558; } .bk dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.split { display: grid; grid-template-columns: 260px 1fr; gap: 10px; } .list { list-style: none; margin: 10px 0; padding: 0; max-height: 70vh; overflow: auto; }
.list li button { display: block; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.msg { margin: 6px 0; padding: 8px 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; } .msg.user { background: #eef1f8; } .msg.assistant { background: #faf7f0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; } .faq-row { border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .bk dl { grid-template-columns: 70px 1fr; } }
