/* Trip Finder chat (/plan-my-trip), 2026-11-01. Light theme, brand blue #0073ad + green #15803d, Manrope.
   Desktop: chat window with its own scroll + side panel. Phones: the page scrolls, the composer sticks to the bottom.
   Motion is CSS  and stops under prefers-reduced-motion. */

.mdg-page {
    --mdg-blue: #0073ad; --mdg-blue-d: #005f8f; --mdg-green: #15803d; --mdg-green-d: #116a32; --mdg-ink: #0a2540; --mdg-text: #33465b;
    /* AA: brand blue / green stay for icons, bars and big numbers; text on or in them uses these darker shades (>= 4.5:1 with white) */
    --mdg-blue-ink: #0073ad; --mdg-green-ink: #15803d;
    --mdg-muted: #5b6f85; --mdg-line: #dbe6ef; --mdg-sky: #eef6fb; --mdg-bg: #f3f7fa; --mdg-me: #0073ad;
    --mdg-r: 20px; --mdg-shadow: 0 24px 50px -30px rgba(10, 37, 64, .45), 0 2px 8px -3px rgba(10, 37, 64, .1);
    font-family: "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--mdg-text); background: var(--mdg-bg); padding-bottom: 56px; overflow-x: clip;
}
.mdg-page *, .mdg-page *::before, .mdg-page *::after { box-sizing: border-box; }
.mdg-page h1, .mdg-page h2, .mdg-page h3 { font-family: inherit; color: var(--mdg-ink); letter-spacing: -.01em; }
.mdg-page p { margin: 0; }
.mdg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mdg-page :focus-visible { outline: 3px solid var(--mdg-blue); outline-offset: 2px; border-radius: 10px; }
[x-cloak] { display: none !important; }

/* ---------- compact hero ---------- */
.mdg-hero { position: relative; isolation: isolate; color: #fff; padding: 22px 0 80px; overflow: hidden; background: var(--mdg-ink); }
.mdg-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.mdg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 37, 64, .88) 0%, rgba(10, 37, 64, .6) 55%, rgba(10, 37, 64, .3) 100%); }
.mdg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.mdg-crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.mdg-crumbs a:hover { text-decoration: underline; }
.mdg-page .mdg-h1 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.08; }
.mdg-page .mdg-intro { max-width: 860px; margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.mdg-hero-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: #fff; }
.mdg-hero-points i { color: #8fd6ad; margin-right: 6px; }
.mdg-wrap { position: relative; margin-top: -62px; }
.mdg-noscript { padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: var(--mdg-shadow); }

/* ---------- shell ---------- */
.mdg-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.mdg-chat { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 24px; box-shadow: var(--mdg-shadow); overflow: visible; }

/* header */
.mdg-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e8eff5; background: linear-gradient(180deg, #fff, #f8fbfd); position: relative; z-index: 4; border-radius: 24px 24px 0 0; }
.mdg-avatar { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1.5px solid var(--mdg-line); }
.mdg-avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mdg-avatar--head { width: 44px; height: 44px; }
.mdg-avatar--head img { width: 40px; height: 40px; }
.mdg-online { position: absolute; right: -1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--mdg-green); border: 2px solid #fff; }
.mdg-head-who { flex: 1; min-width: 0; }
.mdg-page .mdg-head-name { font-size: 15.5px; font-weight: 800; color: var(--mdg-ink); line-height: 1.2; }
.mdg-head-tag { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--mdg-sky); color: var(--mdg-blue-ink); font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.mdg-page .mdg-head-status { margin-top: 2px; font-size: 12.5px; color: var(--mdg-green-ink); font-weight: 600; }
.mdg-count { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 99px; background: #eaf7ef; color: #14532d; font-size: 12.5px; font-weight: 700; }
.mdg-count b { font-size: 16px; font-variant-numeric: tabular-nums; }
.mdg-pulse { display: inline-block; animation: mdg-pulse .6s ease; }
@keyframes mdg-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
.mdg-iconbtn { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--mdg-line); border-radius: 50%; background: #fff; color: var(--mdg-ink); font-size: 15px; cursor: pointer; }
.mdg-iconbtn:hover { border-color: var(--mdg-blue); color: var(--mdg-blue-ink); }
.mdg-iconbtn:disabled { opacity: .45; cursor: default; }
.mdg-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--mdg-blue-ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; }
.mdg-answers { position: relative; display: none; }
.mdg-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, 86vw); padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -18px rgba(10, 37, 64, .45); border: 1px solid #e3ebf2; }
.mdg-page .mdg-pop-h { margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--mdg-ink); }
.mdg-pop-h small { display: block; font-weight: 600; color: var(--mdg-muted); font-size: 12px; }
.mdg-pop ul { display: grid; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }

/* transcript */
.mdg-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 14px; overflow: visible; min-height: 320px;
    background: radial-gradient(1200px 400px at 10% -10%, #f2f8fc 0%, rgba(242, 248, 252, 0) 60%), #fff; }
.mdg-msg { display: flex; align-items: flex-end; gap: 9px; max-width: 100%; }
.mdg-msg--me { justify-content: flex-end; }
.mdg-msg--bot.is-new:not(.is-shown) { display: none; }
.mdg-msg.is-held { display: none !important; }
.mdg-msg.is-shown .mdg-body, .mdg-msg--me.is-new .mdg-body { animation: mdg-pop .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mdg-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.mdg-bubble-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; max-width: min(78%, 560px); }
.mdg-msg--me .mdg-bubble-wrap { align-items: flex-end; }
.mdg-msg--result .mdg-bubble-wrap, .mdg-msg--alts .mdg-bubble-wrap, .mdg-msg--handoff .mdg-bubble-wrap { max-width: min(100%, 640px); width: 100%; }
.mdg-msg--tailor > .mdg-tailor { max-width: min(100%, 620px); width: 100%; }
.mdg-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mdg-msg--me .mdg-body { align-items: flex-end; }
.mdg-bubble { padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--mdg-sky); color: var(--mdg-ink); font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.mdg-bubble b { font-weight: 800; }
.mdg-bubble--me { border-radius: 18px 18px 6px 18px; background: var(--mdg-me); color: #fff; font-weight: 600; }
.mdg-bubble--q { background: #fff; border: 1.5px solid #d3e5f1; box-shadow: 0 8px 18px -14px rgba(0, 115, 173, .6); }
.mdg-page .mdg-q { font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--mdg-ink); }
.mdg-page .mdg-q:focus, .mdg-page .mdg-q:focus-visible, .mdg-page .mdg-res-title:focus, .mdg-page .mdg-res-title:focus-visible { outline: none; box-shadow: none; }
.mdg-page .mdg-help { margin-top: 4px; font-size: 13.5px; color: var(--mdg-muted); line-height: 1.45; }
.mdg-whyask { margin-top: 6px; font-size: 13px; }
.mdg-whyask summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--mdg-blue-ink); font-weight: 700; cursor: pointer; list-style: none; }
.mdg-whyask summary::-webkit-details-marker { display: none; }
.mdg-whyask summary::before { content: "\f05a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 6px; font-size: 12px; }
.mdg-whyask p { padding: 6px 10px; border-radius: 10px; background: var(--mdg-sky); color: var(--mdg-text); }
.mdg-edit { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 6px; border: 0; background: none; color: var(--mdg-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mdg-edit:hover, .mdg-edit:focus-visible { color: var(--mdg-blue-ink); }
.mdg-typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--mdg-sky); }
.mdg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mdg-blue); opacity: .35; animation: mdg-dot 1s ease-in-out infinite; }
.mdg-typing i:nth-child(2) { animation-delay: .15s; } .mdg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mdg-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.mdg-msg--wait.is-quiet { visibility: hidden; }
.mdg-msg--pending .mdg-bubble { opacity: .85; }

/* composer */
/* the whole conversation shows in the page (no inner scroll); the replies stay pinned to the bottom of the screen */
.mdg-composer { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e8eff5; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 -12px 26px -20px rgba(10, 37, 64, .45); }
.mdg-composer:empty { display: none; }
.mdg-qr-wrap { margin: 0; }
.mdg-undo { display: flex; justify-content: flex-end; margin-top: 2px; }
.mdg-undo .mdg-linkbtn { margin: 0 0 -6px; min-height: 36px; font-size: 13px; }
.mdg-qr-wrap.is-busy { pointer-events: none; opacity: .55; }
.mdg-qr { display: flex; flex-wrap: wrap; gap: 8px; }
.mdg-qr-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1.5px solid #cfe1ee; border-radius: 99px; background: #fff; color: var(--mdg-ink);
    font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: left; transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.mdg-qr-btn > i:first-child { color: var(--mdg-blue); font-size: 13px; }
.mdg-qr-btn:hover:not(:disabled) { border-color: var(--mdg-blue); background: #f4faff; transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(0, 115, 173, .9); }
.mdg-qr-btn:active:not(:disabled) { transform: scale(.97); }
.mdg-qr-btn:disabled { cursor: not-allowed; border-style: dashed; color: #6f8193; background: #f6f8fa; }
.mdg-qr-btn:disabled > i:first-child { color: #a9b6c3; }
.mdg-qr-btn.is-hint { border-color: var(--mdg-green); background: #effaf3; box-shadow: 0 0 0 3px rgba(31, 163, 91, .18); }
.mdg-qr-count { padding: 1px 7px; border-radius: 99px; background: #e8f6ee; color: #146c3d; font-size: 11.5px; font-weight: 800; }
.mdg-qr-count.is-none { background: #eceff3; color: #5f6f80; font-weight: 700; }
.mdg-qr-thumb { width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mdg-qr-btn.has-thumb { padding-left: 8px; }
.mdg-qr--months .mdg-qr-btn { padding: 6px 12px; }
.mdg-qr-btn--toggle[aria-pressed="true"] { background: var(--mdg-blue-ink); border-color: var(--mdg-blue-ink); color: #fff; }
.mdg-qr-btn--toggle[aria-pressed="true"] > i:first-child { color: #fff; }
.mdg-qr-tick { display: none; font-size: 12px; }
.mdg-qr-btn--toggle[aria-pressed="true"] .mdg-qr-tick { display: inline; }
.mdg-qr-btn.is-on { border-color: var(--mdg-blue-ink); background: #eef6fb; }
.mdg-qr-btn--ghost { color: var(--mdg-muted); }
.mdg-qr-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mdg-qr-note { font-size: 13px; color: var(--mdg-muted); }

/* buttons */
.mdg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s, color .15s, border-color .15s; }
.mdg-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.mdg-btn--primary { background: var(--mdg-blue-ink); color: #fff; }
.mdg-btn--primary:hover { background: var(--mdg-blue-d); color: #fff; transform: translateY(-1px); }
.mdg-btn--ghost { background: #fff; color: var(--mdg-ink); border-color: #b9c8d6; }
.mdg-btn--ghost:hover { border-color: var(--mdg-ink); color: var(--mdg-ink); }
.mdg-btn--wa { background: var(--mdg-green-ink); color: #fff; }
.mdg-btn--wa:hover { background: var(--mdg-green-d); color: #fff; transform: translateY(-1px); }
.mdg-linkbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--mdg-blue-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mdg-linkbtn:hover { color: var(--mdg-ink); text-decoration: underline; }

/* side panel */
.mdg-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.mdg-side-card { padding: 18px; background: #fff; border-radius: var(--mdg-r); box-shadow: var(--mdg-shadow); }
.mdg-page .mdg-side-h { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mdg-muted); }
.mdg-page .mdg-side-count { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--mdg-muted); }
.mdg-side-count b { display: block; font-size: 40px; line-height: 1; font-weight: 800; color: var(--mdg-blue); font-variant-numeric: tabular-nums; }
.mdg-progress { height: 6px; margin-top: 12px; border-radius: 99px; background: #e6eef4; overflow: hidden; }
.mdg-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mdg-blue), var(--mdg-green)); transition: width .4s ease; }
.mdg-page .mdg-side-step { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--mdg-muted); }
.mdg-page .mdg-side-note { margin-top: 8px; font-size: 13.5px; color: var(--mdg-muted); line-height: 1.5; }
.mdg-side-human .mdg-btn { margin-top: 12px; width: 100%; }
.mdg-page .mdg-side-trust { display: flex; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--mdg-muted); }
.mdg-side-trust i { margin-top: 2px; color: var(--mdg-green); }
.mdg-chips { display: grid; gap: 6px; margin: 14px 0 4px; padding: 0; list-style: none; }
.mdg-chip { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 7px 11px; border: 1px solid var(--mdg-line); border-radius: 12px; background: var(--mdg-bg); color: var(--mdg-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.mdg-chip > i:first-child { color: var(--mdg-blue); width: 18px; text-align: center; }
.mdg-chip span { flex: 1; min-width: 0; }
.mdg-chip-edit { color: #9aabbd; font-size: 11px; }
.mdg-chip:hover { border-color: var(--mdg-blue); background: #fff; }
.mdg-chip:hover .mdg-chip-edit { color: var(--mdg-blue-ink); }

/* "going through our trips" (first result): real trip photos laid down like prints + the guide's short notes */
.mdg-tailor { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 16px 18px 18px;
    border-radius: 18px 18px 18px 6px; background: #fbf8f1; border: 1px solid #ece3d0; box-shadow: 0 14px 30px -26px rgba(60, 40, 10, .55); text-align: left; }
.mdg-page .mdg-tailor-title { grid-column: 1 / -1; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--mdg-ink); line-height: 1.45; }
.mdg-desk { position: relative; height: 178px; }
.mdg-print { position: absolute; left: 6px; top: 8px; width: 192px; margin: 0; padding: 6px 6px 8px; background: #fff; border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 22px -12px rgba(30, 20, 5, .55);
    transform: translate(calc(var(--i) * 2px), calc(var(--i) * -1px)) rotate(var(--tilt)); opacity: 0;
    animation: mdg-deal .55s cubic-bezier(.2, .8, .25, 1) forwards; animation-delay: calc(80ms + var(--i) * 420ms); }
.mdg-print img { display: block; width: 100%; height: 112px; object-fit: cover; border-radius: 2px; background: #e9e3d6; }
.mdg-print figcaption { padding: 6px 2px 0; line-height: 1.25; }
.mdg-print b { display: block; font-size: 12.5px; font-weight: 700; color: var(--mdg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdg-print span { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: #6b6253; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mdg-deal {
    from { opacity: 0; transform: translate(70px, -26px) rotate(calc(var(--tilt) + 14deg)) scale(1.05); }
    to { opacity: 1; transform: translate(calc(var(--i) * 2px), calc(var(--i) * -1px)) rotate(var(--tilt)); }
}
.mdg-notes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mdg-notes li { position: relative; opacity: 0; transform: translateY(6px); animation: mdg-note .45s ease forwards; animation-delay: calc(250ms + var(--n) * 720ms); padding: 7px 0 7px 18px; border-bottom: 1px solid #e9dfca; font-size: 14px; font-weight: 500; line-height: 1.4; color: #2b3a4a; }
.mdg-notes li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 2px; border-radius: 2px; background: #b9a57c; }
.mdg-notes li.is-last { border-bottom: 0; font-weight: 700; color: var(--mdg-green-ink); }
.mdg-notes li.is-last::before { background: var(--mdg-green); }
@keyframes mdg-note { to { opacity: 1; transform: none; } }

/* result card */
.mdg-card-res { position: relative; border-radius: 18px 18px 18px 6px; background: #fff; border: 1.5px solid #d3e5f1; overflow: hidden; box-shadow: 0 16px 34px -26px rgba(10, 37, 64, .6); }
.mdg-res-media { position: relative; display: block; aspect-ratio: 16 / 8; background: #dfe8ef; overflow: hidden; }
.mdg-res-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mdg-res-media:hover > img { transform: scale(1.04); }
.mdg-res-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--mdg-green-ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.mdg-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #eef6fb, #dfeef7); }
.mdg-ph img { width: 45%; max-width: 200px; height: auto; opacity: .85; }
.mdg-res-body { padding: 16px 18px 18px; }
.mdg-page .mdg-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mdg-blue-ink); }
.mdg-page .mdg-res-title { margin: 4px 0 6px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.mdg-res-title:focus { outline: none; }
.mdg-res-title a { color: inherit; text-decoration: none; }
.mdg-res-title a:hover { color: var(--mdg-blue-ink); }
.mdg-page .mdg-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 13.5px; color: var(--mdg-muted); }
.mdg-rating b { color: var(--mdg-ink); }
.mdg-stars { display: inline-flex; gap: 2px; color: #f5a623; font-size: 13px; }
.mdg-stars .is-off { color: #d7dee6; }
.mdg-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.mdg-facts li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--mdg-bg); min-width: 0; }
.mdg-facts i { color: var(--mdg-blue); flex: 0 0 auto; }
.mdg-facts span { display: flex; flex-direction: column; min-width: 0; }
.mdg-facts b { font-size: 13.5px; color: var(--mdg-ink); line-height: 1.2; }
.mdg-facts small { font-size: 11px; color: var(--mdg-muted); }
.mdg-why-list, .mdg-flags { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.mdg-why-list li { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mdg-ink); line-height: 1.4; }
.mdg-why-list i { flex: 0 0 auto; margin-top: 3px; color: var(--mdg-green); }
.mdg-flags li { display: flex; gap: 8px; padding: 8px 11px; border-radius: 10px; background: #fff6e5; color: #6b4300; font-size: 13px; line-height: 1.4; }
.mdg-flags i { flex: 0 0 auto; margin-top: 2px; color: #d97706; }
.mdg-page .mdg-relaxed { display: flex; gap: 8px; margin-bottom: 10px; padding: 9px 11px; border-radius: 10px; background: var(--mdg-sky); color: var(--mdg-ink); font-size: 13.5px; font-weight: 600; }
.mdg-relaxed i { margin-top: 3px; color: var(--mdg-blue); }
.mdg-res-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin: 12px 0; padding-top: 12px; border-top: 1px solid #e8eff5; }
.mdg-page .mdg-mini-h { margin-bottom: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mdg-muted); }
.mdg-mini-h span { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.mdg-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.mdg-months li { position: relative; display: grid; place-items: center; height: 28px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: default; transition: transform .15s; }
.mdg-months li:hover { transform: translateY(-2px); }
.mdg-months .s2, .mdg-legend .s2 { background: var(--mdg-green); color: #0a2a16; }
.mdg-months .s1, .mdg-legend .s1 { background: #c6ead5; color: #145c35; }
.mdg-months .s0, .mdg-legend .s0 { background: #e6ebf0; color: #5f6f80; }
.mdg-months li.is-you { outline: 2.5px solid var(--mdg-ink); outline-offset: 1px; }
.mdg-page .mdg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 11.5px; color: var(--mdg-muted); }
.mdg-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.mdg-alt-track { position: relative; height: 10px; margin-top: 10px; border-radius: 99px; background: #e6ebf0; }
.mdg-alt-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7cc4e8, var(--mdg-blue)); animation: mdg-grow .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes mdg-grow { from { transform: scaleX(0); } }
.mdg-alt-track b { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -1px; border-radius: 2px; background: var(--mdg-green-ink); }
.mdg-page .mdg-alt-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--mdg-muted); }
.mdg-alt-note b { display: inline-block; width: 3px; height: 12px; border-radius: 2px; background: var(--mdg-green-ink); }
.mdg-res-more { display: grid; gap: 10px; margin-bottom: 14px; }
.mdg-page .mdg-desc { font-size: 14px; line-height: 1.55; }
.mdg-itn { border: 1px solid #e3ebf2; border-radius: 12px; padding: 0 12px; }
.mdg-itn summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--mdg-ink); cursor: pointer; }
.mdg-itn summary i { color: var(--mdg-blue); }
.mdg-itn ol { margin: 0 0 12px; padding-left: 22px; font-size: 13.5px; line-height: 1.55; }
.mdg-itn-more { list-style: none; margin-left: -22px; color: var(--mdg-muted); font-style: italic; }
.mdg-quote { margin: 0; padding: 12px 14px; border-left: 4px solid var(--mdg-green); border-radius: 0 12px 12px 0; background: #f2faf5; }
.mdg-quote p { font-size: 14px; line-height: 1.55; color: var(--mdg-ink); }
.mdg-page .mdg-quote .mdg-quote-by { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--mdg-muted); display: flex; align-items: center; gap: 6px; }
.mdg-quote-by .mdg-stars { font-size: 11px; }

/* alternatives: swipeable row */
.mdg-alts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mdg-alt { scroll-snap-align: start; }
.mdg-alt a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1.5px solid #e1ebf3; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.mdg-alt a:hover { transform: translateY(-2px); border-color: var(--mdg-blue); }
.mdg-alt-img { display: block; aspect-ratio: 16 / 10; background: #dfe8ef; overflow: hidden; }
.mdg-alt-img > img { width: 100%; height: 100%; object-fit: cover; }
.mdg-alt-label { margin: 10px 12px 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mdg-blue-ink); }
.mdg-alt-title { margin: 0 12px 2px; font-size: 15px; font-weight: 800; color: var(--mdg-ink); line-height: 1.3; }
.mdg-alt-meta { margin: 0 12px; font-size: 12.5px; color: var(--mdg-muted); }
.mdg-alt-price { margin: 6px 12px 12px; font-size: 13px; font-weight: 700; color: var(--mdg-ink); }
.mdg-warn { color: #b45309; }
.is-shimmer { position: relative; }
.is-shimmer::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: linear-gradient(100deg, rgba(255, 255, 255, .2) 20%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .2) 80%) 0 0 / 220% 100%; animation: mdg-shimmer .45s linear infinite; }
@keyframes mdg-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* handoff card */
.mdg-handoff { padding: 16px 18px 18px; border-radius: 18px 18px 18px 6px; background: linear-gradient(180deg, #f0faf4, #fff 70%); border: 1.5px solid #cfe9da; }
.mdg-page .mdg-ho-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.mdg-ho-title i { color: var(--mdg-green); font-size: 20px; }
.mdg-ho-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mdg-field > span:first-child { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--mdg-ink); }
.mdg-field input, .mdg-field select { width: 100%; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--mdg-line); border-radius: 12px; background: #fff; color: var(--mdg-ink); font: inherit; font-size: 14.5px; }
.mdg-field input:focus, .mdg-field select:focus { border-color: var(--mdg-blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 128, 192, .2); }
.mdg-step { display: flex; align-items: center; border: 1.5px solid var(--mdg-line); border-radius: 12px; background: #fff; overflow: hidden; }
.mdg-step input { border: 0 !important; border-radius: 0; text-align: center; padding: 0 2px; -moz-appearance: textfield; box-shadow: none !important; }
.mdg-step input::-webkit-outer-spin-button, .mdg-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mdg-step button { flex: 0 0 auto; width: 34px; min-height: 44px; border: 0; background: var(--mdg-bg); color: var(--mdg-ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.mdg-step button:hover { background: var(--mdg-sky); color: var(--mdg-blue-ink); }
.mdg-draft { position: relative; margin: 0 0 12px auto; max-width: 92%; padding: 10px 12px 22px; border-radius: 14px 14px 4px 14px; background: #dcf8c6; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.mdg-draft pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13.5px; line-height: 1.5; color: #111b21; transition: opacity .2s; }
.mdg-draft pre.is-updating { opacity: .5; }
.mdg-draft-meta { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #3f5a49; }
.mdg-draft-meta i { color: #1d7fb3; margin-left: 3px; }
.mdg-ho-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mdg-page .mdg-ho-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; color: var(--mdg-muted); }
.mdg-ho-alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--mdg-blue-ink); font-weight: 700; text-decoration: none; }
.mdg-page .mdg-ho-safe { display: flex; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--mdg-muted); }
.mdg-ho-safe i { margin-top: 2px; color: var(--mdg-green); }

@media (max-width: 1199.98px) {
    .mdg-shell { grid-template-columns: minmax(0, 1fr); }
    .mdg-side { display: none; }
    .mdg-answers { display: block; }
    .mdg-chat { max-width: 860px; margin: 0 auto; width: 100%; }
}
/* ---------- phones / tablets: sticky chat header too, single-row quick replies ---------- */
@media (max-width: 991.98px) {
    .mdg-chat { border-radius: 20px; }
    .mdg-head { position: sticky; top: var(--mdg-head-top, 0px); border-radius: 20px 20px 0 0; transition: top .28s ease; }
    .mdg-log { padding: 16px 12px 10px; min-height: 40vh; }
    .mdg-composer { border-radius: 0 0 20px 20px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
    .mdg-qr { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
    .mdg-qr::-webkit-scrollbar { display: none; }
    .mdg-qr-btn { flex: 0 0 auto; white-space: nowrap; }
    .mdg-qr--months, .mdg-qr--kind { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .mdg-qr--kind .mdg-qr-btn, .mdg-qr--months .mdg-qr-btn { white-space: normal; }
    .mdg-bubble-wrap { max-width: 86%; }
    .mdg-ho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .mdg-hero { padding: 18px 0 72px; }
    .mdg-page .mdg-h1 { font-size: 28px; }
    .mdg-page .mdg-intro { font-size: 13.5px; line-height: 1.5; }
    .mdg-hero-points { display: none; }
    .mdg-wrap { margin-top: -56px; padding-left: 8px; padding-right: 8px; }
    .mdg-head { padding: 10px 12px; gap: 9px; }
    .mdg-head-tag { display: none; }
    .mdg-bubble { font-size: 14.5px; }
    .mdg-page .mdg-q { font-size: 16px; }
    .mdg-msg--bot > .mdg-avatar { display: none; }
    .mdg-bubble-wrap { max-width: 92%; }
    .mdg-msg--result .mdg-bubble-wrap, .mdg-msg--alts .mdg-bubble-wrap, .mdg-msg--handoff .mdg-bubble-wrap { max-width: 100%; }
    .mdg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdg-res-grid { grid-template-columns: minmax(0, 1fr); }
    .mdg-res-body { padding: 14px 14px 16px; }
    .mdg-handoff { padding: 14px; }
    .mdg-ho-actions .mdg-btn { flex: 1 1 100%; }
    .mdg-qr--kind .mdg-qr-btn { flex: 1 1 calc(50% - 8px); }
    .mdg-qr--months .mdg-qr-btn { flex: 1 1 calc(33.3% - 8px); justify-content: center; }
    .mdg-tailor { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .mdg-desk { height: 172px; width: 210px; margin: 0 auto 4px; }
}

/* Lighthouse (2026-11-01): the shared header's Menu button is white on #0073ad (4.33:1). On this page it gets the AA-safe
   darker brand blue; the same one-line fix in nav.css would cover every page. */
html body #mdnav-open { background-color: #0073ad; border-color: #0073ad; }

@media (prefers-reduced-motion: reduce) {
    .mdg-page *, .mdg-page *::before, .mdg-page *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
    .mdg-print { animation: none; opacity: 1; }
    .mdg-notes li { animation: none; opacity: 1; transform: none; }
}

/* the chat has its own composer at the bottom: hide the site's floating back-to-top button here */
body:has(.mdg-page) .to-top { display: none !important; }
@media (max-width: 575.98px) {
    /* months: compact 4-column grid (label over count) instead of half a screen of pills */
    .mdg-qr--months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .mdg-page .mdg-qr--months .mdg-qr-btn { flex-direction: column; justify-content: center; gap: 2px; min-height: 50px; padding: 4px 2px; border-radius: 12px; font-size: 13px; }
    .mdg-qr--months .mdg-qr-btn > i:first-child { display: none; }
    .mdg-qr--months .mdg-qr-count { font-size: 10.5px; padding: 0 5px; }
    .mdg-qr--months .mdg-qr-btn:last-child { grid-column: span 4; flex-direction: row; min-height: 44px; }
    .mdg-st-on { font-size: 0; }
    .mdg-st-on::after { content: "Online"; font-size: 12px; }
}

.mdg-st-typing { display: none; }
.mdg-head-status.is-typing .mdg-st-on { display: none; }
.mdg-head-status.is-typing .mdg-st-typing { display: inline; font-style: italic; }

/* result tweaks: one swipeable row so the transcript keeps its room */
.mdg-qr--tweak { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.mdg-qr--tweak::-webkit-scrollbar { display: none; }
.mdg-qr--tweak .mdg-qr-btn { flex: 0 0 auto; white-space: nowrap; }
