/* AssistXence shell: one control family and one way around the app, on every page.
   Loaded after each page's own styles, so these rules win.

   Controls: the "Xen Edge" family (XPS/IDG, first made for the XOS owner workspace, #2981), in
   AssistXence's own blues. Soft 10px corners, lit from above, a cyan edge on the main action, a
   1px lift on hover, settles down on press. Motion is feedback only and stops under reduced motion.
   Replaces the cut-corner chips (Darren, Nov 14 2026). */

.btn{--lift:0px;position:relative;clip-path:none;border-radius:10px;border:1px solid rgba(16,47,79,.20);
  background:linear-gradient(180deg,#FFFFFF 0%,#F2F6FA 100%);color:var(--ink);font-weight:700;letter-spacing:-.005em;
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 1px 2px rgba(16,47,79,.08);transform:translateY(var(--lift));
  transition:transform 140ms cubic-bezier(.2,.7,.2,1),box-shadow 140ms ease,background-color 140ms ease,border-color 140ms ease,color 140ms ease}
.btn:hover{--lift:-1px;background:linear-gradient(180deg,#FFFFFF 0%,#EAF2FA 100%);border-color:rgba(16,47,79,.34);box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 6px 16px -6px rgba(16,47,79,.30)}
.btn:active{--lift:0px;transform:translateY(0);background:#E9F0F7;box-shadow:0 1px 2px rgba(16,47,79,.20) inset}
.btn.primary{background:linear-gradient(180deg,#1C74BC 0%,#0F4F86 100%);color:#FFFFFF;border-color:#0C406E;
  box-shadow:0 1px 0 rgba(255,255,255,.20) inset,0 -3px 0 var(--cyan) inset,0 2px 6px -2px rgba(12,64,110,.45)}
.btn.primary:hover{background:linear-gradient(180deg,#2382CF 0%,#125A97 100%);border-color:#0C406E;
  box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 -3px 0 #5FD3FF inset,0 10px 22px -8px rgba(12,64,110,.55)}
.btn.primary:active{background:#0E4A7E;box-shadow:0 -3px 0 var(--cyan) inset,0 2px 4px rgba(0,0,0,.30) inset}
.btn.danger{background:linear-gradient(180deg,#FFF8F3 0%,#FDEBDD 100%);color:var(--warn);border-color:rgba(154,52,18,.45);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 -3px 0 var(--warn) inset}
.btn.danger:hover{border-color:var(--warn)}
.btn.done{color:var(--muted);background:transparent;border-color:var(--rule);box-shadow:none}
.btn:disabled,.btn:disabled:hover,.btn.nav.off{--lift:0px;cursor:not-allowed;color:#6B7D90!important;background:transparent!important;border:1px dashed #AEBCCB!important;box-shadow:none!important}
.btn[aria-busy=true]{cursor:progress;background:repeating-linear-gradient(-45deg,#EAF1F8 0 8px,#F6F9FC 8px 16px)!important;border-style:dashed}
.btn .go{display:inline-block;transition:transform 160ms cubic-bezier(.2,.7,.2,1)}.btn:hover .go{transform:translate(2px,-2px)}
/* The Conversation / For the team switch on a phone */
.tabs .btn{border-color:var(--rule);box-shadow:none;color:var(--muted);background:transparent}
.tabs .btn[aria-selected=true]{color:var(--ink);background:linear-gradient(180deg,#FFFFFF 0%,#EAF3FC 100%);border-color:rgba(23,107,175,.45);box-shadow:0 -3px 0 var(--cyan) inset}
/* Typing fields match the controls */
.type input,.field input,.field select{clip-path:none;border-radius:10px;border:1px solid var(--rule);box-shadow:0 1px 2px rgba(16,47,79,.06) inset}
.type input:focus,.field input:focus{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}

/* ---------- Sections: every part of the app has its own place ---------- */
.navslot{display:flex;align-items:center;gap:10px;min-width:0}
.sections{display:flex;align-items:center;gap:4px}
.sections a,.profile-link{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;border-radius:10px;border:1px solid transparent;
  color:var(--muted);font-weight:700;font-size:16px;line-height:20px;text-decoration:none;white-space:nowrap;transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease}
.sections a svg,.profile-link svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sections a:hover,.profile-link:hover{color:var(--ink);background:var(--tint)}
.sections a[aria-current=page],.profile-link[aria-current=page]{color:var(--ink);background:linear-gradient(180deg,#FFFFFF 0%,#EAF3FC 100%);border-color:rgba(23,107,175,.35);box-shadow:0 -3px 0 var(--cyan) inset}
.sections a[aria-current=page] svg,.profile-link[aria-current=page] svg{stroke:var(--blue)}
.profile-link{padding:0 12px}
body[data-live=true] .sections a,body[data-live=true] .profile-link{pointer-events:none;opacity:.45}
:is(.sections a,.profile-link):focus-visible{outline:3px solid var(--cyan);outline-offset:2px}

.profile-link.narrow{display:none}
/* Laptop in between: labels stay, icons step back */
@media (max-width:1320px) and (min-width:901px){.sections a svg{display:none}.sections a,.profile-link{padding:0 11px}.profile-link span{display:none}}

/* Phone and tablet portrait: the sections sit in a bar along the bottom; the current one shows its name. Settings and Profile stay top right. */
@media (max-width:900px){
  .sections{position:fixed;left:0;right:0;bottom:0;z-index:20;justify-content:space-around;gap:2px;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 -1px 0 var(--rule),0 -10px 24px -18px rgba(16,47,79,.35)}
  .sections a{flex:0 1 auto;justify-content:center;min-width:52px;padding:0 12px}
  .sections a span{display:none}
  .sections a.wide{display:none}
  .profile-link.narrow{display:inline-flex}
  .navslot{gap:8px}
  .sections a[aria-current=page] span{display:inline}
  .profile-link span{display:none}
  .profile-link{min-width:48px;justify-content:center;padding:0;border-color:rgba(16,47,79,.18)}
  body.has-sections .app{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
}
@media (max-width:380px){.sections a{min-width:44px;padding:0 9px}.sections a[aria-current=page]{padding:0 11px}}
/* Buttons never cut their words: long labels wrap inside the button. */
.btn{max-width:100%;white-space:normal;text-align:center}
@media (prefers-reduced-motion:reduce){.btn,.btn:hover,.btn:active{transform:none;transition:none}.btn:hover .go{transform:none}}

/* ---------- Fluid (HC, Nov 15 2026): the app flows with the screen instead of jumping at set widths ---------- */
/* Sections cross-fade into each other; the header holds still. */
@view-transition{navigation:auto}
header{view-transition-name:app-header}
::view-transition-old(root){animation:ax-out 160ms cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:ax-in 240ms cubic-bezier(0,0,.2,1) both}
@keyframes ax-out{to{opacity:0;transform:translateY(-4px)}}
@keyframes ax-in{from{opacity:0;transform:translateY(6px)}}
/* One content width on every page; very wide screens stop stretching it. */
.app{max-width:1520px;margin-inline:auto}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

/* A paused (unpaid) account: one clear line that stays in view on every page without moving the layout. */
.paused{position:fixed;z-index:30;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto;padding:14px 16px;border-radius:10px;border:1px solid rgba(154,52,18,.45);background:linear-gradient(180deg,#FFF8F3 0%,#FDEBDD 100%);color:var(--warn);font-weight:700;font-size:16px;line-height:1.45;box-shadow:0 8px 24px rgba(16,42,67,.12)}
@media (min-width:901px){.paused{bottom:24px}}
body:has(.paused):not(:has(#talkBtn)){padding-bottom:96px}
