.hvac-editor {
	max-width: 100%;
	position: relative;
}

@media screen {
	html.hvac-page-scroll-ready {
		scrollbar-gutter: stable;
	}

	html.hvac-page-scroll-locked {
		overflow: hidden !important;
		scroll-behavior: auto !important;
		overflow-anchor: none;
		overscroll-behavior: none;
	}

	html.hvac-page-scroll-locked .hvac-dock {
		top: var(--hvac-locked-dock-offset, 0px);
		max-height: var(--hvac-locked-scroll-height);
	}

	html.hvac-page-scroll-locked .hvac-panel:not(.is-collapsed) {
		max-height: calc(var(--hvac-locked-scroll-height, 100vh) - 12px) !important;
	}

	html.hvac-page-scroll-locked .hvac-panel.is-float:not(.is-dragging) {
		transform: translateY(var(--hvac-locked-panel-shift, 0px));
	}
}

.hvac-page-scroll-toggle[aria-pressed="true"] {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100004;
	padding: 8px 12px;
	border: 2px solid #2271b1;
	border-radius: 4px;
	background: #dceeff;
	color: #172033;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.hvac-page-scroll-menu {
	z-index: 100005;
}

.hvac-dock,
.hvac-panel-body,
.hvac-pat-cutlist-queue,
.hvac-pf-list,
.hvac-pf-tplgrid,
.hvac-tp-list,
.hvac-lc-body,
.hvac-help-body,
.hvac-need-body,
.hvac-pattern-preview-box,
.hvac-email-card,
.hvac-shop-table-wrap {
	overscroll-behavior: contain;
}

.hvac-shop-library textarea {
	width: 100%;
	resize: vertical;
}

.hvac-shop-import {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	cursor: pointer;
}

.hvac-shop-import input {
	max-width: 110px;
}

.hvac-shop-table-wrap {
	max-width: 100%;
	overflow: auto;
	margin-top: 8px;
}

.hvac-shop-comparison {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 11px;
}

.hvac-shop-comparison th,
.hvac-shop-comparison td {
	padding: 4px;
	border: 1px solid #ccd0d4;
	text-align: left;
	vertical-align: top;
}

.hvac-shop-comparison th {
	background: #f0f0f1;
	white-space: nowrap;
}

.hvac-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 6px;
}

.hvac-tab {
	padding: 3px 10px;
	font-size: 13px;
	cursor: pointer;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
}

.hvac-tab.is-open {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
}

.hvac-tab.hvac-tab-tuck {
	font-weight: 600;
	border-color: #2c3e50;
}

.hvac-tab.hvac-tab-tuck.is-tucked {
	background: #fff8e5;
	border-color: #dba617;
}

.hvac-tab.hvac-tab-close {
	font-weight: 600;
	margin-right: 8px;
	border-color: #2c3e50;
}

.hvac-tab.hvac-tab-close:disabled {
	opacity: 0.55;
	cursor: default;
}

.hvac-workspace {
	position: relative;
	display: flex;
	min-height: 320px;
	overflow: hidden;
	border: 1px solid #b8c4d0;
	background: #e9eef3;
}

.hvac-stage {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.hvac-canvas-wrap {
	position: relative;
	flex: 1 1 0;
	min-height: 0;
}

.hvac-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
	background: #fff;
	touch-action: none;
	cursor: crosshair;
}

.hvac-viewbar {
	position: absolute;
	z-index: 30;
	right: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 24px);
	padding: 5px 8px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
	touch-action: none;
}

.hvac-viewbar[hidden],
.hvac-viewbar-show[hidden] {
	display: none;
}

.hvac-viewbar input[type="range"] {
	width: min(220px, 26vw);
	margin: 0;
}

.hvac-viewbar button {
	min-width: 28px;
	padding: 3px 7px;
}

.hvac-viewbar .hvac-viewbar-drag,
.hvac-viewbar .hvac-viewbar-close {
	min-width: 24px;
	padding: 3px 5px;
}

.hvac-viewbar-drag {
	cursor: grab;
}

.hvac-viewbar-drag:active {
	cursor: grabbing;
}

.hvac-viewbar span {
	min-width: 42px;
	color: #334155;
	font-size: 11px;
	text-align: right;
}

.hvac-viewbar-show {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 30;
	padding: 5px 8px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
	color: #334155;
	font-size: 11px;
	cursor: pointer;
}

.hvac-dock {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 6px;
	overflow-x: hidden;
	overflow-y: auto;
	background: #dfe6ed;
	box-sizing: border-box;
}

.hvac-dock-left {
	border-right: 1px solid #b8c4d0;
}

.hvac-dock-right {
	border-left: 1px solid #b8c4d0;
}

.hvac-dock.is-empty {
	display: none;
}

.hvac-workspace.is-dropping .hvac-dock.is-empty {
	display: flex;
	width: 90px !important;
	outline: 2px dashed #8aa;
	outline-offset: -4px;
}

.hvac-dock.is-drop {
	outline: 3px solid #2271b1;
	outline-offset: -3px;
	background: #cfe0f2;
}

.hvac-dock-grip {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 6px;
	cursor: col-resize;
	z-index: 5;
}

.hvac-dock-left .hvac-dock-grip {
	right: 0;
}

.hvac-dock-right .hvac-dock-grip {
	left: 0;
}

.hvac-dock-grip:hover,
.hvac-workspace.is-sizing .hvac-dock-grip {
	background: rgba(34, 113, 177, 0.35);
}

.hvac-workspace.is-sizing {
	cursor: col-resize;
	user-select: none;
}

.hvac-panel {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	box-sizing: border-box;
	min-height: 26px;
	overflow: hidden;
	resize: vertical;
	background: #fff;
	border: 1px solid #9fb0c0;
	border-radius: 3px;
}

.hvac-panel[hidden] {
	display: none;
}

.hvac-panel.hvac-pattern:not(.is-collapsed) {
	max-height: min(calc(100vh - 100px), var(--hvac-panel-space, 100vh));
}

.hvac-panel.is-float {
	position: absolute;
	z-index: 20;
	resize: both;
	min-width: 170px;
	max-width: 95%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hvac-panel.is-dragging {
	opacity: 0.85;
	cursor: grabbing;
}

.hvac-panel.is-collapsed {
	resize: none;
}

.hvac-panel-head {
	display: flex;
	align-items: center;
	gap: 1px;
	flex: 0 0 auto;
	padding: 2px 3px 2px 7px;
	background: #2c3e50;
	color: #fff;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.hvac-panel-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
}

.hvac-panel-btn {
	flex: 0 0 auto;
	padding: 0 4px;
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.hvac-panel-btn:hover {
	background: rgba(255, 255, 255, 0.22);
}

.hvac-panel-body {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	align-content: flex-start;
	flex: 1 1 auto;
	min-height: 0;
	padding: 6px;
	overflow: auto;
}

.hvac-panel.is-collapsed .hvac-panel-body {
	display: none;
}

.hvac-panel-body > label {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.hvac-panel-body select,
.hvac-panel-body input[type="text"] {
	min-width: 0;
	max-width: 100%;
}

.hvac-panel-body button {
	flex: 1 1 auto;
	padding: 5px 8px;
	cursor: pointer;
}

.hvac-panel-body button.is-active {
	background: #2271b1;
	color: #fff;
}

.hvac-panel.hvac-portfolio {
	margin: 0;
	padding: 0;
	background: #fafafa;
}

.hvac-portfolio > .hvac-panel-body {
	display: block;
}

.hvac-options label {
	font-size: 13px;
}

.hvac-options input[type="number"] {
	width: 88px;
}

.hvac-options .hvac-grid-darkness input[type="range"] {
	width: 110px;
	vertical-align: middle;
}

.hvac-ctx {
	position: fixed;
	z-index: 100001;
	min-width: 220px;
	padding: 4px 0;
	background: #fff;
	border: 1px solid #aeb8c2;
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	font-size: 13px;
}

.hvac-ctx[hidden] {
	display: none;
}

.hvac-ctx button {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 5px 14px;
	text-align: left;
	background: transparent;
	border: 0;
	color: #1d2327;
	cursor: pointer;
}

.hvac-ctx button:hover:not(:disabled) {
	background: #2271b1;
	color: #fff;
}

.hvac-ctx button:disabled {
	color: #9aa3ab;
	cursor: default;
}

.hvac-ctx kbd {
	font-family: inherit;
	font-size: 12px;
	opacity: 0.7;
}

.hvac-ctx-sep {
	height: 1px;
	margin: 4px 0;
	background: #dde2e7;
}

.hvac-pattern-default-menu {
	z-index: 100003;
	max-width: min(280px, calc(100vw - 16px));
	white-space: normal;
}

.hvac-pattern-default-menu button {
	justify-content: flex-start;
	line-height: 1.25;
	white-space: normal;
}

.hvac-cmdbar {
	flex: 0 0 auto;
	padding: 4px 8px 5px;
	background: #1f2933;
	color: #e4ebf1;
	font-size: 13px;
	border-top: 1px solid #0f1720;
}

.hvac-cmd-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hvac-cmd-label {
	color: #8fa3b5;
}

.hvac-cmd-name {
	padding: 1px 8px;
	font-weight: 700;
	color: #fff;
	background: #2f6f4f;
	border-radius: 3px;
}

.hvac-cmdbar.is-busy .hvac-cmd-name {
	background: #c26a00;
}

.hvac-cmd-typed {
	padding: 1px 6px;
	font-family: Consolas, Menlo, monospace;
	color: #ffd479;
}

.hvac-cmd-typed[hidden] {
	display: none;
}

.hvac-cmd-input {
	flex: 1 1 180px;
	min-width: 120px;
	max-width: 340px;
	padding: 2px 6px;
	font-size: 13px;
	color: #fff;
	background: #101820;
	border: 1px solid #3b4a58;
	border-radius: 3px;
}

.hvac-cmd-input::placeholder {
	color: #7b8d9d;
}

.hvac-cmdbar button {
	padding: 1px 10px;
	font-size: 12px;
	cursor: pointer;
}

.hvac-coords {
	margin-left: auto;
	color: #9fb3c4;
	white-space: nowrap;
}

.hvac-cmd-prompt {
	min-height: 2.4em;
	margin-top: 3px;
	line-height: 1.2;
	color: #cfe0ee;
}

.hvac-cmdbar .hvac-status.is-error {
	color: #ff9a8f;
	font-weight: 600;
}

@media (max-width: 720px) {
	.hvac-workspace {
		flex-direction: column;
		height: auto !important;
		overflow: visible;
	}

	.hvac-stage {
		order: 1;
		flex: 0 0 auto;
		height: 62vh;
		min-height: 360px;
	}

	.hvac-dock {
		width: auto !important;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.hvac-dock-left {
		order: 0;
	}

	.hvac-dock-right {
		order: 2;
	}

	.hvac-dock-grip {
		display: none;
	}

	.hvac-panel,
	.hvac-panel.is-float {
		position: static;
		width: auto !important;
		height: auto !important;
		flex: 1 1 100%;
		resize: none;
	}
}

.hvac-transform label,
.hvac-extrude label,
.hvac-pattern label,
.hvac-notes label,
.hvac-dims label {
	font-size: 13px;
}

.hvac-transform input[type="number"],
.hvac-extrude input[type="text"] {
	width: 88px;
}

.hvac-namebar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	margin-bottom: 8px;
	background: #f1f6fb;
	border: 1px solid #c5d6e8;
}

.hvac-name-field {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 320px;
	font-weight: 600;
}

.hvac-name-field input {
	flex: 1 1 auto;
	min-width: 160px;
	font-size: 15px;
	padding: 5px 8px;
}

.hvac-app-version {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	line-height: 28px;
	white-space: nowrap;
	flex: 0 0 auto;
	margin-right: 2px;
}

.hvac-newbtn {
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.hvac-newbox {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 10px;
	margin-bottom: 8px;
	background: #fff8e5;
	border: 1px solid #e0c36a;
}

.hvac-newbox[hidden] {
	display: none;
}

.hvac-newbox-row {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.hvac-newbox-row[hidden] {
	display: none;
}

.hvac-newbox button {
	padding: 6px 12px;
	cursor: pointer;
}

.hvac-newbox-note {
	flex: 1 1 100%;
	font-size: 12px;
	color: #555;
}

.hvac-primary {
	background: #2271b1;
	color: #fff;
	border: 0;
	padding: 8px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.hvac-primary:hover {
	background: #135e96;
}

.hvac-small,
.hvac-namebar label {
	font-size: 13px;
}

.hvac-namebar-sep {
	flex: 0 0 1px;
	align-self: stretch;
	background: #c5d6e8;
}

.hvac-sheet-count {
	font-size: 13px;
	color: #444;
}

.hvac-job-field {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.hvac-job-field input {
	width: 145px;
	padding: 5px 7px;
}

.hvac-job-number input {
	width: 88px;
}

.hvac-job-state {
	font-size: 12px;
	color: #646970;
	white-space: nowrap;
}

.hvac-job-state.is-dirty {
	color: #8a5b00;
	font-weight: 600;
}

.hvac-job-state.is-saved {
	color: #26734d;
}

.hvac-jobs summary span {
	font-size: 12px;
	font-weight: 400;
	color: #4c667f;
}

.hvac-pf-status:empty {
	display: none;
}

.hvac-pf-status {
	margin: 0 0 8px;
}

.hvac-namebar-right {
	margin-left: auto;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.hvac-active-job {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding-right: 8px;
	border-right: 1px solid #c5d6e8;
}

.hvac-namebar-right button {
	padding: 6px 12px;
	cursor: pointer;
}

.hvac-help-btn {
	background: #fff;
	border: 1px solid #2271b1;
	color: #2271b1;
	font-weight: 600;
}

.hvac-need-btn {
	background: #fff;
	border: 1px solid #0f766e;
	color: #0f766e;
	font-weight: 600;
}


/* Email the print sheet */
.hvac-email {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8vh 12px;
}

.hvac-email[hidden] {
	display: none;
}

.hvac-email-card {
	background: #fff;
	width: min(440px, 100%);
	padding: 16px 18px;
	border-radius: 4px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}

.hvac-email-card strong {
	font-size: 17px;
}

.hvac-email-card label {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hvac-email-card label.hvac-small {
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

.hvac-email-card input[type="text"],
.hvac-email-card textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
}

.hvac-email-price {
	margin: 0;
	padding: 6px 8px;
	background: #f1f6fb;
	border-left: 3px solid #2271b1;
}

.hvac-email-note {
	margin: 0;
	font-size: 12px;
	color: #555;
}

.hvac-email-buttons {
	display: flex;
	gap: 8px;
}

.hvac-email-card {
	max-height: 84vh;
	overflow-y: auto;
}

.hvac-email-price:empty {
	display: none;
}

.hvac-files-head {
	margin: 4px 0 0;
	font-weight: 600;
}

[data-pf="filesBox"] .hvac-email-buttons {
	flex-wrap: wrap;
}

[data-pf="filesBox"] .is-error {
	color: #d63638;
	font-weight: 600;
}

[data-pf="filesStatus"] {
	position: sticky;
	top: 0;
	z-index: 1;
}

/* How to use */
.hvac-help {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 12px;
}

.hvac-help[hidden] {
	display: none;
}

.hvac-help-box {
	background: #fff;
	width: min(820px, 100%);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hvac-help-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid #ddd;
}

.hvac-help-head strong {
	font-size: 18px;
}

.hvac-help-search {
	flex: 1 1 240px;
	padding: 6px 10px;
	font-size: 15px;
}

.hvac-help-count {
	font-size: 12px;
	color: #555;
}

.hvac-help-body {
	overflow: auto;
	padding: 4px 16px 16px;
}

.hvac-help-body h3 {
	margin: 16px 0 6px;
	font-size: 15px;
	color: #135e96;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hvac-help-topic {
	border: 1px solid #e2e2e2;
	border-radius: 3px;
	margin-bottom: 6px;
	padding: 0 10px;
}

.hvac-help-topic summary {
	cursor: pointer;
	padding: 8px 0;
	font-weight: 600;
}

.hvac-help-topic p {
	margin: 0 0 8px;
	line-height: 1.45;
	font-size: 14px;
}

.hvac-help-bullet {
	padding-left: 12px;
}

.hvac-help-none {
	color: #666;
	padding: 20px 0;
}

.hvac-help mark {
	background: #ffe58f;
	color: inherit;
	padding: 0 1px;
}

.hvac-need {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 12px;
}

.hvac-need[hidden] {
	display: none;
}

.hvac-need-box {
	background: #fff;
	width: min(980px, 100%);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hvac-need-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid #ddd;
}

.hvac-need-head strong {
	font-size: 18px;
	color: #0f766e;
}

.hvac-need-search {
	flex: 1 1 260px;
	padding: 6px 10px;
	font-size: 15px;
}

.hvac-need-count {
	font-size: 12px;
	color: #555;
}

.hvac-need-body {
	overflow: auto;
	padding: 10px 16px 18px;
}

.hvac-need-topic {
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	margin-bottom: 8px;
	padding: 0 12px 10px;
}

.hvac-need-topic summary {
	cursor: pointer;
	padding: 10px 0 8px;
	font-weight: 700;
	color: #0f172a;
}

.hvac-need-topic p {
	line-height: 1.5;
	font-size: 14px;
}

.hvac-need-note {
	background: #f0fdfa;
	border-left: 4px solid #0f766e;
	padding: 10px 12px;
}

.hvac-need-table-wrap {
	overflow-x: auto;
	margin: 8px 0 4px;
}

.hvac-need-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: 13px;
}

.hvac-need-table th,
.hvac-need-table td {
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	text-align: left;
	vertical-align: top;
}

.hvac-need-table th {
	background: #0f172a;
	color: #fff;
}

.hvac-need-table tr:nth-child(even) td {
	background: #f8fafc;
}

.hvac-need-empty {
	color: #555;
	padding: 20px 0;
}

.hvac-pf-notice {
	margin-bottom: 8px;
	padding: 6px 10px;
	background: #fff8e1;
	border: 1px solid #e6c15a;
	font-size: 13px;
}

.hvac-pf-section {
	margin: 0 0 6px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.hvac-pf-section > summary {
	padding: 7px 10px;
	background: #eef3f7;
	color: #1f2937;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.hvac-pf-section[open] > summary {
	border-bottom: 1px solid #cbd5e1;
	background: #e4edf5;
}

.hvac-pf-section-body {
	padding: 9px;
}

.hvac-pf-add {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.hvac-pf-add input[type="text"] {
	flex: 1 1 260px;
}

.hvac-pf-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.hvac-pf-empty {
	margin: 0;
	color: #666;
	font-size: 13px;
}

.hvac-pf-plan {
	margin: 0 0 8px;
	padding: 4px 8px;
	font-size: 12px;
	background: #eef4fb;
	border: 1px solid #c5d6e8;
}

.hvac-pf-plan[hidden] {
	display: none;
}

.hvac-pf-card.is-locked {
	opacity: 0.7;
	background: #f2f2f2;
}

.hvac-pf-card {
	width: 200px;
	padding: 6px;
	background: #fff;
	border: 1px solid #ccc;
	text-align: center;
}

.hvac-pf-card img {
	display: block;
	margin: 0 auto 4px;
	max-width: 100%;
	max-height: 130px;
	width: auto;
	height: auto;
}

.hvac-pf-name {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	word-break: break-word;
}

.hvac-pf-include,
.hvac-pf-qty {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
}

.hvac-pf-qty input {
	width: 80px;
}

.hvac-pf-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	justify-content: center;
}

.hvac-pf-buttons button {
	padding: 2px 6px;
	font-size: 12px;
	cursor: pointer;
}

.hvac-pf-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 13px;
}

.hvac-pf-templates {
	margin: 6px 0;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	padding: 4px 8px;
	font-size: 13px;
}

.hvac-pf-templates summary {
	cursor: pointer;
	font-weight: 600;
}

.hvac-pf-tplcat {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 6px 0;
}

.hvac-pf-tplgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 6px;
	max-height: 260px;
	overflow-y: auto;
}

.hvac-pf-tpl {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	border: 1px solid #e2e4e7;
	padding: 4px;
	background: #fff;
	text-align: center;
}

.hvac-pf-tpl img {
	width: 100%;
	height: 64px;
	object-fit: contain;
}

.hvac-pf-tpl button {
	padding: 1px 8px;
	font-size: 12px;
	cursor: pointer;
}

.hvac-pf-tplpic {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 6px 0;
	padding: 6px 8px;
	background: #f1f6fb;
	border-left: 3px solid #2271b1;
	font-size: 13px;
}

.hvac-pf-tplpic[hidden],
.hvac-pf-templates[hidden] {
	display: none;
}

/* Templates dock: category accordion, each category opening to its list of fittings */
.hvac-templates {
	font-size: 13px;
}

.hvac-tp-hint {
	margin: 0 0 8px;
	color: #50575e;
}

.hvac-tp-search {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 8px;
	padding: 4px 8px;
}

.hvac-tp-cat {
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 4px;
	background: #fff;
}

.hvac-tp-cat > summary {
	cursor: pointer;
	padding: 6px 8px;
	font-weight: 600;
	background: #f6f7f7;
}

.hvac-tp-cat[open] > summary {
	background: #e8f0f8;
	border-bottom: 1px solid #dcdcde;
}

.hvac-tp-list {
	max-height: 320px;
	overflow-y: auto;
}

.hvac-tp-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 4px 8px;
	border: 0;
	border-bottom: 1px solid #f0f0f1;
	background: #fff;
	text-align: left;
	cursor: pointer;
	font-size: 13px;
}

.hvac-tp-item:hover {
	background: #f0f6fc;
}

.hvac-tp-item.is-active {
	background: #dbe9f7;
	font-weight: 600;
}

.hvac-tp-item img {
	flex: 0 0 48px;
	width: 48px;
	height: 36px;
	object-fit: contain;
	border: 1px solid #e2e4e7;
	background: #fff;
}

.hvac-tp-item span {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.hvac-tp-empty[hidden] {
	display: none;
}

.hvac-pf-tplpic input {
	width: 88px;
}

.hvac-pf-header-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 10px;
	width: 100%;
}

.hvac-pf-header-fields label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
}

.hvac-pf-header-fields input {
	width: 100%;
	box-sizing: border-box;
}

.hvac-pf-status {
	margin-top: 8px;
	font-size: 13px;
	color: #444;
}

.hvac-pf-status.is-error {
	color: #b32d2e;
	font-weight: 600;
}

.hvac-status.is-error {
	cursor: pointer;
	padding: 3px 6px;
	border: 1px solid #b32d2e;
	border-radius: 3px;
	background: #fff3f3;
}

/* Number boxes in the docks and library: wide enough for 0.0625, 360 and the spinner arrows, whatever padding the theme gives inputs */
.hvac-options input[type="number"],
.hvac-transform input[type="number"],
.hvac-extrude input[type="text"],
.hvac-pattern input[type="text"],
.hvac-pattern input[type="number"],
.hvac-pf-qty input,
.hvac-pf-tplpic input {
	box-sizing: border-box;
	width: 92px;
	min-width: 92px;
	padding: 3px 6px;
}

/* Pattern dock: the fields in sections, one label and its box per row */
.hvac-pat-fitting {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-weight: 600;
}

.hvac-pat-fitting select {
	width: 100%;
	font-weight: 400;
}

.hvac-pat-actions {
	display: flex;
	gap: 6px;
	margin: 8px 0;
}

.hvac-pat-actions button {
	flex: 1 1 auto;
	cursor: pointer;
}

.hvac-pat-actions .hvac-pat-make {
	font-weight: 700;
}

.hvac-pat-library {
	flex-wrap: wrap;
	border-top: 1px solid #dcdcde;
	padding-top: 8px;
}

.hvac-pat-library label {
	flex: 1 1 180px;
}

.hvac-pattern-preview {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(0, 0, 0, 0.48);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 12px;
}

.hvac-pattern-preview[hidden] { display: none; }

.hvac-pattern-preview-box {
	width: min(820px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	padding: 14px;
}

.hvac-pattern-preview-head,
.hvac-pattern-preview-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.hvac-pattern-preview-head strong { font-size: 18px; }
.hvac-pattern-preview svg { display: block; width: 100%; height: auto; margin: 12px 0; border: 1px solid #cbd5e1; }
.hvac-pattern-preview-actions { justify-content: flex-end; }

.hvac-pat-sec {
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin: 6px 0;
	padding: 0 8px 6px;
	background: #fff;
}

.hvac-pat-cutlist-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 6px;
}

.hvac-pat-cutlist-fields label {
	flex: 1 1 95px;
}

.hvac-pat-cutlist-queue {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-height: 260px;
	overflow-y: auto;
}
.hvac-production-drawer,
.hvac-incoming-saved {
	border-top: 1px solid #cbd5e1;
}
.hvac-production-drawer > summary,
.hvac-incoming-saved > summary {
	cursor: pointer;
	padding: 7px 8px;
	font-weight: 600;
	background: #eef2f6;
	border-radius: 3px;
}
.hvac-production-drawer-body,
.hvac-incoming-saved > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-top: 5px;
}
.hvac-incoming-entry.is-incoming-complete {
	opacity: .72;
}

.hvac-pat-cutlist-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 5px;
	align-items: start;
	padding: 6px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background: #f8fafc;
}
.hvac-pat-cutlist-entry label {
	display: flex;
	align-items: center;
	gap: .35rem;
	flex-wrap: wrap;
}
.hvac-pat-cutlist-entry label input {
	min-width: 12rem;
	max-width: 100%;
	padding: .2rem .35rem;
}
.hvac-pat-piece-label {
	margin-top: .3rem;
	font-weight: 600;
}

.hvac-pat-cutlist-entry strong,
.hvac-pat-cutlist-entry span {
	display: block;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.hvac-pat-cutlist-entry button {
	padding: 2px 6px;
}

.hvac-incoming-handoff {
	margin: 8px 0;
	padding: 7px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background: #f8fafc;
}

.hvac-incoming-handoff h4 {
	margin: 0 0 5px;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.hvac-incoming-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 7px;
	padding: 8px 2px;
	border-top: 1px solid #e2e8f0;
}

.hvac-incoming-entry.is-incoming-active {
	outline: 3px solid #2271b1;
	outline-offset: -3px;
	padding: 8px;
	border-left: 5px solid #2271b1;
	background: #dceeff;
}

.hvac-incoming-review-bar {
	position: sticky;
	top: 0;
	left: 0;
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	z-index: 4;
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border-left: 5px solid #2271b1;
	background: #dceeff;
	font-weight: 700;
}

.hvac-incoming-review-bar[hidden] {
	display: none;
}

.hvac-incoming-review-bar p {
	flex: 1 1 140px;
	margin: 0;
}

.hvac-incoming-review-bar [data-incoming="approve"]:not(:disabled) {
	background: #2271b1;
	border-color: #135e96;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.hvac-incoming-review-bar [data-incoming="approve"]:disabled {
	opacity: 0.6;
}

.hvac-incoming-jump {
	display: inline-block;
	margin-top: 4px;
}

.hvac-incoming-entry.is-incoming-supplier {
	margin-top: 4px;
	padding-left: 7px;
	border-left: 4px solid #d98500;
	background: #fff8eb;
}

.hvac-incoming-entry.is-incoming-stock {
	margin-top: 4px;
	padding-left: 7px;
	border-left: 4px solid #2e7d32;
	background: #f1f8f2;
}

.hvac-incoming-entry:first-of-type {
	border-top: 0;
}

.hvac-incoming-entry strong,
.hvac-incoming-entry span {
	display: block;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: normal;
}

.hvac-incoming-entry span {
	font-size: 12px;
}

.hvac-incoming-entry label {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 3px 0;
	font-size: 12px;
}

.hvac-incoming-entry label input {
	width: 60px;
}

.hvac-incoming-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.hvac-incoming-actions button {
	padding: 2px 6px;
	white-space: normal;
}

.hvac-incoming-state {
	text-transform: uppercase;
	letter-spacing: .03em;
	font-weight: 700;
}

.hvac-lc-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
	margin: 4px 0;
}

.hvac-lc-note {
	font-size: 12px;
	margin: 2px 0 6px;
	font-style: italic;
}

.hvac-lc-head {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 6px 0 0;
	border: 1px solid #2c3338;
	text-align: center;
}

.hvac-lc-head div + div {
	border-left: 1px solid #2c3338;
}

.hvac-lc-head span,
.hvac-lc-head strong,
.hvac-lc-head input {
	display: block;
	font-size: 12px;
	padding: 1px 2px;
}

.hvac-lc-head input {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-top: 1px solid #2c3338;
	border-radius: 0;
	text-align: center;
	font-weight: 700;
	background: #fff;
}

.hvac-lc-head strong {
	border-top: 1px solid #2c3338;
}

.hvac-lc-body {
	max-height: 340px;
	overflow-y: auto;
}

.hvac-lc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.hvac-lc-table th,
.hvac-lc-table td {
	padding: 2px 4px;
	border-bottom: 1px solid #dcdcde;
	text-align: left;
	white-space: nowrap;
}

.hvac-lc-table th {
	position: sticky;
	top: 0;
	background: #f1f5f9;
}

.hvac-lc-table input {
	width: 56px;
	font-size: 12px;
	padding: 1px 3px;
}

.hvac-lc-true {
	font-weight: 700;
}

.hvac-lc-info {
	font-size: 12px;
	margin: 6px 0;
	overflow-wrap: anywhere;
}

.hvac-pat-sec > summary {
	cursor: pointer;
	padding: 6px 0;
	font-weight: 600;
}

.hvac-pat-sec[open] > summary {
	border-bottom: 1px solid #eee;
	margin-bottom: 4px;
}

.hvac-pat-sec label {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 4px 8px;
	margin: 5px 0;
}

.hvac-pat-sec select {
	max-width: 100%;
}

/* Click, then type: the small box that opens on the spot you clicked */
.hvac-textbox {
	position: absolute;
	z-index: 20;
	box-sizing: border-box;
	width: 130px;
	padding: 3px 6px;
	font-size: 14px;
	border: 2px solid #2271b1;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hvac-type-text {
	display: block;
	width: 100%;
	margin-bottom: 4px;
	font-weight: 700;
	cursor: pointer;
}

.hvac-notes .description {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	color: #50575e;
}
/* a plan without the flat pattern tool: hide its dock and tab (the owner sets this per plan or client) */
.hvac-editor.hvac-no-patterns [data-group="pattern"],
.hvac-editor.hvac-no-patterns [data-panel-tab="pattern"] { display: none !important; }
.hvac-email-note.is-error { color: #d63638; font-weight: 600; }
/* example fittings: the "watch how it's made" bar, the aid that lights up, and the administrator's designer box */
.hvac-tour { margin: 8px 0; padding: 10px 14px; background: #f0f6fc; border: 1px solid #2271b1; border-left-width: 5px; border-radius: 4px; }
.hvac-tour[hidden] { display: none; }
.hvac-tour-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.hvac-tour-step { color: #2271b1; font-weight: 600; }
.hvac-tour-text { margin: 4px 0 8px; font-size: 1.05em; }
.hvac-tour-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.hvac-hint { outline: 3px solid #f0a000 !important; outline-offset: 2px; animation: hvac-hint-pulse 1s ease-in-out infinite; position: relative; z-index: 5; }
@keyframes hvac-hint-pulse { 50% { box-shadow: 0 0 0 7px rgba(240, 160, 0, 0.45); } }
.hvac-designer { margin: 8px 0; padding: 8px 12px; background: #fff8e5; border: 1px solid #dba617; border-radius: 4px; }
.hvac-designer summary { cursor: pointer; font-weight: 600; }
.hvac-designer-help { margin: 6px 0; color: #50575e; }
.hvac-designer-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 6px 0; }
.hvac-designer-row input[type="text"] { min-width: 220px; }
.hvac-designer-wide input { min-width: 380px; }
.hvac-designer-msg { font-weight: 600; }
.hvac-starter-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hvac-starter-card { display: flex; gap: 8px; align-items: center; padding: 6px; background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; cursor: pointer; text-align: left; }
.hvac-starter-card:hover { border-color: #2271b1; background: #f0f6fc; }
.hvac-starter-card img { width: 72px; height: 50px; object-fit: contain; background: #fafafa; border: 1px solid #eee; flex: none; }
.hvac-starter-card strong { display: block; }
.hvac-starter-card small { color: #50575e; }
.hvac-starter-help, .hvac-starter-empty { color: #50575e; margin: 0 0 8px; }
.hvac-tour-jump { max-width: 360px; }
.hvac-designer-msg.is-error { color: #d63638; }
.hvac-designer-steps { margin: 6px 0 0 20px; color: #50575e; }
.hvac-designer .hvac-danger { color: #b32d2e; border-color: #b32d2e; }

.hvac-opening { position: absolute; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(20, 28, 36, 0.88); cursor: pointer; transition: opacity 0.3s; }
.hvac-opening.is-off { opacity: 0; pointer-events: none; }
.hvac-opening-in { text-align: center; color: #f0f0f1; max-width: 92%; padding: 20px; position: relative; }
.hvac-opening-marks { position: absolute; inset: 0; background-repeat: repeat; pointer-events: none; }
.hvac-opening-track { position: absolute; display: flex; gap: 18px; animation: 60s linear infinite; }
.hvac-opening.is-down .hvac-opening-track { inset: 0 0 auto 0; flex-direction: column; align-items: center; padding: 18px 0; animation-name: hvacWallDown; }
.hvac-opening.is-side .hvac-opening-track { inset: 0 auto 0 0; flex-direction: row; align-items: center; width: max-content; padding: 0 18px; animation-name: hvacWallSide; }
@keyframes hvacWallDown { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hvacWallSide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hvac-opening-track { animation: none; } }
.hvac-opening-tile { background: #fff; border-radius: 4px; padding: 10px; width: 240px; flex: none; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.hvac-opening-tile img, .hvac-opening-tile canvas { width: 100%; height: auto; display: block; background: #fff; border-radius: 2px; }
.hvac-opening-tile small { display: block; margin-top: 6px; color: #2c3e50; font-weight: 600; }
.hvac-opening-tile.is-big { width: auto; max-width: 92%; padding: 0; background: none; box-shadow: none; }
.hvac-opening-tile.is-big img, .hvac-opening-tile.is-big canvas { max-width: min(1100px, 92vw); max-height: 78vh; width: auto; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5); }
.hvac-opening-name { font-size: 18px; font-weight: 600; margin: 14px 0 4px; }
.hvac-opening-hint { font-size: 13px; opacity: 0.8; margin: 0; }
.hvac-opening-hint2 { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; background: rgba(0, 0, 0, 0.55); color: #fff; padding: 8px 18px; border-radius: 20px; font-size: 13px; pointer-events: none; }

.hvac-opening-one { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hvac-opening-one .hvac-opening-tile { position: absolute; transition: transform 0.7s ease, opacity 0.7s ease; }
.hvac-opening-tile.is-frombelow { transform: translateY(105vh); opacity: 0; }
.hvac-opening-tile.is-totop { transform: translateY(-105vh); opacity: 0; }
.hvac-opening-tile.is-fromside { transform: translateX(105vw); opacity: 0; }
.hvac-opening-tile.is-toside { transform: translateX(-105vw); opacity: 0; }
.hvac-opening-tile.is-big small { color: #f0f0f1; font-size: 14px; margin-top: 10px; }


.hvac-gauge-pick {
	margin-left: 4px;
	width: 72px;
	padding: 2px;
}
