/* Continuous greeting: independent seamless wrist, head and body loops. */
.samy-avatar{display:block;position:relative;width:100%;height:auto;aspect-ratio:1;isolation:isolate;pointer-events:none;background:none;border-radius:0;overflow:visible}
.samy-rig,.samy-body,.samy-hand,.samy-head,.samy-head-art{position:absolute;inset:0;display:block}
.samy-avatar img,.owner-card-drag .samy-avatar img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;pointer-events:none;user-select:none}
.samy-body{clip-path:polygon(0 100%,100% 100%,100% 0,86% 0,86% 40%,68% 44%,42% 44%,28% 39%,28% 34%,23% 35%,12% 40%,0 40%)}
.samy-head-art{clip-path:polygon(28% 0,86% 0,86% 40%,68% 44%,42% 44%,28% 39%)}
.samy-head{transform-origin:56% 43%;animation:samy-nod 3.6s ease-in-out infinite!important}
.samy-hand{clip-path:polygon(0 0,28% 0,28% 34%,23% 35%,12% 40%,0 40%);transform-origin:17.5% 39%;animation:samy-wave 1.8s ease-in-out infinite!important}
.samy-rig{transform-origin:52% 75%;animation:samy-breathe 2.8s ease-in-out infinite!important}
@keyframes samy-wave{0%,100%{transform:rotate(-11deg)}50%{transform:rotate(12deg)}}
@keyframes samy-nod{0%,100%{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}
@keyframes samy-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-.5%)}}
.samy-wink{position:absolute;left:61.3%;top:21.5%;width:14.5%;height:14.5%;border-radius:50%;background:radial-gradient(ellipse,#07132a 45%,#09172d 62%,transparent 75%);opacity:0;animation:samy-wink 3.4s linear infinite!important}
.samy-wink svg{display:block;width:100%;height:100%;filter:drop-shadow(0 0 3px #008cff)}
@keyframes samy-wink{0%,30%,60%,100%{opacity:0}40%,50%{opacity:1}}
/* The requested greeting is always active, including OS reduced motion. */

/* A close-up in the blue header, not a tiny full-body icon. */
.workspace-ui .owner-shell .samy-header,
.workspace-ui .owner-shell.reference-home .samy-header-compact{
 display:grid!important;grid-template-columns:210px minmax(0,1fr) 52px;grid-template-rows:112px;align-items:center;gap:12px;
 height:128px;min-height:128px;padding:8px 24px 8px 12px;position:relative;overflow:hidden;isolation:isolate;
 background:radial-gradient(ellipse at 0 0,#55baff 0,transparent 38%),linear-gradient(115deg,#1374e8 0,#06449a 35%,#08275c 78%);border-bottom:0;
}
.workspace-ui .owner-shell .samy-header:before{content:"";position:absolute;width:380px;height:380px;border:48px solid #e8f8ff26;border-radius:50%;left:-185px;top:-105px;z-index:-1}
.workspace-ui .owner-shell .samy-header:after{content:"";position:absolute;z-index:-1;left:24%;right:-10%;bottom:-130px;height:210px;background:#061f5b88;border-radius:50% 0 0 0;transform:rotate(-4deg);pointer-events:none}
.workspace-ui .owner-shell .samy-header .home-brand,
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{
 display:block;grid-column:1;grid-row:1;align-self:stretch;justify-self:start;position:relative;
 width:210px!important;height:120px!important;min-height:0;padding:0;margin:0;border:0;background:none;overflow:hidden;border-radius:0;mix-blend-mode:normal;
}
.workspace-ui .owner-shell .samy-header .home-brand .samy-avatar,
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{position:absolute;width:210px!important;height:210px!important;left:0;top:-1px}
.workspace-ui .owner-shell .samy-header .office-header-title{display:block;grid-column:2;grid-row:1;justify-self:center;align-self:end;margin:0 0 12px;text-align:center;color:#fff;font-size:23px!important;font-weight:500!important;z-index:1}
.workspace-ui .owner-shell .samy-header .workspace-identity{display:none}
.workspace-ui .owner-shell .samy-header .owner-menu-button{grid-column:3;grid-row:1;align-self:end;justify-self:end;margin-bottom:5px;width:42px;height:42px;z-index:1}
.workspace-ui .owner-shell .samy-header .home-brand:focus-visible{outline:2px solid white;outline-offset:-3px}
.samy-header .samy-quick{display:none}

/* Office welcome: city backdrop behind the original animated character and greeting. */
.workspace-ui .owner-shell[data-owner-view=offices] .owner-page{display:flex;flex-direction:column;min-height:100dvh}
.workspace-ui .owner-shell[data-owner-view=offices] .owner-header{flex-shrink:0}
.workspace-ui .owner-shell[data-owner-view=offices] .owner-content{flex:1;max-width:none;margin:0;background:#eaf6ff url("office-city-background.png") center bottom/cover no-repeat}
.workspace-ui .owner-shell[data-owner-view=offices] .samy-presentation{background:transparent;border-radius:0}
.workspace-ui .owner-shell[data-owner-view=offices] .samy-presentation:before{mask-image:linear-gradient(#000 70%,transparent 100%)}
.samy-office-home{max-width:1000px;margin:auto}
.samy-presentation.samy-welcome{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;min-height:0;margin-top:18px;padding:18px 18px 40px;overflow:hidden;text-align:center;border-radius:22px;background:#eaf6ff url("office-city-background.png") center bottom/cover no-repeat}
.samy-presentation:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse 48% 37% at 50% 79%,#f3fafff5 0,#f3faffd9 35%,#f3faff66 68%,transparent 100%);pointer-events:none}
.samy-presentation:after{content:none}
.samy-presentation .samy-orbit,.samy-presentation.samy-welcome .samy-glass-chart{display:none}
.samy-glass-chart i{display:block;flex:1;border-radius:5px;background:linear-gradient(#67b8ff,#40a3f84d);height:35%}
.samy-glass-chart i:nth-child(2){height:52%}.samy-glass-chart i:nth-child(3){height:76%}.samy-glass-chart i:nth-child(4){height:100%}
.samy-presentation.samy-welcome .samy-hero-character{position:relative;width:min(100%,640px);max-width:none;flex:none;aspect-ratio:1/.69;overflow:hidden;filter:drop-shadow(0 15px 20px #2b6caa12);mask-image:linear-gradient(#000 0 77%,transparent 100%)}
.samy-presentation .samy-hero-character .samy-avatar{width:100%;height:auto}
.samy-presentation button.samy-hero-character{display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;appearance:none;touch-action:manipulation}
.samy-presentation button.samy-hero-character:focus-visible{outline:3px solid #075ce0;outline-offset:-5px;border-radius:18px;mask-image:none}
.samy-presentation.samy-welcome .samy-greeting{position:relative;flex:none;width:100%;margin-top:-8px}
.samy-presentation.samy-welcome h1{max-width:none;margin:0;color:#071e4e;font-size:clamp(30px,4.5vw,56px);font-weight:800;letter-spacing:-1.7px;line-height:1.08}
.samy-presentation h1 strong{display:block;font-size:clamp(80px,12vw,128px);font-weight:900;letter-spacing:-5px;line-height:1.04;color:#0069fa;background:linear-gradient(100deg,#0058ee 28%,#00a4ff 80%);background-clip:text;-webkit-text-fill-color:transparent}
.samy-presentation h1>span{display:block;margin:8px auto 0;font-size:clamp(19px,2.8vw,34px);letter-spacing:-1px;line-height:1.2}
.samy-presentation .samy-greeting strong span{font:inherit}

/* Shared character remains usable in credit help and the conversation. */
.samy-loan-guide{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid #bcd9ff;border-radius:16px;background:#eef6ff;color:#14365b}
.samy-loan-guide .samy-avatar{width:72px;height:72px;flex:0 0 72px}
.samy-loan-guide strong{display:block;margin-bottom:4px}.samy-loan-guide p{margin:0;font-size:13px;line-height:1.45}
.samy-chat>header .samy-avatar{width:76px;height:76px;flex-shrink:0}
.owner-card-drag .samy-avatar{width:42px;height:42px}

@media(max-width:700px){
 .workspace-ui .owner-shell .samy-header,.workspace-ui .owner-shell.reference-home .samy-header-compact{grid-template-columns:138px minmax(0,1fr) 38px;grid-template-rows:88px;height:100px;min-height:100px;gap:4px;padding:6px 14px 6px 3px}
 .workspace-ui .owner-shell .samy-header .home-brand,.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{width:138px!important;height:94px!important}
 .workspace-ui .owner-shell .samy-header .home-brand .samy-avatar,.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{width:158px!important;height:158px!important;left:-4px;top:0}
 .workspace-ui .owner-shell .samy-header .office-header-title{font-size:18px!important;margin:0 0 12px;justify-self:center}
 .workspace-ui .owner-shell .samy-header .owner-menu-button{width:36px;height:36px;margin-bottom:4px}
 .samy-presentation.samy-welcome{margin-top:14px;padding:16px 0 32px;border-radius:18px;min-height:0}
 .samy-presentation.samy-welcome .samy-hero-character{width:112%;max-width:480px;aspect-ratio:1/.72}
 .samy-presentation.samy-welcome .samy-glass-chart{left:7%;top:21px;width:110px;height:90px;padding:20px 15px 14px;gap:7px;border-radius:13px}
 .samy-presentation.samy-welcome h1{font-size:34px;letter-spacing:-1px}
 .samy-presentation h1 strong{font-size:84px;letter-spacing:-4px}
 .samy-presentation h1>span{font-size:21px;max-width:290px;padding:0 6px;letter-spacing:-.7px}
}

/* Single centered office picker with a generous, legible disclosure control. */
.samy-office-picker>button[data-office-picker]{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:62px;padding:8px 10px}
.samy-office-picker-label{grid-column:2;justify-self:center;text-align:center;font-weight:600;color:#0b2f60}
.samy-office-picker-chevron{grid-column:3;display:grid;place-items:center;justify-self:end;width:36px;height:36px;border:1px solid #cfe1fb;border-radius:11px;background:#edf5ff;color:#075fe4;transition:transform .2s ease,background .2s ease}
.samy-office-picker-chevron svg{width:19px;height:19px}
.samy-office-picker>button[data-office-picker]:hover .samy-office-picker-chevron{background:#dcecff}
.samy-office-picker>button[data-office-picker][aria-expanded="true"] .samy-office-picker-chevron{transform:rotate(180deg)}
.samy-office-picker>button[data-office-picker]:focus-visible{outline:3px solid #075fe4;outline-offset:3px}
@media(max-width:360px){.workspace-ui .owner-shell .samy-header,.workspace-ui .owner-shell.reference-home .samy-header-compact{grid-template-columns:119px minmax(0,1fr) 34px}.samy-presentation h1 strong{font-size:74px}}
@media(prefers-reduced-motion:reduce){.samy-welcome{transition:none}}

/* Offices stays compact; Cobros gives the animated chat shortcut more presence. */
.workspace-ui .owner-shell .samy-header,
.workspace-ui .owner-shell.reference-home .samy-header-compact{height:80px;min-height:80px;grid-template-columns:136px minmax(0,1fr) 136px;grid-template-rows:80px;gap:0;padding:0 20px}
.workspace-ui .owner-shell .samy-header .office-header-title{align-self:center;margin:0;grid-column:2;grid-row:1}
.workspace-ui .owner-shell .samy-header .owner-menu-button{align-self:center;margin:0;grid-column:3;grid-row:1}
.workspace-ui .owner-shell .samy-header .home-brand,
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{width:136px!important;height:80px!important;grid-column:1;grid-row:1}
.workspace-ui .owner-shell .samy-header .home-brand .samy-avatar,
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{width:144px!important;height:144px!important;left:-4px;top:2px}
@media(max-width:700px){
 .workspace-ui .owner-shell .samy-header,.workspace-ui .owner-shell.reference-home .samy-header-compact{height:72px;min-height:72px;grid-template-rows:72px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:0 14px}
 .workspace-ui .owner-shell .samy-header .home-brand,.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{width:112px!important;height:72px!important;margin-left:-10px}
 .workspace-ui .owner-shell .samy-header .home-brand .samy-avatar,.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{width:122px!important;height:122px!important;left:-4px;top:3px}
}

/* Dedicated gripping pose: the left hand stays anchored to the screen edge. */
.workspace-ui .owner-shell.reference-home .samy-header-compact{height:80px;min-height:80px;grid-template-rows:80px;grid-template-columns:136px minmax(0,1fr) 64px;padding-left:0}
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{width:136px!important;height:80px!important}
.workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{width:116px!important;height:116px!important;left:0;top:-6px;transform:none}
.samy-corner-body{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,100% 40%,78% 40%,78% 47%,72% 47%,72% 60%,74% 64%,83% 72%,100% 71%,100% 100%,0 100%)}
.samy-corner-hand{clip-path:polygon(78% 40%,100% 40%,100% 71%,83% 72%,74% 64%,72% 60%,72% 47%,78% 47%);transform-origin:79% 66%;animation:samy-corner-wave 1.8s ease-in-out infinite!important}
.samy-corner-wink{left:49.8%;top:31.5%;width:16%;height:16%;transform:rotate(18deg);background:radial-gradient(ellipse,#071629 56%,#08172b 67%,transparent 74%)}
@keyframes samy-corner-wave{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)}}
.workspace-ui .owner-shell.reference-home .samy-header-compact .owner-menu-button{width:56px;height:56px;border:1px solid #ffffff38;border-radius:14px;background:#ffffff14;box-shadow:inset 0 1px 0 #ffffff26,0 8px 22px #001d4d24}
.workspace-ui .owner-shell.reference-home .samy-header-compact .owner-menu-button svg{width:32px;height:32px}
@media(max-width:700px){
 .workspace-ui .owner-shell.reference-home .samy-header-compact{height:72px;min-height:72px;grid-template-rows:72px;grid-template-columns:120px minmax(0,1fr) 48px;padding:0 12px 0 0}
 .workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand{width:100%!important;height:72px!important;margin:0}
 .workspace-ui .owner-shell.reference-home .samy-header-compact .home-brand .samy-avatar{width:104px!important;height:104px!important;left:0;top:-5px}
 .workspace-ui .owner-shell.reference-home .samy-header-compact .owner-menu-button{width:48px;height:48px;border-radius:12px}
 .workspace-ui .owner-shell.reference-home .samy-header-compact .owner-menu-button svg{width:29px;height:29px}
}
.samy-dialog [hidden]{display:none!important}
.samy-dialog [data-samy-draft]:not(:empty){white-space:pre-wrap;border:1px solid #d7e5f4;border-radius:12px;padding:12px;margin-block:10px;max-height:240px;overflow:auto}
.samy-dialog [data-samy-dictation]{font-size:.85rem;margin-block:8px}
.samy-dialog [data-samy-dictation] small{display:block;margin-top:6px}
.samy-dialog [data-samy-status]:empty{display:none}
#modal-root .samy-dialog a[data-samy-contact]{display:inline-flex;justify-content:center;align-items:center;margin:10px 0;padding:11px 16px;border:1px solid #137539;border-radius:12px;background:#137539;color:#fff;font-weight:600;text-decoration:none}
#modal-root .samy-dialog a[data-samy-contact]:hover{background:#0d5c2c;border-color:#0d5c2c;color:#fff}
#modal-root .samy-dialog a[data-samy-contact]:focus-visible{outline:3px solid #39bb6a;outline-offset:3px}
.samy-arrival-note{position:static;margin:0 0 12px;padding:10px 14px;border-radius:10px;background:#eef6ff;color:#14365b;font-size:14px;line-height:1.4;overflow-wrap:anywhere;pointer-events:none}
.samy-destination-bar{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:10px}
.samy-destination-bar .samy-avatar{width:64px;height:64px;flex:0 0 64px}
.samy-destination-bar>button{border:0;background:transparent;padding:0;flex:0 0 64px;cursor:pointer}
.samy-destination-bar>button:focus-visible{outline:3px solid #075fe4;outline-offset:2px}
.samy-destination-bar .samy-arrival-note{margin:0;flex:1}
.samy-home-cloud{grid-column:2;grid-row:1;position:relative;z-index:2;max-width:540px;justify-self:start;padding:6px 18px 6px 0}
.samy-speech-cloud{position:relative;border:1px solid #c9e4ff;border-radius:22px;background:#fff;color:#14365b;padding:12px 20px;font:500 14px/1.4 system-ui,sans-serif;text-align:left;box-shadow:0 4px 15px #051d491c;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.samy-speech-cloud:before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;background:#fff;border-left:1px solid #c9e4ff;border-bottom:1px solid #c9e4ff;transform:translateY(-50%) rotate(45deg)}
.samy-speech-cloud:focus-visible{outline:3px solid #198cff;outline-offset:3px}
.samy-speech-cloud.is-speaking{animation:samy-cloud-appear .35s ease-out}
.samy-speech-cloud[hidden]{display:none!important}
.samy-companion{display:flex;align-items:center;gap:10px;max-width:640px;margin:0 0 16px;min-width:0}
.samy-companion-avatar{display:block;flex:0 0 72px;width:72px;height:72px;padding:0;border:0;background:transparent;cursor:pointer;overflow:hidden}
.samy-companion-avatar .samy-avatar{width:80px;height:80px}
.samy-companion [data-samy-arrival]{display:block}
.samy-companion .samy-speech-cloud{flex:0 1 auto}
.owner-card-drag>svg{width:22px;height:22px;color:#1264bf}
@keyframes samy-cloud-appear{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.samy-home-cloud{padding:4px 8px 4px 0}.samy-speech-cloud{padding:9px 12px;font-size:12px;border-radius:16px}.samy-companion{gap:6px}.samy-companion-avatar{flex-basis:58px;width:58px;height:64px}.samy-companion-avatar .samy-avatar{width:68px;height:68px}.workspace-ui .owner-shell.reference-home .samy-header-compact{grid-template-columns:80px minmax(0,1fr) 48px}}
