/* T-DECKS MAX entry — scoped, independent from the old manager chat. */
.td-max{--tdm-ink:#30241f;--tdm-orange:#f96408;--tdm-paper:#fffaf5;position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:1200;width:278px;max-width:calc(100vw - 24px);font-family:inherit;font-size:14px;line-height:1.45;color:var(--tdm-ink);text-align:left;isolation:isolate}
.td-max *{box-sizing:border-box}.td-max a{text-decoration:none}.td-max svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.td-max button{font:inherit;cursor:pointer;margin:0}.td-max a:focus-visible,.td-max button:focus-visible{outline:3px solid #fb8a3b;outline-offset:4px}
.td-max__dock{position:relative;display:flex;align-items:stretch;border-radius:20px;background:var(--tdm-ink);box-shadow:0 8px 32px #2e1f2933,0 2px 5px #2e1f2915;transition:transform .22s,box-shadow .22s}
.td-max__dock:hover{transform:translateY(-3px);box-shadow:0 12px 36px #2e1f2940}
.td-max__launch{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:13px 10px 13px 14px;color:#fff!important;border-radius:20px 0 0 20px}
.td-max__symbol{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:14px;background:transparent;color:#251a14}
.td-max__symbol img{display:block;width:40px;height:40px;object-fit:contain}.td-max__launch-copy{display:flex;flex-direction:column;gap:3px}.td-max__launch-copy strong{font-size:14px;font-weight:650;letter-spacing:-.02em;white-space:nowrap}.td-max__launch-copy>span{font-size:11px;color:#e8d6cb;white-space:nowrap}.td-max__click{display:block;flex:none;width:27px;height:30px;margin-left:auto;color:#ffb780;transform-origin:50% 80%;animation:tdm-tap 2.8s ease-in-out 3}.td-max__click svg{width:27px;height:30px}.td-max__click-rays{animation:tdm-rays 2.8s ease-in-out 3}
.td-max__toggle{display:grid;place-items:center;flex:none;width:39px;padding:0!important;color:#ffe9da!important;border:0!important;border-left:1px solid #ffffff24!important;border-radius:0 20px 20px 0;background:transparent!important;min-height:66px;transition:background .2s}
.td-max__toggle:hover{background:#ffffff12!important}.td-max__toggle svg{width:21px;height:21px;transition:transform .2s}.td-max__toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.td-max__card{position:absolute;right:0;bottom:calc(100% + 14px);width:358px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 126px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;background:var(--tdm-paper);border:1px solid #eddfd4;border-radius:24px;box-shadow:0 22px 70px #30241f2b,0 5px 18px #30241f12;animation:tdm-enter .3s cubic-bezier(.2,.7,.2,1) both;scrollbar-width:thin}
.td-max__card[hidden]{display:none!important}.td-max__top{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:11px;padding:18px 18px 15px;border-bottom:1px solid #e9ddd4;background:linear-gradient(110deg,#fffaf5,#f2e9e1)}
.td-max__avatar{display:grid;place-items:center;position:relative;width:42px;height:42px;flex:none;border-radius:14px;background:var(--tdm-ink);color:#fff;font-size:36px;font-weight:700;line-height:1;padding-bottom:6px;letter-spacing:-.12em}.td-max__avatar span{position:absolute;right:9px;bottom:8px;color:var(--tdm-orange);font-size:30px;line-height:.45}
.td-max__brand{display:block;font-size:12px;font-weight:750;letter-spacing:.08em}.td-max__identity{display:block;margin-top:3px;color:#79675c;font-size:11px}.td-max__identity b{font-size:10px;font-weight:700;letter-spacing:.03em;color:#7050ae;background:#eae0fa;border-radius:5px;padding:2px 5px}
.td-max__close{margin-left:auto!important;width:38px;height:38px;display:grid;place-items:center;border:0!important;border-radius:50%;background:transparent!important;color:#826e62!important;flex:none}.td-max__close:hover{background:#eaddd1!important}.td-max__close svg{width:21px;height:21px}
.td-max__copy{padding:23px 24px 21px}.td-max__eyebrow{font-size:8px!important;font-weight:650;line-height:1.5!important;letter-spacing:.09em;margin:0 0 12px!important;color:#8a5c3f}.td-max h2{font-size:27px!important;line-height:1.17!important;letter-spacing:-.045em!important;font-weight:650!important;color:var(--tdm-ink)!important;margin:0 0 12px!important;overflow-wrap:normal}.td-max h2 span{color:#df5708}.td-max__intro{font-size:13px!important;line-height:1.6!important;margin:0 0 17px!important;color:#766357}
.td-max__topics{list-style:none!important;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 22px!important;padding:0!important}.td-max__topics li{border:1px solid #e6d7ca;border-radius:8px;padding:6px 8px;font-size:10px;line-height:1.3;color:#6d5445;background:#fcf4ec}.td-max__topics li::before{content:none!important}
.td-max__cta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;min-height:52px;border-radius:13px;background:var(--tdm-orange);color:#251a14!important;font-size:14px;font-weight:700;box-shadow:0 5px 14px #f9640826;transition:background .2s,transform .2s}.td-max__cta:hover{background:#e95600;transform:translateY(-1px)}.td-max__cta svg{width:21px;height:21px}
.td-max__browser{display:block;text-align:center;font-size:11px;color:#7050a3!important;margin:11px 0 16px;min-height:29px;padding:5px 0}.td-max__browser:hover{text-decoration:underline}.td-max__browser span{padding-left:4px}.td-max__expert{margin:0!important;padding-top:14px;border-top:1px solid #e9ddd4;font-size:11px!important;line-height:1.6!important;color:#786355}
@keyframes tdm-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tdm-tap{0%,70%,90%,100%{transform:translateY(0) scale(1)}78%{transform:translateY(2px) scale(.91)}}
@keyframes tdm-rays{0%,68%,92%,100%{opacity:.3}74%,84%{opacity:1}}
@media(max-width:600px){.td-max{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:270px}.td-max__launch{padding:10px 9px 10px 11px;gap:9px}.td-max__symbol{width:36px;height:36px;border-radius:12px}.td-max__symbol img{width:36px;height:36px}.td-max__launch-copy strong{font-size:13px}.td-max__launch-copy>span{font-size:10px}.td-max__toggle{width:36px;min-height:58px}.td-max__card{width:340px;max-width:calc(100vw - 40px);bottom:calc(100% + 10px);max-height:calc(100dvh - 96px - env(safe-area-inset-bottom));border-radius:21px}.td-max__top{padding:14px 15px 12px}.td-max__close{width:44px;height:44px}.td-max__copy{padding:20px}.td-max h2{font-size:26px!important}.td-max__toggle{min-width:44px}.td-max__browser{min-height:44px;display:flex;align-items:center;justify-content:center;margin:5px 0 10px}}
@media(prefers-reduced-motion:reduce){.td-max *,.td-max *::before,.td-max *::after{animation:none!important;transition:none!important}.td-max__dock:hover,.td-max__cta:hover{transform:none}}
@media print{.td-max{display:none!important}}
