.yg-assistant { bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem)); position: fixed; right: 1rem; z-index: 100000; }
.yg-assistant__launcher { align-items: center; background: var(--yg-title); border: 0; border-radius: 999px; box-shadow: 0 8px 22px rgba(46,59,43,.25); color: #fff; cursor: pointer; display: inline-flex; font: 600 .875rem/1 var(--yg-font-body, sans-serif); gap: .45rem; padding: .82rem 1rem; }
.yg-assistant__launcher:hover, .yg-assistant__launcher:focus-visible { background: var(--yg-primary-dark); color: #fff; }
.yg-assistant__launcher:focus-visible, .yg-assistant__close:focus-visible, .yg-assistant__examples button:focus-visible, .yg-assistant__form button:focus-visible, .yg-assistant__form textarea:focus-visible { outline: 3px solid var(--yg-amber); outline-offset: 2px; }
.yg-assistant__dialog { background: var(--yg-card, #fff); border: 1px solid var(--yg-border); border-radius: 16px; bottom: 0; box-shadow: 0 18px 45px rgba(46,59,43,.22); color: var(--yg-text); display: flex; flex-direction: column; max-height: min(38rem, calc(100vh - 2rem)); overflow: hidden; position: absolute; right: 0; width: min(23rem, calc(100vw - 2rem)); }
.yg-assistant__dialog[hidden], .yg-assistant.is-started .yg-assistant__examples { display: none; }
.yg-assistant__header { align-items: center; background: var(--yg-title); color: #fff; display: flex; justify-content: space-between; padding: 1rem 1.1rem; }
.yg-assistant__header h2 { color: inherit; font: 600 1.08rem/1.2 var(--yg-font-title, serif); margin: 0; }
.yg-assistant__close { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 1.7rem; line-height: 1; padding: 0 .15rem; }
.yg-assistant__messages { display: grid; flex: 1 1 auto; gap: .7rem; max-height: min(24rem, calc(100vh - 19rem)); min-height: 0; overscroll-behavior: contain; overflow-y: auto; padding: 1rem; }
.yg-assistant__bubble { border-radius: 12px; font: .9rem/1.5 var(--yg-font-body, sans-serif); margin: 0; padding: .75rem .85rem; }
.yg-assistant__bubble--assistant { background: #f2f4ec; color: var(--yg-title); }
.yg-assistant__bubble--visitor { background: var(--yg-primary); color: #fff; justify-self: end; }
.yg-assistant__result { border: 1px solid var(--yg-border); border-radius: 10px; padding: .8rem; }
.yg-assistant__result h3 { color: var(--yg-title); font: 600 1rem/1.3 var(--yg-font-title, serif); margin: 0 0 .4rem; }
.yg-assistant__result p { font: .86rem/1.45 var(--yg-font-body, sans-serif); margin: .35rem 0; }
.yg-assistant__result a { color: var(--yg-primary-dark); font-weight: 700; }
.yg-assistant__examples { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .8rem; }
.yg-assistant__examples button { background: #fff; border: 1px solid var(--yg-border); border-radius: 999px; color: var(--yg-title); cursor: pointer; font: .75rem/1.25 var(--yg-font-body, sans-serif); padding: .42rem .65rem; text-align: left; }
.yg-assistant__privacy { color: #596355; font: .7rem/1.4 var(--yg-font-body, sans-serif); margin: 0; padding: 0 1rem .75rem; }
.yg-assistant__privacy a { color: var(--yg-primary-dark); text-decoration: underline; }
.yg-assistant__form { border-top: 1px solid var(--yg-border); display: grid; gap: .55rem; padding: .85rem 1rem 1rem; }
.yg-assistant__form textarea { border: 1px solid var(--yg-border); border-radius: 10px; color: var(--yg-title); font: .9rem/1.4 var(--yg-font-body, sans-serif); padding: .65rem; resize: vertical; }
.yg-assistant__form button { background: var(--yg-primary); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font: 700 .85rem/1 var(--yg-font-body, sans-serif); justify-self: end; padding: .7rem .95rem; }
.yg-assistant__form button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 480px) {
	html.yg-assistant-open { overflow: hidden; }
	.yg-assistant { bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 4.25rem)); right: .75rem; }
	.yg-assistant__launcher { border-radius: 50%; height: 3.25rem; justify-content: center; padding: 0; width: 3.25rem; }
	.yg-assistant__launcher span:last-child { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
	.yg-assistant__dialog { bottom: max(4.75rem, calc(env(safe-area-inset-bottom) + 4.25rem)); left: .5rem; max-height: none; position: fixed; right: .5rem; top: max(.5rem, env(safe-area-inset-top)); width: auto; }
	.yg-assistant__messages { max-height: none; padding: .85rem; }
	.yg-assistant__examples { flex: 0 0 auto; padding: 0 .85rem .7rem; }
	.yg-assistant__privacy { flex: 0 0 auto; padding: .55rem .85rem .65rem; }
	.yg-assistant__form { flex: 0 0 auto; padding: .7rem .85rem .85rem; }
	.yg-assistant__form textarea { max-height: 5.5rem; min-height: 3.25rem; resize: none; }
}
