*{box-sizing:border-box}body{margin:0;background:#fcf8ef;color:#523421;font-family:Arial,sans-serif}.chat{max-width:880px;height:calc(100dvh - 115px);min-height:420px;margin:12px auto;background:#fffdf8;border:1px solid #ead8bc;border-radius:22px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 10px 40px #5837140a}.chat-heading{display:flex;align-items:center;gap:12px;padding:16px 24px;background:linear-gradient(110deg,#4a2b18,#79481e);color:#fff5dc}.vani-avatar{flex:none;border-radius:50%;background:white;padding:3px;object-fit:contain}.chat h1{font:700 25px Georgia,serif;margin:0}.chat-heading p{font-size:13px;margin:4px 0 0;color:#e8d4ae}.chat-home{margin-left:auto;color:#fff1ca;text-decoration:none;font-size:13px}.chat-toolbar{display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid #efe3d2;font-size:12px}.chat button,.chat a{touch-action:manipulation}.chat-toolbar button,.inline-action{border:1px solid #dcc49c;border-radius:9px;background:#fff8e5;color:#74471f;padding:8px 11px;font:600 12px Arial;cursor:pointer}.chat-toolbar #newChat{margin-left:auto;background:transparent;border-color:transparent}.chat-toolbar span{color:#8c765f;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-status{padding:8px 22px;margin:0;font-size:12px;line-height:1.5;color:#806953;background:#fff9ec}.chat-status:empty{display:none}#conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px;scrollbar-width:thin}.chat-welcome{max-width:510px;margin:24px auto 20px;text-align:center}.chat-welcome h2{font:500 clamp(26px,4vw,36px)/1.2 Georgia,serif;color:#59351e;margin:0 0 14px}.chat-welcome p{font-size:15px;line-height:1.7;color:#92795f;margin:0}.bubble{width:fit-content;max-width:91%;padding:14px 17px;margin:0 0 16px;border-radius:16px 16px 16px 3px;background:white;border:1px solid #eadcca;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.bubble.user{margin-left:auto;background:#fff0bc;border-color:#f3dc96;border-radius:16px 16px 3px 16px}.speaker{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.3px;font-weight:700;color:#946330;margin-bottom:5px}.message-text{white-space:pre-wrap}.message-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.message-links a{font-size:12px;line-height:1.35;padding:8px 10px;border-radius:8px;background:#fff5dc;color:#805023;text-decoration:none;border:1px solid #efdab3}.inline-action{margin-top:10px;display:block}.chat-error{border-color:#dbb094;background:#fff8ef}.suggestions{display:flex;gap:7px;padding:8px 20px;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}.suggestions button{font:12px Arial;white-space:nowrap;border:1px solid #e4d3b9;background:#fffdf8;color:#805a34;padding:9px 12px;border-radius:20px;cursor:pointer}#vaniForm{display:flex;align-items:flex-end;gap:10px;margin:4px 20px 0;padding:8px;border:1px solid #d5b783;border-radius:16px;background:white}#message{flex:1;resize:none;min-width:0;border:0;outline:0;background:transparent;padding:10px 6px;font:15px/1.45 Arial;color:#523421;max-height:120px}#sendMessage{flex:none;border:0;background:linear-gradient(120deg,#ffa221,#ffdb50);color:#593619;border-radius:12px;font-size:26px;width:43px;height:43px;cursor:pointer}.chat-notice{font-size:10px;line-height:1.5;color:#978570;margin:8px 24px 12px;text-align:center}.chat-notice a{color:#7c5935}button:disabled{opacity:.5;cursor:default}.chat button:focus-visible,.chat a:focus-visible,#vaniForm:focus-within{outline:2px solid #b97522;outline-offset:2px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.typing{display:flex;align-items:center;gap:10px;color:#97764f;font-size:12px;padding:12px 2px}.typing span{display:flex;gap:4px}.typing i{width:6px;height:6px;border-radius:50%;background:#cc953a;animation:vani-pulse 1.2s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes vani-pulse{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-4px)}}#birthDialog{max-width:640px;width:calc(100% - 24px);max-height:90dvh;border:1px solid #e3c99b;border-radius:18px;padding:24px;color:#573a24;background:#fffdf8;overflow:auto}#birthDialog::backdrop{background:#35210b66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font:27px Georgia,serif;margin:0}.dialog-heading button{font-size:28px;border:0;background:none;color:#7b5b35;cursor:pointer}#birthDialog p{font-size:13px;line-height:1.6;color:#8b735b}#personalFields>label{display:block;font-size:13px;margin:14px 0}#birthCountry{display:block;width:100%;padding:12px;border:1px solid #dbc7aa;border-radius:8px;margin-top:7px;font:15px Arial;background:white}#personalFields .chat-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.6}.chat-consent input{margin-top:4px}.primary{padding:13px 18px;border:0;border-radius:10px;background:linear-gradient(120deg,#ffa221,#ffdb50);color:#58341a;font-weight:700;cursor:pointer}#birthError{color:#984122!important}.embedded #hw-site-header,.embedded .mobile-nav,.embedded .chat-home,.embedded .hw-policy-footer{display:none!important}.embedded{background:#fffdf8!important;padding:0!important}.embedded .chat{height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}.embedded .chat-toolbar{padding:8px 12px;gap:6px}.embedded .chat-heading{padding:13px 16px}.embedded #conversation{padding:16px}.embedded .chat-notice{margin-bottom:8px}.embedded .chat-status{padding:7px 14px}.embedded #vaniForm{margin-left:12px;margin-right:12px}.embedded .suggestions{padding:8px 12px}.embedded .chat-welcome{margin:12px 0}.embedded .chat-welcome h2{font-size:27px}@media(max-width:820px){.chat{height:calc(100dvh - 145px - env(safe-area-inset-bottom));min-height:320px;margin:0;border-radius:0;border-width:0}.chat-heading{padding:12px 16px}.chat-toolbar{padding:8px 12px;gap:7px}.chat-toolbar span{max-width:125px}.chat-status{padding:7px 14px}#conversation{padding:16px}.chat-welcome{margin:12px auto}.chat-welcome h2{font-size:28px}.suggestions{padding:6px 12px}#vaniForm{margin-left:12px;margin-right:12px}#message{font-size:16px}.chat-notice{margin:7px 14px 10px}.bubble{max-width:96%;padding:12px 14px}#birthDialog{padding:18px}.embedded .chat{height:100dvh;min-height:0}}@media(prefers-reduced-motion:reduce){.typing i{animation:none;opacity:1}}

.chat [hidden]{display:none!important}.chat-login{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:30px 24px;text-align:center;overflow:auto}.chat-login h2{font:32px/1.2 Georgia,serif;max-width:360px;margin:0}.chat-login p{font-size:14px;line-height:1.65;color:#8b735b;max-width:370px;margin:0}.chat-login a{color:#74471f;font-size:13px}.chat-login .primary{text-decoration:none;padding:15px 26px;font-size:15px}.chat-login img{object-fit:contain;border-radius:50%;background:white}.embedded .chat-login h2{font-size:27px}.embedded .chat-login{gap:14px;padding:20px}.chat-notice{flex-shrink:0}

/* A calm, compact conversation surface, shared by the page and popup. */
.chat{background:#fffdf8;color:#35291f;font-family:Inter,system-ui,sans-serif}
.chat-heading{background:linear-gradient(120deg,#fff1c6,#fffaf0);color:#35291f;border-bottom:1px solid #ecdfc5}
.chat h1{font:700 23px/1.2 Inter,system-ui,sans-serif}.chat-heading p{color:#75614a}
.vani-avatar{display:grid;place-items:center;width:44px;height:44px;padding:0;background:#17213f;color:#ffd466;font:28px Georgia,serif}
.chat-home{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #e7d8ba;border-radius:50%;background:#fffdf8;color:#523421;font:28px/1 system-ui,sans-serif}
.chat-toolbar{padding:10px 16px;background:#fff;gap:8px}.chat-toolbar button{min-height:40px;font-family:inherit}.chat-toolbar #newChat{color:#965917}
.chat-status{background:#fffaf0;color:#786751;font-size:11px}
#conversation{background:linear-gradient(#fffdf8,#fffaf0);padding:20px 18px}
.chat-welcome{margin:22px auto;max-width:390px}.chat-welcome h2,.chat-login h2{font:650 clamp(26px,5vw,32px)/1.2 Inter,system-ui,sans-serif;letter-spacing:-.8px;color:#35291f}
.chat-welcome p,.chat-login p{font:400 14px/1.65 Inter,system-ui,sans-serif;color:#796b58}
.vani-welcome-symbol{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 18px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffeab0,#ffd465);box-shadow:0 0 0 9px #fff6dc;color:#6b421d;font:38px Georgia,serif}
.vani-eyebrow{font:600 9px/1.5 Inter,system-ui,sans-serif;letter-spacing:1.7px;color:#9a6a2c}
.bubble{font-family:Inter,system-ui,sans-serif;border-color:#eee4d4;box-shadow:0 2px 8px #49361b04}.bubble.user{background:#ffefbf;border-color:#f5de9e}
.suggestions button{font-family:inherit;padding:10px 13px;background:#fff;border-color:#e8dfcf;min-height:40px}
.chat-start .suggestions{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:8px;padding:8px 16px 12px}.chat-start .suggestions button{text-align:left;white-space:normal;border-radius:12px;font-size:12px;line-height:1.4}
#vaniForm{margin:8px 16px 0;border:1px solid #e4d2aa;border-radius:22px;padding:7px;box-shadow:0 4px 18px #61431c08;flex-shrink:0}
#message{font-family:inherit;padding:10px;min-height:44px}#sendMessage{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#ffb327,#ffdb68)}
.chat-login,.embedded .chat-login{padding:30px 22px 20px;gap:14px;background:linear-gradient(#fffdf8,#fffaf0);justify-content:center}
.chat-login .vani-welcome-symbol{margin-bottom:8px;flex-shrink:0}.chat-login .primary{display:block;width:100%;max-width:320px;text-align:center;border-radius:14px;font-family:inherit;background:linear-gradient(110deg,#ffab27,#ffd766);color:#4d2b18}
.vani-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:5px 0}.vani-topics span{font:500 11px/1.5 Inter,system-ui,sans-serif;padding:8px 11px;background:#fff;border:1px solid #eadfcb;border-radius:30px}
.chat-login .vani-signin-note{font-size:12px;margin-top:8px}
.chat-privacy{flex:none;padding:10px 16px calc(12px + env(safe-area-inset-bottom));font:400 10px/1.5 Inter,system-ui,sans-serif;text-align:center;color:#8a7a65;background:#fffdf8}.chat-privacy summary{cursor:pointer;min-height:22px}.chat-privacy .chat-notice{margin:8px 0 0;max-height:100px;overflow:auto;text-align:left}
.embedded .chat-heading{display:none}.embedded .chat{height:100dvh;min-height:0}.embedded .chat-welcome{margin:20px auto}.embedded .chat-welcome h2{font-size:27px}
@media(max-width:380px){.chat-login,.embedded .chat-login{padding:20px 16px;gap:10px}.chat-login h2{font-size:25px}.chat-login p{font-size:13px}.chat-toolbar span{max-width:85px}.chat-toolbar button{padding:8px}.chat-start .suggestions{gap:6px;padding:6px 12px}}

.vani-avatar{background:#fff4d6}
.vani-avatar .vani-spiral{display:block;width:40px;height:40px;object-fit:contain}
.vani-welcome-symbol{background:transparent;box-shadow:none}
.vani-welcome-symbol .vani-spiral{display:block;width:66px;height:66px;object-fit:contain}

/* Credits stay visible without interrupting the conversation. */
.vani-wallet{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #eee4d3;flex:none}.wallet-eyebrow{display:block;font:700 9px/1.5 Inter,system-ui,sans-serif;letter-spacing:1.3px;color:#84643e}.vani-wallet p{margin:2px 0;font-size:16px;font-weight:700;color:#49351f}.vani-wallet small{display:block;font-size:10px;line-height:1.4;color:#816e55;max-width:330px}.vani-wallet button{flex:none;min-height:42px;padding:9px 13px;border:1px solid #d9bc81;border-radius:12px;background:#fff5d9;font:650 12px Inter,system-ui,sans-serif;color:#6b481e;cursor:pointer}.wallet-recovery{margin:0;padding:8px 16px;background:#fff2d8;font-size:11px;line-height:1.5}.wallet-recovery button{border:0;background:none;padding:5px;color:#815218;text-decoration:underline;font:inherit;font-weight:700;cursor:pointer}.vani-credit-note{flex:none;margin:6px 16px 0;font-size:10px;line-height:1.5;color:#79674e;text-align:center}.vani-credit-note a{color:#76501f;text-underline-offset:2px}
.wallet-dialog{width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #e1ccaa;border-radius:24px;background:#fffdf8;color:#49351f;overflow:auto;overscroll-behavior:contain;font-family:Inter,system-ui,sans-serif;box-shadow:0 24px 90px #38220933}.wallet-dialog::backdrop{background:#251b126b;backdrop-filter:blur(3px)}.wallet-dialog [hidden]{display:none!important}.wallet-dialog .dialog-heading{align-items:flex-start}.wallet-dialog .dialog-heading h2{margin:5px 0 0;font:700 26px/1.2 Inter,system-ui,sans-serif;letter-spacing:-.7px}.wallet-dialog .dialog-heading>button{flex:none;width:44px;height:44px;min-height:44px;border:1px solid #e9dbc5;border-radius:50%;background:white}.wallet-dialog>p,.wallet-terms p{font-size:12px;line-height:1.65;color:#7b684f}.wallet-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:18px 0;border:1px solid #e9d8ad;border-radius:16px;background:linear-gradient(115deg,#fff0be,#fff9e9)}.wallet-summary span{display:block;font-size:11px;color:#806540}.wallet-summary strong{display:block;font-size:36px;line-height:1.2;font-weight:750}.wallet-summary p{max-width:210px;margin:0;font-size:11px;line-height:1.5;text-align:right;color:#7e6545}.wallet-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.wallet-pack{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:22px 15px 14px;background:white;border:1px solid #e5d6bb;border-radius:16px;text-align:left;color:#50391f;font-family:inherit;cursor:pointer;transition:background .15s,border-color .15s}.wallet-pack:hover:not(:disabled){background:#fffaeb;border-color:#bd8a3b}.wallet-pack.recommended{border:2px solid #c38b2c;background:#fffae9;padding:21px 14px 13px}.wallet-pack-badge{position:absolute;top:-11px;left:12px;background:#855519;color:white;border-radius:20px;padding:4px 8px;font-size:9px;font-weight:650}.wallet-pack-name{font-size:11px;color:#897455}.wallet-pack strong{font-size:18px;letter-spacing:-.5px}.wallet-pack-price{font-size:24px;font-weight:750}.wallet-pack-action{display:block;margin-top:5px;font-size:10px;color:#815c26}.wallet-purchase-notice{margin-bottom:8px}.wallet-pending{padding:15px;border:1px solid #dfc594;border-radius:14px;background:#fff6df}.wallet-pending>strong{font-size:13px}.wallet-pending p{font-size:12px;line-height:1.6;color:#7b684f;margin:7px 0 12px}.wallet-pending-actions{display:flex;flex-wrap:wrap;gap:8px}.wallet-pending-actions button{min-height:44px;font:600 12px Inter,system-ui,sans-serif;padding:10px 14px;border-radius:10px;cursor:pointer}.wallet-pending-actions button:not(.primary){border:1px solid #d8c198;background:#fffdf7;color:#765326}#walletStatus{min-height:20px;margin:12px 0;font-size:12px;line-height:1.6;color:#78501e;overflow-wrap:anywhere}.wallet-terms{padding:0 0 16px;border-bottom:1px solid #ede2d0}.wallet-terms p{margin:6px 0}.wallet-dialog details{margin:16px 0;font-size:12px}.wallet-dialog summary{min-height:36px;cursor:pointer;font-weight:650}.wallet-dialog #walletHistoryNote{font-size:11px;line-height:1.6;color:#84715a}.wallet-history{padding:0;margin:0;list-style:none}.wallet-history li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #efe6d7;font-size:12px}.wallet-history strong{white-space:nowrap;font-weight:650}.wallet-history time{display:block;margin-top:4px;font-size:10px;color:#8d7960}.wallet-help{display:inline-block;font-size:11px;line-height:1.6;color:#795321;text-underline-offset:3px}.wallet-dialog button:focus-visible,.wallet-dialog a:focus-visible,.wallet-dialog summary:focus-visible{outline:2px solid #a76a1d;outline-offset:3px}.wallet-dialog #walletTitle:focus{outline:none}
@media(max-width:560px){.wallet-dialog{padding:20px 16px;border-radius:20px}.wallet-dialog .dialog-heading h2{font-size:24px}.wallet-packs{grid-template-columns:1fr;gap:12px;margin:20px 0}.wallet-pack,.wallet-pack.recommended{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:16px}.wallet-pack-name{grid-column:1;grid-row:1}.wallet-pack strong{grid-column:1;grid-row:2;font-size:20px}.wallet-pack-price{grid-column:2;grid-row:1/3;align-self:center;font-size:26px}.wallet-pack-action{grid-column:1/3;margin-top:4px}.wallet-pack-badge{left:auto;right:14px}.wallet-summary{padding:14px 16px}.vani-wallet{padding:9px 12px}.vani-wallet p{font-size:14px}.vani-wallet small{max-width:210px;font-size:9px}.vani-wallet button{font-size:11px;padding:8px 10px}.vani-credit-note{font-size:9px}.chat-start .chat-welcome{margin:10px auto}.chat-start .chat-welcome .vani-welcome-symbol{width:44px;height:44px;margin-bottom:12px}.chat-start .chat-welcome .vani-spiral{width:44px;height:44px}.chat-start .chat-welcome h2{font-size:25px}}
@media(max-height:700px){.chat-welcome h2{font-size:24px}.chat-welcome .vani-welcome-symbol{display:none}.chat-welcome{margin:8px auto}.chat-start .suggestions{padding-top:4px;padding-bottom:4px}.chat-start .suggestions button{font-size:11px;min-height:34px;padding:6px 9px}.chat-privacy{padding-top:6px;padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.wallet-pack{transition:none}}
.chat-heading>div,.vani-wallet>div,.wallet-history li>span{min-width:0;overflow-wrap:anywhere}
.chat-heading>div{flex:1}
.chat-toolbar #profileLabel{min-width:0;flex:1}
.chat-toolbar button{flex-shrink:0}
.wallet-summary{flex-wrap:wrap}
.wallet-summary p{overflow-wrap:anywhere}

/* Keep term-based RareU replies distinct from the purchased wallet. */
.reply-credit-source{display:block;margin-top:10px;font-size:10px;line-height:1.5;color:#8b785c}
.included-wallet{padding-top:7px;margin-top:7px;border-top:1px solid #eee4d3}.included-wallet p{font-size:12px;color:#89631f}.vani-credit-mode{padding:9px 16px;background:#fffaf0;border-bottom:1px solid #eee4d3;flex:none}.vani-credit-mode label{display:block;font:650 9px/1.5 Inter,system-ui,sans-serif;color:#84643e;letter-spacing:.7px;text-transform:uppercase}.vani-credit-mode select{display:block;min-height:40px;width:100%;margin:4px 0;padding:8px 10px;border:1px solid #e7d6b5;border-radius:9px;background:#fff;color:#59452c;font:500 12px/1.5 Inter,system-ui,sans-serif}.vani-credit-mode p{font:10px/1.5 Inter,system-ui,sans-serif;color:#816e55;margin:5px 0 0}.wallet-included-summary{background:#f9f4e7}.wallet-included-summary p{max-width:280px}.vani-credit-mode select:focus-visible{outline:2px solid #a76a1d;outline-offset:2px}
@media(max-width:560px){.vani-credit-mode{padding:8px 12px}.vani-credit-mode select{font-size:16px;min-height:44px}.included-wallet p{font-size:12px}.wallet-included-summary p{text-align:left}}
