:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #221532;
    background: #f7f4fc;
    --accent: #6327ae;
    --muted: #61566e;
    --border: #dfd5e9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    background: #fff;
    padding: 1rem max(1rem, calc((100vw - 50rem) / 2));
    border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 1.2rem; font-weight: 750; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
main { width: min(100% - 2rem, 50rem); margin: 2.25rem auto 4rem; }
h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); margin: 0 0 .5rem; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
p { line-height: 1.6; overflow-wrap: anywhere; }
a, button.quiet { color: var(--accent); }
button, input, textarea { font: inherit; }
.primary {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: .6rem;
    padding: .55rem .95rem;
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.quiet { border: 0; background: none; padding: .4rem 0; cursor: pointer; }
.panel, .notice { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; margin: 1rem 0; }
.notice { border-inline-start: .25rem solid #13744b; }
.error { border-inline-start-color: #a82a4f; }
.hint, small { color: var(--muted); }
.share-link { overflow-wrap: anywhere; }
.fields, .schedule, .search { display: grid; gap: .6rem; }
.fields button { justify-self: start; }
.search div { display: flex; gap: .5rem; }
input:not([type="checkbox"]), textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid #9788a6;
    border-radius: .5rem;
    background: #fff;
    color: inherit;
    padding: .6rem;
}
textarea { resize: vertical; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: .6rem; margin: .75rem 0; }
legend { font-weight: 700; }
.check { display: block; margin: .6rem 0; }
.studio-page .site-header { padding-inline: max(1rem, calc((100vw - 75rem) / 2)); }
.studio-page main { width: min(100% - 2rem, 75rem); display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; margin-top: 1.75rem; }
.studio-sidebar { min-width: 0; align-self: start; position: sticky; top: 1.5rem; }
.studio-nav-title { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; margin: .25rem .75rem .85rem; }
.studio-menu { display: grid; gap: .3rem; }
.studio-menu a { display: flex; align-items: center; gap: .7rem; padding: .8rem .75rem; border-radius: .8rem; text-decoration: none; color: var(--muted); font-size: .9rem; }
.studio-menu a:hover { background: #eee5f8; }
.studio-menu a[aria-current="page"] { color: var(--accent); background: #eee3fa; font-weight: 750; }
.studio-menu-icon { width: 1.2rem; text-align: center; font-size: 1.1rem; }
.studio-nav-note { color: var(--muted); font-size: .75rem; padding: 1rem .75rem; }
.studio-content { min-width: 0; }
.studio-intro { color: var(--muted); margin: .5rem 0 1.6rem; }
.studio-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.studio-stat { display: grid; gap: .5rem; border: 1px solid var(--border); border-radius: 1rem; background: #fff; padding: 1rem; min-width: 0; }
.studio-stat > span { color: var(--muted); font-size: .8rem; }
.studio-stat > strong { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #332044; line-height: 1.1; }
.studio-stat > small { font-size: .65rem; }
.studio-dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; }
.studio-dashboard-grid .panel { min-width: 0; }
.studio-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.studio-card-heading > small { font-size: .7rem; }
.studio-activity-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.studio-activity-list li { display: flex; gap: .7rem; align-items: center; font-size: .75rem; }
.studio-activity-list time { color: var(--muted); width: 2.5rem; direction: ltr; }
.studio-activity-list meter { height: .85rem; flex: 1; min-width: 0; accent-color: var(--accent); }
.studio-activity-list strong { min-width: 1.7rem; text-align: end; }
.studio-status { display: inline-block; padding: .3rem .55rem; border-radius: 1rem; background: #eee9f3; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.studio-status.published { background: #e5f4ed; color: #13744b; }
.studio-page-summary .studio-status { margin-top: .4rem; }
.studio-quick-links { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; font-size: .8rem; margin-top: 1.1rem; }
.studio-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.studio-shortcuts a { margin-top: 0; display: grid; gap: .5rem; text-decoration: none; }
.studio-shortcuts a > span { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.studio-shortcuts a > span:last-child { justify-self: end; color: var(--accent); }
.studio-personal-name { display: flex; gap: 1rem; justify-content: space-between; align-items: center; background: #f7f2fc; padding: 1rem; border-radius: .75rem; }
.studio-personal-name > div, .studio-name-list li > div { display: grid; gap: .35rem; min-width: 0; }
.studio-personal-name form { margin: 0; }
.studio-personal-name span[dir="ltr"] { color: var(--accent); }
.studio-add-name { margin-top: 1.2rem; }
.studio-name-input { display: flex; gap: .6rem; align-items: stretch; }
.studio-name-input input { flex: 1; }
.studio-name-input button { flex: 0 0 auto; }
.studio-name-list, .studio-conversation-list { padding: 0; list-style: none; margin: 1.2rem 0; }
.studio-name-list li, .studio-conversation-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.studio-name-list small, .studio-conversation-copy small { font-size: .7rem; }
.studio-name-list a { overflow-wrap: anywhere; }
.studio-conversation-copy { min-width: 0; display: grid; gap: .4rem; flex: 1; }
.studio-conversation-copy strong { overflow-wrap: anywhere; }
.studio-empty { text-align: center; padding-block: 2.5rem; }
.studio-empty p { color: var(--muted); }
.name-option { display: flex; align-items: center; gap: .75rem; padding: .8rem .25rem; }
.name-option span { display: grid; gap: .3rem; }
.name-option small { font-size: .8rem; }
.name-option input[type="radio"] { width: 1.1rem; height: 1.1rem; padding: 0; accent-color: var(--accent); }
.using-personal-name #handle, .using-personal-name label[for="handle"], .using-personal-name #handle-hint { display: none; }
@media (max-width: 850px) {
    .studio-page main { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: .75rem; }
    .studio-sidebar { position: static; }
    .studio-nav-title, .studio-nav-note { display: none; }
    .studio-menu { display: flex; overflow-x: auto; gap: .25rem; padding-bottom: .3rem; }
    .studio-menu a { white-space: nowrap; font-size: .8rem; padding: .65rem .75rem; flex: 0 0 auto; }
    .studio-menu-icon { display: none; }
}
@media (max-width: 550px) {
    .studio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .studio-dashboard-grid, .studio-shortcuts { grid-template-columns: minmax(0, 1fr); }
    .studio-dashboard-grid { gap: 0; }
    .studio-personal-name, .studio-name-input { flex-wrap: wrap; }
    .studio-personal-name form, .studio-name-input input { flex: 1 1 100%; }
    .studio-conversation-list li { flex-wrap: wrap; }
    .studio-conversation-copy { flex-basis: 70%; }
}
.schedule { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.profile-list .panel { margin: 0; }
.profile-card { display: flex; align-items: flex-start; gap: .75rem; }
.profile-card > div { min-width: 0; }
.profile-card p { margin: .6rem 0; }
.avatar { border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: #eee3f9; }
.avatar-initial { display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: .4rem; color: #5c5366; font-size: .9rem; }
.status::before { content: ""; width: .65rem; height: .65rem; background: #7c7285; border-radius: 50%; }
.status.open { color: #125f3c; }
.status.open::before { background: #14814e; }
.messages { display: grid; gap: .75rem; list-style: none; padding: 0; }
.messages li { max-width: 88%; justify-self: start; border-radius: .8rem; padding: .65rem .9rem; background: #fff; overflow-wrap: anywhere; }
.messages li.mine { justify-self: end; background: #eee2fd; }
.messages li p { margin: .25rem 0 0; white-space: pre-wrap; }
.avatar-upload { display: flex; align-items: center; gap: 1rem; }
.avatar-upload input { flex: 1; }
.self-badge { display: inline-block; margin-inline-start: .5rem; padding: .15rem .55rem; border-radius: 1rem; background: #eee3f9; font-size: .8rem; }
.profile-action { margin-bottom: 0 !important; }
.conversation-panel { margin-top: 1rem; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; background: #f0eaf8; }
.live-status { margin: 0 0 .75rem; color: var(--muted); font-size: .85rem; }
.live-status.connected { color: #125f3c; }
.live-status.connected::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #14814e; margin-inline-end: .4rem; }
.messages { max-height: min(55dvh, 30rem); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: .25rem; }
.messages:empty { display: none; }
.messages li { box-shadow: 0 1px 2px #2215320a; }
.messages time { display: block; margin-top: .35rem; color: var(--muted); font-size: .7rem; text-align: end; }
#composer { margin-top: .75rem; }
#send-status { margin: 0; }
.primary:disabled { cursor: wait; opacity: .65; }
@media (max-width: 480px) { .avatar-upload { align-items: flex-start; flex-direction: column; } }

/* Shared profile introduction. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wordmark { text-decoration: none; }
.public-profile-page { min-height: 100dvh; background: radial-gradient(ellipse at 50% 25%, #eee4fc 0, #faf8fe 58%, #fff 100%); }
.public-profile-page .site-header { border: 0; background: transparent; }
.public-profile-page main { width: min(100% - 2.5rem, 27rem); min-height: calc(100dvh - 8rem); display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
.profile-hero { width: 100%; padding: 2.5rem 1.75rem 1.6rem; text-align: center; border: 1px solid #ede5f6; background: #ffffffdc; border-radius: 1.75rem; box-shadow: 0 18px 65px #58229a0a; }
.profile-avatar { display: inline-flex; position: relative; flex: 0 0 auto; width: 112px; height: 112px; vertical-align: middle; }
.profile-avatar img, .profile-avatar-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #eee4fb; }
.profile-avatar-initial { display: grid; place-items: center; font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.availability-dot { position: absolute; inset-inline-end: 3px; bottom: 4px; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: #87909e; box-shadow: 0 1px 3px #22153216; }
.availability-dot.open { background: #22a46b; }
.profile-hero h1 { margin: 1.3rem 0 .4rem; font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.3; font-weight: 750; }
.profile-handle { margin: 0; font-size: .88rem; color: #8a7e96; }
.profile-description { margin: 1.1rem auto 1.65rem; color: var(--muted); font-size: .95rem; max-width: 30ch; line-height: 1.75; }
.profile-start-form { margin-top: 1.75rem; }
.profile-start { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 52px; padding: .85rem 1rem; border-radius: .9rem; font-size: .98rem; box-shadow: 0 5px 14px #6327ae19; }
.profile-start:disabled { background: #c4bdcf; border-color: #c4bdcf; box-shadow: none; cursor: default; opacity: 1; }
.profile-owner-note { color: var(--muted); font-size: .85rem; margin: 1.25rem 0; }
.profile-secondary { display: block; margin-top: 1rem; font-size: .85rem; }
.profile-powered { margin: 1.65rem 0 0; font-size: .75rem; color: #9b91a7; }
.profile-powered a { text-decoration: none; font-weight: 650; }
.profile-error { font-size: .85rem; color: #a82a4f; }

/* Conversation window: a fixed header and composer around a scrolling history. */
.public-chat-page { height: 100dvh; overflow: hidden; background: #f2eef8; }
.public-chat-page > .site-header { display: none; }
.public-chat-page main { width: min(100% - 3rem, 51rem); height: calc(100dvh - 3rem); max-height: 58rem; margin: 1.5rem auto; }
.chat-window { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4ddec; border-radius: 1.4rem; background: #fff; box-shadow: 0 12px 50px #38214f0c; }
.chat-window-header { display: flex; align-items: center; gap: .75rem; min-height: 78px; padding: .85rem 1rem; background: #fff; border-bottom: 1px solid #eee9f3; flex: 0 0 auto; }
.chat-back, .chat-language { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; text-decoration: none; }
.chat-back:hover, .chat-language:hover { background: #f5f0fb; }
[dir="rtl"] .chat-back svg { transform: rotate(180deg); }
.chat-window-header .profile-avatar { width: 44px; height: 44px; }
.chat-window-header .profile-avatar-initial { font-size: 1.15rem; }
.chat-window-header .availability-dot { width: 13px; height: 13px; border-width: 2px; inset-inline-end: -1px; bottom: 0; }
.chat-person { flex: 1; min-width: 0; }
.chat-person h1 { font-size: 1rem; line-height: 1.4; margin: 0 0 .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .chat-person h1 { text-align: right; }
.chat-person-meta { display: flex; align-items: center; gap: .35rem; color: #93869f; font-size: .73rem; white-space: nowrap; overflow: hidden; }
.chat-person-meta > [dir="ltr"] { overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
.chat-live-status { flex: 0 0 auto; font-size: .73rem; }
.chat-window-body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; background-color: #f6f3fa; background-image: radial-gradient(#d9d0e644 1px, transparent 1px); background-size: 19px 19px; }
.chat-window .messages { flex: 1; align-content: start; min-height: 0; max-height: none; gap: .65rem; padding: 1.25rem; margin: 0; }
.chat-window .messages:empty { display: block; }
.chat-window .messages li { max-width: 82%; border: 1px solid #ede7f3; border-radius: 1.1rem 1.1rem 1.1rem .3rem; padding: .6rem .85rem .4rem; background: #fff; box-shadow: 0 2px 4px #38214f05; }
.chat-window .messages li.mine { background: var(--accent); color: #fff; border-color: transparent; border-radius: 1.1rem 1.1rem .3rem 1.1rem; }
.chat-window .messages strong { font-size: .72rem; opacity: .8; }
.chat-window .messages li.mine strong { display: none; }
.chat-window .messages p { font-size: .94rem; line-height: 1.6; margin: .1rem 0; }
.chat-window .messages time { font-size: .65rem; color: #9c8fa7; margin-top: .25rem; }
.chat-window .messages li.mine time { color: #e4cffb; }
.chat-empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; pointer-events: none; padding: 2rem; text-align: center; }
.chat-empty-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #a78ac6; background: #eee6f7; margin-bottom: .25rem; }
.chat-empty-state h2 { margin: 0; color: #847091; font-size: 1.02rem; font-weight: 600; }
.chat-empty-state p { margin: 0; color: #ad9db9; font-size: .85rem; }
.chat-window-footer { flex: 0 0 auto; padding: .8rem 1rem max(.5rem, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee9f3; }
.chat-composer { display: flex; align-items: flex-end; gap: .45rem; border: 1px solid #e5dced; background: #faf8fd; border-radius: 1.6rem; padding: .3rem; margin: 0 !important; }
.chat-composer:focus-within { border-color: #b69acb; box-shadow: 0 0 0 3px #6327ae06; }
.chat-composer textarea { flex: 1; min-width: 0; width: auto; min-height: 40px; max-height: 128px; padding: .55rem .7rem; border: 0; outline: none; border-radius: 0; background: transparent; resize: none; line-height: 1.5; font-size: 1rem; }
.chat-composer textarea::placeholder { color: #aa9ab7; }
.chat-send { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.chat-send:disabled { background: #b9acc8; cursor: default; }
.chat-send-feedback { margin: 0; color: var(--muted); font-size: .75rem; }
.chat-send-feedback:not(:empty), .chat-send-error { margin: .45rem .6rem 0; font-size: .8rem; }
.chat-send-error { color: #a82a4f; }
.chat-footer-meta { margin-top: .5rem; color: #b0a4bb; font-size: .63rem; text-align: center; }
.chat-footer-meta a { text-decoration: none; font-weight: 600; }
.studio-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.studio-section-heading h2, #automation h2 { margin-top: .3rem; }
.studio-kicker { font-size: .75rem; letter-spacing: .05em; font-weight: 700; color: var(--accent); }
.knowledge-count, .ai-profile-badge { display: inline-block; background: #f0e7fa; color: #6327ae; padding: .35rem .65rem; border-radius: 2rem; font-size: .75rem; font-weight: 600; }
.knowledge-count { direction: ltr; unicode-bidi: isolate; }
.knowledge-upload { background: #faf8fd; border: 1px dashed #cbb9de; border-radius: 1rem; padding: 1.2rem; }
.knowledge-upload button { justify-self: start; }
.knowledge-privacy { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.knowledge-selection { overflow-wrap: anywhere; font-size: .8rem; }
.knowledge-list { padding: 0; list-style: none; }
.knowledge-file { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid #eee7f5; }
.knowledge-file-info { flex: 1; min-width: 10rem; overflow-wrap: anywhere; }
.knowledge-file-info small, .handoff-row small { display: block; color: var(--muted); margin-top: .3rem; }
.knowledge-state { font-size: .75rem; padding: .35rem .6rem; border-radius: 1rem; background: #f4edf9; color: #69547a; }
.knowledge-state[data-state="ready"] { color: #106e48; background: #e7f7ed; }
.knowledge-state[data-state="failed"] { color: #9a3343; background: #fbe9ec; }
.knowledge-actions { display: flex; gap: .5rem; }
.knowledge-actions button, .handoff-row button { font-size: .8rem; }
.reply-mode-options { display: grid; gap: .7rem; }
.reply-mode { display: flex; align-items: start; gap: .7rem; padding: 1rem; border: 1px solid #e3d8ef; border-radius: 1rem; cursor: pointer; }
.reply-mode:has(input:checked) { border-color: #8c5ac4; background: #f7f0fe; }
.reply-mode input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.reply-mode span { display: grid; gap: .4rem; }
.handoff-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; border-top: 1px solid #eee7f5; }
.chat-automation-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .4rem .6rem; color: var(--muted); font-size: .72rem; }
.chat-automation-bar #ai-resume-notice { flex-basis: 100%; order: 3; font-size: inherit; }
.chat-automation-bar button { font-size: .72rem; padding: .25rem .4rem; white-space: nowrap; }
.chat-automation-bar form { margin: 0; }
@media (max-width: 600px) {
    .public-profile-page main { width: min(100% - 2rem, 27rem); }
    .profile-hero { padding: 2.2rem 1.5rem 1.4rem; }
    .public-chat-page main { width: 100%; height: 100dvh; max-height: none; margin: 0; }
    .chat-window { border: 0; border-radius: 0; box-shadow: none; }
    .chat-window-header { min-height: 72px; padding: .75rem .65rem; gap: .55rem; }
    .chat-person-meta > [dir="ltr"] { max-width: 8rem; }
    .chat-window .messages { padding: 1rem .8rem; }
    .chat-window-footer { padding: .65rem .75rem max(.4rem, env(safe-area-inset-bottom)); }
}

.studio-scope { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0;padding:16px 20px;background:#fff;border:1px solid #e8dff4;border-radius:18px; }
.studio-scope label { font-weight:650; }.studio-scope select { flex:1;min-width:180px;max-width:480px;padding:10px 14px;border:1px solid #dcd1ec;border-radius:12px;background:white;color:inherit;font:inherit; }
.studio-profile-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px; }.studio-profile-card h2 { font-size:1.15rem;margin:0 0 5px; }.studio-profile-identity { display:flex;align-items:center;gap:12px;min-width:0; }.studio-profile-identity .avatar { border-radius:14px;object-fit:cover; }.studio-profile-identity span { color:#776e85;font-size:.85rem; }.studio-profile-actions { display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:22px;font-size:.9rem; }.studio-split { padding-inline-start:12px; }.studio-names summary { cursor:pointer;font-weight:650; }
.chat-window .messages li.automation-divider { justify-self:stretch;width:100%;box-sizing:border-box;align-self:stretch;display:flex;align-items:center;gap:12px;max-width:none;background:none;border:0;box-shadow:none;padding:10px 4px;margin:8px 0;color:#81768e;font-size:.72rem; }
.automation-divider::before,.automation-divider::after { content:"";height:1px;background:#e6ddef;flex:1; }.automation-divider span { border:1px solid #e6ddef;border-radius:20px;background:#faf7ff;padding:5px 12px;white-space:nowrap; }
.ai-typing { display:flex;align-items:center;gap:9px;align-self:flex-start;margin:0 20px 12px;padding:10px 14px;background:white;border:1px solid #e8dff4;border-radius:18px;color:#7b5b9b;font-size:.8rem; }.ai-typing[hidden] { display:none; }.typing-dots { display:inline-flex;gap:4px;align-items:center; }.typing-dots i { width:5px;height:5px;border-radius:50%;background:#9d63d8;animation:ai-dot 1.2s infinite; }.typing-dots i:nth-child(2) { animation-delay:.16s; }.typing-dots i:nth-child(3) { animation-delay:.32s; }@keyframes ai-dot { 0%,60%,100% { opacity:.35;transform:translateY(0); }30% { opacity:1;transform:translateY(-3px); } }.messages .pending-message { opacity:.65; }@media(prefers-reduced-motion:reduce) { .typing-dots i { animation:none;opacity:.7; } }
.widget-enable {display:flex;align-items:center;gap:14px;padding-bottom:22px;border-bottom:1px solid var(--border)}.widget-enable>span{display:grid;gap:6px}.widget-enable input{width:22px;height:22px;accent-color:var(--accent);flex-shrink:0}.widget-enable strong{font-size:1.05rem}.widget-enable small{color:var(--muted);font-size:.8rem}.widget-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.widget-settings-section h2,.widget-install h2{font-size:1.15rem}.widget-step{display:inline-grid;place-items:center;width:28px;height:28px;background:#f0e6fc;border-radius:50%;font-size:.85rem;color:var(--accent);margin-inline-end:6px}.widget-color-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.widget-color-row input{width:58px;height:42px;padding:4px;border-radius:12px;cursor:pointer}.widget-position{display:flex;gap:24px;flex-wrap:wrap}.widget-position legend{margin-bottom:8px}.widget-position label{display:flex;align-items:center;gap:8px}.widget-look-preview{display:flex;flex-direction:column;gap:26px;border:1px dashed #dacde9;border-radius:16px;padding:18px;background:#faf8fd}.widget-look-preview>span{color:var(--muted);font-size:.8rem}.widget-look-preview button{border-radius:999px;opacity:1;color:white}.widget-code{font: .82rem/1.7 ui-monospace,monospace;background:#f8f5fc;resize:vertical}.widget-copy-row{display:flex;align-items:center;gap:14px}.widget-copy-row>span{font-size:.85rem;color:#16814f}.widget-chat-page .chat-window{height:100dvh;max-height:none;width:100%;border:0;border-radius:0;box-shadow:none}.widget-chat-page .chat-window-header{padding:.75rem}.widget-chat-page .chat-language{display:none}.widget-chat-page .chat-window .messages{padding:12px}.widget-chat-page .chat-window .messages p{font-size:.88rem}.widget-chat-page .site-header{display:none}@media(max-width:700px){.widget-setup-grid{grid-template-columns:1fr;gap:18px}.widget-enable{align-items:flex-start}.widget-position{gap:16px}}.public-language-choices{display:inline-flex;align-items:center;gap:.65rem;flex-wrap:wrap;font-size:.85rem;flex-shrink:0}.public-language-choices a{white-space:nowrap;text-decoration:none;padding:.25rem .15rem}.public-language-choices a:hover{text-decoration:underline}.public-language-choices a:focus-visible{outline:2px solid var(--accent,#6d28d9);outline-offset:3px;border-radius:4px}.chat-window-header>.public-language-choices{max-width:10rem;justify-content:flex-end;font-size:.72rem}.language-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.65rem;max-height:260px;overflow:auto;padding:1rem .2rem}.language-options summary{cursor:pointer;padding:.65rem 0;font-weight:600}.language-preview-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.language-preview-form select{min-width:180px;max-width:320px}.profile-description{white-space:pre-line}.chat-person h1{overflow-wrap:anywhere}@media(max-width:420px){.chat-window-header>.public-language-choices{max-width:7rem;gap:.4rem;font-size:.68rem}.language-preview-form select{max-width:100%;width:100%}}
