.tzai[hidden]{display:none!important}
.tzai{--tzai-accent:#f39a22;--tzai-gold:#f5c765;--tzai-ink:#161411;--tzai-panel:#1d1b19;position:fixed;right:clamp(116px,9vw,132px);bottom:max(12px,env(safe-area-inset-bottom));z-index:99990;font-family:inherit;color:#fff;pointer-events:none}
.tzai *{box-sizing:border-box}
.tzai__launcher,.tzai__panel{pointer-events:auto}
.tzai__launcher{position:relative;display:block!important;width:132px!important;height:176px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:inherit!important;line-height:normal!important;text-align:left!important;text-transform:none!important;cursor:pointer;isolation:isolate}
.tzai__stage{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;border:0;background:transparent;box-shadow:none;transform-origin:50% 100%;animation:tzai-float 5.2s ease-in-out infinite}
.tzai__stage:after{content:"";position:absolute;z-index:0;left:22%;right:16%;bottom:2px;height:7px;border-radius:50%;background:rgba(0,0,0,.28);filter:blur(5px);animation:tzai-shadow 5.2s ease-in-out infinite}
.tzai__pose{position:absolute;z-index:1;inset:0;display:block;opacity:0;will-change:opacity}
.tzai__pose:first-child,.tzai__pose.is-fallback{opacity:1}
.tzai__pose img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 9px rgba(0,0,0,.28));transform-origin:50% 82%;animation:tzai-work-motion 3.6s ease-in-out infinite;user-select:none;-webkit-user-drag:none}
.tzai--animated .tzai__pose{animation:tzai-activity-cycle 30s linear infinite}
.tzai--animated .tzai__pose--1{animation-delay:0s}
.tzai--animated .tzai__pose--2{animation-delay:-24s}
.tzai--animated .tzai__pose--3{animation-delay:-18s}
.tzai--animated .tzai__pose--4{animation-delay:-12s}
.tzai--animated .tzai__pose--5{animation-delay:-6s}
.tzai__pose--demolition img{animation-duration:2.8s}
.tzai__pose--installation img{animation-duration:4.2s;animation-delay:-1.1s}
.tzai__pose--tiling img{animation-duration:3.4s;animation-delay:-.7s}
.tzai__pose--drawings img{animation-duration:4.8s;animation-delay:-1.8s}
.tzai__pose--painting img{animation-duration:3.1s;animation-delay:-1.3s}
.tzai__monogram{position:absolute;inset:24px 8px 8px;display:grid;place-items:center;color:var(--tzai-gold);font-size:1.5rem;font-weight:900;letter-spacing:.04em;text-shadow:0 2px 5px rgba(0,0,0,.5)}
.tzai__presence{position:absolute;z-index:3;right:2px;bottom:17px;width:13px;height:13px;border:3px solid #171513;border-radius:50%;background:#54d18b;box-shadow:0 0 0 0 rgba(84,209,139,.55);animation:tzai-pulse 2.4s ease-out infinite}
.tzai__launcher-copy{position:absolute;right:calc(100% + 9px);bottom:28px;display:flex;flex-direction:column;width:166px;padding:10px 12px;border:1px solid rgba(245,199,101,.54);border-radius:14px 14px 4px 14px;background:linear-gradient(135deg,rgba(29,27,25,.98),rgba(48,42,36,.98));box-shadow:0 14px 32px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateX(6px) translateY(2px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.tzai__launcher:hover .tzai__launcher-copy,.tzai__launcher:focus-visible .tzai__launcher-copy{opacity:1;visibility:visible;transform:translateX(0) translateY(0)}
.tzai__launcher-copy strong{color:#fff;font-size:.82rem;line-height:1.18}
.tzai__launcher-copy small{margin-top:3px;color:#e8dfd4;font-size:.66rem;line-height:1.25}
.tzai--compact .tzai__launcher{width:76px!important;height:102px!important}
.tzai--compact .tzai__launcher-copy{display:none}
.tzai__launcher:focus-visible{outline:0}
.tzai__launcher:focus-visible .tzai__stage,.tzai__close:focus-visible,.tzai__quick:focus-visible,.tzai__send:focus-visible,.tzai__link:focus-visible{outline:3px solid var(--tzai-gold);outline-offset:3px}
.tzai__panel{position:absolute;right:0;bottom:184px;width:min(410px,calc(100vw - 24px));max-height:min(660px,calc(100vh - 212px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(245,199,101,.48);border-radius:22px;background:linear-gradient(155deg,#211f1c 0%,#151412 100%);box-shadow:0 28px 72px rgba(0,0,0,.46);transform-origin:100% 100%;opacity:0;transform:translateY(12px) scale(.97);visibility:hidden;transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
.tzai--compact .tzai__panel{bottom:112px}
.tzai.is-open .tzai__panel{opacity:1;transform:translateY(0) scale(1);visibility:visible}
.tzai.is-open .tzai__launcher-copy{display:none}
.tzai__header{display:flex;align-items:center;gap:10px;min-height:62px;padding:13px 48px 12px 16px;border-bottom:1px solid rgba(255,255,255,.09);background:linear-gradient(90deg,rgba(243,154,34,.14),transparent 72%)}
.tzai__brand{display:block;flex:0 0 auto;max-width:112px;padding:5px 7px;border-radius:8px;background:#fff8ee;box-shadow:inset 0 0 0 1px rgba(90,48,23,.12)}
.tzai__brand img{display:block;width:auto;max-width:98px;height:25px;object-fit:contain;object-position:left center}
.tzai__identity{display:flex;flex-direction:column;min-width:0;padding-left:10px;border-left:1px solid rgba(255,255,255,.13)}
.tzai__identity strong{font-size:.84rem;line-height:1.2}
.tzai__identity small{margin-top:2px;color:#d8cfc5;font-size:.68rem;line-height:1.25}
.tzai__close{position:absolute;right:12px;top:12px;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:50%!important;background:rgba(255,255,255,.07)!important;box-shadow:none!important;color:#fff!important;font:inherit!important;font-size:1.35rem!important;line-height:1!important;text-transform:none!important;cursor:pointer;transition:background-color .18s ease,transform .18s ease}
.tzai__close:hover{background:rgba(255,255,255,.15)!important;transform:rotate(4deg)}
.tzai__content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;scrollbar-color:rgba(243,154,34,.55) transparent;scrollbar-width:thin}
.tzai__intro{margin:0 0 13px;padding:13px 14px;border:1px solid rgba(243,154,34,.23);border-radius:15px;background:rgba(243,154,34,.07)}
.tzai__intro strong{display:block;color:#fff;font-size:1rem;line-height:1.28}
.tzai__intro p{margin:5px 0 0;color:#e8e1d9;font-size:.82rem;line-height:1.48}
.tzai__messages{display:flex;flex-direction:column;gap:9px;max-height:212px;overflow:auto;margin:0 0 12px;padding:1px 3px 3px;scrollbar-width:thin}
.tzai__message{max-width:91%;padding:10px 12px;border-radius:13px;color:#f7f4f1;font-size:.79rem;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.tzai__message--assistant{align-self:flex-start;border:1px solid rgba(255,255,255,.1);border-radius:4px 13px 13px 13px;background:#302d29}
.tzai__message--user{align-self:flex-end;border:1px solid rgba(245,199,101,.38);border-radius:13px 4px 13px 13px;background:rgba(243,154,34,.18)}
.tzai__message.is-thinking{display:flex;align-items:center;gap:5px;width:max-content;color:#d8cfc5}
.tzai__message.is-thinking span{width:6px;height:6px;border-radius:50%;background:var(--tzai-accent);animation:tzai-dot 1.1s ease-in-out infinite}
.tzai__message.is-thinking span:nth-child(2){animation-delay:.16s}.tzai__message.is-thinking span:nth-child(3){animation-delay:.32s}
.tzai__quick-title{display:block;margin:0 0 7px;color:#f2c978;font-size:.67rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tzai__quicks{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.tzai__quick{display:inline-flex!important;align-items:center!important;width:auto!important;height:auto!important;min-height:34px!important;margin:0!important;padding:7px 10px!important;border:1px solid rgba(245,199,101,.32)!important;border-radius:999px!important;background:rgba(255,255,255,.055)!important;box-shadow:none!important;color:#f7f1e8!important;font:inherit!important;font-size:.72rem!important;font-weight:700!important;line-height:1.2!important;text-transform:none!important;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.tzai__quick:hover{border-color:rgba(245,199,101,.7)!important;background:rgba(243,154,34,.14)!important;color:#fff!important}
.tzai__form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:1px}
.tzai__input{width:100%;min-height:43px;max-height:104px;resize:vertical;padding:11px 12px;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:#0f0f0e;color:#fff;font:inherit;font-size:.78rem;line-height:1.4;box-shadow:none}
.tzai__input::placeholder{color:#a9a29b}.tzai__input:focus{border-color:var(--tzai-accent);outline:2px solid rgba(243,154,34,.2);outline-offset:1px}
.tzai__send{display:grid!important;place-items:center!important;width:43px!important;height:43px!important;min-height:43px!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px!important;background:linear-gradient(145deg,var(--tzai-accent),#dc7414)!important;color:#17120c!important;font:inherit!important;font-size:1.08rem!important;font-weight:900!important;line-height:1!important;text-transform:none!important;cursor:pointer;box-shadow:0 8px 20px rgba(243,154,34,.2)!important;transition:transform .18s ease,filter .18s ease}
.tzai__send:hover{transform:translateY(-1px);filter:brightness(1.08)}
.tzai__send:disabled,.tzai__quick:disabled{opacity:.55;cursor:wait;transform:none}
.tzai__privacy{margin:8px 1px 0;color:#aaa39c;font-size:.64rem;line-height:1.42}
.tzai__privacy a{color:#d8bf8e;text-decoration:underline;text-underline-offset:2px}
.tzai__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px 15px;border-top:1px solid rgba(255,255,255,.085);background:rgba(0,0,0,.14)}
.tzai__link{display:flex;align-items:center;justify-content:center;min-height:39px;padding:8px 10px;border:1px solid rgba(245,199,101,.4);border-radius:11px;color:#f5d797;font-size:.72rem;font-weight:800;line-height:1.25;text-align:center;text-decoration:none;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.tzai__link--primary{border-color:transparent;background:linear-gradient(145deg,var(--tzai-accent),#dc7414);color:#17120c}
.tzai__link:hover{border-color:rgba(245,199,101,.8);background:rgba(243,154,34,.14);color:#fff}.tzai__link--primary:hover{border-color:transparent;background:#f6aa3f;color:#17120c}
.tzai__sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@keyframes tzai-activity-cycle{0%,16%{opacity:1}20%,100%{opacity:0}}
@keyframes tzai-float{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-5px) rotate(.25deg)}}
@keyframes tzai-work-motion{0%,100%{transform:translateY(0) rotate(-.18deg) scale(1)}50%{transform:translateY(-2px) rotate(.18deg) scale(1.008)}}
@keyframes tzai-shadow{0%,100%{transform:scaleX(1);opacity:.46}50%{transform:scaleX(.9);opacity:.31}}
@keyframes tzai-pulse{0%{box-shadow:0 0 0 0 rgba(84,209,139,.48)}70%{box-shadow:0 0 0 8px rgba(84,209,139,0)}100%{box-shadow:0 0 0 0 rgba(84,209,139,0)}}
@keyframes tzai-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-3px);opacity:1}}
@media(max-width:600px){.tzai{left:8px;right:auto;bottom:max(7px,env(safe-area-inset-bottom))}.tzai__launcher{width:80px!important;height:108px!important}.tzai--compact .tzai__launcher{width:64px!important;height:88px!important}.tzai__presence{right:-1px;bottom:8px;width:12px;height:12px}.tzai__launcher-copy{display:none}.tzai__panel,.tzai--compact .tzai__panel{position:fixed;left:8px;right:8px;bottom:123px;width:auto;max-height:calc(100vh - 140px);border-radius:18px;transform-origin:0 100%}.tzai--compact .tzai__panel{bottom:101px}.tzai__header{min-height:57px;padding:11px 45px 10px 13px}.tzai__brand img{max-width:88px;height:24px}.tzai__identity{padding-left:8px}.tzai__identity strong{font-size:.76rem}.tzai__content{padding:13px}.tzai__messages{max-height:172px}.tzai__actions{padding:10px 13px 13px}.tzai__quick{font-size:.68rem}.tzai__privacy{font-size:.61rem}}
@media(max-width:370px){.tzai__panel,.tzai--compact .tzai__panel{left:6px;right:6px}.tzai__actions{grid-template-columns:1fr}}
@media(max-height:620px){.tzai__panel{max-height:calc(100vh - 124px)}.tzai__intro{display:none}.tzai__messages{max-height:135px}}
@media(prefers-reduced-motion:reduce){.tzai__stage,.tzai__pose,.tzai__pose img,.tzai__presence,.tzai__stage:after,.tzai__message.is-thinking span{animation:none!important}.tzai__pose{opacity:0!important}.tzai__pose:first-child{opacity:1!important}.tzai__panel,.tzai__launcher-copy,.tzai__close,.tzai__quick,.tzai__send,.tzai__link{transition:none!important}}
@media(forced-colors:active){.tzai__stage{outline:2px solid CanvasText}.tzai__launcher-copy,.tzai__panel,.tzai__quick,.tzai__input,.tzai__link{border:2px solid CanvasText;background:Canvas;color:CanvasText}.tzai__link--primary,.tzai__send{background:ButtonFace;color:ButtonText}.tzai__presence{background:Highlight}}



/* Assistant usability repair: 2026-09-21 */
.tzai .tzai__panel{height:min(690px,calc(100dvh - 150px));max-height:calc(100dvh - 150px);width:min(430px,calc(100vw - 24px))}
.tzai .tzai__header,.tzai .tzai__actions{flex-shrink:0}
.tzai .tzai__content{display:flex;flex:1;flex-direction:column;overflow:hidden;min-height:0;position:relative}
.tzai .tzai__intro{display:none}
.tzai .tzai__messages{flex:1;min-height:80px;max-height:none!important;overflow:auto}
.tzai .tzai__message{font-size:14px;line-height:1.55;flex-shrink:0}
.tzai.has-conversation .tzai__quick-title,.tzai.has-conversation .tzai__quicks{display:none!important}
.tzai .tzai__quick,.tzai .tzai__link{min-height:44px!important}
.tzai .tzai__input{font-size:16px!important;min-height:48px!important;resize:none;color:#fff!important;background:#171614!important}
.tzai .tzai__send{height:48px!important;min-height:48px!important;width:48px!important}
.tzai .tzai__privacy{font-size:11px;line-height:1.35;color:#d4cec5;margin:6px 0 0}
.tzai .tzai__privacy a{display:inline-flex;align-items:center;min-height:24px}
.tzai .tzai__reset{align-self:flex-end;min-height:32px;padding:4px 8px;margin:0 0 4px;background:transparent;color:#e6d4b6;border:0;font-size:12px;cursor:pointer}
.tzai .tzai__review{position:absolute;inset:0;z-index:2;padding:16px;background:#211f1c;overflow:auto;color:#fff}
.tzai .tzai__review label{display:block;font-size:15px;color:#fff}
.tzai .tzai__review textarea{display:block;width:100%;margin:12px 0;font-size:16px;min-height:130px;color:#fff;background:#171614}
.tzai .tzai__review button{min-height:44px;margin:4px;padding:8px 12px;background:#f3a126;color:#17120c;border-radius:8px}
.tzai__handoff-notice{padding:14px;border-left:4px solid #8a4212;background:#fff6e8;color:#382715}
@media(max-width:767px){
 .tzai .tzai__panel,.tzai.tzai--compact .tzai__panel{inset:8px!important;width:calc(100% - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:14px!important;z-index:2147483000}
 .tzai .tzai__content{padding:10px!important}
 .tzai .tzai__header{min-height:56px;padding:10px 54px 10px 12px}
 .tzai .tzai__actions{padding:8px 10px!important;grid-template-columns:1fr 1fr!important;gap:6px}
 .tzai .tzai__identity small{font-size:11px}
 .tzai .tzai__link{font-size:12px!important}
 .tzai.is-open .tzai__launcher{visibility:hidden}
}
.tzai:not(.has-conversation) .tzai__reset{display:none}
.tzai .tzai__form,.tzai .tzai__privacy,.tzai .tzai__quicks,.tzai .tzai__quick-title,.tzai .tzai__reset{flex-shrink:0}
@media(max-width:767px){.tzai .tzai__quicks{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}.tzai .tzai__quick{flex:0 0 auto;white-space:nowrap}.tzai .tzai__privacy{font-size:11px;line-height:1.3}.tzai .tzai__messages{min-height:50px}.tzai .tzai__actions{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}}
