/* Scoped styles: the widget can also be included on foglalas.html. */
.d2-chat{--chat-ink:#171918;--chat-gold:#c5aa70;--chat-paper:#f3f0e9;--chat-muted:#bfc3b6;position:relative;z-index:50;font:14px/1.6 Arial,Helvetica,sans-serif;color:var(--chat-paper);text-align:left}
.d2-chat *{box-sizing:border-box}
.d2-chat [hidden]{display:none!important}
.d2-chat button,.d2-chat input,.d2-chat select,.d2-chat textarea{font:inherit;letter-spacing:normal}
.d2-chat button,.d2-chat a{touch-action:manipulation}
.d2-chat button{cursor:pointer}
.d2-chat :focus-visible{outline:2px solid #e6ce97;outline-offset:3px}
.d2-chat-launcher{position:fixed;right:24px;bottom:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 20px 8px 9px;border:1px solid #c5aa7099;border-radius:4px;background:var(--chat-ink);color:var(--chat-paper);box-shadow:0 5px 24px #0003;font-weight:600}
.d2-chat-launcher:hover{background:#292c25;border-color:var(--chat-gold)}
.d2-chat-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;background:var(--chat-gold)}
/* Same original-logo crop as the site monogram: x194 y255 w110 h61. */
.d2-chat-monogram{display:block;flex:none;width:28px;height:15.527px;background:url('assets/d2-logo-original.jpg') no-repeat;background-size:325.818px auto;background-position:-49.382px -64.909px;filter:grayscale(1) contrast(3);mix-blend-mode:multiply}
.d2-chat-panel{position:fixed;right:24px;bottom:90px;bottom:calc(90px + env(safe-area-inset-bottom,0px));width:420px;max-width:calc(100vw - 32px);height:660px;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px - env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #80714f;border-radius:6px;background:var(--chat-ink);box-shadow:0 14px 65px #0005}
.d2-chat-header{flex-shrink:0;display:flex;align-items:center;gap:13px;padding:17px 18px;border-bottom:1px solid #c5aa7040;background:#202320}
.d2-chat-header>div{margin-right:auto}
.d2-chat p,.d2-chat h2,.d2-chat h3{margin:0}
.d2-chat .d2-chat-eyebrow{display:flex;align-items:center;gap:6px;color:var(--chat-gold);font-size:9px;letter-spacing:2px;font-weight:600;line-height:1.8}
.d2-chat-eyebrow .d2-chat-monogram{width:20px;height:11.091px;background-size:232.727px auto;background-position:-35.273px -46.364px;filter:grayscale(1) invert(1) sepia(.5) saturate(1.3);mix-blend-mode:screen}
.d2-chat h2{font-size:20px;line-height:1.4;font-weight:400;letter-spacing:-.3px}
.d2-chat-header-button,.d2-chat-close{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--chat-paper)}
.d2-chat-header-button{padding:8px;font-size:12px;text-decoration:underline;text-decoration-color:#c5aa7080;text-underline-offset:5px}
.d2-chat-close{font-size:28px;font-weight:400;padding:0;line-height:1}
.d2-chat-header-button:hover,.d2-chat-close:hover{background:#c5aa7015;color:var(--chat-gold)}
.d2-chat-feed{position:relative;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:18px;scrollbar-width:thin;scrollbar-color:#80714f #202320}
.d2-chat-message{margin:0 0 18px;padding:17px 16px;background:#242722;border:1px solid #ffffff13;border-radius:3px;overflow-wrap:anywhere}
.d2-chat-message:last-child{margin-bottom:0}
.d2-chat h3{font-size:17px;font-weight:500;line-height:1.4;letter-spacing:-.25px}
.d2-chat h3:focus{outline:none}
.d2-chat-message p{font-size:13px;line-height:1.75;margin-top:10px;color:#e0e1d8}
.d2-chat-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.d2-chat-choice{border:1px solid #c5aa706b;color:#e2cd9f;background:transparent;border-radius:2px;text-align:left;padding:10px 12px;min-height:44px;font-size:12px;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.d2-chat-choice:hover{background:#c5aa7018;border-color:var(--chat-gold)}
.d2-chat-user{margin-left:35px;background:#34382e;border-color:#c5aa7030}
.d2-chat-user h3{font-size:10px;color:var(--chat-gold);letter-spacing:1px;text-transform:uppercase}
.d2-chat-user p{white-space:pre-wrap;margin-top:5px}
.d2-chat-composer{display:flex;gap:8px;flex-shrink:0;padding:12px 16px 8px;border-top:1px solid #c5aa7030;background:#202320}
.d2-chat-composer input{width:100%;min-width:0;border:1px solid #6e725f;border-radius:2px;background:#171918;color:var(--chat-paper);padding:11px 12px;min-height:46px;font-size:16px}
.d2-chat input::placeholder,.d2-chat textarea::placeholder{color:#bfc3b6;opacity:1}
.d2-chat-send{flex-shrink:0;border:0;border-radius:2px;background:var(--chat-gold);color:var(--chat-ink);min-width:46px;min-height:46px;font-size:24px}
.d2-chat-send:hover,.d2-chat-primary:hover{background:#dfc590}
.d2-chat .d2-chat-foot{background:#202320;padding:0 16px 12px;color:#bfc3b6;font-size:10px;line-height:1.6;flex-shrink:0}
.d2-chat-ai{flex-shrink:0;padding:8px 16px;border-top:1px solid #c5aa7030;background:#202320}
.d2-chat-ai p{font-size:10px;line-height:1.5;color:#bfc3b6}
.d2-chat-ai .d2-chat-choice{margin-top:6px;min-height:34px;padding:5px 9px;font-size:11px}
.d2-chat button:disabled{opacity:.6;cursor:wait}
.d2-chat-field{margin-top:16px}
.d2-chat-field label{display:block;font-size:12px;line-height:1.6;color:#e0e1d8;margin-bottom:7px}
.d2-chat-field input,.d2-chat-field select,.d2-chat-field textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:46px;color:var(--chat-paper);background:#171918;border:1px solid #858977;border-radius:2px;padding:11px 9px;font-size:16px;line-height:1.5;color-scheme:dark}
.d2-chat-field textarea{resize:vertical;min-height:120px}
.d2-chat-field select:disabled{color:#bfc3b6;opacity:.65}
.d2-chat-primary{display:block;width:100%;margin-top:16px;border:0;border-radius:2px;min-height:48px;padding:13px 15px;text-align:left;font-size:13px;line-height:1.6;background:var(--chat-gold);color:var(--chat-ink)}
.d2-chat-handoff>.d2-chat-choice{margin-top:10px}
.d2-chat .d2-chat-note{font-size:11px;line-height:1.75;color:#bfc3b6}
.d2-chat .d2-chat-error{padding:12px;border-left:3px solid #efb49d;background:#402f28;color:#ffe0d4;font-size:12px}
.d2-chat-link{display:block;color:#e2cd9f;font-size:12px;line-height:1.7;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c5aa7070;margin-top:8px;padding:9px 0;min-height:44px}
.d2-chat-link:hover{color:#fff0cc;text-decoration-color:currentColor}
.d2-chat-list{margin:14px 0;padding-left:18px;font-size:13px;line-height:1.75;color:#e0e1d8}
.d2-chat-list li+li{margin-top:9px}
.d2-chat-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:540px){.d2-chat-launcher{right:14px;bottom:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));min-height:50px;padding-right:16px;font-size:13px}.d2-chat-panel{right:8px;left:8px;width:auto;max-width:none;bottom:78px;bottom:calc(78px + env(safe-area-inset-bottom,0px));height:720px;max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px - env(safe-area-inset-bottom,0px))}.d2-chat-header{padding:12px 13px;gap:7px}.d2-chat-feed{padding:12px}.d2-chat-message{padding:15px 13px}.d2-chat-choice{font-size:12px}.d2-chat-composer{padding:10px 12px 8px}.d2-chat .d2-chat-foot{padding:0 12px 10px;font-size:9px}}
@media(max-height:450px){.d2-chat-panel{bottom:8px;top:8px;height:auto;max-height:none}.d2-chat-launcher[aria-expanded=true]{visibility:hidden}.d2-chat-header{padding-top:5px;padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.d2-chat *{scroll-behavior:auto!important}}
@media print{.d2-chat{display:none!important}}
