@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #151516;
    --muted: #77736e;
    --paper: #f4f1ec;
    --line: #ded9d0;
    --coral: #e56f57;
    --coral-dark: #bf5140;
    --cream: #fbfaf7;
    --shadow: 0 22px 70px rgba(21, 21, 22, .14);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, Arial, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; max-width: 1240px; margin: auto; padding: 30px 5vw 60px; }
.topbar, .admin-topbar { display: flex; justify-content: space-between; align-items: center; }
.brand-mark { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.brand-dot, .status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }
.admin-link, .text-link { color: var(--ink); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 6vw; }
.eyebrow { margin: 0 0 22px; color: var(--coral-dark); font: 500 11px/1.4 'DM Mono', monospace; letter-spacing: .12em; }
h1 { max-width: 620px; margin: 0; font-size: clamp(52px, 7vw, 94px); line-height: .96; letter-spacing: -.05em; }
h1 em { color: var(--coral); font-style: normal; }
.hero-text { max-width: 470px; margin: 32px 0; color: var(--muted); line-height: 1.85; font-size: 16px; }
.primary-button, .outline-button { border: 0; padding: 15px 20px; color: #fff; background: var(--ink); font-weight: 700; }
.primary-button span { margin-left: 25px; color: var(--coral); }
.primary-button:hover { background: var(--coral-dark); }
.hero-art { position: relative; height: 500px; }
.art-ring { position: absolute; border: 1px solid rgba(229,111,87,.55); border-radius: 50%; }
.ring-one { width: 420px; height: 420px; top: 28px; left: 10%; }
.ring-two { width: 290px; height: 290px; top: 94px; left: 24%; }
.art-card { position: absolute; left: 24%; top: 126px; width: 290px; min-height: 235px; padding: 28px; color: #fff; background: var(--coral); box-shadow: 20px 22px 0 rgba(21,21,22,.08); transform: rotate(-7deg); }
.art-label { display: block; font: 500 10px 'DM Mono', monospace; letter-spacing: .12em; }
.art-card strong { display: block; margin-top: 55px; font-size: 38px; line-height: 1; letter-spacing: -.06em; }
.art-card small { display: block; margin-top: 28px; font-size: 11px; opacity: .8; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 25px; }
.feature-strip div { display: flex; flex-direction: column; gap: 7px; }
.feature-strip strong { font-size: 14px; }
.feature-strip span { color: var(--muted); font-size: 12px; }
.chat-launcher { position: fixed; right: 26px; bottom: 24px; z-index: 5; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: var(--coral); box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.chat-launcher:hover { background: #f1846d; transform: translateY(-3px); }
.launcher-icon { font-size: 26px; line-height: 1; }
.chat-panel { position: fixed; z-index: 10; right: 26px; bottom: 24px; display: flex; width: min(390px, calc(100vw - 32px)); height: min(650px, calc(100vh - 48px)); flex-direction: column; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(18px) scale(.98); transition: .2s ease; }
.chat-panel.is-open { opacity: 1; pointer-events: auto; transform: none; }
.widget-page { overflow: hidden; background: transparent; }
.widget-page .chat-panel { inset: 0; width: 100%; height: 100%; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
.widget-page .chat-body { background: var(--cream); }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; color: #fff; background: var(--ink); }
.chat-header div { display: flex; flex-direction: column; gap: 3px; }
.chat-header strong { font-size: 14px; }
.chat-header small { color: #aaa59e; font-size: 11px; }
.status-dot { width: 7px; height: 7px; margin: 0 0 8px; }
.icon-button { border: 0; color: #fff; background: transparent; font-size: 25px; line-height: 1; }
.chat-body { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 22px; }
.chat-welcome { margin: auto 0; text-align: center; }
.welcome-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; color: #fff; background: var(--coral); font-size: 24px; }
.chat-welcome h2 { margin: 18px 0 7px; font-size: 19px; }
.chat-welcome p { margin: 0; color: var(--muted); font-size: 12px; }
.message-list, .admin-message-list { display: flex; flex: 1; flex-direction: column; gap: 13px; overflow: auto; }
.message-row { display: flex; max-width: 85%; flex-direction: column; gap: 4px; }
.message-row.is-visitor { align-self: flex-end; align-items: flex-end; }
.message-row.is-admin { align-items: flex-start; }
.message-bubble { padding: 11px 13px; background: #ebe6df; font-size: 13px; line-height: 1.6; }
.is-visitor .message-bubble { color: #fff; background: var(--coral); }
.message-row time { color: #aaa39b; font-size: 10px; }
.chat-form { padding: 15px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
.visitor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; background: #fff; }
input { padding: 10px; font-size: 12px; }
textarea { resize: none; padding: 11px 48px 11px 12px; font-size: 13px; }
input:focus, textarea:focus { border-color: var(--coral); }
.message-composer { position: relative; }
.send-button { position: absolute; right: 8px; bottom: 8px; width: 29px; height: 29px; border: 0; color: #fff; background: var(--coral); }
.form-note { margin: 7px 0 0; color: #aaa39b; font-size: 10px; }
.admin-page { min-height: 100vh; background: #edeae5; }
.admin-login { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-panel { width: min(420px, 100%); padding: 44px; background: var(--cream); box-shadow: var(--shadow); }
.login-panel h1 { font-size: 42px; }
.login-panel > p:not(.eyebrow) { margin: 13px 0 30px; color: var(--muted); font-size: 13px; }
.login-panel label { display: block; margin: 16px 0; font-size: 12px; font-weight: 700; }
.login-panel input { display: block; margin-top: 7px; }
.full-width { width: 100%; margin-top: 11px; text-align: left; }
.login-hint { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }
.error-text { min-height: 16px; margin: 9px 0 0; color: #b33d30; font-size: 12px; }
.admin-shell { min-height: 100vh; }
.admin-topbar { height: 78px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: var(--cream); }
.admin-topbar > div:first-child { display: flex; align-items: center; }
.admin-subtitle { margin-left: 17px; color: var(--muted); font: 11px 'DM Mono', monospace; }
.admin-actions { display: flex; align-items: center; gap: 20px; }
.sound-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sound-toggle input { width: auto; }
.outline-button { padding: 10px 14px; color: var(--ink); border: 1px solid var(--ink); background: transparent; font-size: 12px; }
.admin-content { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 78px); }
.conversation-sidebar { border-right: 1px solid var(--line); background: #f7f4ef; }
.sidebar-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 30px 25px 20px; }
.sidebar-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.sidebar-heading .eyebrow { margin-bottom: 8px; }
.refresh-button { border: 0; color: var(--coral-dark); background: transparent; font-size: 22px; }
.conversation-list { display: flex; flex-direction: column; }
.conversation-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; padding: 15px 25px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.conversation-item:hover, .conversation-item.is-selected { background: #fff; }
.conversation-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--coral); font-size: 13px; }
.conversation-summary { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.conversation-summary strong { font-size: 13px; }
.conversation-summary small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-time { color: var(--muted); font: 10px 'DM Mono', monospace; }
.conversation-time b { display: block; margin-top: 8px; color: #fff; background: var(--coral); padding: 2px 5px; text-align: center; }
.empty-list { padding: 30px 25px; color: var(--muted); font-size: 12px; }
.conversation-view { min-width: 0; background: var(--cream); }
.empty-conversation { display: grid; min-height: 60vh; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-conversation > span { color: var(--coral); font-size: 42px; }
.empty-conversation h2 { margin: 16px 0 7px; color: var(--ink); font-size: 22px; }
.empty-conversation p { margin: 0; font-size: 12px; }
.conversation-active { display: flex; height: calc(100vh - 78px); flex-direction: column; }
.conversation-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 30px 4vw 22px; border-bottom: 1px solid var(--line); }
.conversation-header h2 { margin: 0 0 6px; font-size: 27px; }
.conversation-header p { margin: 0; color: var(--muted); font-size: 12px; }
.conversation-header .eyebrow { margin-bottom: 8px; }
.admin-message-list { padding: 30px 4vw; }
.admin-message { max-width: 580px; }
.admin-message.is-admin { align-self: flex-end; text-align: right; }
.admin-message-meta { margin-bottom: 5px; color: var(--muted); font: 10px 'DM Mono', monospace; }
.admin-message-bubble { display: inline-block; padding: 12px 15px; background: #ebe6df; font-size: 13px; line-height: 1.65; text-align: left; }
.admin-message.is-admin .admin-message-bubble { color: #fff; background: var(--coral); }
.admin-composer { display: flex; align-items: flex-end; gap: 12px; padding: 20px 4vw 25px; border-top: 1px solid var(--line); background: #fff; }
.admin-composer textarea { flex: 1; min-height: 62px; }
.admin-composer .primary-button { min-width: 130px; }
[hidden] { display: none !important; }
.generator-page { max-width: 1100px; margin: auto; padding: 55px 5vw; }
.generator-page h1 { max-width: none; margin: 22px 0 10px; font-size: clamp(42px, 6vw, 74px); }
.generator-lead { display: inline; color: var(--muted); font-size: 14px; line-height: 1.8; }
.generator-page code { padding: 4px 7px; color: var(--coral-dark); background: #e8e1d8; font-size: 12px; }
.generator-grid { display: grid; grid-template-columns: 320px 1fr; gap: 35px; margin-top: 45px; padding-top: 28px; border-top: 1px solid var(--line); }
.generator-form label, .code-label { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 700; }
.generator-form input, .generator-form select { display: block; margin-top: 8px; }
.generator-form select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; margin: 0 !important; }
.embed-code { min-height: 150px; padding: 14px; color: #fff; background: var(--ink); font: 12px/1.7 'DM Mono', monospace; }
.generator-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 760px) {
    .site-shell { padding: 24px 20px 45px; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 25px; padding: 90px 0 75px; }
    h1 { font-size: 57px; }
    .hero-art { height: 330px; }
    .ring-one { width: 280px; height: 280px; left: 8%; }
    .ring-two { width: 195px; height: 195px; top: 68px; left: 22%; }
    .art-card { top: 80px; left: 20%; width: 220px; min-height: 175px; padding: 20px; }
    .art-card strong { margin-top: 35px; font-size: 29px; }
    .feature-strip { grid-template-columns: 1fr; gap: 15px; }
    .chat-launcher { right: 16px; bottom: 16px; }
    .chat-panel { right: 16px; bottom: 16px; width: calc(100vw - 32px); height: calc(100vh - 32px); }
    .admin-topbar { height: auto; min-height: 78px; padding: 18px 20px; gap: 15px; }
    .admin-subtitle, .admin-actions .text-link:not(:first-child) { display: none; }
    .admin-content { grid-template-columns: 1fr; }
    .conversation-sidebar { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
    .conversation-list { max-height: 180px; overflow: auto; }
    .conversation-active { height: auto; min-height: 530px; }
    .conversation-header { padding: 25px 20px 20px; }
    .admin-message-list { min-height: 260px; padding: 22px 20px; }
    .admin-composer { padding: 15px 20px 20px; }
    .generator-page { padding: 35px 20px; }
    .generator-grid { grid-template-columns: 1fr; }
}
