/* GFUK v3.6.0 — fast, responsive workspace layer */
:root{--v360-ink:#0d2627;--v360-teal:#20a994;--v360-teal-soft:#e8f7f3;--v360-line:rgba(13,38,39,.13);--v360-shadow:0 24px 70px rgba(4,31,31,.2);--v360-radius:18px}
[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.portal-content,.portal-page,.panel,.buddy-conversation-shell,.buddy-chat{min-width:0}
.portal-body{overflow-x:hidden}.portal-page{max-width:100%}.page-enter{animation:v360-enter .28s ease-out both}@keyframes v360-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Hints are disabled by default. */
body[data-ui-hints="0"] [role="tooltip"],body[data-ui-hints="0"] .tooltip,body[data-ui-hints="0"] .hint{display:none!important}

/* Tile/icon fallbacks */
.v360-icon-fallback{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,var(--v360-ink),#19484a);color:#fff;font-weight:900;font-size:18px;flex:0 0 auto}.app-tile img{object-fit:contain}.department-card-icon svg,.rail-icon svg,.topbar-action svg{display:block}

/* Clean homepage Buddy: deliberately no hero background. */
.buddy-home-clean{background:transparent!important;background-image:none!important;box-shadow:none!important;border:1px solid var(--v360-line)!important;border-radius:20px!important;padding:20px 22px!important;display:grid!important;grid-template-columns:minmax(0,.75fr) minmax(300px,1.25fr)!important;gap:22px!important;align-items:center!important;overflow:hidden}.buddy-home-clean:before,.buddy-home-clean:after{display:none!important}.buddy-home-copy{min-width:0}.buddy-home-mark{background:transparent!important;border:1px solid var(--v360-line)!important;box-shadow:none!important}.buddy-home-clean h2{font-size:clamp(24px,2.4vw,36px)!important;line-height:1.05!important;margin:.15em 0!important}.buddy-home-clean p{max-width:58ch}.buddy-home-action,.buddy-ask{min-width:0}.buddy-home-clean .buddy-ask{background:#fff!important;border:1px solid #cadbd6!important;box-shadow:0 10px 28px rgba(13,38,39,.06)!important}.buddy-home-meta>span{background:transparent!important;border:1px solid rgba(13,38,39,.1)!important}

/* Buddy: viewport-safe on every screen */
.buddy-page-v362{width:100%;max-width:100%;min-width:0;overflow:hidden}.buddy-conversation-shell{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(210px,278px) minmax(0,1fr)!important;gap:16px!important}.buddy-history-panel,.buddy-chat{min-width:0;max-width:100%}.buddy-chat{overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto auto}.buddy-chat .chat-thread{min-width:0;min-height:0;overflow:auto!important;overscroll-behavior:contain;padding:14px;scrollbar-gutter:stable}.buddy-chat .chat-message{width:max-content;max-width:min(82%,760px)!important;overflow-wrap:anywhere;word-break:normal}.buddy-chat .chat-message.user{margin-inline-start:auto}.buddy-chat .chat-message.assistant{margin-inline-end:auto}.buddy-chat .chat-sources{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}.buddy-chat .chat-source{max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buddy-chat .chat-compose{min-width:0;position:relative;z-index:2}.buddy-chat .chat-compose textarea{min-width:0;width:100%;font-size:16px}.buddy-support-row{min-width:0}.buddy-side-panel{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 94px)!important}.buddy-side-body{min-width:0}.buddy-side-body iframe{max-width:100%}
body:not(.buddy-embedded) .buddy-page-v362{height:calc(100dvh - 124px);min-height:580px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px}body:not(.buddy-embedded) .buddy-conversation-shell{height:100%;min-height:0;overflow:hidden}body:not(.buddy-embedded) .buddy-history-panel{height:100%;min-height:0;overflow:auto;position:static!important}
html:has(body.buddy-embedded),body.buddy-embedded,body.buddy-embedded .buddy-embedded-stage{width:100%;height:100%;min-height:0;max-height:100dvh;overflow:hidden;margin:0}body.buddy-embedded .buddy-page-v362{box-sizing:border-box;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:10px!important}body.buddy-embedded .page-heading{margin:0!important;min-width:0}body.buddy-embedded .page-heading-copy p{margin-bottom:0!important}body.buddy-embedded .page-heading-copy h1{font-size:clamp(24px,3vw,38px);margin:.1em 0!important}body.buddy-embedded .buddy-conversation-shell{height:100%;min-height:0;max-height:100%;overflow:hidden}body.buddy-embedded .buddy-conversation-shell>.panel{margin:0!important}body.buddy-embedded .buddy-chat{height:100%;min-height:0}
.buddy-takeover{position:fixed!important;inset:0!important;z-index:10020!important;width:100vw!important;height:100dvh!important;background:#f4f7f5!important;overflow:hidden!important}.buddy-takeover-bar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid var(--v360-line);position:relative;z-index:2}.buddy-takeover iframe{display:block;width:100%;height:calc(100dvh - 58px);border:0;min-width:0;background:#f4f7f5}


/* Buddy interaction controls and contained side workspace */
.buddy-history-panel .compact-row{display:flex;text-decoration:none;color:inherit}.buddy-history-panel .compact-row.is-active{outline:2px solid rgba(34,171,154,.35)}.buddy-feedback{display:flex;gap:7px;margin-top:10px}.buddy-feedback button{border:0;background:transparent;font:inherit;font-size:12px;opacity:.65;cursor:pointer}.buddy-feedback button:hover{opacity:1}.buddy-web-badge{display:inline-flex;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-top:8px}.buddy-side-panel{position:fixed;right:20px;top:82px;bottom:20px;width:min(48vw,720px);z-index:10030;background:#fff;border:1px solid rgba(13,38,39,.14);border-radius:18px;box-shadow:0 28px 90px rgba(3,23,24,.3);overflow:hidden;display:grid;grid-template-rows:52px minmax(0,1fr)}.buddy-side-panel[hidden]{display:none!important}.buddy-side-panel header{display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#0d2627;color:#fff}.buddy-side-panel header small{display:block;opacity:.7}.buddy-side-panel header>div:last-child{display:flex;align-items:center;gap:8px}.buddy-side-panel header a,.buddy-side-panel header button{color:#fff;background:transparent;border:0;text-decoration:none}.buddy-side-panel header button{font-size:24px;cursor:pointer}.buddy-side-body{min-width:0;min-height:0;overflow:hidden;background:#f4f7f5}.buddy-side-body iframe{display:block;width:100%;height:100%;border:0;background:#fff}.buddy-live-shell{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}.buddy-live-channels,.buddy-live-messages{min-height:0;padding:12px;overflow:auto}.buddy-live-messages{display:flex;flex-direction:column;gap:8px}.buddy-live-compose{display:grid;gap:8px;padding:10px;background:#fff;border-top:1px solid #e2e8e4}.buddy-live-compose textarea{min-width:0;min-height:44px;resize:none}.buddy-live-compose button[type=submit]{border:0;border-radius:10px;background:#22ab9a;color:#fff;padding:0 14px;font-weight:700}.buddy-live-channel{width:100%;display:flex;justify-content:space-between;text-align:left;border:1px solid #e1e8e3;background:#fff;padding:12px;border-radius:12px;margin-bottom:8px;cursor:pointer}.buddy-live-channel small{display:block;color:#6c7975;margin-top:3px}.buddy-support-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:4px}.buddy-live-prompt{display:grid;gap:4px;padding:12px;margin-bottom:10px;border-radius:12px;background:#e7f7f4;color:#123b3a}.buddy-live-prompt span{font-size:13px;opacity:.78}

/* Notification centre */
.notification-centre{position:relative}.notification-badge,.chat-unread-badge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;border-radius:999px;padding:0 5px;display:grid;place-items:center;background:#e73f4f;color:#fff;border:2px solid #fff;font-size:10px;font-weight:900;line-height:1}.notification-popover{position:absolute;right:0;top:calc(100% + 10px);width:min(390px,calc(100vw - 24px));max-height:min(620px,78dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid var(--v360-line);border-radius:18px;box-shadow:var(--v360-shadow);z-index:8000;overflow:hidden}.notification-popover>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid var(--v360-line)}.notification-popover>header strong,.notification-popover>header small{display:block}.notification-popover>header small{color:#6b7c79;margin-top:2px}.notification-popover>header button{border:0;background:transparent;color:var(--v360-teal);font-weight:750;cursor:pointer}.notification-popover-list{overflow:auto;overscroll-behavior:contain}.notification-popover-row{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;text-align:left;border:0;border-bottom:1px solid rgba(13,38,39,.07);background:#fff;padding:12px 14px;color:var(--v360-ink);cursor:pointer}.notification-popover-row:hover,.notification-popover-row.is-unread{background:#f1faf7}.notification-popover-row>span:last-child{min-width:0}.notification-popover-row strong,.notification-popover-row small,.notification-popover-row time{display:block}.notification-popover-row small{color:#5f706c;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.notification-popover-row time{color:#8a9794;font-size:10px;margin-top:5px}.notification-mini-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--v360-teal-soft)}.notification-popover>footer{padding:10px 14px;border-top:1px solid var(--v360-line);text-align:center}.notification-toast-stack{position:fixed;right:18px;top:76px;z-index:10040;display:grid;gap:9px;width:min(360px,calc(100vw - 24px));pointer-events:none}.notification-toast{pointer-events:auto;display:grid;grid-template-columns:36px 1fr;gap:10px;text-align:left;border:1px solid var(--v360-line);background:#fff;color:var(--v360-ink);border-radius:15px;padding:11px 13px;box-shadow:0 18px 55px rgba(4,31,31,.2);opacity:0;transform:translateX(18px);transition:.22s ease;cursor:pointer}.notification-toast.show{opacity:1;transform:none}.notification-toast>span:first-child{width:34px;height:34px;border-radius:10px;background:var(--v360-teal-soft);display:grid;place-items:center}.notification-toast strong,.notification-toast small{display:block}.notification-toast small{margin-top:3px;color:#647672}

/* Communication launchers and persistent windows */
.chat-launcher-stack{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:7200;display:flex;align-items:flex-end;gap:10px}.messenger-launcher,.live-chat-launcher{position:relative;width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#fff;box-shadow:0 15px 38px rgba(4,31,31,.25);transition:transform .18s ease,box-shadow .18s ease}.messenger-launcher{background:linear-gradient(145deg,#5a57db,#746be8)}.live-chat-launcher{background:linear-gradient(145deg,#0d4a47,#20a994)}.messenger-launcher:hover,.live-chat-launcher:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(4,31,31,.3)}.launcher-glyph svg{width:25px;height:25px;display:block}.messenger-dock{position:fixed;right:170px;bottom:18px;z-index:7150;display:flex;align-items:flex-end;gap:10px;max-width:calc(100vw - 200px)}.messenger-mini,.v360-live-window{width:min(350px,calc(100vw - 24px));height:min(520px,calc(100dvh - 104px));background:#fff;border:1px solid rgba(13,38,39,.14);border-radius:18px;box-shadow:var(--v360-shadow);overflow:hidden;display:grid;grid-template-rows:56px minmax(0,1fr) auto}.messenger-mini>header,.v360-live-window>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;background:var(--v360-ink);color:#fff}.messenger-mini>header strong,.messenger-mini>header small,.v360-live-window>header strong,.v360-live-window>header small{display:block}.messenger-mini>header small,.v360-live-window>header small{opacity:.72;font-size:11px}.messenger-mini>header>div:last-child,.v360-live-window>header>div:last-child{display:flex;gap:3px;align-items:center}.messenger-mini>header button,.messenger-mini>header a,.v360-live-window>header button,.v360-live-window>header a{width:30px;height:30px;border:0;background:transparent;color:#fff;display:grid;place-items:center;text-decoration:none;border-radius:8px;cursor:pointer}.messenger-mini>header button:hover,.messenger-mini>header a:hover,.v360-live-window>header button:hover,.v360-live-window>header a:hover{background:rgba(255,255,255,.12)}.messenger-mini.minimised,.v360-live-window.is-minimised{height:56px;grid-template-rows:56px}.messenger-mini.minimised>:not(header),.v360-live-window.is-minimised>:not(header){display:none!important}.messenger-dock-messages,.v360-chat-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#f4f7f5;display:flex;flex-direction:column;gap:8px;scrollbar-gutter:stable}.messenger-dock-message,.v360-chat-bubble{max-width:86%;align-self:flex-start;background:#fff;border:1px solid rgba(13,38,39,.1);border-radius:14px 14px 14px 4px;padding:9px 11px;overflow-wrap:anywhere}.messenger-dock-message.mine,.v360-chat-bubble.mine{align-self:flex-end;background:#dcf6ef;border-color:#b9e6db;border-radius:14px 14px 4px 14px}.v360-chat-bubble.buddy{background:#fff5dc;border-color:#f2dda3}.messenger-dock-message strong,.v360-chat-bubble strong{display:block;font-size:11px;color:#526965;margin-bottom:3px}.v360-chat-bubble time{display:block;font-size:9px;color:#87938f;margin-top:5px}.floating-chat-compose,.v360-chat-compose{background:#fff;border-top:1px solid var(--v360-line);padding:8px}.chat-compose-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:end}.chat-compose-row textarea{width:100%;min-width:0;max-height:110px;min-height:42px;border:1px solid #cad9d5;border-radius:13px;padding:10px 11px;resize:none;font:inherit;font-size:15px}.chat-attach-button,.v360-send{width:42px;height:42px;border:0;border-radius:12px;display:grid;place-items:center;cursor:pointer}.chat-attach-button{background:#edf4f1;color:var(--v360-ink);font-size:20px}.v360-send,.floating-chat-compose button[type=submit]{background:var(--v360-teal);color:#fff}.chat-file-preview{display:flex;gap:5px;flex-wrap:wrap}.chat-file-preview:empty{display:none}.chat-file-preview span{display:flex;align-items:center;gap:4px;max-width:100%;padding:4px 7px;border-radius:999px;background:#edf4f1;font-size:10px}.chat-file-preview button{border:0;background:transparent;cursor:pointer}.chat-attachment{display:flex!important;align-items:center;gap:6px;margin-top:6px;padding:6px;border-radius:9px;background:rgba(13,38,39,.06);color:inherit;text-decoration:none;font-size:11px}.chat-attachment.image{display:block!important}.chat-attachment.image img{display:block;max-width:100%;max-height:180px;border-radius:8px;margin-bottom:5px}.v360-live-chat{position:relative}.v360-live-window{position:absolute;right:0;bottom:70px}.v360-live-body{min-height:0;overflow:hidden}.v360-live-channel-list{height:100%;overflow:auto;padding:10px;background:#f4f7f5}.v360-live-channel{width:100%;display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--v360-line);background:#fff;padding:11px;border-radius:13px;text-align:left;color:var(--v360-ink);margin-bottom:8px;cursor:pointer}.v360-live-channel:disabled{opacity:.62;cursor:not-allowed}.v360-live-channel strong,.v360-live-channel small,.v360-live-channel em{display:block}.v360-live-channel small{color:#657773;margin-top:2px}.v360-live-channel em{font-size:10px;color:#87938f;margin-top:3px}.v360-live-conversation{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.v360-chat-back{border:0;border-bottom:1px solid var(--v360-line);background:#fff;text-align:left;padding:8px 12px;color:var(--v360-teal);cursor:pointer}.live-status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 auto}.live-status-online{background:#27bb75;box-shadow:0 0 0 4px rgba(39,187,117,.12)}.live-status-away,.live-status-buddy{background:#f2a728}.live-status-closed,.live-status-offline,.live-status-archived{background:#a7b0ad}

/* Full live chat */
.live-chat-workspace{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:16px;min-height:600px}.live-chat-directory,.live-chat-main{min-width:0;min-height:0}.live-chat-channel-cards{display:grid;gap:8px}.live-chat-channel-card{display:grid;grid-template-columns:10px minmax(0,1fr);gap:10px;align-items:start;border:1px solid var(--v360-line);border-radius:13px;padding:11px;color:inherit;text-decoration:none}.live-chat-channel-card.active,.live-chat-channel-card:hover{background:#effaf7;border-color:#9bd7ca}.live-chat-channel-card strong,.live-chat-channel-card small,.live-chat-channel-card em{display:block}.live-chat-channel-card small{color:#657773}.live-chat-channel-card em{font-size:11px;color:#81908d;margin-top:3px}.live-chat-main{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.live-chat-main-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--v360-line);padding-bottom:10px}.v360-chat-messages.full{min-height:420px}.v360-chat-compose.full{padding-inline:0;padding-bottom:0}

/* Stickies */
.floating-sticky{min-width:280px!important;min-height:160px!important;max-width:calc(100vw - 16px)}.floating-sticky.minimised{min-height:0!important;height:auto!important;resize:none!important;overflow:visible!important}.sticky-context-portal{z-index:11000!important;min-width:200px!important;max-width:min(270px,calc(100vw - 16px))!important;overflow:visible!important}.floating-sticky header{touch-action:none}.floating-sticky textarea{min-height:72px}

/* Desktop */
.gdesk{isolation:isolate}.gdesk-shortcuts{position:relative;z-index:6;pointer-events:auto}.gdesk-shortcuts button,.gdesk-shortcuts a{pointer-events:auto!important;cursor:pointer}.gdesk-window-layer{pointer-events:none!important}.gdesk-window{pointer-events:auto!important;min-width:320px;min-height:230px}.gdesk-taskbar,.gdesk-start-menu{pointer-events:auto!important;z-index:80}.gdesk-window iframe{width:100%;height:100%;border:0}.gdesk-window .document-error{padding:24px}.gdesk-browser-address{min-width:0}

/* Monday catalogue */
.monday-diagnostic-error{margin-top:7px;padding:9px 10px;border-radius:9px;background:#fff0f1;color:#8c2330;overflow-wrap:anywhere}.monday-diagnostics code{font-size:11px;overflow-wrap:anywhere}.monday-workspace,.monday-resource{transition:border-color .16s ease,box-shadow .16s ease}.monday-resource:hover{border-color:#9bd8cd;box-shadow:0 8px 24px rgba(13,38,39,.07)}

/* RTL */
[dir="rtl"] .portal-rail{right:0;left:auto}[dir="rtl"] .notification-popover{right:auto;left:0}[dir="rtl"] .notification-toast-stack{right:auto;left:18px}[dir="rtl"] .chat-launcher-stack{right:auto;left:max(18px,env(safe-area-inset-left))}[dir="rtl"] .messenger-dock{right:auto;left:170px}[dir="rtl"] .v360-live-window{right:auto;left:0}[dir="rtl"] .buddy-chat .chat-message.user{margin-inline-start:auto;margin-inline-end:0}

@media(max-width:980px){
  .buddy-side-panel{inset:66px 8px 8px;width:auto;max-width:none!important;max-height:none!important}
  .buddy-home-clean{grid-template-columns:1fr!important}.buddy-conversation-shell{grid-template-columns:1fr!important}body:not(.buddy-embedded) .buddy-page-v362{height:auto;min-height:0;overflow:visible}body:not(.buddy-embedded) .buddy-conversation-shell{overflow:visible}.buddy-history-panel{max-height:210px!important;overflow:auto}.buddy-chat{min-height:62dvh}.live-chat-workspace{grid-template-columns:1fr}.live-chat-directory{max-height:320px;overflow:auto}.messenger-dock{right:86px;max-width:calc(100vw - 100px)}[dir="rtl"] .messenger-dock{left:86px}
}
@media(max-width:700px){
  .portal-content{padding-left:10px!important;padding-right:10px!important}.buddy-home-clean{padding:15px!important;border-radius:15px!important}.buddy-home-mark{display:none!important}.buddy-chat .chat-message{max-width:96%!important}.buddy-side-panel{inset:64px 6px 6px!important;width:auto!important;max-width:none!important}.notification-toast-stack{top:66px;right:8px;width:calc(100vw - 16px)}.chat-launcher-stack{right:10px;bottom:10px;gap:7px}.messenger-launcher,.live-chat-launcher{width:52px;height:52px}.messenger-dock{right:10px;bottom:72px;display:block;max-width:none}.messenger-mini{position:absolute;right:0;bottom:0}.messenger-mini:not(:last-child){display:none}.v360-live-window{right:0;bottom:62px;width:min(360px,calc(100vw - 20px));height:min(580px,calc(100dvh - 90px))}[dir="rtl"] .messenger-dock{left:10px;right:auto}[dir="rtl"] .messenger-mini{left:0;right:auto}.live-chat-workspace{min-height:0}.v360-chat-messages.full{min-height:50dvh}.gdesk-window{inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 72px)!important;min-width:0!important;min-height:0!important}
}
@media(max-width:430px){
  .buddy-home-clean{border-left:0!important;border-right:0!important;border-radius:0!important;padding-left:0!important;padding-right:0!important}.buddy-home-meta>span{display:none!important}.buddy-chat .chat-message{max-width:100%!important}.buddy-page-v362{padding-inline:4px!important}body.buddy-embedded .buddy-page-v362{padding:6px!important}.buddy-history-panel{display:none}.notification-popover{position:fixed;inset:62px 8px auto;width:auto;max-height:75dvh}.messenger-mini,.v360-live-window{width:calc(100vw - 16px);right:-2px}.floating-sticky{min-width:260px!important;min-height:150px!important}.chat-compose-row textarea{font-size:16px}
}

/* v3.6.1 Buddy embedded-layout hardening: the chat is always the primary visible surface. */
html.buddy-embedded-root,html.buddy-embedded-root body.buddy-embedded{width:100%;height:100%;min-height:100%;margin:0;overflow:hidden}
body.buddy-embedded .buddy-embedded-stage{display:flex!important;width:100%;height:100%;min-height:0;overflow:hidden}
body.buddy-embedded .buddy-page-v362{display:flex!important;flex-direction:column;width:100%;height:100%;min-height:0;max-height:none!important;overflow:hidden;padding:10px!important}
body.buddy-embedded .page-heading{flex:0 0 auto}
body.buddy-embedded .buddy-conversation-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;flex:1 1 auto;width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
body.buddy-embedded .buddy-history-panel{display:none!important}
body.buddy-embedded .buddy-chat{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;width:100%!important;height:100%!important;min-height:0!important;visibility:visible!important;opacity:1!important;overflow:hidden!important}
body.buddy-embedded .buddy-chat .chat-thread{display:flex!important;flex-direction:column;min-height:0!important;overflow:auto!important}
.buddy-takeover:not([hidden]){display:grid!important;grid-template-rows:58px minmax(0,1fr)!important}
.buddy-takeover iframe{height:100%!important;min-height:0!important}
@media(max-width:680px){body.buddy-embedded .page-heading{padding-inline:2px}.buddy-takeover-bar{height:52px}.buddy-takeover:not([hidden]){grid-template-rows:52px minmax(0,1fr)!important}}

/* v3.6.1 Portal Builder and native Monday blocks */
.portal-builder-columns{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;align-items:start}.portal-page-list,.portal-layout-editor{min-width:0}.compact-form{padding-bottom:18px;border-bottom:1px solid var(--v360-line);margin-bottom:14px}.portal-page-admin-list .compact-row.is-active{background:var(--v360-teal-soft);outline:1px solid rgba(32,169,148,.25)}.portal-block-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:14px 0;margin-top:12px;border-top:1px solid var(--v360-line);border-bottom:1px solid var(--v360-line)}.portal-block-toolbar form{margin:0}.portal-block-list{display:grid;gap:10px;padding:14px 0}.portal-block-card{border:1px solid var(--v360-line);border-radius:14px;background:#fff;padding:12px;display:grid;gap:10px;transition:transform .14s ease,box-shadow .14s ease}.portal-block-card.is-dragging{opacity:.62;box-shadow:0 18px 48px rgba(13,38,39,.14);transform:scale(.995)}.portal-block-card>header{display:flex;align-items:center;gap:9px}.portal-block-card>header strong{flex:1}.portal-block-card>header button{border:0;background:#f2f5f3;border-radius:9px;width:32px;height:32px;cursor:pointer}.drag-handle{cursor:grab;font-size:20px;letter-spacing:-4px;color:#6c7b78}.portal-navigation-admin{margin-top:18px}.portal-nav-admin-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:18px}.portal-nav-row-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#eef6f3}.portal-nav-row-icon svg{width:20px;height:20px}.custom-portal-page{min-width:0}.custom-portal-blocks{display:grid;gap:16px;max-width:1500px}.custom-portal-block{min-width:0}.custom-portal-block h2,.custom-portal-block h3{margin:.2em 0}.portal-rich-text{font-size:16px;line-height:1.65;max-width:78ch}.portal-callout{border-inline-start:4px solid var(--v360-teal);padding:16px 18px;border-radius:14px;background:linear-gradient(90deg,var(--v360-teal-soft),#fff);max-width:1000px}.portal-callout p{margin:.45em 0 0}.portal-spacer.small{height:18px}.portal-spacer.medium{height:36px}.portal-spacer.large{height:68px}.portal-linked-resource{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--v360-line);border-radius:16px;background:#fff}.portal-linked-resource>div{flex:1;min-width:0}.portal-linked-resource strong,.portal-linked-resource small{display:block}.monday-native-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#111;color:#fff;font-weight:900;text-transform:lowercase}.portal-monday-board{border:1px solid var(--v360-line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 30px rgba(13,38,39,.05)}.portal-monday-board>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--v360-line)}.portal-monday-board>header>div{display:flex;align-items:center;gap:10px;min-width:0}.portal-monday-board>header strong,.portal-monday-board>header small{display:block}.portal-monday-board>header small{color:#687875;margin-top:2px}.portal-monday-board>header>a{white-space:nowrap}.portal-monday-scroll{overflow:auto;max-width:100%}.portal-monday-board table{width:max-content;min-width:100%;border-collapse:collapse;font-size:13px}.portal-monday-board th,.portal-monday-board td{padding:10px 12px;border-bottom:1px solid rgba(13,38,39,.08);border-right:1px solid rgba(13,38,39,.05);text-align:left;vertical-align:top;max-width:280px;white-space:normal;overflow-wrap:anywhere}.portal-monday-board th{position:sticky;top:0;background:#f5f8f6;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#52615f}.portal-monday-board .monday-item-name{min-width:200px;font-weight:750}.portal-block-error{display:grid;gap:4px;padding:14px;border-radius:14px;background:#fff4f4;border:1px solid #f0d1d1;color:#752c2c}
@media(max-width:1050px){.portal-builder-columns,.portal-nav-admin-grid{grid-template-columns:1fr}.portal-page-list{position:static}.portal-page-admin-list{max-height:260px;overflow:auto}}
@media(max-width:680px){.portal-builder-admin .form-grid.two{grid-template-columns:1fr}.portal-block-toolbar{align-items:stretch}.portal-block-toolbar form{flex:1 1 44%}.portal-block-toolbar button{width:100%}.portal-monday-board>header{align-items:flex-start;flex-direction:column}.portal-monday-board>header>a{white-space:normal}.portal-linked-resource{align-items:flex-start;flex-wrap:wrap}.portal-linked-resource .button{width:100%}.portal-spacer.large{height:40px}}


/* v3.6.1.2 responsive chat generation state */
.chat-thinking{opacity:.78;pointer-events:none;min-height:44px}
.chat-thinking>div,.chat-thinking{align-items:center}
.thinking-dots{display:inline-flex;gap:4px;margin-left:7px;vertical-align:middle}
.thinking-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.35;animation:gfukThinkingDot 1.05s infinite ease-in-out}
.thinking-dots i:nth-child(2){animation-delay:.14s}.thinking-dots i:nth-child(3){animation-delay:.28s}
@keyframes gfukThinkingDot{0%,60%,100%{transform:translateY(0);opacity:.3}30%{transform:translateY(-3px);opacity:1}}
@media (prefers-reduced-motion:reduce){.thinking-dots i{animation:none;opacity:.65}}

/* GFUK Buddy fast/think controls v3.6.1.3 */
.buddy-compose-mode{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0 2px 4px}.buddy-think-toggle{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;cursor:pointer}.buddy-think-toggle input{width:16px;height:16px;accent-color:var(--brand-teal,#16a89b)}.buddy-compose-mode small{font-size:11px;opacity:.68;text-align:right}.v360-chat-bubble.is-pending{opacity:.72}.chat-thinking{animation:none!important}@media(max-width:640px){.buddy-compose-mode{align-items:flex-start;flex-direction:column;gap:4px}.buddy-compose-mode small{text-align:left}}

/* GFUK v3.6.2 — Buddy viewport, composer and low-latency response polish */
.buddy-page-v362,.buddy-page-v362 *{box-sizing:border-box}
.portal-content:has(.buddy-page-v362){min-width:0;overflow:hidden;padding-block:10px}
.buddy-page-v362{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;margin:0!important;padding:clamp(8px,1vw,16px)!important}
.buddy-page-v362 .page-heading{min-width:0;margin:0 0 10px!important}
.buddy-conversation-shell{display:grid!important;grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
.buddy-conversation-shell>.panel,.buddy-conversation-shell>.buddy-side-panel{min-width:0!important;max-width:100%}
.buddy-chat.panel{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;padding:clamp(10px,1.2vw,18px)!important;border-radius:20px!important}
.buddy-chat .chat-thread{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;padding:clamp(10px,1.2vw,18px)!important;scrollbar-gutter:stable both-edges}
.buddy-chat .chat-message{display:block!important;width:auto!important;min-width:0!important;max-width:min(78%,760px)!important;flex:0 0 auto!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important}
.buddy-chat .chat-message.user{align-self:flex-end!important;margin-inline-start:auto!important;margin-inline-end:0!important}
.buddy-chat .chat-message.assistant{align-self:flex-start!important;margin-inline-start:0!important;margin-inline-end:auto!important}
.buddy-chat .chat-message>div,.buddy-chat .chat-message span,.buddy-chat .chat-message a{max-width:100%}
.buddy-chat .chat-sources{width:100%;max-width:100%;overflow:visible!important}
.buddy-chat .chat-source{max-width:min(100%,560px)!important}
.buddy-chat .chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;grid-template-areas:"mode mode" "input send"!important;align-items:end!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-top:10px!important;padding:8px!important;overflow:visible!important}
.buddy-chat .buddy-compose-mode{grid-area:mode!important;grid-column:auto!important;width:100%;min-width:0;margin:0!important;padding:1px 3px 4px!important}
.buddy-chat .chat-compose textarea{grid-area:input!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;max-height:120px!important;margin:0!important;padding:11px 10px!important;resize:none!important;overflow-y:auto!important}
.buddy-chat .chat-compose>button[type="submit"]{grid-area:send!important;display:grid!important;width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;margin:0!important;align-self:end!important}
.buddy-support-row{width:100%;max-width:100%;min-width:0;padding:8px 2px 0!important}
.buddy-answer-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;font-size:10px;color:#758581;text-transform:capitalize}
.buddy-answer-meta span{display:inline-flex;padding:3px 7px;border-radius:999px;background:rgba(13,38,39,.055)}
body:not(.buddy-embedded) .buddy-page-v362{height:calc(100dvh - 98px)!important;min-height:560px!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
body:not(.buddy-embedded) .buddy-conversation-shell{height:100%!important;min-height:0!important}
body.buddy-embedded{background:#f4f7f5!important}
body.buddy-embedded .buddy-embedded-stage{width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.buddy-embedded .buddy-page-v362{display:block!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
body.buddy-embedded .page-heading{display:none!important}
body.buddy-embedded .buddy-conversation-shell{display:block!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.buddy-embedded .buddy-history-panel{display:none!important}
body.buddy-embedded .buddy-chat.panel{height:100%!important;border:0!important;border-radius:0!important;padding:clamp(8px,1vw,14px)!important;box-shadow:none!important}
body.buddy-embedded .buddy-chat .chat-thread{border-radius:16px!important}
body.buddy-embedded .buddy-support-row{padding-bottom:max(2px,env(safe-area-inset-bottom))!important}
.buddy-takeover{isolation:isolate}
.buddy-takeover iframe{min-width:0!important;max-width:100%!important;overflow:hidden!important}

@media(max-width:1050px){
  .buddy-conversation-shell{grid-template-columns:minmax(190px,235px) minmax(0,1fr)!important}
  .buddy-chat .chat-message{max-width:86%!important}
}
@media(max-width:820px){
  .portal-content:has(.buddy-page-v362){padding:0!important}
  body:not(.buddy-embedded) .buddy-page-v362{height:calc(100dvh - 72px)!important;min-height:0!important;padding:8px!important;grid-template-rows:minmax(0,1fr)!important}
  body:not(.buddy-embedded) .buddy-page-v362>.page-heading{display:none!important}
  .buddy-conversation-shell{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
  .buddy-history-panel{display:none!important}
  .buddy-chat.panel{height:100%!important;border-radius:16px!important}
  .buddy-chat .chat-message{max-width:91%!important}
}
@media(max-width:560px){
  .buddy-page-v362{padding:0!important}
  .buddy-chat.panel{padding:7px!important;border:0!important;border-radius:0!important}
  .buddy-chat .chat-thread{padding:9px!important;border-radius:13px!important}
  .buddy-chat .chat-message{max-width:94%!important;padding:10px 11px!important;font-size:15px}
  .buddy-chat .chat-compose{grid-template-columns:minmax(0,1fr) 48px!important;padding:6px!important;border-radius:15px!important}
  .buddy-chat .chat-compose textarea{height:46px!important;min-height:46px!important;font-size:16px!important;padding:10px 8px!important}
  .buddy-chat .chat-compose>button[type="submit"]{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important}
  .buddy-compose-mode{align-items:flex-start!important;gap:3px!important}
  .buddy-compose-mode small{white-space:normal!important;text-align:left!important;line-height:1.25}
  .buddy-support-row .muted{display:none}
}
@media(max-width:380px){
  .buddy-chat .chat-message{max-width:97%!important}
  .buddy-chat .chat-compose{grid-template-columns:minmax(0,1fr) 44px!important}
  .buddy-chat .chat-compose>button[type="submit"]{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important}
}
.buddy-index-admin-card{grid-column:1/-1}.buddy-index-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.buddy-index-metrics>div{min-width:0;padding:14px;border:1px solid var(--v360-line);border-radius:14px;background:#f7faf8}.buddy-index-metrics strong,.buddy-index-metrics span{display:block}.buddy-index-metrics strong{font-size:clamp(18px,2vw,28px);overflow-wrap:anywhere}.buddy-index-metrics span{font-size:11px;color:#667672;margin-top:4px}.buddy-index-breakdown{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.buddy-index-breakdown span{padding:5px 8px;border-radius:999px;background:var(--v360-teal-soft);font-size:11px}.buddy-index-breakdown strong{margin-left:4px}@media(max-width:680px){.buddy-index-metrics{grid-template-columns:1fr}.buddy-index-admin-card .page-actions{align-items:stretch;flex-direction:column}.buddy-index-admin-card .page-actions .button{width:100%}}

/* GFUK v3.6.2 final Buddy containment — deliberately more specific than all
   earlier compatibility rules. The homepage takeover is re-parented to body. */
body>.buddy-takeover{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#f4f7f5!important;
}
body>.buddy-takeover:not([hidden]){display:grid!important;grid-template-rows:58px minmax(0,1fr)!important}
body>.buddy-takeover .buddy-takeover-bar{min-width:0!important}
body>.buddy-takeover iframe{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;border:0!important}
body.buddy-modal-open{overflow:hidden!important}
body.buddy-modal-open .messenger-dock,
body.buddy-modal-open .chat-launcher-stack,
body.buddy-modal-open .v360-live-window{visibility:hidden!important;pointer-events:none!important}

html.buddy-embedded-root,
html.buddy-embedded-root>body.buddy-embedded{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  overflow:hidden!important;
}
body.buddy-embedded>.buddy-embedded-stage{
  display:grid!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.buddy-embedded .buddy-page-v362{
  display:grid!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
body.buddy-embedded .buddy-page-v362>.page-heading,
body.buddy-embedded .buddy-page-v362>.buddy-history-panel{display:none!important}
body.buddy-embedded .buddy-page-v362>.buddy-conversation-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  gap:0!important;
  margin:0!important;
  overflow:hidden!important;
}
body.buddy-embedded .buddy-page-v362>.buddy-conversation-shell>.buddy-history-panel{display:none!important}
body.buddy-embedded .buddy-page-v362>.buddy-conversation-shell>.buddy-chat.panel{
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto auto!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:clamp(8px,1vw,14px)!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
body.buddy-embedded .buddy-page-v362 .buddy-chat>.chat-thread{
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body.buddy-embedded .buddy-page-v362 .buddy-chat>.chat-compose,
body.buddy-embedded .buddy-page-v362 .buddy-chat>.buddy-support-row{
  flex:0 0 auto!important;
  min-width:0!important;
  max-width:100%!important;
}
body.buddy-embedded .buddy-page-v362 .buddy-side-panel{
  position:fixed!important;
  inset:10px 10px 10px auto!important;
  z-index:10!important;
  width:min(520px,calc(100vw - 20px))!important;
  height:calc(100dvh - 20px)!important;
  max-height:none!important;
}
@media(max-width:680px){
  body>.buddy-takeover:not([hidden]){grid-template-rows:52px minmax(0,1fr)!important}
  body.buddy-embedded .buddy-page-v362>.buddy-conversation-shell>.buddy-chat.panel{padding:6px!important}
  body.buddy-embedded .buddy-page-v362 .buddy-side-panel{inset:4px!important;width:auto!important;height:auto!important}
}


/* GFUK v3.6.2 — managed app icons, package upgrades and safe source editor */
.app-admin-manage .app-admin-grid{align-items:start}
.app-admin-icon{width:64px;height:64px;object-fit:contain;border-radius:18px;padding:8px;background:linear-gradient(145deg,#eef8f5,#fff);border:1px solid var(--v360-line);box-shadow:0 10px 30px rgba(13,38,39,.08)}
.app-status-list{display:grid;gap:10px}
.app-status-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid var(--v360-line);border-radius:13px;background:#f7faf8}
.app-status-list span{color:#667672;font-size:12px;font-weight:700}.app-status-list strong{text-align:right;overflow-wrap:anywhere}
.app-admin-list-name{display:flex;align-items:center;gap:12px;min-width:230px}.app-admin-list-name img{width:44px;height:44px;object-fit:contain;border-radius:12px;padding:5px;background:#f2f7f5;border:1px solid var(--v360-line);flex:0 0 auto}.app-admin-list-name span,.app-admin-list-name strong,.app-admin-list-name small{display:block;min-width:0}.app-admin-list-name small{max-width:340px;color:#667672;margin-top:3px;white-space:normal}
.app-library-icon{overflow:hidden}.app-library-icon img{width:34px;height:34px;object-fit:contain}
.package-app-panel{padding:8px!important;overflow:hidden}.package-app-frame{display:block;width:100%;min-height:70dvh;border:0;border-radius:16px;background:#fff}
.app-code-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:18px;align-items:stretch;min-height:620px}
.app-code-files{min-width:0;max-height:76dvh;overflow:auto}.app-code-files nav{display:grid;gap:5px}.app-code-files nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:11px;color:var(--v360-ink);text-decoration:none;border:1px solid transparent}.app-code-files nav a:hover,.app-code-files nav a.is-active{background:var(--v360-teal-soft);border-color:rgba(24,174,158,.25)}.app-code-files nav span{min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:750}.app-code-files nav small{font-size:9px;color:#687b77}
.app-code-editor-panel{min-width:0;padding:0!important;overflow:hidden}.app-code-form{height:100%;min-height:620px;display:grid;grid-template-rows:auto minmax(0,1fr)}.app-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--v360-line);background:#f7faf8}.app-code-toolbar p{margin:0 0 2px}.app-code-toolbar strong{font-size:13px;overflow-wrap:anywhere}.app-code-editor{display:block;width:100%;height:100%;min-height:540px;resize:vertical;border:0!important;border-radius:0!important;padding:18px!important;background:#0d2525!important;color:#eaf7f4!important;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;tab-size:2;outline:0;white-space:pre;overflow:auto}.app-code-editor:focus{box-shadow:inset 0 0 0 2px rgba(35,183,166,.55)!important}
@media(max-width:900px){.app-code-layout{grid-template-columns:1fr;min-height:0}.app-code-files{max-height:260px}.app-code-form{min-height:560px}.app-code-editor{min-height:480px}}
@media(max-width:600px){.app-admin-list-name{min-width:180px}.app-code-toolbar{align-items:stretch;flex-direction:column}.app-code-toolbar .button{width:100%}.app-code-editor{font-size:12px;padding:12px!important}.app-status-list>div{flex-direction:column;gap:4px}.app-status-list strong{text-align:left}.package-app-frame{min-height:76dvh}}
