/* ZiB Conversation Framework V1.1 — official conversation identity */
:root{--zcf-blue:#1858b8;--zcf-blue-dark:#0b2f66;--zcf-ink:#10233f;--zcf-muted:#667892;--zcf-line:#dce6f2;--zcf-soft:#f5f8fc;--zcf-user:#e9eef5;--zcf-radius:20px;--zcf-shadow:0 16px 38px rgba(25,55,95,.08)}
.zcf-hidden-context{display:none!important}.chat-messages{max-width:920px;margin:0 auto}.message-row{display:flex;align-items:flex-end;gap:11px;margin:18px 0}.message-row.user{justify-content:flex-end}.zcf-avatar{flex:0 0 auto;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;border:1px solid var(--zcf-line);box-shadow:0 6px 16px rgba(15,35,65,.08);font-size:12px;font-weight:900;color:#fff}.zcf-avatar img{width:100%;height:100%;object-fit:cover;display:block}.zcf-avatar.zib img{object-fit:contain;padding:3px;background:#fff}.zcf-avatar.user-fallback{background:linear-gradient(135deg,#3b82f6,#7c3aed)}.zcf-message-stack{max-width:min(76%,720px)}.message-row.user .zcf-message-stack{display:flex;flex-direction:column;align-items:flex-end}.bubble.ai,.bubble.user{border-radius:var(--zcf-radius)!important;padding:14px 16px!important;line-height:1.55!important;font-size:15px!important;box-shadow:none!important}.bubble.ai{background:#fff!important;border:1px solid var(--zcf-line)!important;color:var(--zcf-ink)!important;border-bottom-left-radius:7px!important}.bubble.user{background:var(--zcf-user)!important;border:1px solid #d9e1ec!important;color:#1d2f49!important;border-bottom-right-radius:7px!important}.zcf-message-meta{font-size:11px;color:#8a98ab;margin:5px 4px 0}
.ask-page-identity{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;color:#315f9d!important;margin-bottom:12px!important}.welcome-panel{padding:26px 30px!important}.welcome-panel h1{font-size:30px!important}.welcome-panel p{max-width:760px!important;line-height:1.6!important}.zcf-conversation-tools{display:flex;justify-content:flex-end;margin:3px 0 10px}.zcf-clear-link{border:0;background:transparent;color:#718096;font-size:12px;font-weight:800;cursor:pointer;padding:8px 4px}.zcf-clear-link:hover{color:#1858b8}
.zib-bootstrap-row{align-items:flex-start!important;margin-top:8px!important}.zib-bootstrap-row .zcf-avatar{display:none}.zib-bootstrap-message{position:relative;display:block;max-width:100%!important;width:100%;padding:30px 34px 28px 244px!important;min-height:250px;border-radius:26px!important;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)!important;border:1px solid var(--zcf-line)!important;box-shadow:var(--zcf-shadow)!important;overflow:visible}.zib-bootstrap-message:before{content:"";position:absolute;left:22px;top:24px;width:198px;height:218px;background:url('/ZiB/Assets/zib-avatar-large.png') center center/contain no-repeat}.zib-bootstrap-kicker{color:#2867bd!important;font-size:11px!important;letter-spacing:.08em!important;margin-bottom:9px}.zib-bootstrap-title{font-size:24px!important;color:var(--zcf-ink)!important;margin-bottom:9px}.zib-bootstrap-copy{font-size:15px!important;color:#50637e!important;line-height:1.65!important}.zib-bootstrap-business{background:#f2f7fd!important;border-color:#d6e4f4!important;color:#29415f!important;margin-top:14px!important}.zib-bootstrap-question{color:var(--zcf-ink)!important;font-size:16px!important;margin-top:16px!important}.zib-bootstrap-actions{gap:10px!important;margin-top:14px!important}.zib-bootstrap-action,.response-next-chip,.suggested-action-btn{background:#fff!important;color:#24466f!important;border:1px solid #a9c2df!important;border-radius:999px!important;padding:11px 16px!important;font-weight:800!important;box-shadow:none!important;transition:.18s ease!important;min-height:42px}.zib-bootstrap-action:hover,.response-next-chip:hover,.suggested-action-btn:hover{background:#eef5fd!important;border-color:#5e8fc8!important;color:#0f4d96!important;transform:translateY(-1px)}.zib-bootstrap-action.primary{background:#fff!important;color:#174f96!important;border-color:#4f83c2!important}.fixed-ask-bar .ask-box{border-radius:20px!important;border:1px solid #cfdbea!important;box-shadow:0 14px 34px rgba(22,52,91,.10)!important}.mode-select{min-width:105px!important}
@media(min-width:1200px){.timeline-wrap{max-width:1040px!important}.ask-box{max-width:920px!important}}
@media(max-width:900px){.chat-messages{max-width:none}.zcf-message-stack{max-width:84%}.zib-bootstrap-message{padding-left:210px!important}.zib-bootstrap-message:before{width:170px;left:20px}}
@media(max-width:640px){body{padding-bottom:108px!important}.timeline-wrap{padding-left:10px!important;padding-right:10px!important;padding-top:12px!important}.welcome-panel{padding:18px!important;border-radius:18px!important;margin-bottom:12px!important}.welcome-panel h1{font-size:24px!important}.welcome-panel p{font-size:14px!important}.zcf-conversation-tools{margin-bottom:4px}.message-row{gap:7px;margin:14px 0}.zcf-avatar{width:36px;height:36px}.zcf-message-stack{max-width:87%}.bubble.ai,.bubble.user{font-size:14px!important;padding:12px 13px!important;border-radius:17px!important}.zib-bootstrap-message{padding:182px 16px 18px!important;min-height:0;text-align:left;border-radius:20px!important}.zib-bootstrap-message:before{left:50%;transform:translateX(-50%);top:8px;width:158px;height:166px}.zib-bootstrap-title{font-size:21px!important}.zib-bootstrap-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.zib-bootstrap-action{width:100%!important;text-align:center!important;border-radius:13px!important;padding:11px 9px!important;font-size:13px!important}.fixed-ask-bar{padding-left:7px!important;padding-right:7px!important}.mode-select{min-width:92px!important;font-size:12px!important}}

/* ZiB Conversation Experience V1.2 — final reception polish */
.zcf-conversation-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}.zcf-conversation-header .ask-page-identity,.zcf-conversation-header .zcf-conversation-tools{margin:0!important}.timeline-wrap{display:flex;flex-direction:column;min-height:calc(100vh - 92px);padding-bottom:150px!important}.chat-messages{width:100%;max-width:980px;min-height:420px;flex:1}.zib-bootstrap-row{display:flex!important;align-items:flex-start!important;gap:20px!important;margin:8px 0 22px!important}.zib-bootstrap-row:before{content:"";display:block;flex:0 0 210px;width:210px;height:238px;background:url('/ZiB/Assets/zib-avatar-large.png') center bottom/contain no-repeat}.zib-bootstrap-row .zcf-message-stack{max-width:none!important;flex:1;min-width:0}.zib-bootstrap-message{width:100%!important;min-height:0!important;padding:28px 30px!important;border-radius:24px!important;overflow:hidden!important}.zib-bootstrap-message:before{display:none!important}.zib-bootstrap-title{font-size:25px!important}.zib-bootstrap-copy{max-width:720px}.zib-bootstrap-actions{display:flex!important;align-items:stretch;gap:10px!important}.zib-bootstrap-action{min-height:46px!important;padding:12px 17px!important}.zcf-message-meta{margin-top:7px}.send-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:92px!important}.zib-drawer-head{position:sticky;top:0;background:#fff;z-index:3}.zib-drawer-body{padding-bottom:26px!important}
@media(min-width:1200px){.timeline-wrap{max-width:1120px!important}.chat-messages{max-width:1020px!important}.ask-box{max-width:980px!important}}
@media(max-width:900px){.zib-bootstrap-row{gap:14px!important}.zib-bootstrap-row:before{flex-basis:160px;width:160px;height:190px}.zib-bootstrap-message{padding:24px!important}}
@media(max-width:640px){.timeline-wrap{min-height:calc(100vh - 64px);padding-bottom:122px!important}.zcf-conversation-header{padding:0 2px;margin-bottom:8px}.zcf-clear-link{font-size:0}.zcf-clear-link i{font-size:14px;margin-right:0}.zcf-clear-link:after{content:'New';font-size:12px;margin-left:6px}.chat-messages{min-height:calc(100vh - 250px)}.zib-bootstrap-row{flex-direction:column!important;gap:0!important;margin-top:2px!important}.zib-bootstrap-row:before{align-self:center;flex:0 0 auto;width:164px;height:176px;margin-bottom:-22px;position:relative;z-index:2}.zib-bootstrap-row .zcf-message-stack{width:100%}.zib-bootstrap-message{padding:30px 16px 18px!important;border-radius:20px!important}.zib-bootstrap-title{font-size:22px!important}.zib-bootstrap-actions{display:grid!important;grid-template-columns:1fr!important}.zib-bootstrap-action{min-height:48px!important}.send-btn{min-width:48px!important;width:48px!important;padding:0!important;border-radius:50%!important}.send-btn-label{display:none}.mode-select{min-width:108px!important}}

/* ZiB Conversation Experience V1.3 — adaptive workspace and response polish */
.zcf-workspace-focus{margin:12px 0 14px;padding:15px;border-radius:18px;background:linear-gradient(135deg,#f7faff,#eef5ff);border:1px solid #d5e3f4;box-shadow:0 8px 22px rgba(28,67,118,.06)}
.zcf-workspace-focus-head{display:flex;align-items:center;gap:10px}.zcf-workspace-focus-icon{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;color:#2563eb;border:1px solid #d7e5f7;box-shadow:0 5px 12px rgba(37,99,235,.08)}
.zcf-workspace-focus-head div{display:grid;gap:1px}.zcf-workspace-focus-head strong{font-size:13px;color:#112845}.zcf-workspace-focus-head span{font-size:10.5px;color:#7a8da7}.zcf-workspace-focus p{margin:10px 0 0;font-size:12px;line-height:1.5;color:#526985}.zcf-workspace-focus-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.zcf-workspace-focus-actions button{border:1px solid #b9cde6;background:#fff;color:#22528d;border-radius:999px;padding:7px 10px;font-size:10.5px;font-weight:850;cursor:pointer}.zcf-workspace-focus-actions button:hover{background:#edf5ff;border-color:#6e9bd0}
.zcf-workspace-focus.is-photos .zcf-workspace-focus-icon{color:#7c3aed}.zcf-workspace-focus.is-publishing .zcf-workspace-focus-icon{color:#0f766e}.zcf-workspace-focus.is-documents .zcf-workspace-focus-icon{color:#b45309}.zcf-workspace-focus.is-visibility .zcf-workspace-focus-icon{color:#047857}.zcf-workspace-focus.is-profile .zcf-workspace-focus-icon{color:#1d4ed8}.zcf-workspace-focus.is-discovery .zcf-workspace-focus-icon{color:#0369a1}
.bubble.ai:not(.zib-bootstrap-message){line-height:1.62!important}.bubble.ai:not(.zib-bootstrap-message) strong{font-weight:850;color:#122b4b}.bubble.ai:not(.zib-bootstrap-message) .zcf-inline-link{color:#1858b8;font-weight:800;text-decoration:none;border-bottom:1px solid #9fc0e7}.bubble.ai:not(.zib-bootstrap-message) .zcf-inline-link:hover{color:#0b438d;border-color:#0b438d}
.bubble.ai:not(.zib-bootstrap-message)>br+br{line-height:1.15}.bubble.ai .response-next-actions,.bubble.ai .suggested-actions{margin-top:16px!important;padding-top:13px!important;border-top:1px solid #e6edf6!important}
.chat-messages{padding-bottom:18px}.message-row.user .bubble.user{max-width:560px}.message-row.user .zcf-message-meta{text-align:right}.zib-bootstrap-row:before{filter:drop-shadow(0 14px 18px rgba(27,69,126,.12))}
@media(min-width:1200px){.zib-drawer{width:340px!important}.z-layout{padding-right:340px!important}.timeline-wrap{max-width:1180px!important}.chat-messages{max-width:1080px!important}.ask-box{max-width:1000px!important}}
@media(max-width:640px){.zcf-workspace-focus{margin:8px 0 11px;padding:13px}.zcf-workspace-focus-actions{display:grid;grid-template-columns:1fr 1fr}.zcf-workspace-focus-actions button{min-height:38px}.zib-bootstrap-row:before{width:150px!important;height:160px!important;margin-bottom:-18px!important}.zib-bootstrap-message{padding-top:27px!important}.zib-bootstrap-title{font-size:21px!important}.zib-bootstrap-copy{font-size:14px!important}}
