/* The short branch occupies its own header space, never a chapter hit area. */
header.has-forest-guide{gap:12px}
.forest-guide{position:relative;flex:0 0 var(--guide-size,86px);height:66px;margin-left:auto;margin-right:2px;pointer-events:none}
.forest-guide[hidden]{display:none}
.forest-guide.is-chat-active .forest-guide-launcher{opacity:0;pointer-events:none}
.forest-guide.is-chat-active .forest-guide-owl,.forest-guide.is-chat-active .forest-guide-launcher::before,.forest-guide.is-chat-active .forest-guide-launcher::after{animation-play-state:paused}
.forest-guide-launcher{position:relative;display:grid;place-items:center;width:var(--guide-size,86px);height:calc(var(--guide-size,86px) * .885);margin-top:-5px;padding:0;pointer-events:auto;border-radius:48%;transition:opacity .16s ease}
.forest-guide-launcher::before{content:'';position:absolute;inset:1% 3% 5%;border-radius:50%;background:radial-gradient(ellipse,#ffdfa280 0%,#b984355c 32%,#152019b3 53%,transparent 73%);filter:blur(6px);animation:forest-guide-glow 7.2s ease-in-out infinite;pointer-events:none;opacity:var(--guide-glow,1)}
.forest-guide-launcher::after{content:'';position:absolute;inset:0 -7% -3%;background:radial-gradient(circle at 14% 38%,#fff0bd 0 1px,transparent 2.4px),radial-gradient(circle at 85% 23%,#ffe3a6 0 1px,transparent 2.4px),radial-gradient(circle at 79% 73%,#f3d28a 0 .7px,transparent 2px),radial-gradient(circle at 26% 84%,#f3d28a 0 .7px,transparent 2px);filter:drop-shadow(0 0 3px #ffd385);opacity:.75;animation:forest-guide-motes 8.6s ease-in-out infinite;pointer-events:none}
.forest-guide-owl{position:relative;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 2px #fff1cce6) drop-shadow(0 0 7px #ffd68caa) drop-shadow(0 6px 5px #020904e6);animation:forest-guide-breathe 7.2s ease-in-out infinite;pointer-events:none}
.forest-guide-fallback{font:40px 'Palatino Linotype',serif;color:#e7d0a2;background:#17221a;border:1px solid #c5ba9360;border-radius:50%;width:64px;height:64px;line-height:64px}
.forest-guide-hint{position:absolute;right:calc(100% - 4px);top:39px;max-width:190px;width:max-content;padding:9px 14px;color:var(--site-control-ink,#f6efdf);background:var(--site-control-surface,linear-gradient(155deg,#cfc2aa30,#514a3a85 42%,#252720b3));border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);border-radius:14px;font-size:12px;line-height:1.5;box-shadow:var(--site-control-shadow,inset 0 1px 0 #fff5df59,inset 0 -1px 0 #080b0b80,0 4px 12px #03050459);opacity:0;visibility:hidden;transform:translateX(6px) scale(.9);transform-origin:right center;transition:opacity .22s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility .22s;pointer-events:none}
.forest-guide-hint::before{content:'';position:absolute;right:-5px;top:calc(50% - 5px);width:9px;height:9px;background:#44473ce6;border:solid var(--site-control-rim,#d6c8aa80);border-width:1px 1px 0 0;transform:rotate(45deg)}
.forest-guide.show-hint .forest-guide-hint{opacity:1;visibility:visible;transform:none}
.forest-guide-hint-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.forest-guide-hint{background-color:#242720c4;backdrop-filter:blur(6px) saturate(.85);-webkit-backdrop-filter:blur(6px) saturate(.85)}
body:has(dialog[open]:not(.forest-chat)) .forest-guide{visibility:hidden}
html.forest-chat-open{overflow:hidden;overscroll-behavior:none}
html.forest-chat-open.forest-chat-reserve-gutter{scrollbar-gutter:stable}
dialog.forest-chat{--chat-ivory:#f8f0dc;--chat-muted:#d7d0bc;--chat-rim:#d8c8a6a6;position:fixed;inset:auto 4.3% auto auto;top:calc(var(--chat-viewport-top,0px) + 104px);display:none;flex-direction:column;width:540px;height:min(720px,calc(var(--chat-viewport-height,100dvh) - 126px));max-width:calc(100vw - 32px);max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--chat-rim);border-top-color:#fff0cfcc;border-radius:28px;color:var(--chat-ivory);background:radial-gradient(ellipse at 18% 0,#bfa0711f,transparent 55%),linear-gradient(145deg,#41433ba3,#242c27b3 65%,#1c2522b8);box-shadow:inset 0 1px 2px #fff4d782,inset 1px 0 1px #fff0d136,inset -1px -1px 2px #181b19cc,0 2px 0 #12191766,0 24px 80px #0008;backdrop-filter:blur(18px) saturate(.82);-webkit-backdrop-filter:blur(18px) saturate(.82);font-family:'Microsoft JhengHei',sans-serif;overscroll-behavior:contain}
dialog.forest-chat[open]{display:flex}
dialog.forest-chat[data-chat-state]{opacity:0;transform:translateY(6px);transform-origin:top right}
dialog.forest-chat[data-chat-state="opening"],dialog.forest-chat[data-chat-state="open"]{opacity:1;transform:none}
dialog.forest-chat[data-chat-state="opening"],dialog.forest-chat[data-chat-state="closing"]{will-change:opacity,transform}
dialog.forest-chat::before{content:'';position:absolute;inset:5px;border:1px solid #f7e9c633;border-top-color:#fff1cd66;border-radius:22px;box-shadow:inset 0 0 0 1px #101b1829;pointer-events:none}
dialog.forest-chat::backdrop{background:#07100a26;backdrop-filter:none;opacity:0;transition:opacity .18s ease}
dialog.forest-chat[data-chat-state="opening"]::backdrop,dialog.forest-chat[data-chat-state="open"]::backdrop{opacity:1;transition-duration:.26s}
@starting-style{dialog.forest-chat[open]::backdrop{opacity:0}}
.forest-chat-header{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;padding:28px 66px 14px;flex-shrink:0}
.forest-chat-identity{display:block;min-width:0;max-width:100%;text-align:center}
dialog.forest-chat .forest-chat-avatar{display:none}
dialog.forest-chat h2.forest-chat-title{font:400 27px/1.25 'Palatino Linotype','Microsoft JhengHei',serif;letter-spacing:.005em;margin:0;color:var(--chat-ivory);text-shadow:0 2px 5px #0005;overflow-wrap:anywhere;text-wrap:balance}
dialog.forest-chat p.forest-chat-subtitle{font-size:13px;line-height:1.6;margin:6px 0 0;color:var(--chat-muted);letter-spacing:.02em}
.forest-chat-icon,.forest-chat-send{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;padding:9px;border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);color:var(--site-control-ink,#f6efdf);background:var(--site-control-surface,linear-gradient(155deg,#cfc2aa30,#514a3a85 42%,#252720b3));box-shadow:var(--site-control-shadow,inset 0 1px 0 #fff5df59,inset 0 -1px 0 #080b0b80,0 4px 12px #03050459);transition:transform .16s,border-color .16s,box-shadow .16s,color .16s}
.forest-chat-icon{position:absolute;right:22px;top:22px;border-radius:50%}
.forest-chat-send,.forest-chat-language{position:relative}
.forest-chat-icon::before,.forest-chat-send::before,.forest-chat-language::before{content:'';position:absolute;top:50%;left:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
.forest-chat-icon svg,.forest-chat-send svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.forest-chat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 26px;padding:0 0 12px;flex-shrink:0}
.forest-chat-languages{display:flex;gap:3px;padding:3px;border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);border-radius:14px;background:#282b2580;box-shadow:inset 0 1px #fff1d22b,inset 0 -1px #080b0b66,0 2px 5px #0002}
.forest-chat-language{font-size:13px;min-width:50px;min-height:36px;padding:5px 10px;border:1px solid transparent;border-radius:10px;color:var(--site-control-muted,#d0c8b8);transition:transform .16s,border-color .16s,box-shadow .16s,color .16s}
.forest-chat-language[aria-pressed="true"]{color:var(--site-control-ink,#f6efdf);border-color:#e0c799a6;border-top-color:#fff0c7bf;background:linear-gradient(155deg,#cdb6845c,#88785347 48%,#55534438);box-shadow:inset 0 1px #fff1c95c,inset 0 -1px #161d1973,0 2px 6px #060a0840}
.forest-chat-restart{font-size:13px;color:var(--site-control-ink,#f6efdf);min-height:44px;padding:8px 16px;border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);border-radius:13px;background:var(--site-control-surface,linear-gradient(155deg,#cfc2aa30,#514a3a85 42%,#252720b3));box-shadow:var(--site-control-shadow,inset 0 1px 0 #fff5df59,inset 0 -1px 0 #080b0b80,0 4px 12px #03050459);transition:transform .16s,border-color .16s,box-shadow .16s,color .16s}
.forest-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:4px 26px 4px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d2c19c66 transparent;scroll-padding:16px}
.forest-chat-welcome{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 10px;margin-bottom:22px;text-align:center}
dialog.forest-chat img.forest-chat-mark{display:block;width:140px;height:140px;flex-shrink:0;max-height:none;object-fit:contain;margin:0;filter:drop-shadow(0 0 11px #efba6f57) drop-shadow(0 6px 6px #060b0759)}
dialog.forest-chat .forest-chat-welcome p{max-width:460px;font-size:16px;line-height:1.85;margin:0;color:var(--chat-ivory);text-shadow:0 1px 4px #0005;white-space:pre-wrap;overflow-wrap:anywhere;text-wrap:pretty}
.forest-chat-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.forest-chat-suggestion{display:block;min-width:0;min-height:64px;text-align:left;padding:14px 17px;border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);border-bottom-color:#a19b8373;border-radius:13px;background:var(--site-control-surface,linear-gradient(155deg,#cfc2aa30,#514a3a85 42%,#252720b3));box-shadow:var(--site-control-shadow,inset 0 1px 0 #fff5df59,inset 0 -1px 0 #080b0b80,0 4px 12px #03050459);color:var(--site-control-ink,#f6efdf);text-shadow:0 1px 3px #0005;font-size:15px;line-height:1.7;overflow-wrap:anywhere;transition:transform .16s,border-color .16s,box-shadow .16s,color .16s}
.forest-chat :is(.forest-chat-suggestion,.forest-chat-restart,.forest-chat-send,.forest-chat-icon,.forest-chat-language,.forest-chat-retry):active:not(:disabled){transform:translateY(1px);border-color:#e9d5add1;box-shadow:inset 0 2px 5px #0005,inset 0 -1px #f5e9cb29,0 1px 3px #0003}
.forest-chat-message{margin:0 0 18px;max-width:100%;overflow-wrap:anywhere}
.forest-chat-speaker{display:block;font-size:12px;color:#dccaa7;margin:0 0 6px}
dialog.forest-chat p.forest-chat-message-text{font-size:16px;line-height:1.9;margin:0;white-space:pre-wrap;color:var(--chat-ivory)}
.forest-chat-message.is-assistant{padding:4px 0 4px 16px;border-left:2px solid #d5b98180}
.forest-chat-message.is-user{margin-left:22px;padding:11px 14px;background:#d4c39c12;border:1px solid #d9caab40;border-radius:14px 14px 4px 14px;box-shadow:inset 0 1px #fff0cd14}
.forest-chat-message.is-user .forest-chat-speaker{color:#d8d1bd}
.forest-chat-incomplete{display:block;margin-top:7px;font-size:11px;line-height:1.6;color:#d9be98}
.forest-chat-status{font-size:12px;line-height:1.7;color:#d1c6a9;padding:2px 0 10px;overflow-wrap:anywhere}
.forest-chat-wave{display:inline-flex;align-items:center;gap:3px;width:22px;height:15px;margin-right:8px;vertical-align:middle;color:#dbc997}
.forest-chat-wave i{display:block;width:2px;height:5px;border-radius:2px;background:currentColor;animation:forest-chat-wave 1.15s ease-in-out infinite;transform-origin:center}
.forest-chat-wave i:nth-child(2){animation-delay:.12s}.forest-chat-wave i:nth-child(3){animation-delay:.24s}.forest-chat-wave i:nth-child(4){animation-delay:.36s}
@keyframes forest-chat-wave{0%,60%,100%{transform:scaleY(.65);opacity:.45}30%{transform:scaleY(2.2);opacity:1}}
.forest-chat-status:has(span:empty){display:none}
.forest-chat-retry{display:block;width:max-content;max-width:100%;min-height:44px;margin-top:8px;padding:8px 13px;border:1px solid var(--site-control-rim,#d6c8aa80);border-top-color:var(--site-control-highlight,#fff1d5a3);border-radius:11px;background:var(--site-control-surface,linear-gradient(155deg,#cfc2aa30,#514a3a85 42%,#252720b3));box-shadow:var(--site-control-shadow,inset 0 1px 0 #fff5df59,inset 0 -1px 0 #080b0b80,0 4px 12px #03050459);color:var(--site-control-ink,#f6efdf);font-size:12px;line-height:1.5;overflow-wrap:anywhere;transition:transform .16s,border-color .16s,box-shadow .16s,color .16s}
.forest-chat-form{flex-shrink:0;margin:8px 26px 0;border:1px solid #d8c9aa9c;border-top-color:#f1e1c3ad;border-radius:16px;padding:14px 16px 10px;background:linear-gradient(145deg,#161f1da6,#28302c73);box-shadow:inset 0 2px 8px #050e0b33,0 1px #fff0cd24;transition:border-color .18s,box-shadow .18s}
.forest-chat-form:focus-within{border-color:#ffdfaaa6;box-shadow:inset 0 2px 8px #050e0b33,0 0 0 2px #e3bd7833}
.forest-chat-input{display:block;width:100%;resize:none;border:0;outline:none;padding:0;background:transparent;font:16px/1.7 'Microsoft JhengHei',sans-serif;color:var(--chat-ivory);max-height:100px;min-height:44px;scrollbar-width:thin}
.forest-chat-input::placeholder{color:#c7c4b5}
.forest-chat-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.forest-chat-counter{font-size:12px;color:#cec9b8;font-variant-numeric:tabular-nums}
.forest-chat-counter.is-over{color:#f5b8a2}
.forest-chat-send{height:40px;width:60px;border-color:#dec59a99;border-top-color:#f5dfb8b8;border-radius:11px;background:linear-gradient(155deg,#d7bc815c,#907c504d 48%,#54594b4d);box-shadow:inset 0 1px #fff0cd66,inset 0 -1px #15201b80,0 3px 8px #0004;color:#fff0cd}
.forest-chat button:disabled{opacity:.48;cursor:default;transform:none;box-shadow:inset 0 1px #fff1d326,inset 0 -1px #0c171b66}
@media(hover:hover) and (pointer:fine){
 .forest-chat :is(.forest-chat-suggestion,.forest-chat-restart,.forest-chat-send,.forest-chat-icon,.forest-chat-retry):hover:not(:disabled){border-color:#f1ddb4c7;border-top-color:#fff0d2e6;box-shadow:inset 0 1px #fff4d578,inset 0 -1px #080b0b80,0 5px 15px #03050466;color:#fff5e4}
 .forest-chat-language:hover:not(:disabled):not([aria-pressed="true"]){color:var(--site-control-ink,#f6efdf);background:#e0d2b91c;box-shadow:inset 0 1px #fff4d526}
}
dialog.forest-chat p.forest-chat-notice{flex-shrink:0;font-size:12px;line-height:1.7;color:#d4cfbd;text-align:center;margin:10px 28px 16px;overflow-wrap:anywhere}
.forest-chat [hidden],.forest-guide [hidden]{display:none!important}
.forest-chat button:focus-visible,.forest-guide-launcher:focus-visible,.forest-chat-messages:focus-visible{outline:2px solid #f2d59e;outline-offset:3px}
@keyframes forest-guide-breathe{0%,100%{transform:translateY(1px) rotate(-.6deg)}50%{transform:translateY(-5px) rotate(.6deg)}}
@keyframes forest-guide-glow{0%,100%{opacity:.7;transform:translateY(1px) scale(.94)}50%{opacity:1;transform:translateY(-3px) scale(1.03)}}
@keyframes forest-guide-motes{0%,100%{opacity:.45;transform:translateY(2px)}50%{opacity:.9;transform:translateY(-3px)}}
@media(min-width:1101px) and (min-height:601px){
 .forest-guide{flex-basis:var(--guide-size,104px)}
 .forest-guide-launcher{width:var(--guide-size,104px);height:calc(var(--guide-size,104px) * .885);margin-top:-21px}
 .forest-guide-hint{right:calc(100% + max(8px,64px - var(--guide-size,104px) / 2));top:31px;max-width:220px;padding:11px 17px;font-size:14px}
 dialog.forest-chat{top:calc(var(--chat-viewport-top,0px) + 112px);width:620px;height:min(780px,calc(var(--chat-viewport-height,100dvh) - 136px))}
 .forest-chat-header{padding:28px 72px 12px}
 dialog.forest-chat h2.forest-chat-title{font-size:32px}
 dialog.forest-chat p.forest-chat-subtitle{font-size:14px}
 .forest-chat-language,.forest-chat-restart{font-size:14px}
 .forest-chat-messages{padding:4px 28px 6px}
 .forest-chat-welcome{gap:10px;padding:0 14px}
 dialog.forest-chat img.forest-chat-mark{width:148px;height:148px}
 dialog.forest-chat .forest-chat-welcome p{font-size:17px;line-height:1.85}
 dialog.forest-chat p.forest-chat-message-text,.forest-chat-input{font-size:18px}
 .forest-chat-suggestion{font-size:17px;padding:14px 18px;min-height:68px}
 .forest-chat-speaker,.forest-chat-counter{font-size:12px}
 .forest-chat-status,.forest-chat-retry,.forest-chat-incomplete{font-size:14px}
}
/* Use the document's layout mode: its content width can differ from the host viewport. */
:is(html.compact,.document-surface[data-motion=flow]):has(header .forest-guide:not([hidden])){--guide-header-clearance:144px}
:is(html.compact,.document-surface[data-motion=flow]) header.has-forest-guide{gap:8px}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide{--guide-compact-size:min(calc(var(--guide-size,104px) * .52),68px,max(24px,calc(var(--doc-view-width,100vw) * .88 - 246px)));flex-basis:var(--guide-compact-size);height:54px;margin-right:0}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide-launcher{width:var(--guide-compact-size);height:calc(var(--guide-compact-size) * 14 / 13);margin-top:-2px}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide-hint{display:grid;place-items:center;left:50%;right:auto;top:max(calc(100% + 10px),68px);min-height:32px;max-width:min(166px,calc(var(--doc-view-width,100vw) - 32px));padding:2px 11px;border-radius:13px;font-size:12px;line-height:1.1;transform:translate(-50%,-2px) scale(.9);transform-origin:center top}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide-hint::before{left:calc(50% - 5px);right:auto;top:-5px;border-width:1px 0 0 1px}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide.show-hint .forest-guide-hint{transform:translateX(-50%)}
:is(html.compact,.document-surface[data-motion=flow]) .forest-guide-fallback{width:44px;height:44px;font-size:28px;line-height:44px}
@media(max-width:1100px),(max-height:600px){
 dialog.forest-chat{top:calc(var(--chat-viewport-top,0px) + max(10px,env(safe-area-inset-top)));right:max(12px,env(safe-area-inset-right));width:540px;height:min(720px,calc(var(--chat-viewport-height,100dvh) - max(20px,env(safe-area-inset-top)) - env(safe-area-inset-bottom)));max-width:calc(100vw - 24px)}
 dialog.forest-chat::backdrop{background:#07100a73;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
}
@media(max-width:520px){
 dialog.forest-chat{right:max(8px,env(safe-area-inset-right));width:calc(100vw - 16px);max-width:calc(100vw - 16px);border-radius:22px;height:calc(var(--chat-viewport-height,100dvh) - max(20px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))}
 dialog.forest-chat::before{inset:4px;border-radius:17px}
 .forest-chat-header{padding:21px 52px 12px}
 dialog.forest-chat h2.forest-chat-title{font-size:25px;line-height:1.25}
 dialog.forest-chat p.forest-chat-subtitle{font-size:12px;margin-top:5px}
 .forest-chat-toolbar{margin:0 18px;padding-bottom:8px}
 .forest-chat-restart{padding:8px 12px}
 .forest-chat-messages{padding:2px 18px 4px}
 .forest-chat-welcome{gap:8px;padding:0 4px;margin-bottom:18px}
 dialog.forest-chat img.forest-chat-mark{width:120px;height:120px}
 dialog.forest-chat .forest-chat-welcome p{font-size:15px;line-height:1.8}
 .forest-chat-suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}
 .forest-chat-suggestion{min-height:60px;padding:10px 12px;font-size:14px;line-height:1.65;border-radius:11px}
 .forest-chat-form{margin:6px 18px 0;padding:12px 13px 8px;border-radius:13px}
 .forest-chat-input{font-size:16px;line-height:1.5}
 .forest-chat-language{min-width:44px;min-height:36px;padding:5px 9px}
 .forest-chat-icon{right:13px;top:15px;width:36px;height:36px;padding:8px}
 dialog.forest-chat p.forest-chat-notice{font-size:11px;line-height:1.65;margin:9px 23px 14px}
}
@media(max-width:359px){
 dialog.forest-chat h2.forest-chat-title{font-size:22px}
 .forest-chat-suggestions{grid-template-columns:minmax(0,1fr);gap:8px}
 .forest-chat-suggestion{min-height:46px;padding:10px 13px}
 dialog.forest-chat img.forest-chat-mark{width:110px;height:110px}
}
@media(max-height:430px){
 .forest-chat-header{padding-top:12px;padding-bottom:8px}
 .forest-chat-icon{top:8px}
 dialog.forest-chat h2.forest-chat-title{font-size:22px}
 dialog.forest-chat p.forest-chat-subtitle{display:none}
 .forest-chat-toolbar{padding-bottom:4px}
 .forest-chat-welcome{gap:6px;margin-bottom:12px}
 dialog.forest-chat img.forest-chat-mark{width:84px;height:84px}
 dialog.forest-chat .forest-chat-welcome p{font-size:14px}
 dialog.forest-chat p.forest-chat-notice{margin-top:5px;margin-bottom:6px}
 .forest-chat-input{min-height:28px;max-height:48px}
}
@media(prefers-reduced-motion:reduce){.forest-guide-owl,.forest-guide-launcher::before,.forest-guide-launcher::after{animation:none}.forest-guide-hint{transition:none}}
html.reduced .forest-guide-hint{transition:none}
@media(prefers-reduced-motion:reduce){.forest-guide-launcher,dialog.forest-chat::backdrop{transition:none}}
html.reduced .forest-guide-launcher,html.reduced dialog.forest-chat::backdrop{transition:none}
html.reduced .forest-guide-launcher::after{animation:none}
@media(prefers-reduced-motion:reduce){.forest-chat-suggestion,.forest-chat-language,.forest-chat-restart,.forest-chat-icon,.forest-chat-send,.forest-chat-retry,.forest-chat-form{transition:none}.forest-chat :is(.forest-chat-suggestion,.forest-chat-restart,.forest-chat-send,.forest-chat-icon,.forest-chat-language,.forest-chat-retry):active:not(:disabled){transform:none}}
html.reduced .forest-guide-owl,html.reduced .forest-guide-launcher::before,html.reduced .forest-guide-launcher::after{animation:none}
html.reduced .forest-chat-suggestion,html.reduced .forest-chat-language,html.reduced .forest-chat-restart,html.reduced .forest-chat-icon,html.reduced .forest-chat-send,html.reduced .forest-chat-retry,html.reduced .forest-chat-form{transition:none}
html.reduced .forest-chat :is(.forest-chat-suggestion,.forest-chat-restart,.forest-chat-send,.forest-chat-icon,.forest-chat-language,.forest-chat-retry):active:not(:disabled){transform:none}
@media(prefers-reduced-motion:reduce){.forest-chat-wave i{animation:none;opacity:.8}.forest-chat-wave i:nth-child(2),.forest-chat-wave i:nth-child(3){height:9px}}
.page-hidden .forest-guide-owl,.page-hidden .forest-guide-launcher::before,.page-hidden .forest-guide-launcher::after{animation-play-state:paused}

/* The isolated settings preview uses the selected device, independent of its host window. */
.studio-widget-shell[data-chat-preview-device]{max-width:100%;margin-inline:auto}
.studio-widget-shell[data-chat-preview-device] dialog.forest-chat{max-width:100%;max-height:none}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat{width:620px;height:min(780px,calc(var(--chat-viewport-height) - 136px))}
.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat{width:540px;height:min(720px,calc(var(--chat-viewport-height) - 20px))}
.studio-widget-shell[data-chat-preview-device=mobile]{padding:8px}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat{width:100%;height:calc(var(--chat-viewport-height) - 20px);border-radius:22px}
.studio-widget-shell[data-chat-preview-device=desktop] .forest-chat-header{padding:28px 72px 12px}
.studio-widget-shell[data-chat-preview-device=tablet] .forest-chat-header{padding:28px 66px 14px}
.studio-widget-shell[data-chat-preview-device=mobile] .forest-chat-header{padding:21px 52px 12px}
.studio-widget-shell[data-chat-preview-device] dialog.forest-chat h2.forest-chat-title{line-height:1.25}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat h2.forest-chat-title{font-size:32px}
.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat h2.forest-chat-title{font-size:27px}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat h2.forest-chat-title{font-size:25px}
.studio-widget-shell[data-chat-preview-device] dialog.forest-chat p.forest-chat-subtitle{display:block}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat p.forest-chat-subtitle{font-size:14px;margin-top:6px}
.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat p.forest-chat-subtitle{font-size:13px;margin-top:6px}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat p.forest-chat-subtitle{font-size:12px;margin-top:5px}
.studio-widget-shell[data-chat-preview-device=desktop] :is(.forest-chat-language,.forest-chat-restart){font-size:14px}
.studio-widget-shell[data-chat-preview-device=tablet] :is(.forest-chat-language,.forest-chat-restart),.studio-widget-shell[data-chat-preview-device=mobile] :is(.forest-chat-language,.forest-chat-restart){font-size:13px}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.423);height:calc(var(--guide-appearance-size,104px) * 1.423)}
.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.346);height:calc(var(--guide-appearance-size,104px) * 1.346)}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.154);height:calc(var(--guide-appearance-size,104px) * 1.154)}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat .forest-chat-welcome p{font-size:17px;line-height:1.85}
.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat .forest-chat-welcome p{font-size:16px;line-height:1.85}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat .forest-chat-welcome p{font-size:15px;line-height:1.8}
.studio-widget-shell[data-chat-preview-device] .forest-chat-suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-widget-shell[data-chat-preview-device=desktop] .forest-chat-suggestion{font-size:17px;min-height:68px;padding:14px 18px;line-height:1.7}
.studio-widget-shell[data-chat-preview-device=tablet] .forest-chat-suggestion{font-size:15px;min-height:64px;padding:14px 17px;line-height:1.7}
.studio-widget-shell[data-chat-preview-device=mobile] .forest-chat-suggestion{font-size:14px;min-height:60px;padding:10px 12px;line-height:1.65}
.studio-widget-shell[data-chat-preview-device=desktop] :is(.forest-chat-input,p.forest-chat-message-text){font-size:18px}
.studio-widget-shell[data-chat-preview-device=tablet] :is(.forest-chat-input,p.forest-chat-message-text),.studio-widget-shell[data-chat-preview-device=mobile] :is(.forest-chat-input,p.forest-chat-message-text){font-size:16px}
.studio-widget-shell[data-chat-preview-device] .forest-chat-input{min-height:44px;max-height:100px;line-height:1.7}
.studio-widget-shell[data-chat-preview-device=mobile] .forest-chat-input{line-height:1.5}
.studio-widget-shell[data-chat-preview-device=desktop] :is(.forest-chat-status,.forest-chat-retry,.forest-chat-incomplete){font-size:14px}
.studio-widget-shell[data-chat-preview-device=tablet] :is(.forest-chat-status,.forest-chat-retry),.studio-widget-shell[data-chat-preview-device=mobile] :is(.forest-chat-status,.forest-chat-retry){font-size:12px}
.studio-widget-shell[data-chat-preview-device=desktop] dialog.forest-chat p.forest-chat-notice,.studio-widget-shell[data-chat-preview-device=tablet] dialog.forest-chat p.forest-chat-notice{font-size:12px}
.studio-widget-shell[data-chat-preview-device=mobile] dialog.forest-chat p.forest-chat-notice{font-size:11px}
.studio-widget-shell[data-chat-preview-device=desktop] .forest-chat-icon,.studio-widget-shell[data-chat-preview-device=tablet] .forest-chat-icon{width:40px;height:40px}
.studio-widget-shell[data-chat-preview-device=mobile] .forest-chat-icon{width:36px;height:36px}
.studio-widget-shell[data-chat-preview-device=desktop] .forest-guide-launcher{width:var(--guide-size,104px);height:calc(var(--guide-size,104px) * .885)}
.studio-widget-shell[data-chat-preview-device=tablet] .forest-guide-launcher,.studio-widget-shell[data-chat-preview-device=mobile] .forest-guide-launcher{width:min(calc(var(--guide-size,104px) * .52),68px);height:calc(min(calc(var(--guide-size,104px) * .52),68px) * 14 / 13)}
.studio-widget-shell[data-chat-preview-device=desktop] .forest-guide-hint{font-size:14px}
.studio-widget-shell[data-chat-preview-device=tablet] .forest-guide-hint,.studio-widget-shell[data-chat-preview-device=mobile] .forest-guide-hint{font-size:12px}
.forest-guide.no-guide-float .forest-guide-owl,.forest-guide.no-guide-float .forest-guide-launcher::before,.forest-guide.no-guide-float .forest-guide-launcher::after{animation:none}
.forest-guide-launcher::before{filter:blur(6px) brightness(var(--guide-glow,1))}
.forest-guide-launcher::after{filter:drop-shadow(0 0 3px #ffd385) brightness(var(--guide-glow,1))}
.forest-guide-owl,.forest-guide-launcher::before{animation-duration:var(--guide-float-duration,7.2s)}
dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.346);height:calc(var(--guide-appearance-size,104px) * 1.346)}
@keyframes forest-guide-breathe{0%,100%{transform:translateY(1px) rotate(-.6deg)}50%{transform:translateY(calc(-1 * var(--guide-float-amplitude,5px))) rotate(.6deg)}}
@media(min-width:1101px) and (min-height:601px){dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.423);height:calc(var(--guide-appearance-size,104px) * 1.423)}}
@media(max-width:520px){dialog.forest-chat img.forest-chat-mark{width:calc(var(--guide-appearance-size,104px) * 1.154);height:calc(var(--guide-appearance-size,104px) * 1.154)}}
