body:has(.chat) .site-footer{display:none}body:has(.chat) main{padding:0}.chat{z-index:2;padding:0 16px calc(22px + env(safe-area-inset-bottom,0px));pointer-events:none;justify-items:center;gap:12px;display:grid;position:fixed;inset:auto 0 0}.chat>*{pointer-events:auto}.chat [hidden]{display:none!important}body:has(astro-dev-toolbar) .chat{padding-bottom:64px}.chat button{font:inherit;color:inherit;cursor:pointer;border:0}.chat .deck{gap:10px;width:min(100%,720px);display:grid}.chat .bar{align-items:center;gap:8px;display:flex}.chat .who{background:var(--cup-2);border-radius:999px;align-items:center;gap:10px;margin-right:auto;padding:5px 16px 5px 5px;font-size:.9rem;font-weight:900;display:flex}.chat .avatar{background:var(--pour);width:30px;height:30px;color:var(--on-pour);border-radius:58% 42% 55% 45%/48% 58% 42% 52%;place-items:center;font-size:.66rem;display:grid}.chat .mini{background:var(--cup-2);border-radius:999px;gap:2px;padding:4px;display:inline-flex}.chat .mini button{white-space:nowrap;transition:background var(--t-pour) var(--ease-pour), color var(--t-pour) var(--ease-pour);background:0 0;border-radius:999px;padding:5px 14px;font-size:.86rem;font-weight:700}.chat .mini [aria-pressed=true]{background:var(--pour);color:var(--on-pour)}.chat .you{background:var(--pour);max-width:80%;color:var(--on-pour);border-radius:var(--r);border-bottom-right-radius:calc(var(--r) * .3);overflow-wrap:anywhere;justify-self:end;padding:9px 18px;font-weight:700}.chat .box{background:var(--cup);border-radius:var(--r);cursor:pointer;user-select:none;min-height:5.6em;padding:20px 26px 26px;font-size:1.12rem;line-height:1.6;position:relative}.chat[data-mode=talk] .box{cursor:default;user-select:text}.chat[data-mode=talk][data-more] .box{cursor:pointer;user-select:none}.chat .next{background:var(--pour);width:12px;height:12px;animation:chat-bob 1.1s var(--ease-pour) infinite alternate;border-radius:58% 42% 55% 45%/48% 58% 42% 52%;position:absolute;bottom:14px;right:20px}@keyframes chat-bob{to{translate:0 5px}}.chat .choices,.chat .hints{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.chat .choices{min-height:40px}.chat .choices button,.chat .hints button,.chat .ask button,.chat .lab-toggle{background:var(--cup-2);transition:background var(--t-pour) var(--ease-pour), color var(--t-pour) var(--ease-pour);border-radius:999px;padding:9px 18px;font-weight:700}.chat .choices button{animation:chat-rise .42s var(--ease-pour) backwards}.chat .choices button:nth-child(2){animation-delay:60ms}.chat .choices button:nth-child(3){animation-delay:.12s}.chat .choices button:nth-child(n+4){animation-delay:.18s}@keyframes chat-rise{0%{opacity:0;translate:0 10px}}.chat .choices button:hover,.chat .hints button:hover,.chat .ask button:hover,.chat .lab-toggle:hover{background:var(--crema);color:var(--on-pour)}.chat .hints button{background:var(--cup);color:var(--muted);padding:6px 14px;font-size:.88rem}.chat .ending{letter-spacing:.14em;text-transform:uppercase;color:var(--muted);justify-self:end;font-size:.8rem;font-weight:700}.chat .ask{gap:8px;display:flex}.chat .ask input{background:var(--cup-2);min-width:0;font:inherit;color:var(--ink);border:0;border-radius:999px;outline:0;flex:1;padding:12px 20px}.chat .ask input::placeholder{color:var(--muted)}.chat .ask button{background:var(--pour);color:var(--on-pour);font-weight:900}.chat .lab{background:var(--cup);border-radius:var(--r);gap:12px;width:min(100%,720px);padding:16px 18px;font-size:.86rem;display:grid;position:relative}.chat .lab-head,.chat .lab-foot,.chat .meaning,.chat .meaning label{align-items:center;gap:8px;display:flex}.chat .lab-head,.chat .lab-foot{justify-content:space-between}.chat .lab-title{letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-size:.74rem;font-weight:700}.chat .tip{background:var(--cup-2);width:22px;height:22px;color:var(--muted);cursor:help;border-radius:50%;flex:none;place-items:center;font-size:.78rem;font-weight:900;display:grid}.chat .tip:hover,.chat .tip:focus-visible,.chat .tip[aria-expanded=true]{background:var(--pour);color:var(--on-pour)}.chat-tip{z-index:20;background:var(--cup-2);border-radius:var(--r-in);width:min(280px,100vw - 32px);box-shadow:0 0 0 5px var(--ground);color:var(--ink);pointer-events:none;opacity:0;transition:opacity var(--t-pour) var(--ease-pour), translate var(--t-pour) var(--ease-pour);padding:12px 16px;font-size:.86rem;line-height:1.5;position:fixed;translate:0 4px}.chat-tip[data-shown]{opacity:1;translate:none}.chat .lab-decision{color:var(--muted)}.chat .lab-decision:empty{display:none}.chat .lab-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.chat .lab-list:empty{display:none}.chat .lab-list li{gap:3px;display:grid}.chat .lab-list p{align-items:baseline;gap:8px;display:flex}.chat .lab-list b{font-variant-numeric:tabular-nums;min-width:3.4ch;font-weight:900}.chat .lab-list span{font-weight:700}.chat .lab-list em{background:var(--cup-2);color:var(--muted);white-space:nowrap;border-radius:999px;margin-left:auto;padding:1px 9px;font-size:.74rem;font-style:normal;font-weight:700}.chat .lab-list em[data-fresh]{background:var(--crema);color:var(--on-pour)}.chat .lab-list small{color:var(--muted);overflow-wrap:anywhere;font-size:.82rem}.chat .lab-list i{background:var(--cup-2);border-radius:999px;height:6px}.chat .lab-list i:before{content:"";width:var(--w);background:var(--muted);border-radius:inherit;height:100%;display:block}.chat .lab-list [data-chosen] i:before{background:var(--pour)}.chat .lab-foot{color:var(--muted);font-variant-numeric:tabular-nums;flex-wrap:wrap;font-weight:700;position:relative}.chat .meaning label{cursor:pointer}.chat .meaning input{opacity:0;pointer-events:none;position:absolute}.chat .switch{background:var(--cup-2);width:34px;height:20px;transition:background var(--t-pour) var(--ease-pour);border-radius:999px;flex:none;position:relative}.chat .switch:before{content:"";background:var(--muted);width:12px;height:12px;transition:translate var(--t-settle) var(--ease-settle), background var(--t-pour) var(--ease-pour);border-radius:50%;position:absolute;top:4px;left:4px}.chat .meaning input:checked+.switch{background:var(--pour)}.chat .meaning input:checked+.switch:before{background:var(--on-pour);translate:14px}.chat .meaning[data-state=loading] input:checked+.switch{background:var(--cup-2)}.chat .meaning[data-state=loading] input:checked+.switch:before{background:var(--pour);animation:.7s ease-in-out infinite alternate chat-pulse}@keyframes chat-pulse{to{opacity:.3}}.chat .meaning input:focus-visible+.switch{outline:2px solid var(--crema);outline-offset:2px}.chat .collection-open{top:calc(var(--statusbar) + 22px);background:var(--cup);color:var(--muted);transition:background var(--t-pour) var(--ease-pour), color var(--t-pour) var(--ease-pour);border-radius:999px;align-items:baseline;gap:8px;padding:7px 16px;font-size:.86rem;font-weight:700;display:flex;position:fixed;left:22px}.chat .collection-open b{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:900}.chat .collection-open:hover{background:var(--pour);color:var(--on-pour)}.chat .collection-open:hover b{color:inherit}.chat .collection-open[data-bump]{animation:unlock-fill 1.4s var(--ease-pour)}.chat .collection-open[data-bump] b{animation:unlock-jump .76s var(--ease-settle)}@keyframes unlock-fill{0%,45%{background:var(--pour);color:var(--on-pour)}}@keyframes unlock-jump{0%{color:var(--on-pour);scale:1.5}60%{color:var(--on-pour)}}.chat .unlock{top:calc(var(--statusbar) + 66px);background:var(--pour);max-width:calc(100vw - 44px);color:var(--on-pour);white-space:nowrap;pointer-events:none;transform-origin:0 0;animation:unlock-note 2.8s var(--ease-pour) forwards;border-radius:999px;align-items:baseline;gap:8px;padding:7px 16px;font-size:.86rem;font-weight:900;display:flex;position:fixed;left:22px}.chat .unlock small{opacity:.75;font-size:.78rem;font-weight:700}@keyframes unlock-note{0%{opacity:0;transform:translateY(-14px)scale(.6,.7)}9%{opacity:1;transform:scale(1.05,.94)}15%{transform:none}84%{opacity:1;transform:none}to{opacity:0;transform:translateY(-6px)}}.chat .lab-toggle{padding:7px 16px;font-size:.86rem}.chat .lab-toggle[aria-expanded=true]{background:var(--pour);color:var(--on-pour)}.collection{background:var(--cup);border-radius:var(--r);width:min(980px,100vw - 32px);max-height:min(84svh,760px);color:var(--ink);border:0;padding:0;overflow:hidden}.collection[open]{flex-direction:column;display:flex}.collection::backdrop{background:color-mix(in srgb, var(--ground) 72%, transparent)}.collection-head{flex-wrap:wrap;align-items:center;gap:10px 14px;padding:20px 22px 14px;display:flex}.collection-head h2{align-items:baseline;gap:12px;margin-right:auto;font-size:1.3rem;font-weight:900;display:flex}.collection-head small{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.9rem;font-weight:700}.collection-close{background:var(--cup-2);width:36px;height:36px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.collection-close:hover{background:var(--crema);color:var(--on-pour)}.collection-body{min-height:0;padding:0 22px 22px;overflow-y:auto}.collection-note{color:var(--muted);margin-bottom:14px;font-size:.9rem}.collection .lines{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.collection .lines li{background:var(--cup-2);border-radius:var(--r-in);align-content:start;gap:6px;padding:14px 16px;display:grid}.collection .lines b{font-weight:900}.collection .lines p{color:var(--ink-700);font-size:.88rem;line-height:1.5}.collection .lines [data-hint]{cursor:help}.collection .lines li[data-hint]{background:var(--ground);letter-spacing:.2em;min-height:74px;color:var(--gray-400);transition:color var(--t-pour) var(--ease-pour);place-content:center;font-weight:900}.collection .lines p[data-hint]{letter-spacing:.3em;color:var(--gray-400)}.collection .lines [data-hint]:hover,.collection .lines [data-hint]:focus-visible{color:var(--pour)}.collection .tree-scroll{padding-bottom:6px;overflow-x:auto}.collection .tree{position:relative}.collection .tree svg{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.collection .tree path{fill:none;stroke:var(--cup-2);stroke-width:3px;stroke-linecap:round}.collection .tree path[data-lit]{stroke:var(--pour)}.collection .tree button{background:var(--cup-2);white-space:nowrap;transition:background var(--t-pour) var(--ease-pour), color var(--t-pour) var(--ease-pour);border-radius:999px;align-items:baseline;gap:8px;padding:9px 16px;font-size:.92rem;font-weight:700;display:flex;position:absolute;translate:0 -50%}.collection .tree button:not(:disabled):hover{background:var(--crema);color:var(--on-pour)}.collection .tree small{opacity:.75;font-size:.78rem;font-weight:500}.collection .tree [data-here]{background:var(--pour);color:var(--on-pour)}.collection .tree [data-state=open]{background:var(--ground);color:var(--pour)}.collection .tree button:disabled{background:var(--ground);color:var(--gray-400);letter-spacing:.2em;cursor:default}@media (width>=1180px){.chat .lab{top:calc(var(--statusbar) + 22px);width:340px;max-height:calc(100svh - var(--statusbar) - 44px);position:fixed;right:22px;overflow-y:auto}.chat .lab-toggle{display:none}}@media (width<=1179px){.chat .lab{max-height:38svh;overflow-y:auto}.chat:not([data-lab-open]) .lab{display:none}}@media (width<=520px){.chat .collection-open{top:calc(var(--statusbar) + 10px);left:16px}.chat .unlock{top:calc(var(--statusbar) + 52px);left:16px}.chat .box{min-height:4.8em;padding:14px 18px 20px;font-size:1.02rem}.chat .bar{flex-wrap:wrap}.chat .hints{scrollbar-width:none;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}.chat .hints button{flex:none}}
