.ai-main{max-width:1320px;margin:auto;padding:3rem 2rem}.ai-heading{max-width:800px;margin-bottom:2rem}.ai-heading h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.1;color:#572534;margin:.5rem 0 1rem}.ai-workspace{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:2rem}.ai-access,.ai-chat,.ai-receipt{padding:1.5rem;border:1px solid #d9c9c4;background:#fffdf9}.ai-access{background:#f1e5e3;overflow-wrap:anywhere}.ai-access h2,.ai-chat h2,.ai-pack h3{color:#572534;font-size:1.35rem;margin:0 0 1rem}.ai-main form{display:block}.ai-main label{display:block;font-weight:600;margin:0 0 .5rem}.ai-main input,.ai-main textarea{box-sizing:border-box;width:100%;border:1px solid #988580;background:#fffdf9;color:#302829;padding:.8rem;font:inherit;font-size:1rem;border-radius:0}.ai-main input:focus,.ai-main textarea:focus{outline:2px solid #572534;outline-offset:2px}.ai-main textarea{resize:vertical}.ai-main button,.ai-main .button{margin-top:1rem;min-height:44px}.ai-secondary{background:transparent;border:1px solid #572534;color:#572534;font:inherit;padding:.6rem 1rem;cursor:pointer}.ai-main [hidden]{display:none!important}.ai-main :disabled{opacity:.6;cursor:not-allowed}.ai-pack{border-top:1px solid #cbb6b5;margin-top:1.5rem;padding-top:1.5rem}.ai-price{font-size:2rem;font-weight:600;color:#572534}.ai-price span{font-size:1rem;font-weight:400}.ai-notice{border-left:3px solid #572534;padding:.75rem 1rem;background:#f1e5e3;font-size:1rem}.ai-access p,.ai-small{font-size:.95rem;line-height:1.55}.ai-send-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.ai-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 1.25rem;padding:1rem;line-height:1.6;background:#f7efec;border-left:3px solid #572534}.ai-message strong{display:block;margin-bottom:.5rem;color:#572534}.ai-message.user{background:#fffdf9;border-color:#cab5b4}.ai-receipt{margin:2rem 0}.ai-receipt input{font-family:monospace;max-width:620px}.ai-main p[role=status]{min-height:1.5em}.ai-small{color:#675b5c;margin-top:1.5rem}.ai-chat #ai-messages{max-height:650px;overflow:auto;scroll-margin:1rem}.ai-main .button{color:#fff}.ai-main .ai-secondary{color:#572534}@media(max-width:800px){.ai-main{padding:2rem 1rem}.ai-workspace{grid-template-columns:1fr;gap:1rem}.ai-access,.ai-chat{padding:1.2rem}.ai-main h1{font-size:2.6rem}}

.ai-main .ai-consent{font-size:.9rem;line-height:1.5;margin-top:1rem;font-weight:400}.ai-main .ai-consent input{width:18px;height:18px;vertical-align:middle;margin-right:.4rem}

.ai-guide,.ai-specialism,.ai-examples,.ai-faq{margin:2.5rem 0}.ai-guide h2,.ai-specialism h2,.ai-examples h2,.ai-faq h2{color:#572534;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.2;margin:0 0 1rem}.ai-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.ai-steps li{border-top:1px solid #cbb6b5;padding-top:1rem}.ai-steps span{color:#572534;font-size:1rem}.ai-steps h3,.ai-values h3{font-size:1.1rem;color:#572534;margin:.5rem 0}.ai-steps p,.ai-values p{font-size:1rem;line-height:1.6;margin:.5rem 0}.ai-specialism{padding:2rem;background:#f1e5e3;border:1px solid #d9c9c4}.ai-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;margin-top:1.5rem}.ai-main details{border-bottom:1px solid #d9c9c4;padding:1rem 0}.ai-main summary{cursor:pointer;font-weight:600;color:#572534;min-height:30px}.ai-main summary:focus-visible{outline:2px solid #572534;outline-offset:4px}.ai-main details p{font-size:1rem;line-height:1.6;max-width:900px}.ai-message-body{white-space:normal}.ai-message-body p{margin:.6rem 0}.ai-message-body strong{display:inline;margin:0}.ai-message-body h3{font-size:1.1rem;margin:1rem 0 .5rem;color:#572534}.ai-table-scroll{max-width:100%;overflow-x:auto}.ai-message-body table{border-collapse:collapse;font-size:.9rem;width:100%;margin:.5rem 0}.ai-message-body th,.ai-message-body td{text-align:left;vertical-align:top;padding:.6rem;border:1px solid #d9c9c4;min-width:90px;white-space:normal}.ai-message-body th{background:#eee0dd}.ai-message-body ul,.ai-message-body ol{padding-left:1.5rem}.ai-message-body code{white-space:pre-wrap}.ai-message-body pre{overflow:auto;white-space:pre-wrap}@media(max-width:800px){.ai-steps,.ai-values{grid-template-columns:1fr;gap:1rem}.ai-specialism{padding:1.2rem}}

.ai-access>.ai-pack:first-child{border-top:0;margin-top:0;padding-top:0;border-bottom:1px solid #cbb6b5;margin-bottom:1.5rem;padding-bottom:1.5rem}.ai-access>.ai-pack:first-child .ai-price{margin:.5rem 0}.ai-access>.ai-pack:first-child .button{display:block;text-align:center;width:100%;box-sizing:border-box;white-space:normal}.ai-access>.ai-pack:first-child p:last-child{font-size:.85rem}

.ai-access .ai-price{font-size:2.8rem;line-height:1.2;font-weight:600}.ai-access .ai-price span{display:block;font-size:1.1rem;margin-top:.3rem}.ai-access .ai-pack p{margin:.6rem 0}.ai-pack .ai-price+ p{font-size:.9rem}

.ai-gift{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin:2.5rem 0;padding:1.5rem;border:1px solid #cbb6b5;background:#fffaf1}.ai-gift h2{font-size:1.5rem;color:#572534;line-height:1.25;margin:0 0 .75rem}.ai-gift p{max-width:680px;margin-bottom:0}.ai-gift .eyebrow{margin-bottom:.75rem}.ai-gift .button{flex-shrink:0;text-align:center;white-space:normal}.ai-gift .ai-secondary{background:transparent;border:1px solid #572534}.ai-gift .ai-secondary:hover{background:#f1e5e3}@media(max-width:800px){.ai-gift{flex-direction:column;align-items:stretch;gap:1.25rem}}

/* C: familiar conversation with working text-only access and payment flows. */
.ai-main{font-family:Lato,Arial,sans-serif}.ai-workspace{grid-template-columns:minmax(240px,310px) minmax(0,1fr);gap:24px;align-items:start}.ai-chat{padding:0;border:1px solid #dacac5;border-radius:14px;background:#fffdf9;overflow:hidden;min-width:0}.ai-chat-header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #eaded8}.ai-chat-header h2{font-size:19px;margin:0;color:#572534;line-height:1.3}.ai-chat-mark{width:28px;height:30px;flex:0 0 28px;background:#572534;mask:url('/assets/logo-dialogo-monograma.png') center/contain no-repeat;-webkit-mask:url('/assets/logo-dialogo-monograma.png') center/contain no-repeat}.ai-chat-kind{font-size:12px;color:#6b5b5f;margin-left:auto}.ai-chat #ai-empty{padding:34px 6% 10px;margin:0;font-size:16px;text-align:center}.ai-chat #ai-messages{max-height:620px;min-height:120px;padding:22px 6% 4px;overflow:auto}.ai-chat .ai-message{padding:0;margin:0 0 28px;background:transparent;border:0;white-space:normal;line-height:1.65;overflow-wrap:anywhere}.ai-chat .ai-message>strong{font-size:13px;color:#572534;margin-bottom:10px}.ai-chat .ai-message.user{background:#f0e3de;border-radius:15px 15px 4px 15px;padding:13px 18px;margin-left:auto;width:fit-content;max-width:85%}.ai-chat .ai-message.user .ai-message-body{white-space:pre-wrap}.ai-chat .ai-message.user>strong{font-size:12px}.ai-chat #ai-question{margin:0 5% 12px;padding:15px;background:#fffdf9;border:1px solid #bc9994;border-radius:18px}.ai-chat #ai-question>label:first-child{font-size:13px;margin:0 0 5px;color:#572534}.ai-chat #ai-message{border:0;resize:vertical;background:transparent;padding:3px;min-height:72px;max-height:260px;font:16px/1.5 Lato,Arial,sans-serif;color:#302729;width:100%;border-radius:0}.ai-chat #ai-message:disabled{opacity:1;color:#6b5b5f}.ai-chat .ai-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.45;margin:12px 0}.ai-chat .ai-consent input{width:auto;flex:0 0 17px;margin-top:3px}.ai-chat .ai-send-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.ai-chat .ai-send-row span{font-size:12px;color:#6b5b5f}.ai-chat #ai-send{border-radius:22px;padding:11px 19px;min-height:44px;font-size:14px;border:0}.ai-chat #ai-chat-status{font-size:13px;margin:10px 0 0;min-height:0}.ai-chat>p.ai-small{padding:0 6% 18px;font-size:12px;margin:0;line-height:1.5}.ai-chat-suggestions{display:flex;gap:8px;flex-wrap:wrap;padding:8px 6% 18px}.ai-chat-suggestions button{padding:8px 12px;min-height:40px;border:1px solid #d7c5bf;background:#faf7f2;border-radius:18px;font:14px Lato,Arial,sans-serif;color:#572534}.ai-chat-suggestions button:hover{background:#f1e5e3}.ai-access{border-radius:10px}.ai-access .button{border-radius:5px}.ai-access #ai-login input{font-size:16px}.ai-receipt input{max-width:100%}@media(max-width:850px){.ai-workspace{grid-template-columns:1fr}.ai-chat #ai-messages{max-height:550px}.ai-access{padding:20px}.ai-chat-header{padding:15px}.ai-chat-header h2{font-size:18px}.ai-chat-kind{font-size:11px}.ai-main{padding:30px 5%}.ai-chat .ai-message.user{max-width:92%}.ai-chat-suggestions button{min-height:44px}}
/* Compact privacy notice and durable-access explanation. */
.ai-access-help,.ai-account-help{font-size:.92rem;line-height:1.55;color:#706165}.ai-signature{margin-bottom:.35rem}.ai-privacy{font-size:.875rem;color:#706165;margin:.3rem 0 0}.ai-privacy summary{color:#572534;cursor:pointer;width:fit-content}.ai-privacy p{max-width:65ch;line-height:1.6;margin:.7rem 0}.ai-privacy summary:focus-visible{outline:2px solid #572534;outline-offset:4px}

.ai-purchase-help{margin:1rem 0;padding:1rem 0;border-top:1px solid #cbb6b5;border-bottom:1px solid #cbb6b5}.ai-purchase-help h4{margin:0 0 .7rem;color:#572534;font-size:1rem}.ai-purchase-help ol{margin:0;padding-inline-start:1.3rem;font-size:.92rem;line-height:1.55}.ai-purchase-help li{margin:.6rem 0}.ai-purchase-help p{margin:.8rem 0 0;font-size:.85rem}

/* The illustrated welcome belongs to the real chat. Existing empty-state
   visibility also removes it as soon as the conversation starts. */
.ai-chat #ai-empty.ai-chat-welcome{position:relative;padding:0;margin:0;text-align:center;background:#f4ece1;font-size:16px}
.ai-chat-welcome-art{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain}
.ai-chat-welcome-copy{position:absolute;inset:49% 30% 16% 29%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px;color:#572534;line-height:1.4}
.ai-chat-welcome-brand{font-size:clamp(15px,1.6vw,23px);font-weight:800;margin-bottom:10px}
.ai-chat-welcome-copy p{margin:0;font-size:clamp(12px,1.1vw,16px);line-height:1.45;color:#443538}
.ai-chat #ai-messages:empty{min-height:0;padding:0}
.ai-chat-welcome:not([hidden])~#ai-question{margin-top:22px}
@media(max-width:600px){
 .ai-chat-welcome-copy{position:static;padding:18px 20px 20px;background:#fffdf9}
 .ai-chat-welcome-brand{display:none}
 .ai-chat-welcome-copy p{font-size:15px;line-height:1.5}
 .ai-chat-welcome:not([hidden])~#ai-question{margin-top:0}
}

/* Keep the one access-code form inside the actual chat on every screen. */
.ai-chat-access{padding:22px 5%;background:#f4eae5;border-bottom:1px solid #dacac5;scroll-margin-top:24px}
.ai-chat-access h3{font:800 19px/1.3 Lato,Arial,sans-serif;color:#572534;margin:0 0 12px}
.ai-chat-access #ai-login{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:end}
.ai-chat-access .ai-access-help,.ai-chat-access label,.ai-chat-access .ai-code-offer{grid-column:1/-1;margin:0}
.ai-chat-access .ai-access-help{color:#534549;font-size:15px;line-height:1.5;margin-bottom:6px}
.ai-chat-access label{font-weight:800;color:#572534}
.ai-chat-access #ai-code{width:100%;min-width:0;box-sizing:border-box;min-height:50px;margin:0;padding:12px 14px;border:2px solid #997079;border-radius:6px;background:#fffdf9;color:#302729;font:16px/1.4 Lato,Arial,sans-serif;letter-spacing:.02em;text-align:left}
.ai-chat-access #ai-code:focus{outline:3px solid #c7a887;outline-offset:2px;border-color:#572534}
.ai-chat-access #ai-login-button{min-height:50px;border-radius:6px;margin:0;padding:12px 20px;white-space:normal}
.ai-chat-access .ai-code-offer{font-size:14px;line-height:1.5;padding-top:6px;color:#534549}
.ai-chat-access .ai-code-offer a{color:#572534;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ai-chat-access #ai-access-status{margin:12px 0 0;font-size:15px;font-weight:700;line-height:1.5;color:#572534}
.ai-chat-access #ai-access-status:empty{display:none}
.ai-chat-access #ai-account p{margin:8px 0;font-size:16px}
.ai-chat-access #ai-balance{font-size:24px;color:#572534}
.ai-chat .ai-form-help{font-size:14px;line-height:1.5;color:#6b5b5f;margin:10px 0 16px}
.ai-chat #ai-message:disabled{background:#faf7f2;border-radius:6px}
#ai-pack{scroll-margin-top:24px}
@media(max-width:850px){.ai-chat{order:-1}}
@media(max-width:600px){.ai-chat-access{padding:20px 6%}.ai-chat-access #ai-login{grid-template-columns:minmax(0,1fr)}.ai-chat-access #ai-login-button{width:100%}}

.ai-receipt{overflow-wrap:anywhere}.ai-receipt input{box-sizing:border-box;width:100%;min-width:0;direction:ltr;font-size:16px}.ai-receipt button{margin-block:8px;margin-inline-end:10px;white-space:normal;max-width:100%}.ai-receipt-help{font-size:15px;line-height:1.5}#ai-reconnect{margin-bottom:24px}

/* Durable conversations: a familiar left-hand library, preserving the site's identity. */
#ai-library{margin:0 0 24px;padding-bottom:24px;border-bottom:1px solid #cbb6b5}
#ai-library h2{font-size:21px;line-height:1.25;margin:0 0 10px;color:#572534}
#ai-library .ai-library-help{font-size:13px;line-height:1.5;margin:0 0 16px;color:#706165}
.ai-new-chat{width:100%;min-height:44px;padding:11px 15px;border:1px solid #572534;border-radius:7px;background:#572534;color:#fff;font:700 15px Lato,Arial,sans-serif;cursor:pointer;text-align:start}
.ai-chat-list{max-height:55vh;overflow:auto;margin:15px -8px 10px;padding:0 8px;scrollbar-width:thin}
.ai-chat-list section{padding:0;border:0;margin:0 0 14px}.ai-chat-list h3{font-size:12px;font-weight:800;line-height:1.4;color:#7c626a;margin:12px 6px 6px;text-transform:uppercase;letter-spacing:.05em}
.ai-chat-entry{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:start;gap:2px;margin-bottom:4px;min-width:0;border-radius:6px}
.ai-select-chat{min-width:0;max-width:100%;min-height:43px;border:0;border-radius:6px;background:transparent;color:#453439;text-align:start;font:15px/1.45 Lato,Arial,sans-serif;padding:9px 8px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-select-chat:hover,.ai-select-chat[aria-current]{background:#e6d4ce;color:#572534;font-weight:700}.ai-select-chat:focus-visible,.ai-chat-options summary:focus-visible{outline:2px solid #572534;outline-offset:1px}
.ai-main details.ai-chat-options{position:relative;padding:0;border:0;min-width:0;margin:0}
.ai-main .ai-chat-options summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:43px;width:32px;font-size:22px;border-radius:6px;cursor:pointer}.ai-chat-options summary::-webkit-details-marker{display:none}
.ai-chat-options[open]{grid-column:1/-1;background:#fffbf7;padding:0 6px 6px!important;border:1px solid #d8c4bd!important;border-radius:6px}.ai-chat-options[open] summary{margin-inline-start:auto}
.ai-chat-actions{display:flex;flex-direction:column;gap:3px}.ai-chat-actions button{border:0;background:transparent;text-align:start;padding:9px 12px;min-height:40px;font:14px Lato,Arial,sans-serif;color:#572534;cursor:pointer;border-radius:4px}.ai-chat-actions button:hover{background:#f0e3de}
.ai-library-archive{min-height:42px;background:transparent;border:0;color:#572534;text-decoration:underline;text-underline-offset:4px;font:14px Lato,Arial,sans-serif;cursor:pointer;padding:8px 0}.ai-library-status,.ai-library-empty{font-size:13px!important;line-height:1.5;overflow-wrap:anywhere}.ai-library-status:empty{display:none}
.ai-conversation-toolbar{padding:15px 5%;border-bottom:1px solid #eaded8;background:#fffdf9}.ai-conversation-toolbar h3{font-size:17px;line-height:1.4;color:#572534;margin:0;overflow-wrap:anywhere}.ai-conversation-toolbar p{font-size:13px;line-height:1.5;margin:8px 0 0;color:#706165}
.ai-chat-editor{box-sizing:border-box;width:min(520px,calc(100vw - 32px));padding:26px;border:1px solid #cbb6b5;border-radius:12px;background:#fffdf9;color:#302729;font:16px/1.5 Lato,Arial,sans-serif;max-height:85dvh;overflow:auto}.ai-chat-editor::backdrop{background:#26191e99}.ai-chat-editor h2{font-size:25px;line-height:1.3;color:#572534;margin:0 0 18px}.ai-chat-editor p{font-size:15px;line-height:1.6}.ai-chat-editor label{display:block;font-weight:700;margin:12px 0 6px}.ai-chat-editor input{box-sizing:border-box;width:100%;min-height:48px;border:1px solid #997079;border-radius:5px;background:#fff;padding:10px;font:16px Lato,Arial,sans-serif}.ai-chat-editor [hidden]{display:none!important}.ai-editor-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px}.ai-editor-actions button{min-height:44px;font:700 15px Lato,Arial,sans-serif;padding:10px 18px;border-radius:5px;cursor:pointer}.ai-chat-editor .button{background:#572534;color:#fff;border:1px solid #572534}.ai-chat-editor .ai-secondary{background:transparent;color:#572534;border:1px solid #997079}
@media(max-width:850px){.ai-workspace:has(#ai-library:not([hidden])) .ai-access{order:-2}.ai-chat-list{max-height:230px}.ai-workspace:has(#ai-library:not([hidden])) .ai-pack{margin-top:18px;padding:14px 0 0;border-bottom:0}.ai-workspace:has(#ai-library:not([hidden])) .ai-pack>.ai-purchase-help,.ai-workspace:has(#ai-library:not([hidden])) .ai-pack>p:not(.ai-price),.ai-workspace:has(#ai-library:not([hidden])) .ai-pack>h3{display:none}.ai-workspace:has(#ai-library:not([hidden])) .ai-pack>.ai-price{font-size:22px;display:flex;gap:8px;align-items:center}.ai-workspace:has(#ai-library:not([hidden])) .ai-pack>.ai-price span{font-size:14px;margin:0}.ai-workspace:has(#ai-library:not([hidden])) #ai-library{border:0;padding:0;margin:0}.ai-workspace:has(#ai-library:not([hidden])) .ai-access{padding:18px}.ai-new-chat{width:auto;min-width:150px}}

.ai-chat-count{grid-column:1/-1;font-size:12px;line-height:1.4;margin:0 8px 9px;color:#79646c}.ai-library-download{display:block;min-height:44px;background:transparent;border:1px solid #b99a9f;border-radius:6px;padding:9px 12px;color:#572534;font:14px Lato,Arial,sans-serif;cursor:pointer;max-width:100%;white-space:normal}

.ai-entry-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 8px;align-items:center}.ai-entry-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;text-decoration:none;font-size:16px;line-height:1.4;box-sizing:border-box;white-space:normal;text-align:center}.ai-entry-actions .ai-secondary{border:1px solid #a78087;border-radius:5px;color:#572534;background:transparent}#ai-pack,#ai-access-title{scroll-margin-top:130px}@media(max-width:600px){.ai-entry-actions a{width:100%}}

.ai-message-body blockquote{margin:16px 0;padding:10px 16px;border-inline-start:3px solid #a77a83;background:#f7efeb;color:#572534;line-height:1.7;overflow-wrap:anywhere}
