.anna[hidden] { display: none; }
.anna { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.anna-backdrop { position: absolute; inset: 0; background: rgba(29, 42, 38, .35); }
.anna-panel { position: relative; width: 100%; max-width: 440px; height: 100%; background: var(--paper, #f4efe6);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, .12); animation: anna-in .22s ease-out; }
@keyframes anna-in { from { transform: translateX(24px); } to { transform: none; } }
@media (max-width: 600px) { .anna-panel { max-width: none; } }
html.anna-open { overflow: hidden; }

.anna-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line, #d9d0c1); padding-top: calc(14px + env(safe-area-inset-top)); }
.anna-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green, #118C4E); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.anna-who { flex: 1; min-width: 0; }
.anna-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.anna-badge { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--muted, #5b6b65); border: 1px solid var(--line, #d9d0c1); border-radius: 999px; padding: 2px 8px; }
.anna-sub { font-size: 13px; color: var(--muted, #5b6b65); }
.anna-close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink, #1d2a26); border-radius: 50%; }
.anna-close:hover { background: rgba(0, 0, 0, .05); }

.anna-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg-anna { align-self: flex-start; background: #fff; border: 1px solid var(--line, #d9d0c1); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--green, #118C4E); color: #fff; border-bottom-right-radius: 6px; }
.msg-typing { color: var(--muted, #5b6b65); letter-spacing: 3px; }

.anna-ctrl { padding: 6px 16px 10px; display: flex; flex-wrap: wrap; gap: 8px; max-height: 46vh; overflow-y: auto; }
.anna-ctrl:empty { display: none; }
.chip { border: 1.5px solid var(--green, #118C4E); background: #fff; color: var(--green-deep, #0d6b3c); border-radius: 999px;
  padding: 9px 14px; font: 600 15px/1.1 var(--sans, system-ui); cursor: pointer; min-height: 40px; }
.chip:hover { background: var(--green-soft, #e3efe6); }
.chip-alt { border-color: var(--line, #d9d0c1); color: var(--ink, #1d2a26); }

.stepper { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line, #d9d0c1); border-radius: 12px; padding: 8px 12px; }
.step-l { flex: 1; font-weight: 600; }
.step-b { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--green, #118C4E); background: #fff; color: var(--green-deep, #0d6b3c); font-size: 20px; cursor: pointer; }
.step-v { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.anna-continue { margin-left: auto; }

.anna-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #d9d0c1); background: var(--paper, #f4efe6); }
.anna-compose[hidden] { display: none; }
.anna-input { flex: 1; resize: none; border: 1px solid var(--line, #d9d0c1); border-radius: 20px; padding: 11px 14px; font: 16px/1.35 var(--sans, system-ui); background: #fff; color: var(--ink, #1d2a26); max-height: 140px; }
.anna-input:focus { outline: 2px solid var(--green, #118C4E); outline-offset: 0; border-color: transparent; }
.anna-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green, #118C4E); color: #fff; font-size: 20px; cursor: pointer; flex: none; }
.anna-send:disabled { opacity: .5; }

.anna-contact { display: grid; gap: 10px; width: 100%; }
.anna-contact label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.anna-contact input[type=text], .anna-contact input[type=email] { font: 16px var(--sans, system-ui); padding: 12px 14px; border: 1px solid var(--line, #d9d0c1); border-radius: 12px; background: #fff; }
.anna-consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; color: var(--muted, #5b6b65); }
.anna-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--green, #118C4E); }
.anna-err { color: #a5281b; font-size: 14px; margin: 0; min-height: 0; }
.anna-err:empty { display: none; }
.anna-submit { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg-form { align-self: stretch; background: #fff; border: 1px solid var(--line, #d9d0c1); border-radius: 16px; padding: 14px; }
@media (prefers-reduced-motion: reduce) { .anna-panel { animation: none; } }

.chip[aria-pressed=true] { background: var(--green, #118C4E); color: #fff; border-color: var(--green, #118C4E); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip-pace { align-items: center; padding-top: 4px; }
.chip-label { font-size: 13px; font-weight: 700; color: var(--muted, #5b6b65); margin-right: 2px; }
.chip-actions { display: flex; width: 100%; align-items: center; gap: 8px; padding-top: 4px; }
.anna-hint { margin: 0; font-size: 14px; color: var(--muted, #5b6b65); background: #fff; border: 1px dashed var(--line, #d9d0c1); border-radius: 12px; padding: 10px 12px; width: 100%; }
