@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&display=swap");
* { box-sizing: border-box; }
body { margin: 0; background: #f1f1f2; color: #18181b; font-family: -apple-system, "SF Pro Text", system-ui, Roboto, "Segoe UI", sans-serif; font-size: 15px; line-height: 21px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #5b2a86; outline-offset: 2px; }
.display { font-family: "Bricolage Grotesque", "SF Pro Display", system-ui, sans-serif; }
h1, h2 { margin: 0; font-family: "Bricolage Grotesque", "SF Pro Display", system-ui, sans-serif; }
h1 { font-size: 22px; line-height: 27px; font-weight: 600; letter-spacing: -0.45px; }
h2 { font-size: 18px; line-height: 23px; font-weight: 600; letter-spacing: -0.2px; }
.caption { font-size: 13px; line-height: 18px; color: #5e5e66; }
.tiny { font-size: 11px; line-height: 14px; font-weight: 500; color: #71717a; }

/* header */
.top { background: #fff; border-bottom: 1px solid rgba(24,24,27,.08); min-height: 64px; padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.top .left, .top .right { display: flex; align-items: center; gap: 16px; }
.top img { height: 28px; width: auto; display: block; }
.link-btn { background: none; border: 0; min-height: 44px; padding: 0 8px; color: #5b2a86; font-weight: 600; }

/* layout */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.card { background: #fff; border: 1px solid rgba(24,24,27,.08); border-radius: 20px; }
.side { flex: 1 1 280px; max-width: 340px; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; min-height: 640px; }
.aside { flex: 1 1 280px; max-width: 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.aside .card { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* buttons, fields */
.btn-soft { min-height: 44px; padding: 0 16px; background: #f4f4f5; border: 0; border-radius: 12px; font-weight: 600; font-size: 14px; }
.btn-main { height: 52px; padding: 0 22px; background: #18181b; color: #fff; border: 0; border-radius: 16px; font-weight: 600; font-size: 16px; letter-spacing: -0.2px; }
.btn-main:disabled { opacity: .4; cursor: default; }
.field { width: 100%; height: 52px; padding: 0 16px; background: #f4f4f5; border: 0; border-radius: 16px; }
textarea.field { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field::placeholder { color: #8e8e95; }
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #e6e6e9; background: #fff; font-weight: 600; font-size: 14px; }
.pill[aria-pressed="true"] { border-color: #5b2a86; color: #5b2a86; }

/* list */
.item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; width: 100%; text-align: left; background: none; border: 0; }
.item[aria-current="true"] { background: #f4f4f5; }
.item .name { font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -0.2px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { border-radius: 7px; padding: 2px 8px; font-size: 12px; line-height: 16px; font-weight: 600; margin-top: 4px; }
.b-received { background: #f4f4f5; color: #5e5e66; }
.b-looking { background: #f4f4f5; color: #5b2a86; }
.b-in_review { background: #f4f4f5; color: #5b2a86; }
.b-fixed { background: #e2f5ea; color: #17794a; }
.item[aria-current="true"] .b-received, .item[aria-current="true"] .b-looking, .item[aria-current="true"] .b-in_review { background: #fff; }

/* chat */
.chat-head { padding: 16px 20px; border-bottom: 1px solid rgba(24,24,27,.08); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.chat-head .badge { margin: 0; padding: 4px 10px; }
.msgs { flex: 1 1 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 640px; }
.msg { max-width: 480px; display: flex; flex-direction: column; gap: 4px; }
.msg.client { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.client .bubble { background: #5b2a86; color: #fff; border-radius: 20px 20px 6px 20px; }
.msg.assistant .bubble { background: #f4f4f5; border-radius: 20px 20px 20px 6px; }
.who { font-size: 13px; line-height: 18px; font-weight: 600; color: #5e5e66; }
.composer { border-top: 1px solid rgba(24,24,27,.08); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.composer .line { display: flex; align-items: center; gap: 8px; }
.empty { margin: auto; text-align: center; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.status-line { min-height: 20px; font-size: 13px; line-height: 18px; }
.status-line.bad { color: #c4302b; }
.status-line.good { color: #17794a; }

/* progress */
.step { display: flex; gap: 12px; align-items: flex-start; }
.dot { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 999px; border: 2px solid #d4d4d8; display: flex; align-items: center; justify-content: center; }
.step.done .dot { background: #e2f5ea; border: 0; color: #17794a; }
.step.now .dot { border-color: #5b2a86; }
.step.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #5b2a86; }
.step b { display: block; font-size: 15px; line-height: 21px; }
.step.now b { color: #5b2a86; }
.step.todo b { color: #5e5e66; }

/* login */
.login { max-width: 440px; margin: 10vh auto 0; padding: 32px 20px; }
.login .card { padding: 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 28px; }
.login img { height: 32px; width: auto; align-self: flex-start; }
.login label { font-weight: 600; font-size: 14px; }
@media (max-width: 600px) { .login .card { padding: 20px; } .msgs { max-height: none; } }

.title-support { font-size: 18px; font-weight: 600; }
p.tight { margin: 0; }
