/* The 2D sketch board beside the 3D view (sketch-board.js; Eddy 2026-11-23). DAVINCI glass in the --dv-* tokens (the calm view), and in the
   --rg-* tokens of Editable mode (light, dark, six tones). The board takes the left of the window under the bar; the model and the chat
   take the right, so the sketch and its 3D show side by side. On a phone the board is the top half and the model the strip under it. */
.sk-pane, #v8-sketch { display: none; }
#v8-sketch:not([hidden]) {
  position: fixed; left: 24px; top: 252px; z-index: 17; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: var(--dv-r-bar); cursor: pointer;
  background: linear-gradient(rgba(12, 10, 8, .30), rgba(12, 10, 8, .30)), var(--dv-pane) !important; border: 1px solid var(--dv-edge); color: #fff;
  backdrop-filter: blur(var(--dv-blur)) saturate(1.6); -webkit-backdrop-filter: blur(var(--dv-blur)) saturate(1.6); box-shadow: var(--dv-shadow);
}
body.v8-calm:not(.v8-picture, .v8-looking, .v8-sketch-open) #v8-sketch:not([hidden]) { display: flex; }
#v8-sketch .gx { width: 17px; height: 17px; color: var(--dv-gold); }
#v8-sketch b { font: 400 var(--dv-size) var(--dv-font); }
body.v7-model-open #v8-sketch { left: 352px; }
body.v8-sketch-open #model-explorer-toggle { display: none !important; }
body.v8-sketch-open { --sk-w: clamp(340px, 46vw, 760px); }

.sk-pane {
  --sk-ink: var(--dv-text, #fff); --sk-paper: rgba(14, 12, 9, .5); --sk-paper-solid: #1b1814; --sk-grid: rgba(255, 255, 255, .07); --sk-grid2: rgba(255, 255, 255, .17);
  --sk-accent: var(--dv-gold, #f3d58c); --sk-mute: rgba(255, 255, 255, .62); --sk-halo: rgba(12, 10, 8, .75); --sk-line: rgba(255, 255, 255, .14); --sk-sel: rgba(255, 255, 255, .12); --sk-on: #1b1814;
  box-sizing: border-box; flex-direction: column; position: fixed; z-index: 19; overflow: clip; border-radius: 14px;
  background: var(--dv-pane, rgba(20, 17, 13, .55)); border: 1px solid var(--dv-edge, rgba(255, 255, 255, .2)); color: var(--sk-ink);
  backdrop-filter: blur(var(--dv-blur, 22px)) saturate(1.5); -webkit-backdrop-filter: blur(var(--dv-blur, 22px)) saturate(1.5); box-shadow: var(--dv-shadow, 0 8px 24px rgba(0, 0, 0, .2));
  font: 12px var(--dv-font, Inter, system-ui, sans-serif);
}
body.v8-revit .sk-pane { --sk-ink: var(--rv-text, #1d1d1f); --sk-paper: var(--rg-canvas, #fff); --sk-paper-solid: var(--rg-solid, #fff); --sk-grid: rgba(0, 0, 0, .07); --sk-grid2: rgba(0, 0, 0, .16);
  --sk-accent: var(--rg-a, #7a5a0c); --sk-mute: var(--rg-mute, #6e6e73); --sk-halo: rgba(255, 255, 255, .85); --sk-line: var(--rg-line, rgba(0, 0, 0, .1)); --sk-sel: var(--rg-sel, rgba(0, 0, 0, .06)); --sk-on: var(--rg-on, #fff);
  background: var(--rg-pane, rgba(255, 255, 255, .6)); border-color: var(--rg-edge, rgba(255, 255, 255, .95)); }
:root[data-rv-dark] body.v8-revit .sk-pane { --sk-ink: #f2efe8; --sk-paper: #1d1b17; --sk-paper-solid: #26231e; --sk-grid: rgba(255, 255, 255, .07); --sk-grid2: rgba(255, 255, 255, .17);
  --sk-accent: #f3d58c; --sk-mute: rgba(242, 239, 232, .62); --sk-halo: rgba(0, 0, 0, .7); --sk-line: rgba(255, 255, 255, .14); --sk-sel: rgba(255, 255, 255, .1); --sk-on: #1b1814; }

.sk-head, .sk-tools, .sk-foot { display: flex; align-items: center; gap: 4px; padding: 6px 8px; flex: none; min-width: 0; }
.sk-head { border-bottom: 1px solid var(--sk-line); }
.sk-tools { border-bottom: 1px solid var(--sk-line); flex-wrap: wrap; row-gap: 2px; }
.sk-foot { border-top: 1px solid var(--sk-line); flex-wrap: wrap; row-gap: 4px; }
.sk-title { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.sk-title .gx { width: 18px; height: 18px; color: var(--sk-accent); }
.sk-title strong { font-weight: 600; letter-spacing: .02em; }
.sk-status { color: var(--sk-mute); font-size: 11px; white-space: nowrap; }
.sk-status.err { color: #e8705a; white-space: normal; }
.sk-pane button { font: inherit; color: inherit; cursor: pointer; }
.sk-pane .sk-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; padding: 0; }
.sk-pane .sk-icon svg { width: 16px; height: 16px; }
.sk-pane .sk-tool { flex: none; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 5px 10px; background: transparent; }
.sk-pane .sk-tool svg { width: 15px; height: 15px; }
.sk-pane :is(.sk-icon, .sk-tool):hover:not([aria-pressed=true]) { background: var(--sk-sel); }
.sk-pane .sk-tool[aria-pressed=true], .sk-pane .sk-tool[aria-pressed=true]:hover { background: var(--sk-accent); color: var(--sk-on) !important; }
.sk-pane .sk-done { background: var(--sk-accent); color: var(--sk-on); }
.sk-sep { width: 1px; align-self: stretch; margin: 3px 4px; background: var(--sk-line); }
.sk-wall { display: flex; align-items: center; gap: 5px; color: var(--sk-mute); }
.sk-wall input { width: 54px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--sk-line); background: transparent; color: var(--sk-ink); font: inherit; }
.sk-hint { flex: 1 1 160px; min-width: 0; color: var(--sk-mute); font-size: 11px; line-height: 1.35; }
.sk-stage { position: relative; flex: 1; min-height: 0; background: var(--sk-paper); touch-action: none; overflow: clip; }
.sk-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sk-pane[data-tool=select] .sk-stage canvas { cursor: default; }
.sk-pane .sk-type { position: absolute; z-index: 2; transform: translate(6px, -50%); width: 220px; max-width: calc(100% - 16px); box-sizing: border-box; margin: 0; padding: 5px 9px; border-radius: 9px;
  border: 1px solid var(--sk-accent); background: var(--sk-paper-solid); color: var(--sk-ink); font: 13px var(--dv-font, Inter, system-ui, sans-serif); box-shadow: var(--dv-shadow, 0 8px 24px rgba(0, 0, 0, .2)); }

@media (min-width: 701px) {
  body.v8-sketch-open .sk-pane:not([hidden]) { display: flex; left: calc(var(--rv-left, 0px) + 8px); top: 72px; bottom: 8px; width: var(--sk-w); }
  body.v8-sketch-open .layout, :root[data-rv-tone] body.v8-sketch-open .layout { left: calc(var(--rv-left, 0px) + var(--sk-w) + 16px) !important; }
  /* the chat stays over the model, in the middle of what is left of the window */
  body.v8-bar-groups.v8-sketch-open:not(.v8-looking, .v8-page-open) #davinci-dock, body.v8-sketch-open:not(.v8-looking, .v8-page-open) #davinci-dock { left: calc(var(--rv-left, 0px) + var(--sk-w) + 16px + (100vw - var(--rv-left, 0px) - var(--sk-w) - 24px) / 2) !important;
    width: min(560px, calc(100vw - var(--rv-left, 0px) - var(--sk-w) - 56px)) !important; }
}
@media (max-width: 700px) {
  body.v8-sketch-open .sk-pane:not([hidden]) { display: flex; left: 8px; right: 8px; top: 108px; height: 44dvh; width: auto; }
  body.v8-sketch-open .layout { top: calc(108px + 44dvh + 8px) !important; }
  .sk-pane .sk-tool span { display: none; }
  .sk-pane .sk-tool { padding: 6px 8px; }
  .sk-hint { display: none; }
  #v8-sketch b { display: none; }
}
