.vgr {
    background: #f5f1e9;
    color: #252c27;
    border-radius: 22px;
    max-width: 760px;
    margin: 2rem auto;
    padding: clamp(1.25rem, 5vw, 3rem);
    text-align: center;
    font: 1rem/1.6 system-ui, sans-serif;
}
.vgr [hidden] { display: none !important; }
.vgr h2 { color: #244a3c; font-size: clamp(1.8rem, 5vw, 3rem); margin: 0; }
.vgr-welcome { font-size: 1.4rem; margin: .25rem 0 1.5rem; }
.vgr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1rem 0; }
.vgr button, .vgr input, .vgr select, .vgr textarea {
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #56665d;
    padding: .65rem 1rem;
    font: inherit;
    min-height: 48px;
}
.vgr button { background: #244a3c; color: #fff; cursor: pointer; }
.vgr button:disabled { opacity: .55; cursor: wait; }
.vgr textarea { width: 100%; background: #fff; color: #252c27; }
.vgr-output { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.25rem; }
.vgr-output:empty, .vgr-status:empty { display: none; }
.vgr-output > a, .vgr-output > .vgr-phone { display: block; margin-top: .55rem; }
.vgr-phone { font-weight: 700; direction: ltr; }
.vgr-output canvas { display: block; max-width: 100%; height: auto; margin: .65rem auto 1rem; }
.vgr-kiosk {
    margin: 0;
    min-height: 100vh;
    background: #f5f1e9;
}
.vgr-kiosk > main {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 1rem;
}
.vgr-kiosk .vgr {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}
.vgr-kiosk-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    padding: .75rem 0 1.25rem;
    font: 1rem/1.5 system-ui, sans-serif;
}
.vgr-kiosk-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1.15rem;
    border: 1px solid #244a3c;
    border-radius: 10px;
    color: #244a3c;
    background: #fff;
    text-decoration: none;
}
.vgr-kiosk #venus-ai-toggle,
.vgr-kiosk #venus-ai-greeting { display: none !important; }
.vgr-resource {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
}
.vgr-resource[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.vgr-resource form { padding: .6rem; background: #244a3c; }
.vgr-resource iframe { width: 100%; height: 100%; border: 0; }
.vgr-resource button, .vgr-chat-return {
    border: 1px solid #244a3c;
    padding: .6rem 1rem;
    min-height: 48px;
    border-radius: 8px;
    background: #fff;
    color: #244a3c;
    font: 1rem system-ui, sans-serif;
}
.vgr-chat-return { display: none; position: fixed; top: .5rem; left: .5rem; z-index: 13000; }
.vgr-kiosk:has(#venus-ai-panel.open) .vgr-chat-return { display: block; }
.vgr-kiosk .vgr { font-size: 1.25rem; }
.vgr-language-control { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.vgr-intro, .vgr-review { margin: .75rem 0; }
.vgr-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 580px; margin-inline: auto; }
.vgr-primary-actions button { min-height: 72px; font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 700; }
.vgr-kiosk .vgr button, .vgr-kiosk .vgr select, .vgr-kiosk-links a { min-height: 56px; }
.vgr-kiosk .vgr-primary-actions button { min-height: 72px; }
.vgr-kiosk :is(button, a, select, textarea):focus-visible { outline: 3px solid #a04b00; outline-offset: 3px; }
.vgr-kiosk .vgr-output { font-size: clamp(1.25rem, 3vw, 1.65rem); }
@media (max-width: 460px) {
    .vgr-primary-actions { grid-template-columns: 1fr; }
}
.vgr-topics button { background: #fff; color: #244a3c; }
.vgr-output > button { margin-top: .55rem; }
.vgr-answer-note { font-size: 1rem; margin: 1rem 0 .4rem; }
.vgr-answer-dialog {
    box-sizing: border-box;
    width: min(44rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    border: 1px solid #244a3c;
    border-radius: 16px;
    padding: clamp(.75rem, 3vw, 1.5rem);
    background: #fffdf7;
    color: #20382f;
    box-shadow: 0 12px 40px #0004;
}
.vgr-answer-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.vgr-answer-dialog::backdrop { background: #15281fc4; }
.vgr-answer-dialog .vgr-output { overflow: auto; padding: .25rem .4rem .75rem; }
.vgr-answer-footer { padding-top: .75rem; border-top: 1px solid #b7c6be; }
.vgr-answer-footer button { width: 100%; min-height: 56px; }
.vgr-language-picker h3 { margin: 1.25rem 0; line-height: 1.35; }
.vgr-language-picker h3 span { display: block; }
.vgr-language-picker h3 span + span { margin-top: .35rem; font-size: .8em; font-weight: 500; }
.vgr-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    gap: .65rem;
}
.vgr-language-grid button { min-height: 58px; font-weight: 700; }
.vgr-help-link a {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 1rem;
    border: 1px solid #244a3c;
    border-radius: 10px;
    color: #244a3c;
    background: #fff;
    font-weight: 600;
}
.vgr-mobile-qr { margin: .5rem 0; }
.vgr-mobile-qr summary { cursor: pointer; padding: .4rem .65rem; }
.vgr-mobile-qr canvas, .vgr-resource-qr canvas {
    display: block;
    max-width: min(100%, 220px);
    height: auto;
    margin: .35rem auto;
}
.vgr-resource-qr { display: inline-block; vertical-align: top; color: #fff; }
.vgr-useful-phone button { min-height: 56px; }
.vgr-output section + section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #b7c6be; }
.vgr-emergency { border: 2px solid #a13628; border-radius: .75rem; padding: .75rem; margin-bottom: 1rem; }
.vgr-emergency h3 { color: #8a241b; margin: 0 0 .75rem; }
.vgr-emergency .vgr-phone { font-size: 1.4em; }
.vgr-emergency canvas { max-width: 125px; }
.vgr-contact-name, .vgr-contact-number { display: block; }
.vgr-contact-number { margin-top: .15rem; }

/* Venus structured local dining list */
.vgr-dining-list{display:grid;gap:9px;width:100%;margin-top:14px;text-align:left;max-height:48vh;overflow-y:auto;padding-right:4px}.vgr-dining-item{padding:10px 12px;border:1px solid #d9e1db;border-radius:10px;background:#f9fbf9;font-size:15px;line-height:1.5}.vgr-dining-item strong{display:block;color:#214c3d}.vgr-dining-item>span{font-size:12px;color:#52645d}.vgr-dining-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.vgr-dining-actions a{display:inline-block;font-size:13px;color:#145c45;text-decoration:underline}.vgr-dining-actions span{font-size:12px;color:#69736e}

/* v1.3: local dining results remain visible inside answer dialog. */
.vgr-answer-dialog .vgr-output:has(.vgr-dining-list){text-align:left;}
.vgr-region-info{font-size:1rem;font-weight:700;color:#214c3d;margin:.8rem 0 .3rem;}
.vgr-answer-dialog .vgr-dining-list{max-height:none;overflow:visible;margin-bottom:1rem;}
.vgr-answer-dialog .vgr-dining-item{margin:0 0 2px;}
.vgr-answer-dialog .vgr-dining-actions a{border-radius:7px;border:1px solid #b7c6be;padding:7px 10px;text-decoration:none;}

/* v1.3.5: kiosk dining cards, QR-only navigation */
.vgr-answer-dialog:has(.vgr-directory-cards){width:min(960px,calc(100% - 20px));max-height:calc(100dvh - 20px)}
.vgr-answer-dialog .vgr-output:has(.vgr-directory-cards){text-align:left;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.vgr-directory-title{font-size:clamp(20px,2.3vw,28px);line-height:1.3;margin:0 0 7px;color:#173f32;text-align:center}
.vgr-directory-subtitle{font-size:clamp(13px,1.45vw,16px);line-height:1.45;color:#556b60;text-align:center;margin:0 0 18px}
.vgr-directory-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:14px;padding:2px 2px 12px}
.vgr-directory-card{display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;gap:12px;background:#f6faf7;border:1px solid #cddbd2;border-radius:15px;padding:14px;margin:0;min-width:0;box-shadow:0 2px 7px #153a260b}
.vgr-directory-details{min-width:0;overflow-wrap:anywhere}
.vgr-directory-details h3{font-size:clamp(17px,1.8vw,21px);line-height:1.3;color:#204936;margin:0 0 12px}
.vgr-directory-details p{font-size:clamp(14px,1.4vw,17px);line-height:1.45;margin:7px 0;font-weight:500;color:#293f34}
.vgr-directory-qr{width:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center}
.vgr-directory-qr canvas{width:132px;height:132px;max-width:100%;image-rendering:pixelated;background:white;border:5px solid white;border-radius:7px}
.vgr-directory-qr span{font-size:12px;font-weight:700;color:#25533e;line-height:1.2}
@media(max-width:470px){.vgr-directory-card{grid-template-columns:minmax(0,1fr) 112px;gap:8px;padding:10px}.vgr-directory-qr{width:112px}.vgr-directory-qr canvas{width:106px;height:106px}.vgr-directory-details h3{font-size:16px}.vgr-directory-details p{font-size:13px}.vgr-directory-cards{gap:10px}}

/* v1.3.7: QR points to a selected POI, never the generic map. */
.vgr-map-qr-tip { display:inline-block; padding:10px 14px; color:#fff; font-size:14px; max-width:410px; }
.vgr-map-qr-label { color:#fff; font-weight:700; padding:4px 8px; font-size:14px; }
.vgr-resource-qr canvas {background:#fff; padding:7px; border-radius:7px;}

/* v1.3.8: Kiosk directory full viewport and reliable scannable QR */
.vgr-build-stamp{display:block;text-align:center;color:#647b6c;font-size:11px;margin:0 0 10px}
.vgr-answer-dialog:has(.vgr-directory-cards){width:min(1080px,calc(100vw - 18px));height:min(90dvh,900px);max-height:90dvh}
.vgr-answer-dialog:has(.vgr-directory-cards) .vgr-output{overflow-y:auto;min-height:0;scrollbar-gutter:stable}
.vgr-directory-qr canvas{image-rendering:pixelated;min-width:120px;min-height:120px}
.vgr-directory-card{break-inside:avoid}

/* 1.4.0: safe kiosk directory layout with scrolling and legible QR. */
.vgr-answer-dialog:has(.vgr-directory-cards){width:min(1100px,calc(100vw - 20px));height:min(92dvh,950px);max-height:92dvh;overflow:hidden;grid-template-rows:minmax(0,1fr) auto}
.vgr-answer-dialog .vgr-output:has(.vgr-directory-cards){min-height:0;overflow-y:auto;overflow-x:hidden;white-space:normal;text-align:left;scrollbar-gutter:stable}
.vgr-directory-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(345px,100%),1fr));gap:14px}
.vgr-directory-card{margin:0!important;padding:14px!important;display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:10px;align-items:center;min-width:0;border:1px solid #d2ddd7;border-radius:13px;background:#f6faf7;break-inside:avoid}
.vgr-directory-qr{width:144px;max-width:100%;min-width:0}
.vgr-directory-qr canvas{display:block!important;width:136px!important;height:136px!important;min-width:0!important;min-height:0!important;max-width:100%;margin:0!important;image-rendering:pixelated}
.vgr-directory-details{min-width:0;overflow-wrap:anywhere}
.vgr-directory-details h3{font-size:clamp(16px,1.75vw,21px)}
.vgr-directory-details p{font-size:clamp(14px,1.4vw,18px)}
.vgr-build-stamp{display:block;text-align:center;color:#4b6758;margin-bottom:12px;font-size:12px}
@media(max-width:550px){.vgr-directory-card{grid-template-columns:minmax(0,1fr) 110px;padding:10px!important}.vgr-directory-qr{width:110px}.vgr-directory-qr canvas{width:104px!important;height:104px!important}}

/* v1.4.2: reliable SVG QR, visually scannable on tablets */
.vgr-directory-qr .vgr-qr-svg, .vgr-resource-qr .vgr-qr-svg,
.vgr-mobile-qr .vgr-qr-svg, .vgr-output .vgr-qr-svg {
 display:block!important; width:172px!important; height:172px!important;
 max-width:100%!important; min-width:0!important; min-height:0!important;
 background:#fff; padding:4px; box-sizing:border-box; border:1px solid #ddd;
 border-radius:4px; shape-rendering:crispEdges;
}
.vgr-directory-qr {width:180px!important; max-width:100%;}
.vgr-directory-card {grid-template-columns:minmax(0,1fr) minmax(120px,180px)!important;}
@media(max-width:550px){.vgr-directory-qr .vgr-qr-svg{width:124px!important;height:124px!important}.vgr-directory-qr{width:128px!important}.vgr-directory-card{grid-template-columns:minmax(0,1fr) 128px!important}}

.vgr-question-dialog {
    position: fixed;
    inset: calc(var(--vgr-visible-top, 0px) + .5rem) 0 auto;
    margin: 0 auto;
    width: min(44rem, calc(100vw - 1rem));
    max-height: calc(var(--vgr-visible-height, 100dvh) - 1rem);
    box-sizing: border-box;
    border: 0;
    border-radius: .85rem;
    padding: .65rem;
    background: #fff;
    color: #252c27;
    overflow: auto;
}
.vgr-question-dialog::backdrop { background: #15281fc4; }
.vgr-question-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.vgr-question-header .vgr-review { margin: 0; }
.vgr-question-field { position: relative; margin-block: .5rem; }
.vgr-question-field textarea {
    display: block;
    box-sizing: border-box;
    padding-inline-end: 4.1rem;
    font-size: max(1rem, 16px);
    resize: vertical;
}
.vgr-question-field [data-action="send"] {
    position: absolute;
    inset-block-start: .3rem;
    inset-inline-end: .3rem;
    min-inline-size: 2.8rem;
    min-block-size: 2.75rem;
    padding: .3rem;
    font-size: 1.35rem;
}

.vgr-dining-menu {
    display: grid;
    justify-items: start;
    gap: .3rem;
    margin-block: .5rem;
}
.vgr-dining-menu > a {
    display: inline-block;
    padding: .5rem .75rem;
    border: 1px solid currentColor;
    border-radius: .4rem;
}
