/* Leaf Box v2.1: stable navigation, accessible swipe actions and polished controls. */
:root[data-route-transition] .content,
.content{animation:none!important;opacity:1!important;visibility:visible!important}
/* The previous entrance sequence replayed each time dynamic data was refreshed. */
.content > *{content-visibility:visible!important;contain-intrinsic-size:auto}
.content .lb-plan,.content .lb-plan-list li{animation:none!important;opacity:1!important}
.content .lb-tick-vein{animation:none!important;stroke-dashoffset:0!important}
.lb-plan:focus-within{outline:2px solid rgba(184,246,194,.55);outline-offset:2px}
.lb-plans .lb-plan-top{align-items:center;flex-wrap:nowrap;gap:14px}
.lb-plans .lb-plan-title{flex:1 1 auto;min-width:0}
.lb-plans .lb-plan-title h3{margin:0;overflow-wrap:anywhere}
.lb-plans .lb-emblem{width:58px;height:58px;min-width:58px;filter:drop-shadow(0 4px 9px rgba(0,0,0,.22))}
.lb-plans .lb-plan-face>.btn{width:100%;white-space:normal;line-height:1.3;margin-top:auto}
.lb-plans .lb-plan-price{white-space:nowrap}
.lb-plans .tag.token-badge{flex-shrink:0;max-width:100%;font-size:11px}
.lb-notification-bell{position:relative;flex-shrink:0}
.lb-notification-bell.is-muted{color:#a3b7aa;opacity:.85}
.lb-notification-bell .count-pill{position:absolute;top:-5px;right:-5px;min-width:17px;min-height:17px;padding:1px 4px;font-size:10px;border-radius:20px}
.lb-notification-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.lb-toast{touch-action:pan-y;user-select:none;-webkit-user-select:none;transition:transform .22s ease,opacity .22s ease}
.lb-toast.swiping{transition:none!important;animation:none!important;will-change:transform,opacity}
.lb-toast.leaving{transform:translateX(var(--lb-dismiss-x,90px))!important;opacity:0!important;pointer-events:none}
/* One coherent, accessible primary action system for chats and approvals. */
.lb-composer .lb-compose-send{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex-wrap:nowrap}
.lb-composer .lb-send-action,.lb-composer .ai-send.lb-send-action{
  box-sizing:border-box;flex:0 0 46px;display:grid!important;place-items:center!important;
  width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
  max-width:46px;padding:0!important;margin:0!important;border:1px solid rgba(209,255,222,.45)!important;
  border-radius:15px!important;background:linear-gradient(145deg,#b7f5c8,#74dba0)!important;color:#0b2e1c!important;
  line-height:1!important;box-shadow:0 3px 12px rgba(40,135,77,.2),inset 0 1px 0 rgba(255,255,255,.56);
  transition:background .18s,box-shadow .18s,transform .16s ease!important;
}
.lb-composer .lb-send-action .icon{width:21px;height:21px;display:block;flex-shrink:0;transform:none!important}
.lb-composer .lb-send-action:hover:not(:disabled){background:linear-gradient(145deg,#c9fbd5,#90eab0)!important;box-shadow:0 6px 16px rgba(40,135,77,.28)}
.lb-composer .lb-send-action:active:not(:disabled){transform:scale(.96)}
.lb-composer .lb-send-action:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.lb-composer .lb-send-action:focus-visible,.lb-approve-action:focus-visible{outline:3px solid #e0f9a3;outline-offset:3px}
.btn.lb-approve-action,.btn.lb-reject-action{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap;
  min-height:40px;padding:9px 14px;border-radius:12px;font-weight:700;line-height:1.2;
}
.btn.lb-approve-action{background:linear-gradient(145deg,#c5f9d3,#88e1ac);color:#10351f;border-color:#b8eec9;box-shadow:0 2px 8px rgba(21,103,49,.17)}
.btn.lb-reject-action{background:rgba(238,92,102,.1);color:#ffc7ca;border:1px solid rgba(255,140,155,.38)}
.btn.lb-approve-action .icon,.btn.lb-reject-action .icon{width:16px;height:16px;flex-shrink:0}
.owner-table :is(td,th){vertical-align:middle}
.owner-table td:last-child{min-width:155px;white-space:nowrap}
.chat-main,.lb-chat-workspace,.lb-chat-workspace .chat-header,.lb-chat-workspace .lb-thread{min-width:0;max-width:100%;overflow-wrap:anywhere}
.lb-chat-workspace .chat-header .push-right{margin-left:auto;flex:0 0 44px;min-width:44px;min-height:44px}
.lb-thread .chat-message .bubble{min-width:0;max-width:100%;overflow-wrap:anywhere}
.lb-thread .lb-message-top-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.lb-thread .lb-message-top-actions button{min-width:36px;min-height:36px;display:grid;place-items:center}
.member-profile-backdrop{padding:max(14px,env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.member-profile-card{width:min(100%,460px);max-height:calc(100dvh - 30px);overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;isolation:isolate}
.member-profile-content{min-width:0;padding:0 clamp(16px,4vw,26px) 26px}
.member-profile-content h2{overflow-wrap:anywhere;font-size:clamp(23px,5vw,29px)}
.member-profile-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px}
.member-profile-card button{max-width:100%}
.member-profile-close{top:12px;right:12px;flex-shrink:0;background:rgba(7,26,17,.85)!important;backdrop-filter:blur(8px)}
@media(max-width:800px){
  .mobile-drawer{animation:lb-drawer-translate .24s cubic-bezier(.2,.8,.2,1) both!important;transform:translate3d(0,0,0)}
  .mobile-drawer-backdrop{animation:none!important}
  .lb-chat-workspace .lb-composer .lb-compose-toolbar{align-items:center;min-width:0;gap:6px}
  .lb-composer .lb-compose-count{font-size:10px;white-space:nowrap}
  .lb-notification-actions{justify-content:flex-start}
  .lb-plans .lb-plan-top{flex-wrap:wrap}
  .lb-plans .lb-plan-title{flex:1 1 140px}
}
@keyframes lb-drawer-translate{from{transform:translate3d(-14px,0,0)}to{transform:translate3d(0,0,0)}}
@media(prefers-reduced-motion:reduce){.mobile-drawer,.lb-toast,.lb-composer .lb-send-action{animation:none!important;transition:none!important}}
