:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; background: #f0f3ef; color: #202d26; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 960px; margin: auto; padding: 42px 20px; }
header p { color: #4f6258; margin: 4px 0; }
h1 { font-size: clamp(30px, 6vw, 48px); margin: 3px 0; letter-spacing: -.04em; }
h2 { font-size: 20px; margin: 0 0 12px; }
.layout { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 24px; }
section { padding: 22px; border: 1px solid #d7dfd8; border-radius: 12px; background: white; min-width: 0; }
label { display: block; margin: 12px 0; font-weight: 600; }
input, select, textarea, button { font: inherit; border-radius: 6px; }
input, select, textarea { width: 100%; display: block; margin-top: 4px; padding: 9px; border: 1px solid #9ba99e; color: inherit; background: white; }
textarea { overflow-wrap: anywhere; }
small { color: #526359; font-weight: 400; }
button { cursor: pointer; border: 1px solid #385a48; padding: 8px 12px; background: #fff; color: #244234; }
button[type=submit] { background: #244234; color: white; }
#dealers button { display: block; width: 100%; text-align: left; margin: 8px 0; }
.actions { display: flex; gap: 8px; }
#install { border-top: 1px solid #d7dfd8; padding-top: 14px; }
a { color: #244234; }
[hidden] { display: none !important; }
@media(max-width:680px) { .layout { grid-template-columns: 1fr; } }
#avatar-preview { display: block; object-fit: cover; border-radius: 50%; }
.preview-colors { display: flex; gap: 16px; border: 1px solid #d7dfd8; border-radius: 6px; margin: 12px 0; }
.preview-colors input { width: 58px; height: 36px; padding: 3px; }

:root { background: #eef1f7; color: #16223a; }
main { max-width: 1350px; }
header p, small { color: #52617a; }
.brand-label { font-size: .72rem; letter-spacing: .18em; font-weight: 800; }
.layout { grid-template-columns: minmax(160px, .65fr) minmax(290px, 1.3fr) minmax(260px, 1fr); }
.layout:has(> section:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
section { border-color: #d5dcea; box-shadow: 0 9px 26px #182e5210; }
button, a { color: #1d4da8; }
button { border-color: #9badd2; }
button[type=submit] { background: #2457c5; color: white; }
input, select, textarea { border-color: #a0afc7; }
input[readonly] { background: #eef2f9; }
.chat-preview { align-self: start; }
.chat-demo { border: 1px solid #d5dcea; border-radius: 12px; overflow: hidden; }
.chat-demo-header { display: flex; align-items: center; gap: 12px; padding: 14px; }
.chat-demo-header small { display: block; color: inherit; }
#demo-avatar, #demo-initial { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
#demo-initial { display: grid; place-items: center; background: #16223a; color: white; }
.chat-demo-body { min-height: 175px; padding: 16px; }
.chat-demo-body p { margin: 0; font-size: .88rem; line-height: 1.6; }
.chat-demo-compose { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; color: #52617a; font-size: .85rem; }
#demo-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-weight: 700; }
.login-page { min-height: 100vh; background: linear-gradient(120deg, #111d35, #254e9d); display: grid; place-items: center; }
.login-layout { width: min(100%, 900px); display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: 36px; }
.login-brand { color: #fff; }
.login-brand h1 { font-size: clamp(48px, 10vw, 96px); line-height: 1; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #81b8ff; color: #111d35; font-weight: 900; }
.login-panel { padding: 28px; }
.login-panel button { width: 100%; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr 1fr; } .layout > section:first-child:nth-last-child(3) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .layout, .layout:has(> section:nth-child(2):last-child), .login-layout { grid-template-columns: 1fr; } }
.password-tools { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d5dcea; }
.password-tools summary { cursor: pointer; font-weight: 700; }
.password-tools h3 { margin: 0 0 8px; }
