.has-tm-buddy { --buddy-gap: clamp(.7rem, 2vw, 1.4rem); }
.has-tm-buddy .footer { padding-bottom: 4rem; }
.tm-buddy { position: fixed; inset: auto var(--buddy-gap) calc(var(--buddy-gap) + env(safe-area-inset-bottom, 0px)) auto; z-index: 30; }
.tm-buddy[hidden] { display: none; }
.tm-buddy-launch { display: inline-flex; align-items: center; gap: .48rem; min-height: 52px; padding: .28rem .95rem .28rem .34rem; border: 1px solid #0d5139; border-radius: 30px; background: #126046; color: #fff; box-shadow: 0 8px 26px #102f2570; font: 750 .94rem/1.3 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.tm-buddy-launch:hover { background: #0a4734; }
.tm-buddy-avatar { display: block; flex: none; object-fit: contain; border-radius: 50%; background: #fff; }
.tm-buddy-panel { position: fixed; inset: auto var(--buddy-gap) calc(var(--buddy-gap) + env(safe-area-inset-bottom, 0px) + 62px) var(--buddy-gap); margin: 0 0 0 auto; width: auto; max-width: 380px; height: min(480px, calc(100dvh - 94px)); max-height: none; padding: 0; border: 1px solid #bcd3c9; border-radius: 17px; background: #fff; box-shadow: 0 18px 58px #102f2540; color: var(--navy); overflow: hidden; }
.tm-buddy-panel[open] { display: flex; flex-direction: column; }
.tm-buddy-panel .tm-buddy-header { display: flex; align-items: center; gap: .62rem; padding: .72rem .8rem; border-top: 3px solid var(--saffron); background: #11543e; color: #fff; }
.tm-buddy-header h2 { font-size: 1.07rem; line-height: 1.2; letter-spacing: 0; margin: 0; }
.tm-buddy-header p { font-size: .81rem; line-height: 1.35; margin: .15rem 0 0; color: #fff; }
.tm-buddy-close { margin-left: auto; color: #0a4834; background: #fff; border: 0; border-radius: 7px; width: 39px; height: 39px; font: 500 1.3rem/1 system-ui, sans-serif; cursor: pointer; }
.tm-buddy-close:focus-visible { outline-color: #ffc07e; }
.tm-buddy-main { overflow: auto; flex: 1; min-height: 0; padding: .85rem; }
.tm-buddy-intro { padding: .66rem .76rem; margin: 0 0 .75rem; color: var(--navy); border-left: 3px solid var(--saffron); border-radius: 0 10px 10px 0; background: #f1f7f4; font-size: .92rem; }
.tm-buddy-choices { display: flex; flex-wrap: wrap; gap: .39rem; }
.tm-buddy-choices button, .tm-buddy-choices a { border: 1px solid #b8d1c6; border-radius: 9px; padding: .44rem .61rem; min-height: 38px; background: #fff; color: #124b39; font: 650 .83rem/1.4 "Segoe UI", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tm-buddy-choices button:hover, .tm-buddy-choices a:hover { background: #edf5f1; border-color: #126046; }
.tm-buddy-status { margin: .85rem 0 .55rem; color: #384950; font-size: .84rem; font-weight: 700; }
.tm-buddy-status:empty { display: none; }
.tm-buddy-results { display: grid; gap: .52rem; }
.tm-buddy-result { padding: .66rem .72rem; border: 1px solid var(--line); border-radius: 9px; }
.tm-buddy-result h3 { font-size: .96rem; margin: 0 0 .3rem; letter-spacing: 0; }
.tm-buddy-result p { margin: 0; font-size: .86rem; }
.tm-buddy-result-action { display: inline-block; margin-top: .3rem; font-size: .83rem; }
.tm-buddy-footer { padding: .72rem .85rem .59rem; border-top: 1px solid var(--line); }
.tm-buddy-footer p { font-size: .77rem; margin: .39rem 0 0; }
.tm-buddy-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem; }
.tm-buddy-search input { font-size: 1rem; padding: .42rem .55rem; }
.tm-buddy-search button { border: 1px solid #126046; background: #126046; color: #fff; padding: .39rem .65rem; border-radius: 7px; cursor: pointer; font: 750 .88rem/1.4 "Segoe UI", system-ui, sans-serif; }
.tm-buddy-search button:hover { background: #0a4835; }
