.jy-technical-drawing-overlay {
  position: absolute;
  inset: 0;
  z-index: 28;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.jy-technical-drawing-overlay[hidden],
.jy-technical-drawing-overlay:not(.is-visible) {
  display: none !important;
  pointer-events: none !important;
}

.jy-technical-drawing-overlay.is-editing {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

.jy-technical-drawing-overlay[data-tool="select"] {
  cursor: default;
}

.jy-technical-drawing-overlay.is-editing [data-annotation-id] {
  pointer-events: all;
  cursor: pointer;
}

.jy-technical-drawing-overlay .jy-annotation-line-hit-v239 {
  fill: none !important;
  stroke: transparent !important;
  stroke-width: 18px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke !important;
  cursor: pointer;
}

.jy-technical-drawing-overlay .jy-annotation-text-target-v239 {
  pointer-events: visiblePainted !important;
  cursor: pointer;
}

.jy-technical-drawing-overlay [data-annotation-id].is-selected {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1)) drop-shadow(0 0 4px rgba(90, 18, 18, 0.65));
}

.jy-technical-drawing-overlay [data-annotation-id].is-selected line,
.jy-technical-drawing-overlay [data-annotation-id].is-selected polyline {
  stroke-width: 3;
}

.jy-technical-drawing-overlay [data-annotation-id].is-selected[data-selected-kind="line"] line:not(.jy-annotation-line-hit-v239),
.jy-technical-drawing-overlay [data-annotation-id].is-selected[data-selected-kind="line"] polyline:not(.jy-annotation-line-hit-v239) {
  stroke: #6f9145;
}

.jy-technical-drawing-overlay [data-annotation-id].is-selected[data-selected-kind="text"] text {
  fill: #577b32;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4;
  paint-order: stroke;
}

.jy-technical-drawing-overlay .is-drawing-preview {
  opacity: 0.68;
  stroke-dasharray: 7 5;
  pointer-events: none;
}

.jy-technical-toolbar {
  position: absolute;
  z-index: 45;
  right: 16px;
  bottom: 18px;
  display: grid;
  justify-items: end;
  gap: 9px;
  color: #1d2926;
}

.jy-technical-toggle,
.jy-technical-download,
.jy-technical-close {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(22, 48, 42, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(17, 33, 29, 0.13);
  color: #24332f;
  font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.jy-technical-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jy-technical-toggle::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #719446;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 45%, #719446 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, #719446 45% 55%, transparent 55%);
}

.jy-technical-toolbar.is-active .jy-technical-toggle {
  border-color: #62853a;
  background: #6f9145;
  color: #fff;
}

.jy-technical-toolbar.is-active .jy-technical-toggle::before {
  border-color: #fff;
  background:
    linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, #fff 45% 55%, transparent 55%);
}

.jy-technical-panel {
  width: min(368px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 150px));
  overflow-y: auto;
  padding: 13px;
  border: 1px solid rgba(22, 48, 42, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(17, 33, 29, 0.16);
  backdrop-filter: blur(16px);
}

.jy-technical-tool-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 9px;
}

.jy-technical-view-config-v308 {
  display: grid;
  gap: 7px;
  margin-bottom: 9px;
  padding: 8px;
  border: 1px solid #cad8ce;
  border-radius: 11px;
  background: #f5f8f3;
}

.jy-technical-view-tabs-v308,
.jy-technical-section-axis-v308 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.jy-technical-section-axis-v308 {
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
}

.jy-technical-section-axis-v308[hidden] {
  display: none !important;
}

.jy-technical-view-tabs-v308 button,
.jy-technical-section-axis-v308 button {
  min-height: 31px;
  padding: 0 5px;
  border: 1px solid #d6e0d8;
  border-radius: 8px;
  background: #fff;
  color: #4b5954;
  font: 800 9px/1 system-ui, sans-serif;
  cursor: pointer;
}

.jy-technical-view-tabs-v308 button.is-active,
.jy-technical-section-axis-v308 button.is-active {
  border-color: #6f9344;
  background: #6f9344;
  color: #fff;
}

.jy-technical-section-axis-v308 > span,
.jy-technical-post-size-v308 > span {
  color: #586660;
  font-size: 9px;
  font-weight: 850;
}

.jy-technical-post-size-v308 {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 5px;
}

.jy-technical-post-size-v308 label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  color: #64706b;
  font-size: 8px;
  font-weight: 800;
}

.jy-technical-post-size-v308 input {
  min-width: 0;
  width: 100%;
  height: 29px;
  padding: 0 5px;
  border: 1px solid #d4ded7;
  border-radius: 7px;
  background: #fff;
  color: #26342f;
  font: 800 10px/1 system-ui, sans-serif;
}

.jy-technical-post-size-v308 b,
.jy-technical-post-size-v308 em {
  color: #68736e;
  font-size: 8px;
  font-style: normal;
}

.jy-technical-select-notice-v240 {
  margin: -2px 0 9px;
  padding: 7px 9px;
  border: 1px solid #b9cf9e;
  border-radius: 9px;
  background: #edf5e5;
  color: #47652f;
  font: 800 9px/1.45 system-ui, sans-serif;
}

.jy-technical-select-notice-v240[hidden] {
  display: none !important;
}

.jy-technical-tool-row button,
.jy-technical-language button,
.jy-technical-custom-input button,
.jy-technical-item-editor button,
.jy-technical-hidden-items button,
.jy-technical-manage button {
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid #d7e0dc;
  border-radius: 9px;
  background: #f7f9f7;
  color: #48534f;
  font: 800 10px/1 system-ui, sans-serif;
  cursor: pointer;
}

.jy-technical-item-editor {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #a9c486;
  border-radius: 11px;
  background: #f2f7eb;
}

.jy-technical-item-editor[hidden],
.jy-technical-hidden-items[hidden] {
  display: none;
}

.jy-technical-item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.jy-technical-item-title strong {
  overflow: hidden;
  color: #34472b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jy-technical-item-title span,
.jy-technical-item-editor label > span,
.jy-technical-hidden-items > span {
  color: #6d776c;
  font-size: 8px;
  font-weight: 800;
}

.jy-technical-item-editor label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.jy-technical-item-editor input {
  min-width: 0;
  width: 100%;
  height: 31px;
  padding: 0 8px;
  border: 1px solid #ccd9c5;
  border-radius: 8px;
  background: #fff;
  color: #29372f;
  font: 700 10px/1 system-ui, sans-serif;
}

.jy-technical-item-editor input:disabled {
  opacity: 0.45;
}

.jy-technical-item-editor em {
  color: #748071;
  font-size: 8px;
  font-style: normal;
}

.jy-technical-item-editor > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.jy-technical-anchor-status-v281 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid #dfc5a2;
  border-radius: 8px;
  background: #fff8ec;
  color: #855b22;
  font: 800 8px/1.35 system-ui, sans-serif;
}

.jy-technical-anchor-status-v281[hidden] {
  display: none;
}

.jy-technical-anchor-status-v281.is-locked {
  border-color: #b6cf9d;
  background: #eaf4df;
  color: #45632d;
}

.jy-technical-anchor-status-v281 button {
  min-height: 27px;
  white-space: nowrap;
}

.jy-technical-hidden-items {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px dashed #cdd7d0;
  border-radius: 10px;
  background: #fafbfa;
}

.jy-technical-hidden-items > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.jy-technical-hidden-items button {
  min-height: 26px;
  max-width: 100%;
  overflow: hidden;
  color: #596853;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jy-technical-tool-row button.is-active {
  border-color: #6d9141;
  background: #e8f0dc;
  color: #3e5925;
  box-shadow: inset 0 0 0 1px rgba(109, 145, 65, 0.16);
}

.jy-technical-language {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding: 6px 7px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  background: #f8faf8;
}

.jy-technical-language > span {
  color: #66716d;
  font-size: 9px;
  font-weight: 800;
}

.jy-technical-language button {
  min-width: 64px;
}

.jy-technical-language button.is-active {
  border-color: #6d9141;
  background: #6f9442;
  color: #fff;
}

.jy-technical-custom-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  margin-bottom: 10px;
}

.jy-technical-custom-input input {
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #d7e0dc;
  border-radius: 9px;
  background: #fff;
  color: #25332f;
  font: 700 11px/1 system-ui, sans-serif;
}

.jy-technical-custom-input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.jy-technical-standard {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #e1e7e3;
  border-radius: 11px;
  background: #fafbfa;
}

.jy-technical-dimension-values {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #dce5df;
  border-radius: 11px;
  background: #f7faf5;
}

.jy-technical-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jy-technical-section-title > span {
  color: #5d6863;
  font-size: 9px;
  font-weight: 800;
}

.jy-technical-section-title button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f8138;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.jy-technical-dimension-values > div:not(.jy-technical-section-title) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.jy-technical-dimension-values label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #56615d;
  font-size: 9px;
  font-weight: 800;
}

.jy-technical-dimension-values input {
  min-width: 0;
  width: 100%;
  height: 31px;
  padding: 0 6px;
  border: 1px solid #d7dfda;
  border-radius: 8px;
  background: #fff;
  color: #25332f;
  font: 800 11px/1 system-ui, sans-serif;
}

.jy-technical-dimension-values input.is-overridden {
  border-color: #76994c;
  background: #edf4e5;
  color: #405b25;
}

.jy-technical-dimension-values small {
  color: #7a837f;
  font-size: 8px;
  line-height: 1.35;
}

.jy-technical-standard > span {
  color: #6b7571;
  font-size: 9px;
  font-weight: 800;
}

.jy-technical-visibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.jy-technical-visibility label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 27px;
  padding: 0 6px;
  border: 1px solid #e2e7e4;
  border-radius: 8px;
  background: #fff;
  color: #4f5b57;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.jy-technical-visibility input {
  width: 13px;
  height: 13px;
  accent-color: #6f9145;
}

.jy-technical-panel[hidden] {
  display: none;
}

.jy-technical-panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.jy-technical-panel header div {
  min-width: 0;
}

.jy-technical-panel header strong,
.jy-technical-panel header span {
  display: block;
}

.jy-technical-panel header strong {
  font-size: 14px;
}

.jy-technical-panel header span {
  margin-top: 3px;
  color: #6e7774;
  font-size: 10px;
  line-height: 1.35;
}

.jy-technical-close {
  min-height: 28px;
  padding: 0 9px;
  box-shadow: none;
  font-size: 15px;
}

.jy-technical-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jy-technical-fields label {
  display: grid;
  gap: 5px;
  color: #5b6662;
  font-size: 9px;
  font-weight: 800;
}

.jy-technical-fields label:first-child {
  grid-column: 1 / -1;
}

.jy-technical-fields select {
  width: 100%;
  min-height: 36px;
  padding: 0 28px 0 9px;
  border: 1px solid #d9e1dd;
  border-radius: 9px;
  background: #f8faf8;
  color: #26332f;
  font: 700 11px/1 system-ui, sans-serif;
}

.jy-technical-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  margin-top: 11px;
}

.jy-technical-manage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.jy-technical-download {
  border-color: #62853a;
  background: #6f9145;
  color: #fff;
  box-shadow: none;
}

.jy-technical-download-all-v317 {
  background: #243b35;
  border-color: #243b35;
}

.jy-technical-download:disabled {
  cursor: wait;
  opacity: 0.68;
}

.jy-technical-note {
  grid-column: 1 / -1;
  align-self: center;
  color: #737c78;
  font-size: 9px;
  line-height: 1.35;
}

body.jy-technical-mode .three-hint,
body.jy-technical-mode .post-select-hint-v216,
body.jy-technical-mode #scene-fab-btn-v63,
body.jy-technical-mode .scene-fab-wrap-v63 {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.jy-technical-mode .three-stage canvas {
  filter: saturate(0.72) contrast(1.04);
}

@media (max-width: 980px) {
  .jy-technical-toolbar {
    right: 9px;
    bottom: 9px;
  }

  .jy-technical-toggle,
  .jy-technical-download {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .jy-technical-panel {
    width: min(340px, calc(100vw - 18px));
    max-height: min(62svh, 520px);
    overflow-y: auto;
    padding: 10px;
  }
}

@media print {
  .jy-technical-toolbar {
    display: none !important;
  }
}
