.bend-app .sketch-panel { padding-top: 0; border-top: 0; }
.sketch-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bend-app .sketch-modes button { padding: 0 4px; font-size: 10px; min-height: 36px; }
.sketch-modes button[aria-pressed=true] { background: #efecff; border-color: #cfc7f2; color: #5b4db6; }
.sketch-status { margin: 0; padding: 10px 12px; background: #f6f4fe; border-radius: 5px; color: #625489; font-size: 11px; line-height: 1.65; }
.sketch-status.is-error { color: #a63d46; background: #fff0f0; }
.sketch-help { margin: 0; color: #8b8995; font-size: 10px; line-height: 1.65; }
.sketch-subsection { display: grid; gap: 12px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.sketch-subsection h3 { margin: 0; font-size: 12px; font-weight: 600; }
.sketch-panel b[data-sketch-unit] { font-weight: inherit; }
.sketch-lines { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; }
.sketch-lines button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: #fafafd; }
.sketch-lines strong { font-size: 11px; font-weight: 500; color: #625489; }
.sketch-lines button.selected { background: #f1edff; border-color: #c6beed; }
.sketch-angle-editor { display: grid; gap: 12px; padding: 15px; border: 1px solid #d5cdf1; border-radius: 7px; background: #f8f6ff; }
.sketch-angle-editor h3 { margin: 0; color: #5b4a97; font-size: 12px; font-weight: 600; }
.bend-app .sketch-angle-editor #sketchInsideAngle { height: 42px; font-size: 18px; font-weight: 500; }
.sketch-angle-editor .tool-row { flex-wrap: nowrap; }
.sketch-measure { padding: 12px; font-size: 11px; line-height: 1.8; background: #fff8e8; color: #8c671f; border-radius: 5px; }
.sketch-reference { border-block: 1px solid var(--line); padding-block: 14px; }
.sketch-reference summary { font-size: 11px; cursor: pointer; }
.sketch-reference[open] > :not(summary) { margin-top: 12px; }
.sketch-upload { position: relative; display: flex !important; justify-content: center; border: 1px dashed #c8c2de; background: #faf9ff; padding: 12px; border-radius: 5px; cursor: pointer; }
.sketch-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.sketch-upload:focus-within { outline: 2px solid #8278db; outline-offset: 3px; }
#sketchImageTools { display: grid; gap: 12px; }
#sketchImageName { overflow-wrap: anywhere; }
#sketchWorkspace { position: absolute; inset: 0; z-index: 5; background: #e5e5e8; }
#sketchCanvas { display: block; width: 100%; height: 100%; touch-action: none; }
.sketch-canvas-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
#sketchCanvasMode { background: #ffffffdd; color: #655b7d; padding: 10px 14px; font-size: 11px; border-radius: 5px; }
.sketch-canvas-top button { pointer-events: auto; font-size: 11px; background: #fff; color: #736982; border: 0; box-shadow: 0 2px 12px #3333490a; }
.sketch-canvas-hint { position: absolute; left: 20px; right: 20px; bottom: 20px; text-align: center; font-size: 10px; line-height: 1.7; color: #84818f; pointer-events: none; margin: 0; }
.sketch-active .canvas-toolbar, .sketch-active .viewer-footer, .sketch-active #viewerWarningBanner, .sketch-active #machineAlignPad { display: none !important; }
.sketch-active #simCanvas { pointer-events: none; }
@media (max-width: 680px) {
  .bend-app .sim-tool-rail button { min-width: 44px; }
  .bend-app .sketch-modes button { min-height: 44px; }
  .sketch-canvas-hint { left: 12px; right: 12px; bottom: 14px; }
  .sketch-canvas-top { top: 16px; left: 16px; right: 16px; }
}
