:root{font-family:Arial,Helvetica,sans-serif;color:#172638;background:#f4f7fc;--blue:#15588e;--navy:#0d2949;--muted:#62788d;--border:#d9e3ef}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 15% 25%,#dcecff 0,transparent 48%),radial-gradient(ellipse at 95% 85%,#f5dfe8 0,transparent 40%),#f4f7fc}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #68b8ee;outline-offset:3px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:30}.skip:focus{top:10px}.header{height:66px;padding:0 max(24px,calc((100% - 1210px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e5ebf0;gap:15px}.brand{display:flex;align-items:center;gap:20px;min-width:0}.brand-logo{width:178px;height:auto}.brand-text{font-size:13px;color:var(--muted);padding-left:20px;border-left:1px solid var(--border)}.header nav{display:flex;gap:18px;font-size:14px;font-weight:700;color:#315c80}.header nav a:first-child{background:#eaf4ff;border:1px solid #c9dfef;border-radius:10px;padding:9px 13px}.header a:hover,.page-footer a:hover{text-decoration:underline}.workspace{max-width:1260px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:center;margin:auto;padding:24px 28px;min-height:calc(100dvh - 106px)}.support-panel{position:relative;padding:26px 22px;border-radius:24px;background:linear-gradient(155deg,#0d2949,#164f7a);box-shadow:0 18px 48px #183b6120;color:#fff;min-width:0}.eyebrow,.section-label{font-size:12px;font-weight:700;letter-spacing:1.4px;color:#9dcdf4}h1{font-size:34px;line-height:1.08;letter-spacing:-1.3px;margin:14px 0;white-space:normal}p{line-height:1.6}.intro{font-size:16px;color:#c5d9e9;margin:0 0 24px}.section-label{font-size:12px;margin-bottom:12px}.resource{display:flex;align-items:center;gap:12px;padding:14px 12px;margin:8px 0;border:1px solid #ffffff26;background:#ffffff09;border-radius:12px;transition:background .18s,transform .18s}.resource:hover{background:#ffffff18;transform:translateY(-1px)}.primary-resource{background:#dceeff;border-color:#b9d8f0;color:#163e60;box-shadow:0 8px 24px #06203925}.primary-resource:hover{background:#c9e4fb;border-color:#9fcbea}.resource-icon{font-size:22px;width:28px;flex-shrink:0;text-align:center}.resource strong{display:block;font-size:14px;margin-bottom:4px}.resource span span{display:block;font-size:12px;color:#bbd1e4}.primary-resource span span{color:#476780}.help-note{margin:22px 0 0;border-top:1px solid #ffffff20;padding-top:18px}.help-note strong{font-size:14px;font-weight:600}.help-note p{font-size:14px;color:#bbd1e4;margin:5px 0 0}.chat-card{background:#ffffffed;border:1px solid var(--border);border-radius:24px;box-shadow:0 18px 55px #183b6112;overflow:hidden;display:flex;flex-direction:column;height:min(640px,calc(100dvh - 150px));min-height:530px;min-width:0;backdrop-filter:blur(16px)}.chat-header{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8edf5;background:#ffffffb0;flex-shrink:0}.chat-title{display:flex;gap:12px;align-items:center;min-width:0}.chat-icon{font-size:21px;width:39px;height:39px;display:grid;place-items:center;background:#edf4fd;color:#225e8c;border:1px solid #dde9f6;border-radius:11px;flex-shrink:0}.chat-header h2{font-size:22px;margin:0;font-weight:700;color:#153859;letter-spacing:-.5px}.chat-header p{font-size:12px;margin:4px 0 0;color:var(--muted)}.icon-button{border:1px solid #dbe5ef;color:#315c80;background:#f1f5fa;min-height:38px;padding:7px 11px;font-size:12px;font-weight:700;border-radius:10px;display:flex;align-items:center;gap:7px;flex-shrink:0}.icon-button>span:first-child{font-size:22px;line-height:1}.icon-button:hover{background:#e5effa}.chat-body{position:relative;flex:1;min-height:0;display:flex;overflow:auto}.welcome{padding:22px 26px 24px;width:100%;max-width:440px;margin:auto;text-align:left}.welcome h3{font-size:28px;color:#153859;margin:0 0 7px;letter-spacing:-1px}.welcome>p{margin:0 0 18px;font-size:16px;color:var(--muted)}label{display:block;font-size:14px;font-weight:700;color:#33465b;margin:14px 0 7px}input{width:100%;height:46px;background:#f8fafd;border:1px solid #d5dfeb;border-radius:11px;padding:10px 12px;font-size:16px;color:#172638;transition:border-color .18s,background .18s,box-shadow .18s}input:hover{border-color:#9ab5d0}input:focus{background:white;border-color:#3186bd;box-shadow:0 0 0 3px #3186bd12}input::placeholder{color:#8295a8}.start-button{width:100%;border:0;background:linear-gradient(135deg,#15588e,#237eb3);color:white;font-weight:700;min-height:46px;border-radius:12px;margin:20px 0 12px;box-shadow:0 4px 12px #1267ac25;font-size:14px}.start-button:hover{box-shadow:0 5px 16px #16396020;background:linear-gradient(135deg,#104e81,#1c6b9c)}.welcome .small-copy{font-size:12px;line-height:1.5;margin:0}.chat-footer{border-top:1px solid #e8edf5;padding:11px 20px;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#f8fafd;flex-shrink:0;flex-wrap:wrap}.chat-footer p{font-size:12px;color:var(--muted);margin:0}.chat-footer a{font-size:12px;font-weight:700;color:var(--blue)}.chat-footer a:hover{text-decoration:underline}.live-panel{height:100%;position:absolute;inset:0;display:flex;flex-direction:column}iframe{border:0;width:100%;height:100%;flex:1;min-height:0;background:#fff}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:15px;background:#fff}.spinner{width:20px;height:20px;border:2px solid #d8e4f6;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.recovery{padding:10px 18px;border-top:1px solid var(--border);background:#edf4fd;display:flex;align-items:center;gap:12px;flex-shrink:0;flex-wrap:wrap}.recovery p{font-size:12px;margin:0;color:var(--muted)}.recovery button{padding:8px 12px;border:1px solid #c3d3eb;border-radius:8px;background:white;color:var(--blue);font-size:12px;white-space:nowrap}.page-footer{max-width:1260px;padding:0 28px 18px;margin:auto;display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#667990}.noscript{padding:20px;background:#fff3d6;text-align:center}.noscript a{text-decoration:underline}.expanded{overflow:hidden}.expanded .chat-card,.chat-card:fullscreen{position:fixed;inset:0;z-index:20;width:100%;height:100dvh;max-height:none;min-height:0;border:0;border-radius:0;background:white;box-shadow:none;backdrop-filter:none}.expanded>.header,.expanded>.page-footer{visibility:hidden}.expanded .chat-header,.chat-card:fullscreen .chat-header{padding:8px 16px;min-height:54px}.expanded .chat-header h2,.chat-card:fullscreen .chat-header h2{font-size:18px}.expanded .chat-header p,.chat-card:fullscreen .chat-header p{display:none}.expanded .chat-icon,.chat-card:fullscreen .chat-icon{width:30px;height:30px;font-size:18px}.expanded .chat-footer,.chat-card:fullscreen .chat-footer{display:none}.expanded .welcome,.chat-card:fullscreen .welcome{padding:24px}.chat-card::backdrop{background:white}@media(max-width:980px){.workspace{grid-template-columns:270px minmax(0,1fr);gap:18px;padding:20px}.support-panel{padding:24px 20px}.support-panel h1{font-size:30px}.brand-text{display:none}}@media(max-width:760px){.header{height:56px;padding:0 16px}.brand-logo{width:150px}.header nav{font-size:12px}.header nav a:first-child{padding:8px 10px}.website{display:none}.workspace{display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:12px;min-height:0}.chat-card{order:0;min-height:540px;height:calc(100dvh - 90px);border-radius:20px}.support-panel{order:1;padding:20px;border-radius:20px}.support-panel h1{font-size:26px;margin:9px 0}.intro{margin-bottom:18px}.chat-header{padding:14px 16px}.chat-header h2{font-size:20px}.chat-title{gap:9px}.chat-icon{width:34px;height:34px}.welcome{padding:20px 22px}.welcome h3{font-size:25px}.icon-button{padding:7px 9px}.chat-footer{padding:10px 16px}.page-footer{padding:10px 16px 18px}.expanded .chat-card{min-height:0;height:100dvh}.help-note{margin-top:18px;padding-top:14px}}@media(max-height:680px) and (min-width:761px){.workspace{padding:16px 24px;align-items:start}.chat-card{height:540px}.support-panel{padding:22px 20px}.support-panel h1{font-size:28px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Consistent, accessible support controls. */
.header nav{align-items:center;gap:10px}.header nav a,.header nav a:first-child{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid #c9dfef;border-radius:10px;background:#eaf4ff;line-height:1.2;text-align:center}.header nav .website{background:#fff}.header nav a:hover{background:#dceeff;text-decoration:none}.chat-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid #c9dfef;border-radius:9px;background:#eaf4ff;line-height:1.2;text-align:center}.chat-footer a:hover{background:#dceeff;text-decoration:none}.icon-button,.start-button,.resource,.recovery button{transition:background .18s,box-shadow .18s,transform .18s}.icon-button,.recovery button{min-height:44px}.start-button{min-height:48px}.start-button:disabled{cursor:wait;opacity:.75}.resource{min-height:68px}.resource:active,.icon-button:active,.start-button:active{transform:translateY(1px)}@media(max-width:760px){.header nav .website{display:none}.header nav a,.header nav a:first-child{padding:8px 10px;min-height:40px}.chat-footer{gap:6px}.chat-footer a{width:100%;min-height:40px}.icon-button{min-height:44px}}@media(prefers-reduced-motion:reduce){.icon-button,.start-button,.resource,.recovery button{transition:none}}


.conversation{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.conversation-tools{display:flex;gap:8px;padding:10px 16px;flex-wrap:wrap;border-bottom:1px solid var(--border)}.conversation button,.chat-footer button,.rich-action{min-height:40px;padding:8px 12px;border:1px solid #c9dfef;border-radius:10px;background:#eaf4ff;color:#15588e;font-weight:700;font-size:12px;cursor:pointer}.conversation button:hover,.chat-footer button:hover{background:#dceeff}.conversation button:disabled{opacity:.55;cursor:wait}.messages{flex:1;overflow:auto;padding:18px;min-height:0;display:flex;flex-direction:column;gap:12px}.bubble{max-width:85%;padding:12px 15px;border-radius:16px;background:#edf3fa;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.own{align-self:flex-end;background:#15588e;color:white}.bubble.system{align-self:center;background:transparent;color:#62788d;font-size:12px;text-align:center}.bubble .meta{font-size:11px;opacity:.8;margin-bottom:5px}.bubble a{text-decoration:underline}.composer{padding:12px 16px;border-top:1px solid var(--border);background:#fff}.composer textarea{width:100%;resize:vertical;min-height:65px;max-height:150px;padding:12px;border:1px solid #c9d9e9;border-radius:12px;font:inherit;color:#172638}.composer-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:8px}.attach{margin:0;font-size:12px;cursor:pointer;padding:10px;border:1px solid #c9dfef;border-radius:10px}.composer #send{background:#15588e;color:white}.typing{font-size:12px;color:#62788d;margin:4px 18px}.history-list{padding:10px 16px;max-height:160px;overflow:auto;border-bottom:1px solid var(--border)}.history-list button{display:block;margin:5px 0;width:100%;text-align:left}.rating{padding:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}.chat-error{margin:0;padding:12px 20px;color:#8b283d;background:#fff1f4;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rich-card{border:1px solid #d4e0ed;border-radius:10px;padding:10px;margin-top:6px}.rich-card a,.rich-card button{display:block;margin:5px 0}.expanded .chat-footer,.chat-card:fullscreen .chat-footer{display:flex}#upload-status{font-size:11px;color:#62788d}


.ticket-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#edf5ff;border-top:1px solid #c9dfef;flex-shrink:0}.ticket-offer p{margin:0;font-size:13px;color:#315c80}.ticket-offer button,.ticket-actions button{border:1px solid #c9dfef;background:#15588e;color:#fff;border-radius:10px;min-height:44px;padding:10px 14px;font-weight:700;cursor:pointer}.ticket-panel{padding:14px 20px;border-top:1px solid var(--border);background:#fff;max-height:45dvh;overflow:auto;flex-shrink:0}.ticket-panel h3{font-size:18px;margin:0 0 6px;color:#153859}.ticket-panel p{font-size:12px;margin:6px 0;color:#62788d}.ticket-panel label{margin-top:8px}.ticket-panel textarea{width:100%;padding:10px 12px;resize:vertical;min-height:60px;max-height:120px;border:1px solid #c9d9e9;border-radius:10px;font:inherit}.ticket-actions{display:flex;gap:10px;flex-wrap:wrap}.ticket-actions #ticket-cancel{background:#f1f5fa;color:#315c80}.ticket-actions button:disabled{opacity:.55;cursor:wait}@media(max-width:760px){.ticket-offer{flex-direction:column;align-items:stretch}.ticket-offer button{width:100%}.ticket-panel{padding:12px 16px}}

/* KCB support template polish. */
.resource-icon svg{width:24px;height:24px;display:block;margin:auto}.chat-icon svg{width:23px;height:23px}.resource span:not(.resource-icon){min-width:0}.resource strong{line-height:1.3}.resource span span{line-height:1.45}.conversation-tools{background:#f8fafd;gap:7px}.conversation-tools button{min-height:40px}.conversation-tools #end{margin-left:auto;background:#fff;color:#5d4553;border-color:#ded7dc}.conversation button:disabled{cursor:not-allowed}.composer textarea:focus-visible,.ticket-panel textarea:focus-visible{outline:3px solid #68b8ee;outline-offset:2px;border-color:#3186bd}.attach:focus-within{outline:3px solid #68b8ee;outline-offset:3px}.attach{position:relative;line-height:1.3;flex-shrink:0}.composer-hint{font-size:11px;color:#62788d;margin:6px 0 0;line-height:1.4}.composer-actions{flex-wrap:wrap}.composer #send{min-height:44px;margin-left:auto;padding:10px 18px;border-color:#15588e}.bubble{line-height:1.5;border-radius:16px 16px 16px 4px}.bubble.own{border-radius:16px 16px 4px 16px}.bubble.system{border-radius:0}.bubble .meta{font-size:11px;line-height:1.4;margin-bottom:6px}.bubble.own .rich-card{border-color:#ffffff55}.bubble.own .rich-action{color:#163e60;background:#eaf4ff;border-radius:8px;padding:8px 12px;text-decoration:none}.new-messages{align-self:center;margin:4px 12px 8px;box-shadow:0 3px 12px #183b6115;flex-shrink:0}.chat-error{line-height:1.5}.rating{border-top:1px solid var(--border);background:#f8fafd}.ticket-actions button:hover{filter:brightness(.95)}@media(max-width:760px){.conversation-tools{padding:9px 12px}.conversation-tools button{font-size:11px;padding:8px 10px}.messages{padding:14px;gap:10px}.bubble{max-width:92%}.composer{padding:10px 12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.composer textarea{resize:none}.composer-hint{display:none}.chat-footer p{line-height:1.4}.ticket-actions button{flex:1}.expanded .chat-header,.chat-card:fullscreen .chat-header{padding-top:max(8px,env(safe-area-inset-top))}}@media(max-width:380px){.chat-header{gap:6px}.chat-header h2{font-size:18px}.icon-button{font-size:11px;padding:7px}.conversation-tools #end{margin-left:0}.composer-actions #upload-status{width:100%;order:3}}

body.portal-embedded{height:100dvh;min-height:0;overflow:hidden;background:white}
.portal-embedded .header,.portal-embedded .support-panel,.portal-embedded .page-footer{display:none}
.portal-embedded .workspace{display:block;max-width:none;padding:0;margin:0;height:100dvh;min-height:0}
.portal-embedded .chat-card{height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}
.portal-embedded .chat-header{padding:14px 17px}
.portal-embedded .chat-header h2{font-size:18px}
.portal-embedded .welcome{padding:20px;max-width:430px}
.portal-embedded .chat-header .icon-button{display:none}
.portal-embedded .chat-footer{padding:10px 15px}
.portal-embedded .conversation-toolbar{flex-wrap:wrap}
.portal-embedded .welcome .human-policy{font-size:12px;background:#edf5fc;border:1px solid #d9e8f1;border-radius:11px;padding:13px;color:#315c80;margin-bottom:15px}


/* Post-chat feedback and customer emoji controls. */
.rating{display:block;flex:none;max-height:50%;overflow:auto;padding:16px 20px;background:#f5f9fd}.rating h3{font-size:17px;line-height:1.3;margin:0 0 5px;color:#163e60}.rating-copy{margin:0 0 10px;color:#62788d}.rating-choices,.rating-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.rating-choices button[aria-pressed="true"]{background:#15588e;border-color:#15588e;color:white;box-shadow:0 0 0 2px #97c8ec}.rating label{display:block;margin:10px 0 5px;font-size:12px}.rating textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:50px;max-height:90px;padding:9px 11px;border:1px solid #c9d9e9;border-radius:10px;font:inherit}.rating #rating-submit{background:#15588e;color:white}.rating #resume{margin-top:4px}.rating #rating-error{color:#8b283d}.rating #rating-result{font-weight:700;color:#15588e}.rating button:focus-visible,.emoji-picker button:focus-visible,#emoji-toggle:focus-visible,.rating textarea:focus-visible{outline:3px solid #68b8ee;outline-offset:2px}.composer{position:relative}.emoji-picker{position:absolute;bottom:calc(100% - 1px);left:16px;z-index:5;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:10px;width:min(340px,calc(100% - 32px));box-sizing:border-box;background:#fff;border:1px solid #c9dfef;border-radius:14px;box-shadow:0 8px 28px #183b6126}.emoji-picker button{font-size:23px;padding:4px;min-width:32px;min-height:40px;background:transparent;border-color:transparent}.emoji-picker button:hover{background:#eaf4ff}.rating[hidden],.emoji-picker[hidden]{display:none!important}
@media(max-width:480px){.rating{padding:12px;max-height:55%}.rating h3{font-size:15px}.rating textarea{max-height:65px}.emoji-picker{grid-template-columns:repeat(8,1fr);gap:1px;padding:6px}.emoji-picker button{font-size:21px;padding:2px;min-width:0}#emoji-toggle span{display:none}}
