/* Homepage support widget. Keep all rules local to the shared footer component. */
#jls-online-service {
    --os-blue: #0052d9;
    --os-ink: #1a2233;
    --os-muted: #6d7688;
    --os-border: #e9edf5;
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 12000;
    color: var(--os-ink);
    font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    text-align: left;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}
#jls-online-service *, #jls-online-service *::before, #jls-online-service *::after { box-sizing: border-box; }
#jls-online-service [hidden] { display: none !important; }
#jls-online-service button, #jls-online-service textarea, #jls-online-service a { font: inherit; -webkit-tap-highlight-color: transparent; }
#jls-online-service button { margin: 0; cursor: pointer; }
#jls-online-service button:disabled { cursor: not-allowed; }
#jls-online-service a { text-decoration: none; }
#jls-online-service button:focus-visible, #jls-online-service a:focus-visible, #jls-online-service [tabindex]:focus-visible { outline: 2px solid var(--os-blue); outline-offset: 3px; }
#jls-online-service svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }

/* The animated SVG stays legible even when the text label is hidden on mobile. */
.jls-os-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 3px 20px 3px 5px;
    border: 1px solid #e0e7fa;
    border-radius: 34px;
    color: #26385c;
    background: #fff;
    box-shadow: 0 6px 26px #304c9226, 0 2px 5px #304c9208;
    transition: transform .2s ease, box-shadow .2s ease;
    isolation: isolate;
}
.jls-os-toggle:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #304c9233; }
.jls-os-toggle-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; }
.jls-os-toggle-icon { display: block; width: 56px; height: 56px; }
.jls-os-toggle-icon.is-close { display: none; width: 24px; height: 24px; color: var(--os-blue); }
#jls-online-service .jls-os-toggle-icon.is-close svg { width: 24px; height: 24px; }
.jls-os-toggle-text { font-weight: 600; font-size: 14px; }
.jls-os-toggle-text::after { display: none; content: none; }
.jls-os-toggle-dot { position: absolute; width: 9px; height: 9px; right: 3px; bottom: 6px; border: 2px solid white; border-radius: 50%; background: #b7bfd0; }
#jls-online-service.is-agent-online .jls-os-toggle-dot { background: #17996e; }
#jls-online-service.is-ai-online .jls-os-toggle-dot { background: var(--os-blue); }
#jls-online-service.is-open .jls-os-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; }
#jls-online-service.is-open .jls-os-toggle-mark { width: 46px; height: 46px; flex-basis: 46px; }
#jls-online-service.is-open .jls-os-toggle-text,
#jls-online-service.is-open .jls-os-toggle-icon.is-chat,
#jls-online-service.is-open .jls-os-toggle-dot { display: none; }
#jls-online-service.is-open .jls-os-toggle-icon.is-close { display: block; }
.jls-os-badge { position: absolute; top: -4px; right: -3px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; border: 2px solid #fff; border-radius: 12px; color: white; background: #db345b; font-size: 10px; line-height: 1; }

.jls-os-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    display: flex;
    flex-direction: column;
    width: 440px;
    height: 694px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    overflow: hidden;
    border: 1px solid #e4e8f0;
    border-radius: 6px;
    background: white;
    box-shadow: 0 12px 34px rgba(29,33,41,.20);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.985);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.jls-os-panel::before { display: none; content: none; }
#jls-online-service.is-open .jls-os-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
#jls-online-service.is-expanded .jls-os-panel { width: 560px; height: 820px; }
.jls-os-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 13px 16px 10px 22px; background: white; }
#jls-online-service .jls-os-header h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--os-ink); }
.jls-os-header h3 span { margin: 0 5px; color: #a8aebe; }
.jls-os-header-actions { display: flex; align-items: center; gap: 1px; }
#jls-online-service .jls-os-icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #7b8292; }
#jls-online-service .jls-os-icon-button svg { width: 17px; height: 17px; }
#jls-online-service .jls-os-icon-button:hover:not(:disabled) { color: var(--os-blue); background: #eef3ff; }
#jls-online-service .jls-os-icon-button:disabled { opacity: .35; }
.jls-os-tabs { flex: 0 0 auto; display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--os-border); background: #fff; }
.jls-os-tab { position: relative; flex: 1; display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 43px; padding: 8px 4px 12px; border: 0; background: transparent; color: #71788a; font-size: 13px; }
#jls-online-service .jls-os-tab svg { width: 16px; height: 16px; }
.jls-os-tab-note { font-size: 10px; color: #8b93a3; font-weight: 400; }
.jls-os-tab.is-active { color: var(--os-blue); font-weight: 600; }
.jls-os-tab.is-active::after { content: ""; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: var(--os-blue); border-radius: 2px; }
.jls-os-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; background: #fff; overflow: hidden; }
.jls-os-intro { flex: 1 1 auto; min-height: 0; padding: 16px 18px 12px; overflow-x: hidden; overflow-y: auto; background: #fff; }
.jls-os-intro, .jls-os-log { scrollbar-width: thin; scrollbar-color: #cbd2e0 transparent; overscroll-behavior: contain; }
.jls-os-intro::-webkit-scrollbar, .jls-os-log::-webkit-scrollbar { width: 5px; }
.jls-os-intro::-webkit-scrollbar-thumb, .jls-os-log::-webkit-scrollbar-thumb { border-radius: 5px; background: #cbd2e0; }
.jls-os-hero-mark { display: block; margin: -7px 0 6px -6px; width: 58px; height: 58px; }
#jls-online-service .jls-os-hero h2 { margin: 0 0 6px; color: #131a29; font-size: 27px; font-weight: 700; line-height: 1.35; letter-spacing: -.8px; }
.jls-os-hero h2 span { color: var(--os-blue); background: none; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
#jls-online-service .jls-os-hero p { margin: 0; color: var(--os-muted); font-size: 12px; line-height: 1.8; }
.jls-os-auth { display: flex; gap: 12px; margin: 15px 0 21px; }
#jls-online-service .jls-os-primary-link, #jls-online-service .jls-os-secondary-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; flex: 1; padding: 9px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
#jls-online-service .jls-os-primary-link { color: white; background: #0052d9; box-shadow: none; }
#jls-online-service .jls-os-primary-link:hover { background: #0044b8; }
#jls-online-service .jls-os-secondary-link { color: #293448; background: #ffffffcf; border-color: #eaf0fb; }
#jls-online-service .jls-os-secondary-link:hover { border-color: #c6d6f7; background: #fff; }
#jls-online-service .jls-os-primary-link svg { width: 14px; height: 14px; }
.jls-os-topic-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.jls-os-topic-card { min-width: 0; padding: 13px 13px 9px; border: 1px solid #ffffffeb; border-radius: 8px; background: #fffffff0; box-shadow: 0 5px 20px #6176b005; }
#jls-online-service .jls-os-topic-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 9px; color: #6174d3; font-size: 15px; font-weight: 600; line-height: 1.5; }
.jls-os-topic-card h4 span { background: none; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#jls-online-service .jls-os-topic-card h4 svg { width: 20px; height: 20px; color: #a198d8; }
#jls-online-service .jls-os-topic-card ul { margin: 0; padding: 0; list-style: none; }
#jls-online-service .jls-os-topic-card li { margin: 0; padding: 0; }
 .jls-os-topic-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 30px; padding: 5px 0; border: 0; background: transparent; color: #424c5e; font-size: 12px !important; line-height: 1.5 !important; text-align: left; }
#jls-online-service .jls-os-topic-card button svg { width: 12px; height: 12px; color: #bdc7db; margin-left: 3px; }
.jls-os-topic-card button:hover { color: var(--os-blue); }
.jls-os-topic-nav { display: flex; align-items: center; gap: 8px; padding: 8px 0 1px; }
#jls-online-service .jls-os-topic-nav .jls-os-icon-button { width: 28px; height: 28px; border: 1px solid #e0e5f2; border-radius: 50%; background: #ffffff8c; color: var(--os-blue); }
#jls-online-service .jls-os-topic-nav .jls-os-icon-button:not(:disabled) { background: var(--os-blue); border-color: var(--os-blue); color: #fff; }
.jls-os-page-indicator { margin-left: 2px; color: #67738c; font-size: 10px; font-variant-numeric: tabular-nums; }
.jls-os-page-indicator span { color: #969fb3; }
.jls-os-topic-tip { margin-left: auto; color: #7c869b; font-size: 10px; }
.jls-os-human-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 2px 0 16px; border: 1px solid #e6ecff; border-radius: 17px; color: #4774e7; background: #fff; }
#jls-online-service .jls-os-human-mark svg { width: 30px; height: 30px; }
.jls-os-human-card { padding: 18px; margin-top: 22px; border: 1px solid #e2e9f7; border-radius: 10px; background: #ffffffd9; }
.jls-os-human-card-title { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.jls-os-human-card-title > span:last-child { margin-left: auto; font-size: 10px; color: #667da6; background: #eef3ff; padding: 2px 7px; border-radius: 4px; }
#jls-online-service .jls-os-human-card p { color: var(--os-muted); font-size: 12px; margin: 10px 0 16px; line-height: 1.8; }
.jls-os-human-connect { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 6px; color: #fff; background: var(--os-blue); font-size: 13px; }
#jls-online-service .jls-os-human-connect svg { width: 16px; height: 16px; }
.jls-os-human-connect:hover { background: #1955d5; }
.jls-os-human-questions { display: flex; gap: 8px; margin: 13px 0; }
.jls-os-human-questions button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 3px; min-height: 36px; padding: 8px 4px; border: 1px solid #e5eaf5; border-radius: 6px; background: #ffffffbf; color: #59677f; font-size: 11px !important; }
#jls-online-service .jls-os-human-questions svg { width: 12px; height: 12px; }
.jls-os-human-offline, .jls-os-shared-note { margin: 12px 0 0; color: #7b8496; font-size: 11px; line-height: 1.8; }
.jls-os-human-offline { color: #86633d; }
.jls-os-conversation { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #f5f7fa; }
.jls-os-conversation-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #edf0f7; }
#jls-online-service .jls-os-status { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; color: #737e92; }
.jls-os-status-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #a4aec1; }
#jls-online-service.is-agent-online .jls-os-status-dot { background: #17996e; }
#jls-online-service.is-ai-online .jls-os-conversation .jls-os-status-dot { background: var(--os-blue); }
.jls-os-return { flex-shrink: 0; padding: 5px 0; border: 0; background: transparent; color: var(--os-blue); font-size: 11px !important; }
.jls-os-log { display: flex; flex: 1 1 auto; flex-direction: column; gap: 16px; min-height: 0; padding: 18px 20px 24px; overflow-y: auto; overflow-x: hidden; }
.jls-os-row { display: flex; width: 100%; flex: 0 0 auto; }
.jls-os-row.is-user { justify-content: flex-end; }
.jls-os-row.is-system, .jls-os-row.is-hint { justify-content: center; }
.jls-os-msg { max-width: 87%; padding: 11px 14px; color: #3b475c; font-size: 13px; line-height: 1.8; background: #fff; border: 1px solid #e8edf6; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.jls-os-msg.is-user { color: #fff; background: var(--os-blue); border-color: var(--os-blue); border-radius: 4px; }
.jls-os-msg.is-system, .jls-os-hint { max-width: 94%; padding: 1px 8px; border: 0; background: transparent; color: #748095; font-size: 11px; text-align: center; }
.jls-os-img { display: block; max-width: 220px; max-height: 200px; width: auto; height: auto; object-fit: contain; border-radius: 5px; cursor: zoom-in; }
.jls-os-img-caption { margin-top: 6px; }
.jls-os-img-preview { position: fixed; inset: 0; display: grid; place-items: center; padding: 50px 20px; background: #111827d9; z-index: 13000; cursor: zoom-out; }
.jls-os-img-preview > img { max-width: 94vw; max-height: 88vh; max-height: 88dvh; object-fit: contain; border-radius: 8px; }
.jls-os-img-preview-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border: 1px solid #ffffff80; border-radius: 50%; color: #fff; background: #28334b; font-size: 25px; cursor: pointer; }
.jls-os-img-preview-close:focus-visible { outline: 3px solid #8eb4ff; outline-offset: 3px; }
#jls-online-service .jls-os-jump { position: absolute; bottom: 10px; left: 50%; display: flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid #dde6fa; border-radius: 4px; transform: translateX(-50%); color: var(--os-blue); background: #fff; box-shadow: 0 3px 12px #30509114; font-size: 11px; }
#jls-online-service .jls-os-jump svg { width: 13px; height: 13px; transform: rotate(180deg); }
.jls-os-resume { display: flex; flex: 0 0 auto; justify-content: center; align-items: center; gap: 4px; padding: 8px; border: 0; background: #f4f7ff; color: var(--os-blue); font-size: 11px !important; }
#jls-online-service .jls-os-resume svg { width: 13px; height: 13px; }
.jls-os-composer { flex: 0 0 auto; padding: 10px 18px 12px; background: #fff; }
.jls-os-form { padding: 12px 12px 8px; border: 1px solid #dce1ea; border-radius: 4px; background: #fff; box-shadow: none; transition: border-color .15s ease; }
.jls-os-form:focus-within { border-color: #7da4ee; box-shadow: 0 0 0 2px rgba(0,82,217,.08); }
#jls-online-service .jls-os-input { display: block; width: 100%; min-height: 45px; max-height: 100px; margin: 0; padding: 0; border: 0; outline: none; border-radius: 0; background: transparent; resize: none; color: #263248; font-size: 13px; line-height: 1.7; box-shadow: none; }
.jls-os-input::placeholder { color: #8791a3; }
.jls-os-input-tools { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.jls-os-input-hint, .jls-os-send-status { color: #8891a3; font-size: 10px; line-height: 1.5; }
.jls-os-send { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto !important; padding: 0; border: 0; border-radius: 7px; background: var(--os-blue); color: #fff; }
#jls-online-service .jls-os-send svg { width: 17px; height: 17px; }
.jls-os-send:disabled { background: #c3d5fc; color: #fff; }
.jls-os-send:not(:disabled):hover { background: #1955d5; }
.jls-os-form.is-pending .jls-os-input-hint { display: none; }
#jls-online-service .jls-os-disclaimer { margin: 9px 0 0; color: #818a9b; font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 600px) {
    #jls-online-service { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
    .jls-os-toggle { width: 60px; height: 60px; padding: 1px; justify-content: center; }
    .jls-os-toggle-text { display: none; }
    .jls-os-panel, #jls-online-service.is-expanded .jls-os-panel { width: calc(100vw - 24px); max-width: 440px; height: 720px; max-height: calc(100vh - 88px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); bottom: 60px; border-radius: 14px; }
    .jls-os-header { min-height: 56px; padding: 10px 12px 7px 18px; }
    .jls-os-tabs { padding: 0 16px; }
    .jls-os-intro { padding: 20px 18px 14px; }
    .jls-os-expand { display: none !important; }
    .jls-os-composer { padding: 8px 12px 10px; }
    #jls-online-service .jls-os-input { font-size: 16px; }
    .jls-os-hero-mark { width: 60px; height: 60px; }
    #jls-online-service .jls-os-hero h2 { font-size: 26px; }
    .jls-os-auth { margin: 16px 0 22px; }
    .jls-os-topic-page { gap: 9px; }
    .jls-os-topic-card { padding: 14px 10px 10px; }
    .jls-os-topic-card button { font-size: 11px !important; }
    .jls-os-img { max-width: min(210px, 57vw); }
    .jls-os-human-connect, .jls-os-human-questions button { min-height: 42px; }
}
@media (max-width: 360px) {
    .jls-os-tab-note, .jls-os-topic-tip { display: none; }
    #jls-online-service .jls-os-hero h2 { font-size: 23px; }
    .jls-os-intro { padding-left: 14px; padding-right: 14px; }
    .jls-os-topic-card { padding-left: 8px; padding-right: 8px; }
    #jls-online-service .jls-os-topic-card h4 { font-size: 14px; }
    .jls-os-input-hint { font-size: 9px; }
    .jls-os-conversation-header { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    #jls-online-service *, #jls-online-service *::before, #jls-online-service *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .jls-os-toggle:hover { transform: none; }
}
@media (forced-colors: active) {
    .jls-os-hero h2 span, .jls-os-topic-card h4 span { -webkit-text-fill-color: currentColor; background: none; }
    .jls-os-tab.is-active::after { background: Highlight; }
    .jls-os-panel, .jls-os-form, .jls-os-toggle { border-color: CanvasText; }
}

/* Enterprise service direction: restrained cloud-console styling, no decorative AI gradients. */
#jls-online-service {
    --os-blue: #0052d9;
    --os-blue-hover: #0044b8;
    --os-ink: #1d2129;
    --os-muted: #5f6b7a;
    --os-border: #e7e9ed;
    --os-border-strong: #dcdfe6;
    --os-surface: #ffffff;
    --os-subtle: #f5f7fa;
    --os-blue-surface: #f2f7ff;
    --os-green: #00a870;
}
#jls-online-service .jls-os-toggle {
    min-width: 156px; height: 54px; padding: 3px 14px 3px 3px; gap: 10px;
    border: 1px solid #c9d8f4; border-radius: 5px; color: var(--os-ink);
    background: #fff; box-shadow: 0 4px 14px rgba(29,33,41,.14);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#jls-online-service .jls-os-toggle:hover { border-color: var(--os-blue); box-shadow: 0 7px 18px rgba(29,33,41,.18); transform: translateY(-1px); }
#jls-online-service .jls-os-toggle-mark { width: 46px; height: 46px; flex-basis: 46px; }
#jls-online-service .jls-os-toggle-icon { width: 46px; height: 46px; }
#jls-online-service .jls-os-toggle-copy { display: grid; min-width: 0; text-align: left; }
#jls-online-service .jls-os-toggle-text { color: var(--os-ink); font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
#jls-online-service .jls-os-toggle-text::after { display: none; content: none; }
#jls-online-service .jls-os-toggle-subtext { margin-top: 2px; color: var(--os-muted); font-size: 11px; line-height: 1.35; white-space: nowrap; }
#jls-online-service .jls-os-toggle-dot { right: 1px; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; background: #b7bdc6; }
#jls-online-service.is-agent-online .jls-os-toggle-dot { background: var(--os-green); }
#jls-online-service.is-ai-online .jls-os-toggle-dot { background: var(--os-blue); }
#jls-online-service.is-open .jls-os-toggle { min-width: 44px; width: 44px; height: 44px; padding: 0; border-color: var(--os-border-strong); }
#jls-online-service.is-open .jls-os-toggle-mark { width: 42px; height: 42px; flex-basis: 42px; }
#jls-online-service.is-open .jls-os-toggle-copy,
#jls-online-service.is-open .jls-os-toggle-icon.is-chat,
#jls-online-service.is-open .jls-os-toggle-dot { display: none; }
#jls-online-service .jls-os-badge { top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: #e34d59; }

#jls-online-service .jls-os-panel {
    width: 452px; height: 694px; bottom: 62px; border: 1px solid var(--os-border-strong);
    border-radius: 6px; background: #fff; box-shadow: 0 12px 34px rgba(29,33,41,.20);
    transform: translateY(8px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
#jls-online-service .jls-os-panel::before { display: none; }
#jls-online-service.is-expanded .jls-os-panel { width: 560px; height: 790px; }
#jls-online-service .jls-os-header { min-height: 62px; padding: 12px 14px 11px 18px; border-bottom: 1px solid var(--os-border); background: #fff; }
#jls-online-service .jls-os-header-copy { min-width: 0; }
#jls-online-service .jls-os-header h3 { color: var(--os-ink); font-size: 16px; font-weight: 600; }
#jls-online-service .jls-os-header p { margin: 2px 0 0; color: var(--os-muted); font-size: 11px; }
#jls-online-service .jls-os-icon-button { width: 32px; height: 32px; border-radius: 4px; color: #5f6b7a; }
#jls-online-service .jls-os-icon-button:hover:not(:disabled) { color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-tabs { gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--os-border); background: #fff; }
#jls-online-service .jls-os-tab { flex: 0 0 auto; min-height: 43px; padding: 10px 0 11px; color: var(--os-muted); font-size: 13px; font-weight: 400; }
#jls-online-service .jls-os-tab-note { color: #86909c; font-size: 11px; }
#jls-online-service .jls-os-tab.is-active { color: var(--os-blue); font-weight: 600; }
#jls-online-service .jls-os-tab.is-active::after { left: 0; right: 0; height: 2px; border-radius: 0; background: var(--os-blue); }
#jls-online-service .jls-os-intro { padding: 16px 18px 12px; background: #fff; }
#jls-online-service .jls-os-hero { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #cfe0fa; border-radius: 4px; background: #f2f7ff; }
#jls-online-service .jls-os-hero-mark,
#jls-online-service .jls-os-human-mark { width: 46px; height: 46px; flex: 0 0 46px; margin: 0; }
#jls-online-service .jls-os-hero-mark { object-fit: contain; }
#jls-online-service .jls-os-human-mark { display: grid; place-items: center; border: 1px solid #d8e5fa; border-radius: 4px; color: var(--os-blue); background: #fff; }
#jls-online-service .jls-os-human-mark svg { width: 23px; height: 23px; }
#jls-online-service .jls-os-hero-copy { min-width: 0; }
#jls-online-service .jls-os-hero h2 { margin: 0 0 3px; color: var(--os-ink); font-size: 16px; font-weight: 600; letter-spacing: 0; }
#jls-online-service .jls-os-hero h2 span { color: var(--os-ink); background: none; -webkit-text-fill-color: currentColor; }
#jls-online-service .jls-os-hero p { margin: 0; color: var(--os-muted); font-size: 12px; line-height: 1.7; }
#jls-online-service .jls-os-auth { gap: 10px; margin: 12px 0 14px; }
#jls-online-service .jls-os-primary-link,
#jls-online-service .jls-os-secondary-link { min-height: 34px; padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
#jls-online-service .jls-os-primary-link { border-color: var(--os-blue); background: var(--os-blue); box-shadow: none; }
#jls-online-service .jls-os-primary-link:hover { background: var(--os-blue-hover); }
#jls-online-service .jls-os-secondary-link { color: var(--os-blue); border-color: #b9cef5; background: #fff; }
#jls-online-service .jls-os-secondary-link:hover { border-color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-topic-page { gap: 12px; }
#jls-online-service .jls-os-topic-card { padding: 13px 12px 9px; border: 1px solid var(--os-border); border-radius: 4px; background: #fff; box-shadow: none; }
#jls-online-service .jls-os-topic-card h4 { margin-bottom: 8px; color: var(--os-ink); font-size: 13px; }
#jls-online-service .jls-os-topic-card h4 span { position: relative; display: inline-block; padding-left: 8px; color: var(--os-ink); background: none; -webkit-text-fill-color: currentColor; }
#jls-online-service .jls-os-topic-card h4 span::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 3px; border-radius: 0; background: var(--os-blue); }
#jls-online-service .jls-os-topic-card li + li { border-top: 1px solid #f0f1f3; }
#jls-online-service .jls-os-topic-card button { min-height: 32px; padding: 6px 0; border-radius: 3px; color: #4e5969; font-size: 12px; }
#jls-online-service .jls-os-topic-card button:hover { padding-right: 5px; padding-left: 5px; color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-topic-nav { min-height: 35px; margin-top: 10px; }
#jls-online-service .jls-os-human-card { margin-top: 13px; padding: 13px; border: 1px solid var(--os-border); border-radius: 4px; background: #fff; }
#jls-online-service .jls-os-human-card-title strong { font-size: 13px; }
#jls-online-service .jls-os-human-description { margin: 8px 0 12px; color: var(--os-muted); font-size: 12px; }
#jls-online-service .jls-os-human-connect { min-height: 34px; padding: 6px 12px; border: 1px solid #b9cef5; border-radius: 4px; color: var(--os-blue); background: #fff; font-size: 12px; font-weight: 500; }
#jls-online-service .jls-os-human-connect:hover { border-color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-human-questions { gap: 8px; margin-top: 12px; }
#jls-online-service .jls-os-human-questions button { min-height: 35px; padding: 6px 8px; border: 1px solid var(--os-border); border-radius: 4px; color: #4e5969; background: #fff; font-size: 11px; }
#jls-online-service .jls-os-human-questions button:hover { border-color: #b9cef5; color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-human-offline { border-left: 3px solid #ed7b2f; color: #7c5f11; background: #fff7e8; }
#jls-online-service .jls-os-conversation { background: var(--os-subtle); }
#jls-online-service .jls-os-conversation-header { min-height: 40px; padding: 8px 18px; border-bottom: 1px solid var(--os-border); background: #fff; }
#jls-online-service .jls-os-return { color: var(--os-blue); }
#jls-online-service .jls-os-log { gap: 10px; padding: 14px 18px 18px; }
#jls-online-service .jls-os-msg { max-width: 86%; padding: 9px 11px; border: 1px solid var(--os-border); border-radius: 4px; color: #4e5969; background: #fff; font-size: 13px; line-height: 1.72; }
#jls-online-service .jls-os-msg.is-user { border-color: var(--os-blue); border-radius: 4px; background: var(--os-blue); }
#jls-online-service .jls-os-msg.is-system,
#jls-online-service .jls-os-hint { color: #86909c; background: transparent; }
#jls-online-service .jls-os-jump { padding: 6px 10px; border: 1px solid #b9cef5; border-radius: 4px; color: var(--os-blue); background: #fff; box-shadow: 0 3px 8px rgba(29,33,41,.10); }
#jls-online-service .jls-os-resume { min-height: 34px; padding: 7px 12px; border-bottom: 1px solid #dfe9fb; color: var(--os-blue); background: var(--os-blue-surface); }
#jls-online-service .jls-os-composer { padding: 10px 18px 11px; border-top: 1px solid var(--os-border); background: #fff; }
#jls-online-service .jls-os-form { padding: 9px 10px 7px; border: 1px solid var(--os-border-strong); border-radius: 4px; box-shadow: none; }
#jls-online-service .jls-os-form:focus-within { border-color: #7da4ee; box-shadow: 0 0 0 2px rgba(0,82,217,.08); }
#jls-online-service .jls-os-input { min-height: 43px; color: var(--os-ink); font-size: 13px; }
#jls-online-service .jls-os-send { width: 30px; height: 30px; border: 1px solid var(--os-blue); border-radius: 4px; background: var(--os-blue); }
#jls-online-service .jls-os-send:disabled { border-color: #c9d8f4; background: #c9d8f4; }
#jls-online-service .jls-os-send:not(:disabled):hover { background: var(--os-blue-hover); }
#jls-online-service .jls-os-disclaimer { margin-top: 7px; color: #86909c; }
#jls-online-service .jls-os-contact,
#jls-online-service .jls-os-qr,
#jls-online-service .jls-os-offline,
#jls-online-service .jls-os-presets { display: none; }
@media (max-width: 600px) {
    #jls-online-service { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
    #jls-online-service .jls-os-toggle { min-width: 48px; width: 48px; height: 48px; padding: 1px; justify-content: center; }
    #jls-online-service .jls-os-toggle-mark { width: 44px; height: 44px; flex-basis: 44px; }
    #jls-online-service .jls-os-toggle-icon { width: 44px; height: 44px; }
    #jls-online-service .jls-os-toggle-copy { display: none; }
    #jls-online-service .jls-os-panel,
    #jls-online-service.is-expanded .jls-os-panel { width: calc(100vw - 24px); max-width: 452px; height: 694px; max-height: calc(100vh - 76px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 76px - env(safe-area-inset-bottom)); bottom: 56px; border-radius: 5px; }
    #jls-online-service .jls-os-header { min-height: 58px; padding: 10px 10px 9px 15px; }
    #jls-online-service .jls-os-tabs { padding: 0 15px; gap: 18px; }
    #jls-online-service .jls-os-intro { padding: 14px 14px 10px; }
    #jls-online-service .jls-os-composer { padding: 8px 12px 9px; }
    #jls-online-service .jls-os-input { font-size: 16px; }
    #jls-online-service .jls-os-topic-card { padding: 11px 9px 8px; }
    #jls-online-service .jls-os-topic-card button { font-size: 11px; }
    #jls-online-service .jls-os-human-questions { gap: 6px; }
    #jls-online-service .jls-os-human-questions button { padding: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    #jls-online-service *, #jls-online-service *::before, #jls-online-service *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    #jls-online-service .jls-os-toggle:hover { transform: none; }
}
@media (forced-colors: active) {
    #jls-online-service .jls-os-hero h2 span, #jls-online-service .jls-os-topic-card h4 span { -webkit-text-fill-color: currentColor; background: none; }
}
#jls-online-service .jls-os-configured-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--os-border); }
#jls-online-service .jls-os-configured-presets > span { width: 100%; color: var(--os-muted); font-size: 11px; }
#jls-online-service .jls-os-configured-presets button { padding: 4px 8px; border: 1px solid #c9d8f4; border-radius: 3px; color: var(--os-blue); background: #fff; font-size: 11px; }
#jls-online-service .jls-os-configured-presets button:hover { background: var(--os-blue-surface); border-color: var(--os-blue); }
#jls-online-service .jls-os-contact-strip { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--os-border); color: var(--os-muted); font-size: 11px; line-height: 1.5; }
#jls-online-service .jls-os-contact-strip a { color: var(--os-blue); }
#jls-online-service .jls-os-contact-strip a:hover { color: var(--os-blue-hover); text-decoration: underline; }
/* Keep the panel edge neutral even when a host theme adds decorative focus chrome. */
#jls-online-service .jls-os-panel {
    border-left: 1px solid var(--os-border-strong) !important;
    box-shadow: 0 12px 34px rgba(29, 33, 41, .20) !important;
}