.tca{box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;gap:.75rem;width:100%;max-width:1200px;margin:0 auto;padding:.5rem 16px 0;min-height:52px}
.tca-start,.tca-end{min-width:0}.tca-end{margin-inline-start:auto}
.tca~.layout{padding-block-start:.5rem}
@media (min-width:768px){.tca{padding-inline:40px;max-width:800px}}
@media (min-width:1024px){.tca{max-width:1200px}}
.tca :where(button,a){font:inherit;color:inherit}
.tca-link{min-height:44px;padding:0 1rem;border:0;border-radius:999px;background:color-mix(in srgb,var(--surface,#fff) 82%,transparent);color:var(--ink,#111);font-size:.875rem;font-weight:500;text-decoration:none;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.tca-link:hover{background:var(--surface,#fff)}
.tca-chip{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;max-width:min(50vw,18rem);padding:.25rem .625rem .25rem .25rem;border:1px solid var(--line,#ddd);border-radius:999px;background:var(--surface,#fff);color:var(--ink,#111);font-size:.875rem;cursor:pointer;box-shadow:var(--shadow-md,0 1px 3px rgba(0,0,0,.12))}
.tca-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tca-chev{width:1rem;height:1rem;flex:none;color:var(--ink-muted,#555)}
.tca-ini{display:inline-grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:999px;background:var(--brand,#0f766e);color:var(--on-brand,#fff);font-size:.75rem;font-weight:600;letter-spacing:.02em}
.tca-ini svg{width:1rem;height:1rem}
.tca-logo{background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);overflow:hidden}
.tca-logo img{position:relative;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:999px;object-fit:contain}
.tca-me{background:var(--surface-subtle,#f3f4f6);color:var(--ink,#111)}
.tca-avatar{position:relative;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;max-width:min(45vw,16rem);padding:.25rem .625rem .25rem .25rem;border:1px solid var(--line,#ddd);border-radius:999px;background:var(--surface,#fff);color:var(--ink,#111);font-size:.875rem;cursor:pointer;box-shadow:var(--shadow-md,0 1px 3px rgba(0,0,0,.12))}
.tca-face{position:relative;overflow:hidden;display:inline-grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:999px;background:var(--brand,#0f766e);color:var(--on-brand,#fff);font-size:.75rem;font-weight:600}
.tca-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:999px}
.tca-logo img::after,.tca-face img::after{content:attr(data-ini);position:absolute;inset:0;display:grid;place-items:center;background:var(--brand,#0f766e);color:var(--on-brand,#fff);font:inherit;font-weight:600}
.tca-link:focus-visible,.tca-chip:focus-visible,.tca-avatar:focus-visible,.tca-pop :focus-visible{outline:2px solid var(--brand,#0f766e);outline-offset:2px}
.tca-pop{margin:0;padding:.5rem;width:min(20rem,calc(100vw - 1.5rem));max-height:calc(100dvh - 5rem);overflow:auto;border:1px solid var(--line,#ddd);border-radius:var(--r-lg,14px);background:var(--surface,#fff);color:var(--ink-body,#222);box-shadow:var(--shadow-lg,0 12px 32px rgba(0,0,0,.18));font-size:.9375rem}
.tca-pop:popover-open{position:fixed;inset:auto;inset-block-start:3.75rem}
#tca-acting:popover-open{inset-inline-start:.75rem}
#tca-signin:popover-open,#tca-me:popover-open{inset-inline-end:.75rem}
@supports (position-anchor:--a){
.tca-chip{anchor-name:--tca-chip}.tca-avatar,.tca-link{anchor-name:--tca-end}
#tca-acting:popover-open{position-anchor:--tca-chip;inset:auto;top:calc(anchor(bottom) + .5rem);inset-inline-start:anchor(start);position-try-fallbacks:flip-inline}
#tca-signin:popover-open,#tca-me:popover-open{position-anchor:--tca-end;inset:auto;top:calc(anchor(bottom) + .5rem);inset-inline-end:anchor(end);position-try-fallbacks:flip-inline}
}
.tca-head{display:flex;align-items:center;justify-content:space-between;padding:.25rem .25rem .5rem .5rem}
.tca-head h2{margin:0;font-size:1rem;font-weight:600;color:var(--ink,#111)}
.tca-x{display:inline-grid;place-items:center;width:44px;height:44px;margin:-.5rem -.25rem -.5rem 0;border:0;border-radius:999px;background:transparent;cursor:pointer;color:var(--ink-muted,#555)}
.tca-x svg{width:1rem;height:1rem}
.tca-ways{display:grid;gap:.5rem;padding:0 .25rem}
.tca-btn{display:flex;align-items:center;justify-content:center;gap:.625rem;min-height:44px;padding:0 1rem;border:1px solid var(--line-strong,#bbb);border-radius:999px;background:var(--surface,#fff);color:var(--ink,#111);font-weight:500;cursor:pointer}
.tca-btn svg{width:1.125rem;height:1.125rem;flex:none}
.tca-frame{display:block;width:100%;height:52px;border:0;color-scheme:normal}
.tca-btn:hover,.tca-item:hover,.tca-row:hover,.tca-x:hover{background:var(--surface-subtle,#f3f4f6)}
.tca-legal{margin:.75rem .5rem .25rem;font-size:.8125rem;color:var(--ink-muted,#555)}
.tca-legal a{color:inherit}
.tca-h{margin:.25rem .5rem .5rem;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-muted,#555)}
.tca-list{list-style:none;margin:0;padding:0}
.tca-item,.tca-row{display:flex;align-items:center;gap:.75rem;width:100%;min-height:44px;padding:.375rem .5rem;border:0;border-radius:var(--r-md,10px);background:transparent;text-align:start;text-decoration:none;cursor:pointer;color:var(--ink,#111)}
.tca-item[aria-current=true]{font-weight:600}
.tca-text{display:grid;flex:1;min-width:0}
.tca-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tca-text small{color:var(--ink-muted,#555);font-size:.8125rem;font-weight:400}
.tca-tick{width:1rem;height:1rem;flex:none;color:var(--brand,#0f766e)}
.tca-menu form{margin:0}
.tca-menu>.tca-row,.tca-menu>form{border-block-start:1px solid var(--line,#ddd);margin-block-start:.375rem;padding-block-start:.375rem}
.tca-menu>form>.tca-row{margin:0}
.tca-who{display:grid;gap:.125rem;margin:.25rem .5rem .5rem;min-width:0}
.tca-who strong{color:var(--ink,#111);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tca-who span{color:var(--ink-muted,#555);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){.tca-pop:popover-open{animation:tca-in .14s ease-out}}
@keyframes tca-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (forced-colors:active){.tca-link,.tca-chip,.tca-avatar,.tca-pop{border:1px solid CanvasText}}
.tca-badge{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;margin-inline-start:auto;padding:0 .375rem;border-radius:999px;background:var(--brand,#0f766e);color:var(--on-brand,#fff);font-size:.75rem;font-weight:700}
.tca-avatar[data-unread]::after{content:"";position:absolute;inset-block-start:-2px;inset-inline-start:1.75rem;width:.75rem;height:.75rem;border:2px solid var(--surface,#fff);border-radius:999px;background:var(--danger,#b42318)}
.tcp{position:fixed;z-index:50;inset-block-end:1rem;inset-inline-end:1rem;display:flex;flex-direction:column;width:min(24rem,calc(100vw - 2rem));height:min(36rem,calc(100dvh - 2rem));border:1px solid var(--line,#ddd);border-radius:var(--r-lg,14px);background:var(--surface,#fff);color:var(--ink-body,#222);box-shadow:var(--shadow-lg,0 12px 32px rgba(0,0,0,.18));font-size:.9375rem;overflow:hidden}
.tcp[hidden]{display:none}
@media (max-width:600px){.tcp{inset:0;width:100%;height:100dvh;border:0;border-radius:0}}
.tcp :where(button,a,input,select,textarea){font:inherit;color:inherit}
.tcp-head{display:flex;align-items:center;gap:.25rem;padding:.5rem .5rem .5rem 1rem;border-block-end:1px solid var(--line,#ddd)}
.tcp-head h2{flex:1;min-width:0;margin:0;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcp-head h2:focus{outline:none}
.tcp-back{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:999px;background:transparent;cursor:pointer}.tcp-back svg{width:1rem;height:1rem}
[dir=rtl] .tcp-back svg{transform:scaleX(-1)}
.tcp-body{flex:1;display:flex;flex-direction:column;min-height:0;overflow:auto}
.tcp-list{list-style:none;margin:0;padding:.25rem}
/* The portal (S5, §5.7, §5.8): drawn by the panel script from /__me/relationship; first in the side column on a desktop, after the Follow row below that. */
.rel{display:grid;gap:1rem;margin:1rem 0;padding:1rem;border:1px solid var(--line,#ddd);border-radius:var(--r-lg,16px);background:var(--surface,#fff);color:var(--ink,#111)}
.side .rel{margin:0}
.rel-block h3{margin:0 0 .25rem;font-size:1rem;font-weight:600}
.rel-block+.rel-block{border-block-start:1px solid var(--line,#ddd);padding-block-start:1rem}
.rel-list{list-style:none;margin:0;padding:0}
.rel-list li{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .5rem}
.rel-row{display:grid;flex:1 1 12rem;min-width:0;min-height:44px;align-content:center;padding:.375rem 0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:pointer}
.rel-row span{overflow-wrap:anywhere}
.rel-row small{color:var(--ink-muted,#555);font-size:.8125rem}
a.rel-row:hover span,button.rel-row:hover span{text-decoration:underline}
.rel-ask{display:inline-flex;align-items:center;min-height:44px;padding:0 .875rem;border:1px solid var(--line-strong,#bbb);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:.875rem;text-decoration:none;cursor:pointer}
.rel-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 0}
.rel-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 1rem;border:1px solid var(--line-strong,#bbb);border-radius:999px;color:inherit;font-weight:600;text-decoration:none}
.rel-primary{border-color:var(--brand,#0f766e);background:var(--brand,#0f766e);color:var(--on-brand,#fff)}
.rel-ask:hover,.rel-btn:not(.rel-primary):hover{background:var(--surface-subtle,#f3f4f6)}
:where(.rel-row,.rel-ask,.rel-btn):focus-visible{outline:2px solid var(--brand,#0f766e);outline-offset:2px}
@media (forced-colors:active){.rel{border:1px solid CanvasText}.rel-primary{border:1px solid ButtonText}}
.tcp-item{display:flex;align-items:center;gap:.75rem;width:100%;min-height:44px;padding:.5rem .75rem;border:0;border-radius:var(--r-md,10px);background:transparent;text-align:start;cursor:pointer;text-decoration:none;color:var(--ink,#111)}
.tcp-item:hover,.tcp-back:hover{background:var(--surface-subtle,#f3f4f6)}
.tcp-item .tcp-text{flex:1;min-width:0}.tcp-item .tcp-text>*{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.tcp-text{text-decoration:none;color:inherit}a.tcp-text>span:first-child{text-decoration:underline;text-underline-offset:.2em}
.tcp-item small{color:var(--ink-muted,#555);font-size:.8125rem}
.tcp-dot{width:.5rem;height:.5rem;flex:none;border-radius:999px;background:var(--brand,#0f766e)}
.tcp-sub{margin:.75rem 1rem .25rem;color:var(--ink-muted,#555);font-size:.8125rem;font-weight:600}
.tcp-empty{margin:1rem;color:var(--ink-muted,#555)}
.tcp-msgs{flex:1;display:flex;flex-direction:column;gap:.5rem;padding:1rem;list-style:none;margin:0}
/* A conversation as a chat window (docs/ASSISTANTS.md §29): the messages scroll above the message box, which stays put. */
.tcp-scroll{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain}
.tcp-pend{flex:none;padding-block:0}.tcp-pend:empty,.tcp-status:empty{display:none}
.tcp-msg[data-pending]{opacity:.7}
.tcp-status{padding:0 1rem .5rem}
.tcp-typing{display:inline-flex;align-items:center;gap:.5rem;color:var(--ink-muted,#555);font-size:.875rem}
.tcp-dots{display:inline-flex;gap:3px}.tcp-dots i{width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.3;animation:tcp-blink 1.2s infinite ease-in-out}
.tcp-dots i:nth-child(2){animation-delay:.2s}.tcp-dots i:nth-child(3){animation-delay:.4s}
@keyframes tcp-blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.tcp-dots i{animation:none;opacity:.7}}
.tcp-handed{margin:0}
.tcp-jump{position:sticky;inset-block-end:.5rem;align-self:center;margin-block-start:auto;box-shadow:var(--shadow-lg,0 6px 16px rgba(0,0,0,.18))}
.tcp-msg{max-width:85%;padding:.5rem .75rem;border-radius:var(--r-md,10px);background:var(--surface-subtle,#f3f4f6);white-space:pre-wrap;overflow-wrap:anywhere}
.tcp-msg strong{font-weight:650}.tcp-msg a{color:inherit}.tcp-msg code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em}
.tcp-msg[data-from=you]{align-self:flex-end;background:color-mix(in srgb,var(--brand,#0f766e) 14%,var(--surface,#fff))}
.tcp-meta{display:block;margin-block-start:.25rem;color:var(--ink-muted,#555);font-size:.75rem}
.tcp-compose{display:grid;gap:.5rem;padding:.75rem;border-block-start:1px solid var(--line,#ddd)}
.tcp-compose textarea,.tcp-form input,.tcp-form select{width:100%;min-height:44px;padding:.5rem .75rem;border:1px solid var(--line-strong,#bbb);border-radius:var(--r-md,10px);background:var(--surface,#fff);color:var(--ink,#111);box-sizing:border-box}
.tcp-compose{flex:none}.tcp-compose textarea{min-height:2.75rem;max-height:10rem;resize:none;overflow-y:auto}
.tcp-foot{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;justify-content:space-between;color:var(--ink-muted,#555);font-size:.8125rem}
.tcp-btn{min-height:44px;padding:0 1rem;border:1px solid var(--line-strong,#bbb);border-radius:999px;background:var(--surface,#fff);color:var(--ink,#111);font-weight:600;cursor:pointer}
.tcp-btn[data-primary]{border-color:var(--brand,#0f766e);background:var(--brand,#0f766e);color:var(--on-brand,#fff)}
.tcp-btn[disabled]{opacity:.6;cursor:default}
.tcp-btn[data-danger]{border-color:var(--danger,#b42318);background:var(--danger,#b42318);color:#fff}
.tcp-ask{width:min(24rem,calc(100vw - 2rem));box-sizing:border-box;padding:1.25rem;border:1px solid var(--line,#ddd);border-radius:var(--r-lg,14px);background:var(--surface,#fff);color:var(--ink-body,#222);box-shadow:var(--shadow-lg,0 12px 32px rgba(0,0,0,.18));font-size:.9375rem}
.tcp-ask::backdrop{background:rgba(0,0,0,.45)}
.tcp-ask h2{margin:0 0 .5rem;font-size:1.0625rem;font-weight:600}.tcp-ask p{margin:0 0 1rem}
.tcp-ask .tcp-actions{justify-content:flex-end}.tcp-ask :where(button){font:inherit}
.tcp-ask :focus-visible{outline:2px solid var(--brand,#0f766e);outline-offset:2px}
.tcp-err{margin:0;color:var(--danger,#b42318);font-size:.875rem}
.tcp-card{margin:0 1rem 1rem;padding:.75rem;border:1px solid var(--line,#ddd);border-radius:var(--r-md,10px);background:var(--surface-subtle,#f7f7f8)}
.tcp-card h3{margin:0 0 .25rem;font-size:.9375rem}.tcp-card p{margin:0 0 .5rem}
.tcp-form{display:grid;gap:.5rem}.tcp-form label{display:grid;gap:.25rem;font-size:.875rem}
.tcp-check{display:flex!important;grid-auto-flow:column;align-items:center;gap:.5rem!important;min-height:44px}.tcp-check input{width:1.25rem;min-height:0;height:1.25rem}
.tcp-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.tcp-body :focus-visible,.tcp-head :focus-visible{outline:2px solid var(--brand,#0f766e);outline-offset:2px}
@media (forced-colors:active){.tcp,.tcp-msg,.tcp-card,.tcp-ask{border:1px solid CanvasText}}