.chat-surface{--chat-ink:#203c36;--chat-line:#d9e4dc;--chat-green:#20574d;--chat-paper:#f5f7f3;color:var(--chat-ink)!important;font:15px/1.75 system-ui,sans-serif!important;box-shadow:0 24px 80px #17352b30!important;border:1px solid var(--chat-line)!important;overflow:hidden}
.chat-surface::backdrop{background:#193e343d;backdrop-filter:blur(2px)}
.chat-surface>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 22px;background:#fff!important;color:var(--chat-ink)!important;border-bottom:1px solid var(--chat-line);flex:none;min-height:76px;box-sizing:border-box}
.chat-surface-title{min-width:0;flex:1}
.chat-surface-brand{display:block;color:#4d7263;font:650 11px/1.4 system-ui,sans-serif;letter-spacing:.07em;margin-bottom:3px}
.chat-surface>header h2{margin:0!important;font:650 17px/1.45 system-ui,sans-serif!important;overflow-wrap:anywhere}
.chat-surface>header button{min-width:44px;min-height:44px;color:#20574d!important;background:#f0f5f0!important;border:1px solid #d8e4d9!important;border-radius:12px!important;box-shadow:none!important}
.chat-surface .journal-intl-intro{padding:11px 22px;background:#fff;border-bottom:1px solid var(--chat-line);color:#4a625a;font-size:12px;line-height:1.6}
.chat-surface .journal-intl-messages,.chat-surface .isc-chat-log{background:var(--chat-paper)!important;padding:22px!important;min-height:0!important;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a1b9a8 transparent}
.chat-surface .journal-intl-message:not(.is-user),.chat-surface .isc-chat-reply{box-sizing:border-box;max-width:100%!important;margin-inline:0!important;padding:17px 19px!important;background:#fff!important;color:var(--chat-ink)!important;border:1px solid var(--chat-line);border-inline-start:3px solid #9bbca6;border-radius:5px 16px 16px 16px!important;line-height:1.85!important;font-size:15px!important}
.chat-surface .journal-intl-message.is-user,.chat-surface .isc-chat-user{box-sizing:border-box;max-width:calc(100% - 28px)!important;margin-inline-start:auto!important;padding:14px 17px!important;background:var(--chat-green)!important;color:#fff!important;border:0;border-radius:16px 5px 16px 16px!important;font-weight:500!important;line-height:1.8!important}
.chat-surface [data-chat-speaker]::before{font-size:11px;letter-spacing:.015em;margin-bottom:7px}
.chat-surface .chat-reference-card{background:#f4f8f2!important;box-shadow:none!important}
.chat-surface .isc-chat-controls{padding:14px 20px 16px!important;background:#fff;border-top:1px solid var(--chat-line)}
.chat-surface .isc-chat-form{gap:9px!important;align-items:end}
.chat-surface textarea{box-sizing:border-box;font:16px/1.6 system-ui,sans-serif!important;min-height:58px!important;max-height:136px!important;padding:12px 14px!important;border:1px solid #6f8e7c!important;border-radius:14px!important;background:#fafcf9!important;color:var(--chat-ink)!important;box-shadow:none!important;resize:vertical}
.chat-surface textarea:focus{border-color:#20574d!important;outline:3px solid #d4e8db!important;outline-offset:1px}
.chat-surface .isc-chat-form>button,.chat-surface .journal-intl-panel form>button,.chat-surface.journal-intl-panel form>button{min-height:58px!important;min-width:70px;padding:12px 16px!important;background:var(--chat-green)!important;color:#fff!important;border:0!important;border-radius:14px!important;box-shadow:none!important;font:650 14px/1.45 system-ui,sans-serif!important}
.chat-surface button:disabled{opacity:.6;cursor:default}
.chat-surface .isc-chat-footer{margin-top:8px}
.chat-surface .isc-chat-footer small{display:block;color:#526b60;font-size:12px;line-height:1.6}
.chat-surface .isc-chat-footer>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.chat-surface .isc-chat-footer button{min-height:44px;padding:6px 10px!important;border:1px solid #dae5dc!important;border-radius:8px!important;background:#f6f9f4!important;color:#285b4b!important;text-decoration:none!important;font-size:12px!important;line-height:1.5}
.chat-surface.journal-intl-panel form{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:15px 20px 16px;background:#fff;align-items:end}
.chat-surface.journal-intl-panel form>label{grid-column:1;grid-row:1;min-width:0}
.chat-surface.journal-intl-panel form>button{grid-column:2;grid-row:1}
.chat-surface .journal-intl-company{grid-column:1;grid-row:2;min-width:0;align-self:center}
.chat-surface .journal-intl-company summary{font-size:11.5px;line-height:1.55;min-height:44px;padding-block:5px;box-sizing:border-box}
.chat-surface .journal-intl-company input{min-width:0;font-size:16px;border-radius:10px}
.chat-surface.journal-intl-panel form>a{grid-column:2;grid-row:2;max-width:145px;min-height:44px;padding:6px 9px;border-color:#d9e4dc;background:#f7faf5;font-size:11.5px;line-height:1.5}
.chat-compose-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-surface .chat-reader-latest{background:#fff!important;color:#20574d!important;border:1px solid #a7c2af!important;box-shadow:0 3px 14px #1b44301c}
@media(min-width:601px){.chat-surface{position:fixed!important;inset:auto 20px 20px auto!important;transform:none!important;margin:0!important;width:min(600px,calc(100vw - 40px))!important;max-width:none!important;height:min(820px,calc(100dvh - 40px))!important;max-height:calc(100dvh - 40px)!important;border-radius:22px!important}}
@media(max-width:600px){.chat-surface{inset:0!important;transform:none!important;margin:0!important;width:100%!important;max-width:none!important;border:0!important;border-radius:0!important}.chat-surface>header{min-height:68px;padding:11px 16px}.chat-surface>header h2{font-size:16px!important}.chat-surface .journal-intl-intro{padding:9px 16px}.chat-surface .journal-intl-messages,.chat-surface .isc-chat-log{padding:16px!important}.chat-surface .journal-intl-message:not(.is-user),.chat-surface .isc-chat-reply{padding:14px 15px!important}.chat-surface .isc-chat-controls,.chat-surface.journal-intl-panel form{padding:12px 14px 14px!important}.chat-surface textarea{min-height:56px!important}.chat-surface .isc-chat-form>button,.chat-surface.journal-intl-panel form>button{min-height:56px!important;min-width:64px;padding:11px 13px!important}}
@media(max-height:520px){.chat-surface>header{min-height:52px;padding-block:5px}.chat-surface-brand{display:none}.chat-surface .journal-intl-intro{display:none}.chat-surface.journal-intl-panel form{flex-shrink:1;min-height:0;overflow-y:auto;padding-block:8px!important}.chat-surface .journal-intl-messages,.chat-surface .isc-chat-log{padding-block:10px!important}.chat-surface .isc-chat-footer small{font-size:11.5px}.chat-surface .isc-chat-controls{padding-block:8px!important}}
@media(prefers-reduced-motion:reduce){.chat-surface::backdrop{backdrop-filter:none}}
.chat-surface[dir=rtl] .journal-intl-message:not(.is-user){border-radius:16px 5px 16px 16px!important}
.chat-surface[dir=rtl] .journal-intl-message.is-user{border-radius:5px 16px 16px 16px!important}
@media(max-width:600px){.chat-surface .isc-chat-controls{padding-bottom:max(14px,env(safe-area-inset-bottom))!important}}
.chat-surface .isc-chat-log button,.chat-surface .isc-chat-chips button{box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 13px!important;border:1px solid #789783!important;border-radius:11px!important;background:#f8fbf6!important;color:#245344!important;white-space:normal;overflow-wrap:anywhere;text-align:start;line-height:1.6;box-shadow:none!important}
.chat-surface .isc-chat-log button:hover,.chat-surface .isc-chat-chips button:hover{background:#eaf3e6!important}
.chat-surface .isc-chat-chips button[aria-pressed=true]{background:#20574d!important;color:#fff!important}

.chat-draft-count{grid-column:1/-1;display:block;text-align:end;color:#4b6959;font:500 11.5px/1.5 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.chat-draft-count[hidden]{display:none!important}
.chat-draft-count.is-full{color:#845020;font-weight:650}
.isc-chat-form.has-draft-count{flex-wrap:wrap}
.isc-chat-form .chat-draft-count{flex-basis:100%}

.journal-chat-compact .chat-surface.chat-composing .chat-reader-tools{display:none!important}
.journal-chat-compact .chat-surface textarea{max-height:96px!important}
.journal-chat-compact .chat-surface .isc-chat-controls{flex-shrink:1;min-height:0;overflow-y:auto}
