/* The work log beside the chat (work-log.js; Eddy 2026-11-23). DAVINCI glass from davinci-standard.css; in Editable mode it takes that page's
   tone (--rg-*, as drawing-pane.css does). Layout only here: beside the chat on a wide screen, a sheet above the chat where there is no room. */
#v8-wl {
  --wl-text: var(--dv-text, #fff); --wl-soft: var(--dv-soft, rgba(255, 255, 255, .86)); --wl-mute: var(--dv-muted, rgba(255, 255, 255, .72));
  --wl-faint: var(--dv-faint, rgba(255, 255, 255, .55)); --wl-fill: var(--dv-pane, rgba(255, 255, 255, .075)); --wl-raise: var(--dv-pane-strong, rgba(255, 255, 255, .12));
  --wl-edge: var(--dv-edge, rgba(255, 255, 255, .28)); --wl-line: var(--dv-line, rgba(255, 255, 255, .2)); --wl-gold: var(--dv-gold, #f3d58c);
  --wl-bad: #ffb3a7; --wl-shadow: var(--dv-shadow, 0 18px 65px rgba(0, 0, 0, .2));
  display: flex; flex-direction: column; position: fixed; z-index: var(--dv-layer-panel, 28); box-sizing: border-box; min-width: 0;
  color: var(--wl-text); font: 12px/1.45 var(--dv-font, Inter, system-ui, sans-serif);
  background: var(--wl-fill); border: 1px solid var(--wl-edge); border-radius: var(--dv-r-panel, 28px); overflow: clip;
  -webkit-backdrop-filter: blur(var(--dv-blur, 30px)) saturate(1.6); backdrop-filter: blur(var(--dv-blur, 30px)) saturate(1.6); box-shadow: var(--wl-shadow);
}
#v8-wl[hidden] { display: none; }
:root[data-rv-tone] body.v8-revit #v8-wl {
  --wl-text: var(--rv-text, #1d1d1f); --wl-soft: var(--rv-text, #1d1d1f); --wl-mute: var(--rg-mute, #6e6e73); --wl-faint: var(--rg-mute, #6e6e73);
  --wl-fill: var(--rg-pane, rgba(255, 255, 255, .6)); --wl-raise: var(--rg-soft, rgba(0, 0, 0, .055)); --wl-edge: var(--rg-edge, rgba(255, 255, 255, .95));
  --wl-line: var(--rg-line, rgba(0, 0, 0, .1)); --wl-gold: var(--rg-a, #7a5a0c); --wl-bad: #b3261e; --wl-shadow: var(--rg-shadow, 0 8px 24px rgba(0, 0, 0, .1));
}
:root[data-rv-tone][data-rv-dark] body.v8-revit #v8-wl { --wl-bad: #ffb3a7; }
#v8-wl .wl-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 18px; border-bottom: .5px solid var(--wl-line); flex: none; }
#v8-wl .wl-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#v8-wl .wl-title b { font-weight: 600; font-size: 13px; letter-spacing: .02em; }
#v8-wl .wl-sub { color: var(--wl-mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v8-wl .wl-close { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--wl-mute); cursor: pointer; }
#v8-wl .wl-close:hover { background: var(--wl-raise); color: var(--wl-text); }
#v8-wl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
#v8-wl .wl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 10px 18px; scrollbar-width: thin; scrollbar-color: var(--wl-line) transparent; overscroll-behavior: contain; }
#v8-wl .wl-empty { margin: 18px 0; color: var(--wl-mute); font-size: 12px; }
#v8-wl .wl-turn { padding: 10px 0 4px; border-top: .5px solid var(--wl-line); }
#v8-wl .wl-turn:first-of-type { border-top: 0; }
#v8-wl .wl-ev { margin: 0 0 8px; }
#v8-wl .wl-t { display: flex; align-items: baseline; gap: 8px; color: var(--wl-faint); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
#v8-wl .wl-time { margin-left: auto; flex: none; color: var(--wl-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
#v8-wl .wl-x { margin: 2px 0 0; color: var(--wl-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
#v8-wl .wl-asked .wl-x { color: var(--wl-text); font-weight: 500; font-size: 12.5px; }
#v8-wl .wl-said { padding-left: 10px; border-left: 1.5px solid var(--wl-gold); }
#v8-wl .wl-said .wl-x { color: var(--wl-gold); }
#v8-wl .wl-said.thought .wl-x { font-style: italic; }
#v8-wl .wl-note .wl-x { color: var(--wl-mute); font-size: 11px; }
#v8-wl .wl-step { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--wl-faint); font-size: 10.5px; }
#v8-wl .wl-step .wl-stx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v8-wl .wl-dot { flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--wl-faint); }
#v8-wl .wl-step[data-status=running] .wl-dot, #v8-wl .wl-wait .wl-dot { background: var(--wl-gold); animation: wl-pulse 1.4s var(--dv-ease, ease) infinite; }
#v8-wl .wl-step[data-status=error] { color: var(--wl-bad); }
#v8-wl .wl-step[data-status=error] .wl-dot { background: var(--wl-bad); }
#v8-wl .wl-plan { padding: 8px 10px; border-radius: var(--dv-r-menu, 16px); background: var(--wl-raise); }
#v8-wl .wl-plan ol { margin: 4px 0 0; padding-left: 18px; color: var(--wl-soft); }
#v8-wl .wl-more { color: var(--wl-mute); font-size: 11px; display: flex; flex-direction: column; gap: 1px; padding-left: 4px; }
#v8-wl .wl-tool { border-radius: var(--dv-r-menu, 16px); background: var(--wl-raise); }
#v8-wl .wl-tool > summary { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; list-style: none; min-width: 0; }
#v8-wl .wl-tool > summary::-webkit-details-marker { display: none; }
#v8-wl .wl-mark { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 999px; border: .75px solid var(--wl-faint); color: var(--wl-mute); }
#v8-wl .wl-mark svg { width: 10px; height: 10px; stroke-width: 1.6; }
#v8-wl .wl-tool[data-status=running] .wl-mark { border-color: var(--wl-gold); border-top-color: transparent; animation: wl-spin 1s linear infinite; }
#v8-wl .wl-tool[data-status=done] .wl-mark { color: var(--wl-gold); border-color: var(--wl-gold); }
#v8-wl .wl-tool[data-status=asked] .wl-mark, #v8-wl .wl-tool[data-status=proposed] .wl-mark { color: var(--wl-gold); border-color: var(--wl-gold); }
#v8-wl .wl-tool[data-status=error] .wl-mark { color: var(--wl-bad); border-color: var(--wl-bad); }
#v8-wl .wl-tt { font-weight: 500; flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v8-wl .wl-tn { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wl-faint); font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
#v8-wl .wl-ts { flex: none; color: var(--wl-mute); font-size: 10.5px; }
#v8-wl .wl-tool[data-status=error] .wl-ts { color: var(--wl-bad); }
#v8-wl .wl-tb { padding: 0 12px 9px 34px; }
#v8-wl .wl-cap { margin-top: 6px; color: var(--wl-faint); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
#v8-wl .wl-lines p { margin: 1px 0; color: var(--wl-soft); overflow-wrap: anywhere; }
#v8-wl .wl-lines .wl-k { color: var(--wl-mute); margin-right: 6px; }
#v8-wl .wl-lines .wl-k::after { content: ":"; }
#v8-wl .wl-tool[data-status=error] .wl-lines.res p { color: var(--wl-bad); }
#v8-wl .wl-wait { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 9px 18px 12px; border-top: .5px solid var(--wl-line); color: var(--wl-soft); }
#v8-wl .wl-wait[hidden] { display: none; }
#v8-wl .wl-wait .wl-dot { align-self: center; }
#v8-wl .wl-wait[data-on=person] .wl-dot, #v8-wl .wl-wait[data-on=model] .wl-dot { animation: none; }
#v8-wl .wl-wait em { flex-basis: 100%; color: var(--wl-mute); font-style: normal; font-size: 11px; padding-left: 14px; }
@keyframes wl-pulse { 50% { opacity: .35; } }
@keyframes wl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #v8-wl * { animation: none !important; } }
#v8-wl[data-mode=sheet] { border-radius: var(--dv-r-panel, 28px); }
#v8-wl:focus-within { outline: none; }
/* the button in the top pill (bar-layout.js gives it its slot and symbol); lit while the log is open, a gold dot while DAVINCI works */
body.v8-bar-groups :is(#workspace > header, .v7-home-bar) #v8-worklog-btn.on > svg.v8i { background: rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px; width: 28px; height: 28px; box-sizing: border-box; }
body.v8-bar-groups :is(#workspace > header, .v7-home-bar) #v8-worklog-btn.busy::before { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 999px; background: #f3d58c; animation: wl-pulse 1.4s ease infinite; }

/* Log content can be selected even when the surrounding model blocks selection. */
#v8-wl .wl-list, #v8-wl .wl-list * { -webkit-user-select: text; user-select: text; }
#v8-wl .wl-copy { flex: none; padding: 5px 9px; border: 1px solid var(--wl-edge); border-radius: var(--dv-r-menu, 16px); background: var(--wl-raise); color: var(--wl-text); font: inherit; cursor: pointer; }
#v8-wl .wl-copy:disabled { opacity: .5; cursor: default; }
#v8-wl .wl-copy-status { margin: 8px 18px; color: var(--wl-soft); font-size: 11px; }
#v8-wl .wl-copy-fallback { flex: none; box-sizing: border-box; width: calc(100% - 36px); height: 100px; margin: 0 18px 8px; background: var(--wl-fill); color: var(--wl-text); border: 1px solid var(--wl-edge); border-radius: 8px; -webkit-user-select: text; user-select: text; }
