:root{--rose-a:#ec236f;--rose-b:#ff3979}
.rose-bubble{position:fixed;right:14px;bottom:86px;z-index:86;border:1px solid rgba(255,255,255,.18);background:rgba(10,10,16,.9);color:#fff;border-radius:999px;padding:8px;display:flex;align-items:center;gap:10px;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 28px rgba(236,35,111,.72),0 0 42px rgba(0,174,255,.24),0 18px 46px rgba(0,0,0,.42);cursor:pointer;font:inherit;backdrop-filter:blur(16px)}
.rose-bubble.rose-wiggle{animation:roseWiggle .55s ease both}@keyframes roseWiggle{0%,100%{transform:rotate(0) scale(1)}20%{transform:rotate(-5deg) scale(1.03)}50%{transform:rotate(5deg) scale(1.04)}80%{transform:rotate(-2deg) scale(1.02)}}
.rose-avatar{width:46px;height:46px;border-radius:17px;overflow:hidden;background:#05050a;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.2);box-shadow:0 0 18px rgba(236,35,111,.55),0 0 24px rgba(0,174,255,.22)}
.rose-avatar img{width:100%;height:100%;object-fit:cover;display:block}.rose-avatar span{font-weight:950;color:#fff}
.rose-nudge{position:fixed;right:10px;bottom:146px;z-index:85;width:auto;max-width:min(300px,calc(100vw - 28px));background:rgba(10,10,16,.94);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:10px 12px;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 0 26px rgba(236,35,111,.42),0 18px 48px rgba(0,0,0,.42);opacity:0;transform:translateY(8px);pointer-events:none;transition:.25s ease;font-size:12px;line-height:1.35;white-space:normal;transform-origin:bottom right}
.rose-nudge.show{opacity:1;transform:none}
.rose-panel{position:fixed;right:18px;bottom:152px;width:min(420px,calc(100vw - 28px));z-index:87;max-height:min(650px,calc(100dvh - 118px));display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.18);background:rgba(10,10,16,.97);backdrop-filter:blur(22px);border-radius:24px;color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 36px rgba(236,35,111,.2);opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:.2s ease;overflow:hidden;box-sizing:border-box}
.rose-panel.show{opacity:1;transform:none;pointer-events:auto}
.rose-head{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(236,35,111,.18),rgba(0,174,255,.08));flex:0 0 auto}
.rose-head .rose-avatar{width:38px;height:38px;border-radius:14px}.rose-title{flex:1;min-width:0}.rose-title strong{display:block;font-size:14px}.rose-title small{display:block;font-size:11px;color:#cfd3df;margin-top:2px}.rose-online-dot{width:8px;height:8px;border-radius:999px;background:#22c55e;display:inline-block;margin-right:6px;box-shadow:0 0 0 3px rgba(34,197,94,.14),0 0 10px rgba(34,197,94,.55);vertical-align:middle}
.rose-close{border:0;background:rgba(255,255,255,.1);color:#fff;width:38px;height:38px;border-radius:999px;font-size:22px;cursor:pointer;flex:0 0 38px;display:grid;place-items:center}
.rose-chat{padding:10px;overflow:auto;overscroll-behavior:contain;flex:1;display:flex;flex-direction:column;gap:8px}.rose-msg{max-width:90%;padding:10px 12px;border-radius:16px;font-size:13px;line-height:1.38;white-space:pre-wrap}.rose-msg.bot{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-bottom-left-radius:6px;color:#edf0f7}.rose-msg.user{align-self:flex-end;background:linear-gradient(135deg,rgba(236,35,111,.94),rgba(255,57,121,.88));border-bottom-right-radius:6px}
.rose-actions{display:flex;gap:7px;flex-wrap:wrap;margin:2px 0 4px}.rose-actions button{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer}.rose-typing{min-height:24px;padding-left:4px;display:flex;align-items:center}
.rose-input-row{display:flex;gap:7px;padding:8px;border-top:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);flex:0 0 auto}.rose-attach{width:42px;min-width:42px;height:42px;display:grid;place-items:center;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;font-weight:950;cursor:pointer}
.rose-input-row textarea{flex:1;min-width:0;min-height:42px;max-height:120px;resize:none;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:16px;padding:11px;font:inherit;font-size:13px;outline:none}.rose-input-row textarea::placeholder{color:rgba(255,255,255,.55)}.rose-input-row button{border:0;background:linear-gradient(135deg,var(--rose-a),var(--rose-b));color:#fff;border-radius:16px;padding:0 12px;font-weight:950;cursor:pointer}.rose-thumb{width:86px;height:64px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.18);margin-top:6px}
.rose-video-modal{position:fixed;inset:0;z-index:96;background:rgba(0,0,0,.72);display:none;place-items:center;padding:18px}.rose-video-modal.show{display:grid}.rose-video-box{width:min(860px,100%);background:#080811;border:1px solid rgba(255,255,255,.18);border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.6)}.rose-video-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.1)}.rose-video-head button{border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:999px;width:34px;height:34px;font-size:20px}.rose-video-frame{aspect-ratio:16/9;display:grid;place-items:center;background:linear-gradient(135deg,rgba(236,35,111,.25),rgba(0,174,255,.16));color:#fff;text-align:center;padding:20px}
@media(max-width:760px){.rose-panel{left:10px!important;right:10px!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:calc(100vw - 20px)!important;max-height:min(70dvh,calc(100svh - 104px))!important;border-radius:20px!important}.rose-panel.rose-keyboard{top:8px!important;bottom:auto!important;max-height:calc(var(--rose-visual-height,100svh) - 16px)!important}.rose-chat{max-height:calc(var(--rose-visual-height,100svh) - 170px)!important}.rose-msg{font-size:13px!important;max-width:92%!important}.rose-bubble{right:14px!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}.rose-nudge{right:10px!important;bottom:calc(138px + env(safe-area-inset-bottom,0px))!important;max-width:min(286px,calc(100vw - 26px))!important}}


/* TTG VISUAL VERIFIED FIX: flow card must not inherit old grid layout */
.ttg-flow-card-final{display:block!important;}
.ttg-flow-card-final .ttg-flow-top,.ttg-flow-card-final .ttg-flow-bottom{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;}
@media(max-width:1024px){.ttg-flow-card-final{display:block!important}.ttg-flow-card-final .ttg-flow-top,.ttg-flow-card-final .ttg-flow-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ttg-flow-card-final .ttg-flow-step{width:100%!important;max-width:100%!important;min-width:0!important}.mobile-sticky-cta{display:flex!important}}


/* TTG verified Rose avatar + plain request wording patch */
.rose-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}


/* Rose mobile/tablet keyboard + no zoom patch */
.rose-input-row textarea,
.rose-input-row button,
.rose-attach{font-size:16px!important}
.rose-panel{max-height:min(650px,calc(100dvh - 118px))!important}
@media(max-width:900px){
  html,body{overflow-x:hidden!important}
  .rose-panel{
    left:8px!important;
    right:8px!important;
    bottom:calc(max(10px,var(--rose-keyboard-offset,0px)) + env(safe-area-inset-bottom,0px) + 8px)!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(var(--rose-visual-height,100svh) - 18px)!important;
    border-radius:18px!important;
  }
  .rose-panel.rose-keyboard{
    bottom:calc(var(--rose-keyboard-offset,0px) + env(safe-area-inset-bottom,0px) + 6px)!important;
  }
  .rose-chat{max-height:calc(var(--rose-visual-height,100svh) - 154px)!important}
  .rose-input-row{padding:8px!important;gap:8px!important}
  .rose-input-row textarea{min-height:46px!important;line-height:1.25!important}
  .rose-input-row button{min-width:68px!important}
}


/* TTG Rose Fast Fix v2: keep request shortcut useful but never over Rose/keyboard */
body.ttg-rose-open .mobile-sticky-cta,
body.ttg-keyboard-open .mobile-sticky-cta,
.mobile-sticky-cta.ttg-hide-for-rose{
  display:none!important;
  opacity:0!important;
  pointer-events:none!important;
  transform:translateY(120px)!important;
}


/* ROSE_BUILT_IN_ATTACH_V5 */
.rose-input-row{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.1);background:rgba(10,10,16,.98);box-sizing:border-box}
.rose-attach{width:42px;height:42px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#fff;display:inline-grid;place-items:center;cursor:pointer;flex:0 0 42px;position:relative;transition:.18s ease;box-sizing:border-box}
.rose-attach:hover,.rose-attach:focus-within{background:rgba(236,35,111,.22);box-shadow:0 0 20px rgba(236,35,111,.28)}
.rose-attach-icon{width:21px;height:21px;display:block;pointer-events:none}
.rose-attach-count{display:none;position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;border-radius:999px;background:#ef4444;color:#fff;font:800 11px/17px system-ui;text-align:center;padding:0 4px;box-shadow:0 3px 10px rgba(0,0,0,.25);box-sizing:border-box}
.rose-attach-count.show{display:block}
.rose-thumb{display:block;width:120px;max-width:100%;max-height:96px;object-fit:cover;border-radius:12px;margin-top:8px;border:1px solid rgba(255,255,255,.16)}
@media (max-width:760px){.rose-input-row{gap:7px;padding:9px}.rose-attach{width:40px;height:40px;flex-basis:40px}.rose-attach-icon{width:20px;height:20px}}


/* ROSE_COMPLETE_V6 input polish: keep attach inside widget and restore proper Send button size */
.rose-input-row{align-items:flex-end!important;gap:10px!important;padding:10px!important;}
.rose-input-row textarea{min-height:46px!important;font-size:16px!important;line-height:1.25!important;border-radius:18px!important;}
.rose-attach{width:46px!important;height:46px!important;min-width:46px!important;flex:0 0 46px!important;border-radius:18px!important;background:rgba(255,255,255,.09)!important;}
.rose-attach-icon{width:24px!important;height:24px!important;}
#rose-send{height:46px!important;min-width:112px!important;flex:0 0 112px!important;padding:0 18px!important;border-radius:22px!important;font-size:16px!important;font-weight:950!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;}
@media(max-width:430px){.rose-input-row{gap:8px!important;padding:9px!important}.rose-attach{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important}#rose-send{min-width:96px!important;flex-basis:96px!important;padding:0 14px!important}.rose-input-row textarea{min-height:44px!important}}
@media(max-width:360px){#rose-send{min-width:84px!important;flex-basis:84px!important;padding:0 10px!important}.rose-attach{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important}}


/* ROSE V7.2 human dots indicator */
.rose-dot-bubble{display:inline-flex;align-items:center;gap:4px;min-height:18px;padding:7px 10px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);box-shadow:0 8px 22px rgba(0,0,0,.18)}
.rose-dot-bubble i{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.82);display:block;animation:roseDotPulse 1s infinite ease-in-out}
.rose-dot-bubble i:nth-child(2){animation-delay:.16s}
.rose-dot-bubble i:nth-child(3){animation-delay:.32s}
@keyframes roseDotPulse{0%,80%,100%{transform:translateY(0);opacity:.38}40%{transform:translateY(-3px);opacity:1}}

