.gj-journal { min-width:0; color:#204560; margin-top:14px; }
.gj-journal *, .gj-journal-history * { box-sizing:border-box; }
.gj-journal [hidden], .gj-journal-history [hidden] { display:none!important; }
.gj-journal button,.gj-journal-history button { width:auto; margin:0; min-height:36px; padding:7px 11px; border:1px solid #c8ddeb; border-radius:7px; color:#205e88; background:#fff; font:inherit; box-shadow:none; }
.gj-journal button:focus-visible,.gj-journal summary:focus-visible,.gj-journal-history button:focus-visible { outline:3px solid #228ae0; outline-offset:2px; }
.gj-journal button[aria-pressed=true] { color:#fff; background:#1779d4; border-color:#1779d4; }
.gj-journal-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.gj-journal-head strong { font-size:16px; }
.gj-journal [data-expand] { background:#1779d4; color:#fff; border-color:#1779d4; }
.gj-journal-tools { display:grid; grid-template-columns:minmax(150px,1fr) auto minmax(180px,1fr); gap:10px; align-items:end; margin-bottom:12px; }
.gj-journal-tools label,.gj-journal-account-field { display:grid; gap:5px; margin:0; min-width:0; font-size:13px; color:#617f96; }
.gj-journal-tools select { width:100%; min-width:0; height:42px; margin:0; padding:6px 9px; color:#204560; background:white; border:1px solid #c8ddeb; border-radius:7px; font:inherit; }
.gj-journal [data-history] { height:42px; }
.gj-journal-picker { position:relative; margin:0; border:0; padding:0; background:none; }
.gj-journal-picker summary { list-style:none; display:flex; justify-content:space-between; align-items:center; gap:8px; height:42px; padding:6px 10px; color:#204560; background:#fff; border:1px solid #c8ddeb; border-radius:7px; cursor:pointer; }
.gj-journal-picker summary::-webkit-details-marker { display:none; }
.gj-journal [data-account-value] { display:flex; align-items:center; gap:7px; min-width:0; overflow-wrap:anywhere; }
.gj-journal-options { position:absolute; top:calc(100% + 4px); left:0; right:0; max-height:300px; overflow:auto; padding:5px; background:white; border:1px solid #c8ddeb; border-radius:8px; z-index:15; box-shadow:0 5px 20px #102f4b26; }
.gj-journal-options button { display:flex; gap:8px; align-items:center; width:100%; min-height:40px; border:0; text-align:left; overflow-wrap:anywhere; }
/* Keep account choices distinct from workspace-wide primary buttons. */
.gj-journal .gj-journal-picker summary { background:#fff!important; color:#204560!important; transition:background-color .12s,border-color .12s; }
.gj-journal .gj-journal-picker summary:hover { background:#f2f7fc!important; border-color:#8fbbe0; }
.gj-journal .gj-journal-picker[open] summary { border-color:#8fbbe0; }
.gj-journal .gj-journal-options button { background:#fff!important; color:#45657e!important; border:0!important; box-shadow:none!important; filter:none!important; cursor:pointer; transition:background-color .12s,transform .08s; }
.gj-journal .gj-journal-options button::after { content:'✓'; visibility:hidden; margin-left:auto; padding-left:8px; font-weight:700; }
.gj-journal .gj-journal-options button:hover:not(:disabled) { background:#edf5fc!important; color:#245b87!important; }
.gj-journal .gj-journal-options button[aria-pressed="true"] { background:#deedfa!important; color:#205e88!important; font-weight:600; }
.gj-journal .gj-journal-options button[aria-pressed="true"]::after { visibility:visible; }
.gj-journal .gj-journal-options button[aria-pressed="true"]:hover { background:#d1e5f7!important; }
.gj-journal .gj-journal-options button:active:not(:disabled) { transform:translateY(1px); }
.gj-journal .gj-journal-options button:focus-visible { outline:2px solid #0d66b7!important; outline-offset:-2px; }
@media(prefers-reduced-motion:reduce){.gj-journal .gj-journal-picker summary,.gj-journal .gj-journal-options button{transition:none}}
.gj-journal-filters { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px; }
.gj-journal-filters button { font-size:13px; min-height:34px; padding:6px 10px; }
/* Workspace-wide button colors must not hide the actual filter selection. */
.gj-journal .gj-journal-filters button { background:#eef3f8!important; color:#45657e!important; border-color:#cedde9!important; cursor:pointer; filter:none!important; transition:background-color .12s,border-color .12s,box-shadow .12s,transform .08s; }
.gj-journal .gj-journal-filters button:hover:not(:disabled) { background:#deedfa!important; color:#245b87!important; border-color:#8fbbe0!important; }
.gj-journal .gj-journal-filters button[aria-pressed="true"] { background:#1779d4!important; color:#fff!important; border-color:#1779d4!important; box-shadow:inset 0 -2px 0 #105da6!important; font-weight:600; }
.gj-journal .gj-journal-filters button[aria-pressed="true"]:hover { background:#126abc!important; border-color:#126abc!important; }
.gj-journal .gj-journal-filters button:active:not(:disabled) { transform:translateY(1px); }
.gj-journal .gj-journal-filters button:focus-visible { outline:3px solid #0d66b7!important; outline-offset:3px; }
@media(prefers-reduced-motion:reduce){.gj-journal .gj-journal-filters button{transition:none}}
.gj-journal-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; color:#617f96; font-size:12px; margin:10px 0; }
.gj-journal-meta label { display:flex; align-items:center; gap:6px; margin:0; font-size:12px; }
.gj-journal input[type=checkbox],.gj-journal-history input[type=checkbox] { width:16px; height:16px; margin:0; flex:none; }
.gj-journal-body { position:relative; min-width:0; }
.gj-journal #neuroLogContent,.gj-journal #neuroChatLaunchLogs { display:block!important; background:#112e45; color:#e5f2ff; border:0; border-radius:9px; padding:12px 14px 38px; overflow:auto; resize:none; white-space:normal; min-height:180px; max-height:none; width:100%; font:13px/1.55 Arial,sans-serif; }
.gj-journal-day { color:#aec9de; font-weight:600; border-bottom:1px solid #aac4d628; padding-bottom:7px; margin-bottom:4px; }
.gj-journal-entry { padding:9px 2px; border-bottom:1px solid #aac4d620; overflow-wrap:anywhere; }
.gj-journal-entry:last-child { border-bottom:0; }
.gj-journal-entry summary { cursor:pointer; border:0; background:none; padding:0; margin:0; color:inherit; }
.gj-journal-entry summary::marker { color:#a7c9e1; }
.gj-journal-entry time { color:#adc5d7; font-variant-numeric:tabular-nums; font-size:12px; margin-right:8px; }
.gj-journal-identity { display:inline-flex; align-items:center; gap:5px; vertical-align:middle; }
.gj-journal-avatar { display:inline-grid; place-items:center; position:relative; flex:none; width:24px; height:24px; border-radius:50%; overflow:hidden; background:#5b89ef; color:#fff; font:600 11px/1 Arial,sans-serif; }
.gj-journal-avatar img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; }
.gj-journal .gj-journal-peer { display:inline; background:none; color:#e5f2ff; border:0; border-bottom:1px dotted #adc5d7; border-radius:0; padding:0; min-height:0; font:inherit; vertical-align:baseline; }
.gj-journal-text { margin-left:5px; }
.gj-journal-badge { display:inline-block; margin-left:8px; font-size:11px; color:#aacbdf; }
.gj-journal-entry.success .gj-journal-badge { color:#9ee9c1; }
.gj-journal-entry.warning { border-left:3px solid #eabb63; padding-left:8px; }
.gj-journal-entry.warning .gj-journal-badge { color:#f5d697; }
.gj-journal-entry.error { border-left:3px solid #e57585; padding-left:8px; }
.gj-journal-entry.error .gj-journal-badge { color:#ffb6c0; }
.gj-journal-stages { margin:9px 0 3px 20px; padding:5px 12px; border-left:2px solid #577b9580; background:#091f303d; }
.gj-journal-stage { display:grid; grid-template-columns:70px minmax(0,1fr); gap:8px; padding:5px 0; }
.gj-journal-stage.warning { color:#f5d697; }.gj-journal-stage.error { color:#ffb6c0; }
.gj-journal-tech { color:#adc5d7; padding-top:8px; margin-top:8px; border-top:1px solid #aac4d628; font:12px/1.6 Consolas,monospace; }
.gj-journal-empty { padding:20px 4px; color:#adc5d7; }
.gj-journal button.gj-journal-resize { position:absolute; right:2px; bottom:2px; width:36px; height:32px; min-height:32px; margin:0; padding:0; border:1px solid #7598b0; border-radius:7px 0 7px 0; font-size:22px; color:#276a98; background:#dfeef8; cursor:ns-resize; touch-action:none; }
.gj-journal-footer { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-top:7px; font-size:12px; color:#617f96; }
.gj-journal-fullscreen { box-sizing:border-box; inset:10px; width:calc(100vw - 20px); height:calc(100dvh - 20px); max-width:none; max-height:none; padding:16px; margin:0; border:1px solid #bad4e8; border-radius:12px; background:#fff; overflow:hidden; }
.gj-journal-fullscreen::backdrop,.gj-journal-history::backdrop { background:#102b4499; }
.gj-journal-fullscreen[open] { display:flex; }
.gj-journal-fullscreen .gj-journal { display:flex!important; flex-direction:column; width:100%; height:100%; margin:0; min-height:0; }
.gj-journal-fullscreen .gj-journal-body { flex:1; display:flex; min-height:0; }
.gj-journal-fullscreen .gj-journal #neuroLogContent,.gj-journal-fullscreen .gj-journal #neuroChatLaunchLogs { height:auto!important; min-height:0!important; flex:1; }
.gj-journal-fullscreen .gj-journal-resize { display:none!important; }
body:has(.gj-journal-fullscreen[open]) { overflow:hidden; }
.gj-journal-history { width:min(780px,calc(100vw - 24px)); max-height:85dvh; padding:18px; border:1px solid #bad4e8; border-radius:12px; background:white; color:#204560; }
.gj-journal-history-dates,.gj-journal-history-actions,.gj-journal-history-pages { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:12px 0; }
.gj-journal-history-dates label { display:grid; gap:5px; }
.gj-journal-history input[type=date] { min-width:0; border:1px solid #c8ddeb; border-radius:7px; padding:7px; font:inherit; }
.gj-journal-history-actions { justify-content:space-between; align-items:center; }
.gj-journal-history-actions label { display:flex; align-items:center; gap:6px; }
.gj-journal-history [data-delete] { color:#ab303b; }
.gj-journal-history-row { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:8px; align-items:center; padding:7px 0; border-bottom:1px solid #e1edf5; }
.gj-journal-history-row button { text-align:left; border:0; background:#f2f8fd; }
.gj-journal-history-row small { color:#617f96; }
.gj-journal-history-pages { justify-content:space-between; align-items:center; }
.gj-journal-extra { margin-top:14px; border-top:1px solid #d9e7f2; padding-top:10px; }
.gj-journal-extra>summary { color:#617f96; cursor:pointer; }
#neuroRunChips [data-neuro-run-chip],#neuroRunChips [data-neuro-clear-runs],#neuroRunSelect,#neuroRunHistory [data-neuro-delete-run] { display:none!important; }
.gj-journal-extra [hidden] { display:none!important; }
@media(max-width:650px){.gj-journal-tools{grid-template-columns:minmax(0,1fr) auto}.gj-journal-account-field{grid-column:1/-1}.gj-journal-entry .gj-journal-text{display:block;margin:4px 0 0 20px}.gj-journal-stages{margin-left:7px;padding-left:8px}.gj-journal-stage{grid-template-columns:60px minmax(0,1fr);gap:5px}.gj-journal-fullscreen{inset:3px;width:calc(100vw - 6px);height:calc(100dvh - 6px);padding:10px}.gj-journal-history-row{grid-template-columns:20px minmax(0,1fr)}.gj-journal-history-row small{grid-column:2}}
