/* Ask Yellanda: floating buttons (Ask, Listen) and the answer panel. Large text and touch targets on purpose. */
.yl-dock { position: fixed; right: 16px; bottom: 16px; z-index: 240; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.yl-dock[hidden], .yl-dock-b[hidden] { display: none; }
.yl-dock-b { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--color-primary); color: #fff; font: inherit; font-size: 1.0625rem; font-weight: 800; box-shadow: 0 8px 24px rgba(15, 42, 33, .32); cursor: pointer; }
.yl-dock-ask { background: var(--color-accent); color: var(--green-900, #0f2a21); }
.yl-dock-b.is-on { background: #A8512D; color: #fff; }
.yl-dock-b:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px rgba(15, 42, 33, .5); }
html.yl-app .yl-dock { bottom: calc(84px + env(safe-area-inset-bottom)); }
html.yl-as-open { overflow: hidden; }
html.yl-as-open .yl-dock { display: none; }
@media print { .yl-dock, .yl-as, .yl-as-bg, .yl-toast { display: none !important; } }

.yl-as-bg { position: fixed; inset: 0; z-index: 300; background: rgba(15, 42, 33, .5); opacity: 0; transition: opacity .25s; }
.yl-as-bg.is-open { opacity: 1; }
.yl-as-bg[hidden], .yl-as[hidden] { display: none; }
.yl-as { margin: 0 !important; padding: 0 !important; min-height: 0 !important; overflow: hidden; position: fixed; z-index: 301; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; background: #F8F5EC; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(15, 42, 33, .3); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); color: var(--color-text); }
.yl-as.is-open { transform: none; }
@media (min-width: 700px) { .yl-as { left: auto; right: 24px; bottom: 24px; width: 440px; max-height: 80vh; border-radius: 24px; } }
.yl-as-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: var(--color-primary); color: #fff; }
.yl-as-h b { display: block; font-size: 1.25rem; }
.yl-as-h small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: .9375rem; }
.yl-as-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.yl-as-f { display: flex; gap: 8px; padding: 12px 14px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.yl-as-f input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 14px; background: #F8F5EC; font: inherit; font-size: 1.0625rem; color: var(--color-text); }
.yl-as-f input:focus { outline: none; box-shadow: 0 0 0 3px rgba(26, 34, 30, .12); }
.yl-as-mic, .yl-as-go { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); color: var(--color-primary); cursor: pointer; }
.yl-as-mic[hidden] { display: none; }
.yl-as-go { background: var(--color-primary); color: #fff; border-color: transparent; }
.yl-as-mic.is-on { background: #A8512D; color: #fff; animation: yl-pulse 1.1s ease-in-out infinite; }
@keyframes yl-pulse { 50% { box-shadow: 0 0 0 8px rgba(168, 81, 45, .22); } }
.yl-as-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; padding: 14px; display: grid; gap: 12px; align-content: start; }
.yl-as-note { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.yl-as-h2 { margin: 4px 0 0; font-size: 1.125rem; color: var(--color-primary); }
.yl-as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yl-as-chips button { min-height: 48px; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-primary); font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
.yl-as-chips button:hover { background: var(--gold-100); }
.yl-r { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: var(--shadow); }
.yl-r-b { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--gold-100); color: var(--color-primary); font-size: .875rem; font-weight: 800; }
.yl-r h3 { margin: 0; font-size: 1.1875rem; line-height: 1.3; color: var(--color-primary); }
.yl-r p { margin: 0; }
.yl-r-m { font-weight: 700; font-size: 1.0625rem; }
.yl-r-d { font-size: 1.0625rem; line-height: 1.5; color: var(--color-muted); }
.yl-r-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.yl-r-go, .yl-r-call, .yl-r-ls { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 1.0625rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.yl-r-go { background: var(--color-primary); color: #fff; border: 0; }
.yl-r-call { background: #25D366; color: #073b1c; }
.yl-r-ls { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); }
.yl-r-ls.is-on { background: #A8512D; color: #fff; }
.yl-toast { position: fixed; z-index: 400; left: 16px; right: 16px; bottom: 96px; max-width: 420px; margin-inline: auto; padding: 14px 18px; border-radius: 14px; background: #1A221E; color: #fff; font-size: 1.0625rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: opacity .4s; }
.yl-toast.is-out { opacity: 0; }

/* ---------- in the installed app: round icon buttons above the tab bar, a roomy sheet, 16px text (no zoom on focus) ---------- */
html.yl-app .yl-dock { right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
html.yl-app .yl-dock-b { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; box-shadow: 0 6px 18px rgba(15, 42, 33, .3); }
html.yl-app .yl-dock-b .lang-en, html.yl-app .yl-dock-b .lang-te { display: none !important; }
html.yl-app .yl-as { max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; }
html.yl-app .yl-as-h { padding: 18px 18px 16px; }
html.yl-app .yl-as-body { padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
html.yl-app .yl-as-f input { font-size: 1rem; }
html.yl-app .yl-toast { bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }

/* the app theme makes --color-background transparent, so the panel uses solid colours of its own */
.yl-as { background: #F8F5EC !important; }
.yl-as-f { background: #fff !important; }
.yl-as-body { background: #F8F5EC; }
.yl-r, .yl-as-chips button, .yl-r-ls, .yl-as-mic { background-color: #fff; }
.yl-as-bg { background: rgba(15, 42, 33, .55) !important; }
