/* Tokene Feedback Assistant — privacy-first scripted chat, isolated styles. */
.tk-feedback-root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;line-height:1.45;isolation:isolate;position:relative;z-index:99991;color:#ebf7ff}
.tk-feedback-root *{box-sizing:border-box}
.tk-feedback-root [hidden]{display:none!important}
.tkfb-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;overflow:hidden!important;white-space:nowrap!important}
.tkfb-launcher{
 position:fixed;bottom:24px;right:24px;z-index:99992;
 display:flex;align-items:center;gap:12px;padding:11px 18px 11px 11px;
 background:linear-gradient(110deg,#091b2b 0%,#052a33 100%);
 border:1px solid #16bea5;border-radius:19px;cursor:pointer;
 box-shadow:0 12px 35px #0009,0 0 0 3px #02b7aa11;
 color:#ecfdff;min-width:176px;min-height:61px;text-align:start;
 transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.tkfb-launcher:hover{transform:translateY(-3px);border-color:#50e9c9;box-shadow:0 15px 38px #000b,0 0 23px #0bd5bd2b}
.tkfb-launcher:focus-visible,.tkfb-panel button:focus-visible,.tkfb-panel a:focus-visible,
.tkfb-panel textarea:focus-visible,.tkfb-panel input:focus-visible{outline:2px solid #79fcef;outline-offset:3px}
.tkfb-launch-icon{width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;border:1px solid #2de3b8aa;border-radius:14px;background:linear-gradient(135deg,#074c51,#092631);color:#70ffe0}
.tkfb-launch-copy{display:flex;flex-direction:column;gap:1px}
.tkfb-launch-copy strong{font-size:13px;font-weight:750;white-space:nowrap;letter-spacing:-.01em}
.tkfb-launch-copy small{color:#a6c7cc;font-size:10px;white-space:nowrap}
.tkfb-panel{
 position:fixed;z-index:99993;bottom:100px;right:24px;
 width:min(410px,calc(100vw - 24px));max-height:min(650px,calc(100dvh - 122px));
 display:flex;flex-direction:column;overflow:hidden;
 background:linear-gradient(155deg,#091520 0%,#050b13 62%,#08151b 100%);
 border:1px solid #1f5762;border-radius:22px;box-shadow:0 28px 100px #000e,0 0 40px #15acac1a;
 text-align:start;direction:ltr;color:#eefaff
}
.tk-feedback-root[dir=rtl] .tkfb-panel{direction:rtl}
.tkfb-header{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:15px 16px;border-bottom:1px solid #204655;background:linear-gradient(90deg,#09232d,#06111c)}
.tkfb-avatar{width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#10e1ba,#1277af);color:#031821;font-size:21px;font-weight:900}
.tkfb-title{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.tkfb-title strong{font-size:14px;font-weight:800;color:#f5ffff}
.tkfb-title small{font-size:11px;color:#93b2c6}
.tkfb-close{background:transparent!important;border:1px solid #2f5368!important;border-radius:10px!important;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;cursor:pointer!important;color:#cfe6f1!important;font-size:24px!important;padding:0!important;line-height:1!important}
.tkfb-close:hover{background:#143344!important}
.tkfb-log{flex:1 1 auto;min-height:125px;max-height:315px;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 14px;display:flex;align-items:flex-start;flex-direction:column;gap:11px;scrollbar-width:thin;scrollbar-color:#366073 #07111d}
.tkfb-bubble{font-size:13px;line-height:1.55;border-radius:16px;padding:12px 14px;max-width:93%;overflow-wrap:anywhere;white-space:pre-wrap;box-shadow:0 3px 10px #0004}
.tkfb-bubble-bot{align-self:flex-start;background:#142636;border:1px solid #265062;color:#d9f0fb;border-start-start-radius:4px}
.tkfb-bubble-user{align-self:flex-end;background:#0d3e41;border:1px solid #199f91;color:#e9fff8;border-start-end-radius:4px}
.tkfb-compose{padding:14px 16px 16px;border-top:1px solid #203e51;background:#08121e;flex:0 0 auto;overflow-y:auto;max-height:390px}
.tkfb-categories{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.tkfb-choice{
 cursor:pointer;display:flex!important;align-items:center!important;justify-content:flex-start!important;
 padding:13px 11px!important;min-height:50px!important;white-space:normal!important;
 text-align:start!important;background:#0f2834!important;border:1px solid #225066!important;
 border-radius:13px!important;color:#daf3fa!important;font-size:12px!important;font-weight:650!important;
 line-height:1.35!important;transition:border-color .15s ease,background .15s ease!important
}
.tkfb-choice:hover{background:#16404a!important;border-color:#39bfac!important}
.tkfb-choice:last-child:nth-child(odd){grid-column:1/-1}
.tkfb-compose textarea{
 display:block!important;width:100%!important;min-width:0!important;resize:vertical!important;
 max-height:150px!important;min-height:102px!important;border-radius:13px!important;
 background:#0b1f2d!important;border:1px solid #2c5467!important;color:#f5fcff!important;
 padding:12px!important;font-size:13px!important;line-height:1.6!important;
 font-family:inherit!important;box-shadow:none!important
}
.tkfb-compose textarea::placeholder{color:#86a3b1!important;opacity:1}
.tkfb-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.tkfb-meta #tk-feedback-length{font-size:10px;color:#89a7b8;font-variant-numeric:tabular-nums}
.tkfb-important,.tkfb-consent{display:flex;align-items:flex-start;gap:9px;cursor:pointer;color:#c0d7e2;font-size:11px;line-height:1.5}
.tkfb-important input,.tkfb-consent input{margin:3px 0 0!important;accent-color:#1bdabb!important;flex:0 0 auto;width:16px;height:16px}
.tkfb-consent{margin:14px 0 5px}
.tkfb-consent span{flex:1}
.tkfb-privacy{font-size:10px;line-height:1.55;color:#8fa9b8;margin:0 0 10px}
.tkfb-privacy a{color:#72e3d5;text-decoration:underline;text-underline-offset:2px}
.tkfb-actions{display:flex;gap:9px;margin-top:13px}
.tkfb-actions button,.tkfb-finished button{
 cursor:pointer;min-height:44px!important;font-family:inherit!important;
 font-weight:750!important;font-size:12px!important;line-height:1.3!important;
 border-radius:12px!important;padding:10px 14px!important
}
.tkfb-secondary{border:1px solid #3e5968!important;background:#122637!important;color:#d0e3ed!important;flex:0 0 auto}
.tkfb-submit,.tkfb-finished button{border:1px solid #2eebc3!important;background:linear-gradient(100deg,#0cc7aa,#0aa6b2)!important;color:#031c20!important;flex:1}
.tkfb-submit:hover,.tkfb-finished button:hover{filter:brightness(1.1)}
.tkfb-submit:disabled{opacity:.7;cursor:progress}
.tkfb-error{margin:10px 0 0!important;color:#ffb8b8;background:#59202645;border:1px solid #a94b54;border-radius:10px;padding:9px;font-size:11px}
.tkfb-finished p{margin:0 0 12px!important;color:#b9d4df!important;font-size:12px!important;line-height:1.6}
.tkfb-finished button{width:100%}
.tkfb-honeypot{position:absolute!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.tk-feedback-root[dir=rtl] .tkfb-launcher{right:auto;left:24px;padding:11px 11px 11px 18px;direction:rtl}
.tk-feedback-root[dir=rtl] .tkfb-panel{right:auto;left:24px}
@media(max-width:600px){
 .tkfb-launcher{bottom:15px;right:13px;min-width:0;padding:10px 13px;min-height:54px;border-radius:17px}
 .tkfb-launch-icon{width:36px;height:36px;flex-basis:36px}
 .tkfb-panel{bottom:79px;right:12px;left:12px;width:auto;max-height:min(645px,calc(100dvh - 95px));border-radius:17px}
 .tk-feedback-root[dir=rtl] .tkfb-panel{left:12px;right:12px}
 .tk-feedback-root[dir=rtl] .tkfb-launcher{left:13px}
 .tkfb-log{max-height:28dvh;min-height:105px}
 .tkfb-header{padding:12px}
 .tkfb-compose{padding:12px}
}
@media(max-width:350px){
 .tkfb-launch-copy small{display:none}
 .tkfb-launcher{padding:8px 10px;min-height:51px}
 .tkfb-panel{bottom:73px}
 .tkfb-choice{font-size:11px!important;padding:10px 9px!important}
}
@media(prefers-reduced-motion:reduce){
 .tk-feedback-root *, .tk-feedback-root *::before, .tk-feedback-root *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* The open panel already has a close control; do not leave a second launcher behind it. */
.tkfb-launcher[aria-expanded="true"]{opacity:0!important;visibility:hidden!important;pointer-events:none!important}


/* V2: actual Tokene logo in both launcher and assistant header; no new raster asset. */
.tk-feedback-root .tkfb-launcher{
  background:linear-gradient(125deg,#07121c 5%,#06252a 65%,#07161e 100%);
  border:1px solid #c3a765;
  box-shadow:0 13px 34px #000b,0 0 0 1px #0fc6c322,inset 0 1px #e0c98b29;
  min-height:69px;min-width:197px;border-radius:22px;
  gap:12px;padding:10px 19px 10px 10px;
}
.tk-feedback-root .tkfb-launcher:hover{
  border-color:#f4d28a;transform:translateY(-2px);
  box-shadow:0 17px 40px #000d,0 0 25px #1fbdd247,inset 0 1px #fff2b254;
}
.tk-feedback-root .tkfb-launch-icon{
  width:49px;height:49px;flex:0 0 49px;position:relative;overflow:hidden;
  background:radial-gradient(circle at 30% 25%,#16496c,#030e19 80%);
  border-radius:17px;border:1px solid #e7bd67;
  box-shadow:0 0 15px #009eda38,inset 0 0 8px #0581b431;
}
.tk-feedback-root .tkfb-mark-img{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  display:block!important;width:170px!important;height:auto!important;
  max-width:none!important;min-width:170px!important;filter:drop-shadow(0 0 3px #16c4ff77);
  pointer-events:none;
}
.tk-feedback-root .tkfb-launch-copy strong{font-size:14px;color:#f5fcff;letter-spacing:.005em}
.tk-feedback-root .tkfb-launch-copy small{font-size:10px;color:#b4cbd7}
.tk-feedback-root .tkfb-launcher::after{
 content:'';position:absolute;right:9px;top:9px;width:6px;height:6px;
 background:#52e0cf;border-radius:50%;box-shadow:0 0 8px #51d7bc;
 animation:tkfb-brand-glow 4.6s ease-in-out infinite;
}
.tk-feedback-root[dir=rtl] .tkfb-launcher::after{right:auto;left:9px}
@keyframes tkfb-brand-glow{0%,100%{opacity:.75}50%{opacity:1;box-shadow:0 0 12px #54eadb}}
.tk-feedback-root .tkfb-avatar{
 width:112px;height:46px;flex:0 0 112px;border:0;
 background:none;color:inherit;display:flex;align-items:center;justify-content:flex-start;
 border-radius:0;overflow:visible;
}
.tk-feedback-root .tkfb-logo-img{display:block!important;width:112px!important;height:auto!important;max-height:44px!important;max-width:none!important;object-fit:contain!important}
.tk-feedback-root .tkfb-header{background:linear-gradient(105deg,#0b1d2b,#06121b 67%);border-bottom:1px solid #24475a}
.tk-feedback-root .tkfb-title{gap:3px}
.tk-feedback-root .tkfb-title strong{font-size:13px}
.tk-feedback-root .tkfb-panel{border-color:#2a6f77;box-shadow:0 32px 92px #000f,0 0 40px #12b7c521}
@media(max-width:600px){
 .tk-feedback-root .tkfb-launcher{min-height:59px;min-width:0;padding:7px 13px 7px 8px}
 .tk-feedback-root .tkfb-launch-icon{width:43px;height:43px;flex:0 0 43px;border-radius:15px}
 .tk-feedback-root .tkfb-mark-img{width:154px!important;min-width:154px!important}
 .tk-feedback-root .tkfb-avatar{width:87px;flex-basis:87px;height:37px}
 .tk-feedback-root .tkfb-logo-img{width:87px!important;max-height:36px!important}
 .tk-feedback-root .tkfb-title strong{font-size:12px}
 .tk-feedback-root .tkfb-title small{font-size:10px}
}
@media(max-width:350px){
 .tk-feedback-root .tkfb-avatar{width:73px;flex-basis:73px}
 .tk-feedback-root .tkfb-logo-img{width:73px!important}
 .tk-feedback-root .tkfb-title strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .tk-feedback-root .tkfb-launcher::after{animation:none!important}
}
