:root { --ink: #0b0b09; --paper: #f7f7f4; --line: rgba(11,11,9,.14); --muted: #777773; --acid: #d8ff39; --white: #fff; --radius: 26px; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--ink); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } button, textarea, select, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-shell { width: min(760px, 100%); min-height: 100vh; margin: 0 auto; padding: 22px; background: var(--paper); }
.chat-header, .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: clamp(1.8rem, 6vw, 2.7rem); font-weight: 780; letter-spacing: -.08em; line-height: 1; } .brand span { color: #86ae00; }
.header-link, .logout-button, .install-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.chat-card { display: grid; grid-template-rows: auto minmax(310px, 1fr) auto; min-height: calc(100vh - 110px); margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 42px rgba(0,0,0,.08); }
.chat-intro { padding: 30px 28px 22px; border-bottom: 1px solid var(--line); } .eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.065em; line-height: .94; } .chat-intro h1 { font-size: clamp(2.9rem, 11vw, 4.6rem); } .chat-intro p:not(.eyebrow) { max-width: 460px; margin: 18px 0; font-size: 1.05rem; line-height: 1.42; }
.live-state, .live-pill { display: inline-flex; align-items: center; gap: 8px; color: #34342f; font-size: .85rem; font-weight: 750; } .live-state span, .live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #76a300; box-shadow: 0 0 0 4px rgba(118,163,0,.12); }
.messages { min-height: 300px; max-height: 51vh; padding: 24px; overflow: auto; background: #fbfbf9; } .empty-state, .empty-list { align-self: center; color: var(--muted); line-height: 1.5; } .message { max-width: min(82%, 520px); margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; } .message p { margin: 5px 0 0; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; } .message-author { font-size: .72rem; font-weight: 800; letter-spacing: .03em; } .message-visitor { margin-right: auto; border-bottom-left-radius: 4px; background: #e9e9e2; } .message-agent { margin-left: auto; border-bottom-right-radius: 4px; background: var(--ink); color: var(--white); }
.message-form { padding: 16px; border-top: 1px solid var(--line); background: var(--white); } textarea, input { display: block; width: 100%; resize: vertical; min-height: 58px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fbfbf9; color: var(--ink); outline: none; } textarea:focus, input:focus, select:focus { border-color: #6d8e00; box-shadow: 0 0 0 3px rgba(216,255,57,.35); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; } .form-note { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; } .send-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 800; cursor: pointer; } .send-button:disabled { opacity: .45; cursor: wait; }
.privacy-note { max-width: 640px; margin: 18px auto 0; color: #676760; font-size: .78rem; text-align: center; }
.admin-page { background: var(--paper); } .admin-shell { min-height: 100vh; padding: 24px; } .access-card { width: min(540px, 100%); margin: 8vh auto; padding: clamp(28px, 7vw, 56px); border-radius: 30px; background: var(--ink); color: var(--white); } .access-card h1 { font-size: clamp(3rem, 10vw, 5rem); } .access-card p:not(.eyebrow) { margin: 24px 0 32px; color: rgba(255,255,255,.75); line-height: 1.5; } .access-card .primary-button { width: 100%; background: var(--acid); color: var(--ink); } .password-form input { margin-top: 22px; background: rgba(255,255,255,.98); } .password-status { min-height: 20px; margin: 10px 0 18px !important; color: rgba(255,255,255,.66) !important; font-size: .82rem; }
.admin-app { width: min(1440px, 100%); margin: auto; } .operator-label { margin: 8px 0 0; color: var(--muted); font-size: .84rem; } .admin-actions { display: flex; gap: 8px; } .install-button { background: var(--acid); border-color: transparent; } .admin-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.4fr); min-height: calc(100vh - 120px); margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--white); } .conversation-list-panel { min-height: 450px; border-right: 1px solid var(--line); } .panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 24px; border-bottom: 1px solid var(--line); } .panel-heading h1 { font-size: 2rem; } .conversation-list { overflow: auto; } .conversation-item { display: block; width: 100%; padding: 17px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; } .conversation-item:hover, .conversation-item.is-selected { background: #f0f0ea; } .conversation-top { display: flex; justify-content: space-between; gap: 8px; } .conversation-top strong { font-size: .96rem; } .conversation-top em { color: #60605a; font-size: .72rem; font-style: normal; font-weight: 800; } .conversation-preview { display: block; overflow: hidden; margin: 7px 0; color: #64645e; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; } .conversation-item time { color: #91918b; font-size: .73rem; }
.operator-chat { display: grid; grid-template-rows: auto minmax(340px, 1fr) auto; min-height: 630px; } .operator-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); } .operator-chat-header h2 { font-size: clamp(1.8rem, 5vw, 3rem); } select { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 700; } .operator-messages { max-height: none; }
@media (max-width: 760px) { .chat-shell, .admin-shell { padding: 14px; } .header-link { font-size: .78rem; } .chat-card { min-height: calc(100vh - 88px); margin-top: 16px; border-radius: 20px; } .chat-intro { padding: 25px 21px 20px; } .messages { max-height: 45vh; padding: 18px; } .message { max-width: 90%; } .form-row { align-items: end; } .form-note { max-width: 54%; } .admin-grid { grid-template-columns: 1fr; border-radius: 20px; } .conversation-list-panel { max-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); } .operator-chat { min-height: 620px; } .operator-chat-header { padding: 18px; } .admin-header { align-items: start; } .admin-actions { flex-direction: column; } .logout-button, .install-button { font-size: .75rem; } }
