body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; color: #1a1a1a; min-height: 100vh; background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%); }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.container { width: 100%; max-width: 480px; }
.container-wide { width: 100%; max-width: 1280px; }
.brand { text-align: center; margin-bottom: 24px; }
.brand img { height: 64px; width: auto; display: inline-block; }
.brand p { color: #4b5563; margin-top: 12px; font-size: 16px; }
.card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08); border: 1px solid #e5e7eb; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 10px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; height: 18px; width: 18px; pointer-events: none; }
input { width: 100%; padding: 12px 12px 12px 48px; border: 2px solid #e5e7eb; border-radius: 14px; font-size: 14px; background: #f9fafb; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; min-height: 48px; }
input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); background: #fff; }
.btn { width: 100%; background: #111827; color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s, box-shadow 0.2s; }
.btn:hover { background: #1f2937; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.error { color: #b91c1c; font-size: 13px; margin-top: 8px; }
.footer-note { text-align: center; margin-top: 24px; color: #9ca3af; font-size: 12px; }
.chatbox { height: 360px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; overflow-y: auto; background: #f9fafb; }
.msg { margin: 8px 0; }
.msg .who { font-size: 12px; color: #6b7280; }
.msg .text { font-size: 14px; }
.footer { padding: 12px 0 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-left img { height: 40px; width: auto; }
.nav-title { font-weight: 700; font-size: 16px; color: #111827; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.btn-outline { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.btn-outline:hover { background: #f9fafb; }
.card-chat { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08); border: 1px solid #e5e7eb; }
.card-chat { display: flex; flex-direction: column; min-height: 60vh; }
.chatbox { flex: 1; min-height: 50vh; }
.user-info { color: #4b5563; font-size: 14px; }
.role-info { color: #111827; font-size: 14px; font-weight: 600; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { background: #eef2ff; color: #111827; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
*, *::before, *::after { box-sizing: border-box; }