/* One public header for the website and both monitor preview states. */
.jm-search-wide.jm-contract-header{--topbar-h:57px}
.jm-public-header.topbar{box-sizing:border-box;position:fixed;inset:0 0 auto;display:block;width:100%;height:57px;min-height:57px;margin:0;padding:0;z-index:1000;background:rgba(11,16,32,.72);border:0;border-bottom:1px solid rgba(233,238,252,.12);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font:400 16px/1.65 system-ui,-apple-system,"Segoe UI","Meiryo UI",sans-serif;color:#e9eefc;--jm-header-brand-color:#e9eefc;--text:#e9eefc;--chip:rgba(102,214,255,.16)}
html.jm-theme-light .jm-public-header.topbar{background:rgba(255,255,255,.92);border-bottom-color:rgba(0,0,0,.28);color:#172b47;--jm-header-brand-color:#172b47;--text:#111827;--chip:#edf3ff}
.jm-search-wide.jm-contract-header .jm-public-header .topbar-inner{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px;gap:0 8px;align-items:center;width:100%;max-width:1100px;height:56px;margin:0 auto;padding:6px 16px}
.jm-public-header .brand-row{display:inline-flex;align-items:center;gap:10px;min-width:0}
.jm-public-header .brand{display:inline-flex;align-items:center;gap:clamp(6px,1vw,10px);flex-shrink:0;margin:0;padding:0;border:0;background:transparent;color:var(--jm-header-brand-color)!important;font:800 20px/1.65 system-ui,-apple-system,"Segoe UI","Meiryo UI",sans-serif;letter-spacing:.08em;white-space:nowrap;text-decoration:none;cursor:pointer}
.jm-public-header .jm-public-logo{display:block;flex-shrink:0;width:clamp(24px,3vw,34px);height:clamp(24px,3vw,34px);margin:0}
.jm-public-header [hidden]{display:none!important}
.jm-public-header .jm-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:140px;color:var(--text)}
.jm-public-header .jm-header-tools>[data-jm-chat-launch]{display:block;width:44px;height:44px}
.jm-public-header .jm-header-tools>:is(#jm-gear,.jm-desktop-line),.jm-public-header .jm-header-tools .jm-chat-launch{box-sizing:border-box;position:static;display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:700 13px/1.2 system-ui,sans-serif;box-shadow:none;text-decoration:none;white-space:nowrap;cursor:pointer}
.jm-public-header .jm-header-tools>:is(#jm-gear,.jm-desktop-line)>:is(img,svg),.jm-public-header .jm-header-tools .jm-chat-launch>img{box-sizing:border-box;display:block;flex:none;width:32px;height:32px;object-fit:contain}
.jm-public-header .jm-header-tools #jm-gear>svg{fill:none!important;stroke:currentColor!important;stroke-width:1.3!important;filter:none!important}
html:not(.jm-theme-light) .jm-public-header .jm-chat-launch>img{padding:1px 3px;border-radius:5px;background:#f2f6ff}
.jm-public-header :is(.brand,#jm-gear,.jm-desktop-line,.jm-chat-launch):focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
#jm-detail-settings-dialog::backdrop{background:transparent}
@media(hover:hover){.jm-public-header .jm-header-tools :is(#jm-gear,.jm-desktop-line,.jm-chat-launch):hover{background:var(--chip)}}
@media(max-width:900px){html:not(.jm-theme-light) .jm-public-header.topbar{backdrop-filter:none;background:rgba(11,16,32,.92)}}
@media(max-width:380px){.jm-search-wide.jm-contract-header .jm-public-header .topbar-inner{padding-inline:8px}.jm-public-header .brand-row{gap:6px}.jm-public-header .brand{font-size:12px}}

/* Keep the same brand color after visiting TOP, hovering or focusing the link. */
html .jm-public-header.topbar a.brand,html .jm-public-header.topbar a.brand:visited,html .jm-public-header.topbar a.brand:hover,html .jm-public-header.topbar a.brand:active,html .jm-public-header.topbar a.brand:focus{color:var(--jm-header-brand-color)!important;text-decoration:none}
