:root {
	--theme: #0f766e;
	--theme-soft: #0f766e;
	--theme-strong: #115e59;
	--theme-light: #f0fdf4;
	--theme-border: #6ee7b7;
	--surface: #ffffff;
	--surface-muted: #f8fafc;
	--surface-subtle: #f1f5f9;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--text: #0f172a;
	--text-muted: #475569;
	--text-subtle: #94a3b8;
	--javafx-toolbar-top: #fafafa;
	--javafx-toolbar-mid: #ededed;
	--javafx-toolbar-bottom: #d9d9d9;
	--accent: #6ee7b7;
	--success: #15803d;
	--danger: #b91c1c;
	--status-pass-bg: #dcfce7;
	--status-pass-fg: #15803d;
	--status-warn-bg: #fef3c7;
	--status-warn-fg: #b45309;
	--status-fail-bg: #fee2e2;
	--status-fail-fg: #b91c1c;
	--app-select-chevron-color: #0f766e;
	--app-select-chevron-offset: 8px;
	--app-select-chevron-height: 6px;
	--app-select-padding-right: 24px;
	--button-press-translate: 1px;
	--button-press-scale: 0.985;
	--button-press-shadow: inset 0 1px 2px rgba(24, 37, 49, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.45);
	--button-press-filter: brightness(0.985) saturate(0.98);
	--shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
	--radius: 3px;
	--radius-sm: 3px;
	--toolbar-height: 58px;
	--navigator-width: 250px;
	--navigator-divider-width: 6px;
	--font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: #f8fafc;
	color: var(--text);
	font-family: var(--font-sans);
}

button,
input,
select,
textarea {
	font: inherit;
}

input,
select,
textarea {
	line-height: normal;
}

.app-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	vertical-align: middle;
}

.app-select-control {
	min-width: 0;
	max-width: 100%;
	padding-right: var(--app-select-padding-right) !important;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.app-select-arrow {
	position: absolute;
	right: var(--app-select-chevron-offset);
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: var(--app-select-chevron-height) solid var(--app-select-chevron-color);
	pointer-events: none;
}

.field-card > .app-select,
.form-row > div > .app-select,
.table-shell .app-select,
.desktop-form-control > .app-select,
.commerce-form-control > .app-select,
.housing-form-control > .app-select {
	width: 100%;
}

.desktop-form-control > .app-select {
	max-width: 420px;
}

.desktop-form-row-compact .desktop-form-control > .app-select {
	max-width: 220px;
}

.desktop-floor-editor-select {
	width: 120px;
}

input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
button {
	line-height: 1;
}

button {
	cursor: pointer;
}

/* Project scope navigation and collection list -------------------------- */
.project-context-section-list,
.project-context-phase-list,
.project-context-phase-sections {
	display: grid;
	gap: 5px;
}

.project-context-section-list {
	padding: 8px 0 12px;
}

.project-context-section-button {
	width: 100%;
	min-height: 54px;
	display: grid;
	grid-template-columns: auto 32px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 8px;
	padding: 7px 6px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--text);
	text-align: left;
}

.project-context-section-button:hover,
.project-context-section-button:focus-visible {
	border-color: #bfd8d1;
	background: #edf7f4;
}

.project-context-section-button.is-active {
	border-color: var(--theme);
	background: #eaf6f2;
	box-shadow: inset 3px 0 0 var(--theme);
	color: var(--theme-strong);
}

.project-context-section-icon,
.project-context-phase-icon {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 4px;
	background: #eff6f4;
}

.project-context-section-icon img,
.project-context-phase-icon img {
	width: 19px;
	height: 19px;
	object-fit: contain;
}

.project-context-section-copy,
.project-context-phase-copy {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.project-context-section-copy strong,
.project-context-section-copy span,
.project-context-phase-copy strong,
.project-context-phase-copy span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.project-context-section-copy strong,
.project-context-phase-copy strong {
	font-size: 0.8rem;
}

.project-context-section-copy span,
.project-context-phase-copy span {
	color: var(--text-muted);
	font-size: 0.69rem;
}

.project-context-section-open {
	color: var(--theme);
	font-size: 1rem;
}

.project-context-phases-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 4px 7px;
	border-top: 1px solid var(--line);
	color: var(--text-muted);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-context-phases-head strong {
	min-width: 22px;
	min-height: 22px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #e5f2ee;
	color: var(--theme-strong);
	font-size: 0.68rem;
}

.project-context-phase {
	border: 1px solid #d9e6e2;
	border-radius: 4px;
	background: #ffffff;
}

.project-context-phase > summary {
	min-height: 52px;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 9px;
	padding: 8px;
	list-style: none;
	cursor: pointer;
}

.project-context-phase > summary::-webkit-details-marker {
	display: none;
}

.project-context-phase > summary:hover {
	background: #f2f8f6;
}

.project-context-phase-caret {
	width: 18px;
	height: 18px;
}

.project-context-phase[open] > summary .project-context-phase-caret::before {
	transform: rotate(90deg);
}

.project-context-phase-sections {
	padding: 0 6px 7px 15px;
	border-top: 1px solid #e4ecea;
	background: #fbfdfc;
}

.project-context-phase-sections .project-context-section-button {
	min-height: 48px;
	grid-template-columns: 28px minmax(0, 1fr) 18px;
	padding-inline: 7px;
}

.project-context-phase-sections .project-context-section-icon {
	width: 28px;
	height: 28px;
}

.content-pane.has-project-split.has-project-collection {
	grid-template-columns: clamp(250px, 20vw, 260px) clamp(360px, 30vw, 440px) minmax(0, 1fr);
}

.content-pane.has-project-split.has-project-collection > .content-head {
	grid-column: 2 / 4;
}

.content-pane.has-project-split.has-project-collection .project-detail-pane {
	grid-column: 3;
}

.project-collection-pane {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: auto;
	border-right: 1px solid var(--line);
	background: #fbfdfc;
	scrollbar-width: thin;
}

.project-collection-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 16px 15px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.project-collection-head > div {
	flex: 1 1 180px;
	min-width: 0;
}

.project-collection-head h3 {
	margin: 2px 0 0;
	font-size: 1rem;
}

.project-collection-head > div > p:last-child {
	margin: 5px 0 0;
	color: var(--text-muted);
	font-size: 0.75rem;
}

.project-collection-add {
	flex: 0 0 auto;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	border: 1px solid var(--theme);
	border-radius: 4px;
	background: var(--theme);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 750;
	white-space: nowrap;
}

.project-collection-add:hover,
.project-collection-add:focus-visible {
	background: var(--theme-strong);
}

.project-collection-add img {
	width: 15px;
	height: 15px;
	filter: brightness(0) invert(1);
}

.project-collection-table {
	min-width: 0;
	display: grid;
	align-content: start;
}

.project-collection-table-head {
	min-height: 40px;
	display: grid;
	grid-template-columns: minmax(90px, 1.25fr) minmax(58px, 0.65fr) minmax(96px, 1fr) 36px;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	border-bottom: 1px solid var(--line);
	background: #f0f6f4;
	color: #466159;
	font-size: 0.68rem;
	font-weight: 750;
	line-height: 1.2;
}

.project-collection-actions-head {
	overflow: hidden;
	text-indent: -9999px;
}

.project-collection-table-body {
	display: grid;
	gap: 6px;
	padding: 9px;
}

.project-collection-row {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 36px;
	align-items: stretch;
	gap: 5px;
	border: 1px solid #d6e4e0;
	border-radius: 4px;
	background: #ffffff;
}

.project-collection-row:hover,
.project-collection-row:focus-within {
	border-color: #83bbb0;
	background: #f6fbf9;
}

.project-collection-row.is-selected {
	border-color: var(--theme);
	background: #eaf6f2;
	box-shadow: inset 3px 0 0 var(--theme);
}

.project-collection-row-select {
	min-width: 0;
	min-height: 52px;
	display: grid;
	grid-template-columns: minmax(90px, 1.25fr) minmax(58px, 0.65fr) minmax(96px, 1fr);
	align-items: center;
	gap: 5px;
	padding: 8px 5px 8px 11px;
	border: 0;
	background: transparent;
	color: var(--text);
	text-align: left;
}

.project-collection-row-select strong,
.project-collection-row-select span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.project-collection-row-select strong {
	font-size: 0.78rem;
}

.project-collection-row-select span {
	color: #38564e;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.project-collection-delete {
	width: 30px;
	height: 30px;
	align-self: center;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid #e1c7c7;
	border-radius: 4px;
	background: #fff7f7;
}

.project-collection-delete:hover,
.project-collection-delete:focus-visible {
	border-color: #b85b5b;
	background: #ffeded;
}

.project-collection-delete img {
	width: 16px;
	height: 16px;
}

.project-collection-empty {
	display: grid;
	gap: 6px;
	padding: 22px 14px;
	border: 1px dashed #c8d9d5;
	border-radius: 4px;
	background: #ffffff;
	color: var(--text-muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.project-collection-empty strong {
	color: var(--text);
	font-size: 0.86rem;
}

.housing-detail-name-row {
	display: grid;
	grid-template-columns: minmax(155px, 220px) minmax(220px, 420px);
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #f7fafc;
	font-size: 13px;
}

.housing-detail-name-row > span {
	font-weight: 650;
	text-align: right;
}

.housing-detail-name-input {
	width: 100%;
	min-width: 0;
}

@media (max-width: 1180px) and (min-width: 721px) {
	.content-pane.has-project-split.has-project-collection {
		grid-template-columns: 250px minmax(330px, 38vw) minmax(0, 1fr);
	}

	.project-collection-add span {
		display: none;
	}
}

@media (max-width: 720px) {
	.content-pane.has-project-split.has-project-collection {
		display: flex;
	}

	.content-pane.has-project-split .project-collection-pane {
		order: 3;
		width: 100%;
		max-height: min(48vh, 430px);
		flex: none;
		overflow: auto;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.content-pane.has-project-split.has-project-collection .project-detail-pane {
		order: 4;
	}

	.housing-detail-name-row {
		grid-template-columns: 1fr;
	}

	.housing-detail-name-row > span {
		text-align: left;
	}
}

button,
.toolbar-menu > summary {
	transform: translateY(0) scale(1);
	transform-origin: center;
}

button,
button[class],
.toolbar-menu > summary {
	transition-property: background, border-color, color, transform, box-shadow, filter;
	transition-duration: 0.18s, 0.18s, 0.18s, 0.1s, 0.1s, 0.1s;
	transition-timing-function: ease, ease, ease, cubic-bezier(0.2, 0.8, 0.2, 1), ease, ease;
}

button:not(:disabled):not([aria-disabled="true"]):active,
.toolbar-menu > summary:active {
	transform: translateY(var(--button-press-translate)) scale(var(--button-press-scale));
	box-shadow: var(--button-press-shadow);
	filter: var(--button-press-filter);
}

@media (prefers-reduced-motion: reduce) {
	button,
	button[class],
	.toolbar-menu > summary {
		transition-duration: 0s;
	}
}

img {
	display: block;
	max-width: 100%;
}

body {
	padding: 18px;
}

[hidden] {
	display: none !important;
}

.auth-shell {
	min-height: calc(100vh - 36px);
	position: relative;
	display: grid;
	place-items: center;
	padding: 32px;
	overflow: hidden;
	background:
		linear-gradient(125deg, rgba(15, 118, 110, 0.1) 0 34%, transparent 34% 100%),
		linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid rgba(15, 118, 110, 0.2);
	box-shadow: 0 24px 56px rgba(15, 118, 110, 0.12);
}

.auth-shell::before,
.auth-shell::after {
	display: none;
}

.auth-shell::before {
	top: -120px;
	left: -90px;
	width: 300px;
	height: 300px;
	background: transparent;
}

.auth-shell::after {
	right: -140px;
	bottom: -140px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(34, 51, 68, 0.18), rgba(34, 51, 68, 0));
}

.auth-layout {
	position: relative;
	z-index: 1;
	width: min(460px, 100%);
}

.auth-card {
	width: 100%;
	padding: 38px 34px 30px;
	display: grid;
	gap: 22px;
	align-self: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(15, 118, 110, 0.18);
	border-radius: 8px;
	box-shadow: 0 28px 60px rgba(15, 118, 110, 0.14);
	backdrop-filter: blur(16px);
}

.auth-card-head {
	display: grid;
	gap: 16px;
}

.auth-brand {
	display: flex;
	align-items: center;
	padding: 10px 0 8px;
	min-width: 0;
}

.auth-logo {
	width: min(118px, 48%);
	height: auto;
}

.auth-mark-shell {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid rgba(15, 118, 110, 0.16);
	background: var(--theme);
}

.auth-mark {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.auth-brand-name {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--theme-strong);
}

.auth-card h2 {
	margin: 0;
	font-size: 2.85rem;
	line-height: 0.94;
	letter-spacing: 0;
}

.auth-copy {
	margin: 0;
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.auth-form {
	display: grid;
	gap: 16px;
}

.auth-field {
	display: grid;
	gap: 10px;
}

.auth-field span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--theme-soft);
}

.auth-field input {
	height: 54px;
	padding: 0 16px;
	border: 1px solid rgba(117, 132, 147, 0.48);
	border-radius: 8px;
	background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 100%);
	color: var(--text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-field input:focus {
	outline: none;
	border-color: rgba(15, 118, 110, 0.76);
	background: #fff;
	box-shadow:
		0 0 0 4px rgba(15, 118, 110, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.toolbar-button.auth-submit {
	width: 100%;
	min-height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px 14px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
	box-shadow: 0 18px 34px rgba(15, 118, 110, 0.24);
}

.toolbar-button.auth-submit:hover {
	background: var(--theme-strong);
}

.toolbar-button.auth-submit:disabled {
	cursor: progress;
	opacity: 0.72;
}

.auth-submit-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.auth-submit-title {
	font-size: 1.02rem;
	font-weight: 700;
	color: #fff;
}

.auth-submit-meta {
	font-size: 0.82rem;
	line-height: 1.3;
	color: rgba(241, 246, 250, 0.74);
}

.auth-submit-arrow {
	width: 34px;
	height: 34px;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 1.05rem;
	line-height: 1;
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.auth-shell {
		padding: 18px;
	}

	.auth-card {
		padding: 26px 22px;
		border-radius: 8px;
	}

	.auth-card h2 {
		font-size: 2.2rem;
	}

	.auth-field input,
	.toolbar-button.auth-submit {
		border-radius: 8px;
	}

	.toolbar-button.auth-submit {
		min-height: 62px;
		padding: 13px 14px 13px 16px;
	}
}

.app-frame {
	min-height: calc(100vh - 36px);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: var(--surface);
	border: 1px solid var(--theme);
	box-shadow: var(--shadow);
}

.toolbar-shell {
	min-height: var(--toolbar-height);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--theme);
	background: var(--surface);
}

.toolbar-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.toolbar-brand {
	height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 4px;
	border-right: 1px solid var(--line);
	color: var(--theme-strong);
	flex: 0 0 auto;
	min-width: 0;
}

.toolbar-brand img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 3px;
}

.toolbar-brand span {
	font-size: 0.83rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.session-user {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--line);
	background: var(--surface-muted);
	color: var(--theme-strong);
	font-size: 0.9rem;
	font-weight: 600;
}

.toolbar-button,
.icon-button,
.menu-item {
	border: 1px solid var(--theme);
	background: var(--surface);
	color: var(--text);
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.toolbar-button:hover,
.icon-button:hover,
.menu-item:hover {
	background: var(--surface-subtle);
}

.toolbar-button {
	height: 34px;
	padding: 0 14px;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
}

.toolbar-button-secondary {
	border-color: var(--line-strong);
	color: var(--theme-soft);
}

.toolbar-button-danger {
	border-color: rgba(180, 72, 72, 0.35);
	background: #fff5f5;
	color: var(--danger);
}

.toolbar-button-compact {
	width: 100%;
	justify-content: center;
}

.icon-button {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	padding: 0;
}

.icon-button img,
.toolbar-menu summary img {
	width: 17px;
	height: 17px;
	object-fit: contain;
}

.icon-button-save {
	position: relative;
}

.icon-button-save::after {
	content: "";
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.icon-button-save.is-saving,
.icon-button-save.is-saving:hover {
	border-color: rgba(15, 118, 110, 0.72);
	background: linear-gradient(180deg, #ffffff 0%, #daf5ee 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.icon-button-save.is-saving img {
	animation: save-button-pulse 0.85s ease-in-out infinite;
}

.icon-button-save.is-saving::after,
.icon-button-save.is-saved::after,
.icon-button-save.is-failed::after {
	opacity: 1;
	transform: scale(1);
}

.icon-button-save.is-saving::after {
	background: var(--accent);
}

.icon-button-save.is-saved,
.icon-button-save.is-saved:hover {
	border-color: rgba(47, 143, 87, 0.72);
	background: linear-gradient(180deg, #ffffff 0%, #dff3e5 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(47, 143, 87, 0.12);
}

.icon-button-save.is-saved::after {
	background: var(--success);
}

.icon-button-save.is-failed,
.icon-button-save.is-failed:hover {
	border-color: rgba(180, 72, 72, 0.72);
	background: linear-gradient(180deg, #ffffff 0%, #f3d9d9 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(180, 72, 72, 0.12);
}

.icon-button-save.is-failed::after {
	background: var(--danger);
}

@keyframes save-button-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(0.82);
		opacity: 0.58;
	}
}

.icon-button-muted,
.icon-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.toolbar-menu {
	position: relative;
}

.toolbar-menu summary {
	list-style: none;
}

.toolbar-menu summary::-webkit-details-marker {
	display: none;
}

.toolbar-menu-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	min-width: 180px;
	padding: 8px;
	display: grid;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--theme);
	box-shadow: var(--shadow);
}

.toolbar-menu:not([open]) > .toolbar-menu-panel {
	display: none;
}

.toolbar-menu[open] > .toolbar-menu-panel {
	display: grid;
}

.menu-item {
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	border-radius: 3px;
	text-align: left;
}

.workspace-shell {
	min-height: 0;
	display: grid;
	grid-template-columns: var(--navigator-width) var(--navigator-divider-width) minmax(0, 1fr);
}

.navigator-pane {
	min-height: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--theme);
	background: linear-gradient(180deg, #fcfdff, #f3f7fb);
}

.pane-head,
.navigator-footer {
	padding: 14px 14px 12px;
}

.pane-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}

.project-search-shell {
	display: grid;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.78);
}

.project-search-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-muted);
}

.project-search-input {
	width: 100%;
	height: 34px;
	min-width: 0;
	padding: 0 10px 1px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: #fff;
	color: var(--text);
}

.project-search-input:focus {
	outline: 2px solid rgba(15, 118, 110, 0.24);
	outline-offset: 0;
	border-color: var(--theme);
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.brand-mark {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.pane-kicker {
	margin: 0 0 4px;
	font-size: 0.73rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.code-reference-label {
	margin: 0 0 4px;
	color: var(--theme-strong);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pane-head h1,
.content-head h2,
.drawer-head h3,
.modal-window h3,
.empty-state h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.sample-badge {
	min-width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border: 1px solid var(--theme);
	border-radius: 999px;
	background: var(--theme);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

.tree-wrap {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 12px 8px 12px 10px;
}

.tree-level {
	display: grid;
	gap: 2px;
}

.project-list-section {
	display: grid;
	gap: 6px;
}

.project-list-section + .project-list-section {
	margin-top: 14px;
}

.project-list-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 4px;
}

.project-list-section-head h3 {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.project-list-section-head span {
	min-width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--text-muted);
	font-size: 0.76rem;
	font-weight: 700;
}

.project-list-section-body {
	display: grid;
	gap: 2px;
}

.tree-project-row {
	display: flex;
	align-items: stretch;
	gap: 2px;
}

.tree-node-children {
	margin-left: 24px;
	padding-left: 6px;
	border-left: 1px dashed #c9d2db;
}

.tree-disclosure,
.tree-row,
.tree-branch,
.tree-project-shortcut {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border: none;
	background: transparent;
	color: var(--text);
	text-align: left;
	border-radius: 3px;
}

.tree-disclosure {
	width: 28px;
	flex: 0 0 28px;
	justify-content: center;
	padding: 7px 0;
}

.tree-branch {
	flex: 1 1 auto;
	min-width: 0;
}

.tree-disclosure:hover,
.tree-row:hover,
.tree-branch:hover,
.tree-project-shortcut:hover {
	background: rgba(34, 51, 68, 0.08);
}

.tree-row.is-active,
.tree-branch.is-active,
.tree-project-shortcut.is-active {
	background: rgba(34, 51, 68, 0.14);
	box-shadow: inset 0 0 0 1px rgba(34, 51, 68, 0.16);
}

.tree-row.is-active .tree-label,
.tree-row.is-active .tree-note,
.tree-branch.is-active .tree-label,
.tree-branch.is-active .tree-note,
.tree-project-shortcut.is-active .tree-label,
.tree-project-shortcut.is-active .tree-note {
	color: var(--text);
}

.project-list-empty {
	display: grid;
	gap: 4px;
	padding: 8px 10px;
	color: var(--text-muted);
}

.project-list-empty strong {
	color: var(--text);
	font-size: 0.9rem;
}

.project-list-empty p {
	margin: 0;
	line-height: 1.35;
}

.tree-label-group {
	min-width: 0;
	display: grid;
}

.tree-label-row {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tree-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.95rem;
	line-height: 1.25;
}

.tree-warning-badge {
	flex: 0 0 auto;
	padding: 1px 5px 2px;
	border: 1px solid var(--status-warn-fg);
	border-radius: 3px;
	background: var(--status-warn-bg);
	color: var(--status-warn-fg);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
}

.tree-unsaved-badge {
	border-color: var(--status-fail-fg);
	background: var(--status-fail-bg);
	color: var(--status-fail-fg);
}

.tree-row.has-warning .tree-note {
	color: var(--theme-strong);
}

.tree-note {
	font-size: 0.76rem;
	color: var(--text-muted);
}

.tree-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex: 0 0 auto;
}

.tree-caret {
	width: 12px;
	height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
}

.tree-caret.is-hidden {
	visibility: hidden;
}

.navigator-footer {
	display: grid;
	gap: 10px;
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.72);
}

.navigator-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.navigator-stat strong {
	color: var(--text);
	font-size: 1rem;
}

.drag-handle {
	position: relative;
	cursor: col-resize;
	touch-action: none;
	user-select: none;
	background: linear-gradient(180deg, rgba(34, 51, 68, 0.03), rgba(34, 51, 68, 0.09), rgba(34, 51, 68, 0.03));
}

.drag-handle::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	transform: translateX(-50%);
	background: rgba(34, 51, 68, 0.22);
}

.drag-handle:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.7);
}

.workspace-shell.is-resizing,
.workspace-shell.is-resizing * {
	cursor: col-resize;
}

.workspace-shell.is-resizing {
	user-select: none;
}

.content-pane {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fbfcfe;
}

.content-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.content-title-group {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.content-icon-shell {
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: var(--surface);
}

.content-icon {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.selection-copy {
	margin: 6px 0 0;
	max-width: 780px;
	color: var(--text-muted);
	line-height: 1.5;
}

.status-panel {
	max-width: 320px;
	min-width: 240px;
	padding: 12px 14px;
	border: 1px solid var(--theme);
	border-radius: var(--radius);
	background: var(--surface);
}

.status-panel span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.status-panel strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.98rem;
}

.status-panel p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.5;
}

.content-root {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 18px 20px 20px;
	display: grid;
	align-content: start;
	gap: 16px;
}

.content-root.content-root-housing {
	padding: 0;
	gap: 0;
}

.draft-recovery-banner {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 11px 12px;
	border: 1px solid rgba(180, 72, 72, 0.38);
	border-radius: 3px;
	background: #fff7f4;
	color: #5f2a2a;
}

.content-root.content-root-desktop > .draft-recovery-banner {
	margin: 12px 12px 12px;
}

.draft-recovery-banner strong {
	display: block;
	font-size: 0.92rem;
}

.draft-recovery-banner p {
	margin: 4px 0 0;
	color: #6f403d;
	font-size: 0.82rem;
	line-height: 1.4;
}

.draft-recovery-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.draft-recovery-actions .toolbar-button {
	min-height: 32px;
}

.panel-card,
.pane-card,
.titled-pane,
.metric-card,
.empty-state,
.modal-window,
.json-drawer {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 6px 18px rgba(27, 42, 59, 0.04);
}

.panel-card,
.pane-card,
.empty-state {
	padding: 16px;
}

.pane-card-header,
.titled-pane-header,
.section-headline,
.tab-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.section-headline p,
.pane-card-header p,
.titled-pane-header p,
.empty-state p,
.help-copy,
.muted-copy {
	margin: 6px 0 0;
	color: var(--text-muted);
	line-height: 1.5;
}

code {
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(34, 51, 68, 0.08);
	color: var(--theme-strong);
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.92em;
}

.description-layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 18px;
}

.illustration-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(180deg, #f7fafc, #eef4f8);
}

.illustration-panel img {
	max-width: 220px;
	max-height: 200px;
	object-fit: contain;
}

.form-stack {
	display: grid;
	gap: 12px;
}

.form-row {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.form-row > span {
	color: var(--text);
	font-weight: 600;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.field-card {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.field-card label,
.table-shell label {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--text-muted);
}

.field-card input,
.field-card select,
.field-card textarea,
.form-row input,
.form-row select,
.form-row textarea,
.table-shell input,
.table-shell select,
.drawer-head + textarea {
	width: 100%;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: #fff;
	color: var(--text);
}

.field-card input,
.field-card select,
.form-row input,
.form-row select,
.table-shell input,
.table-shell select {
	height: 36px;
	min-height: 36px;
	padding: 0 10px 1px;
	line-height: normal;
}

.field-card textarea,
.form-row textarea,
.drawer-head + textarea {
	min-height: 100px;
	padding: 7px 10px;
	resize: vertical;
}

.checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkbox-row input {
	width: 18px;
	height: 18px;
}

.tab-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tab-button {
	position: relative;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 3px 3px 0 0;
	background: #f0f4f8;
	color: var(--text-muted);
}

.tab-button[draggable="true"] {
	cursor: grab;
	user-select: none;
}

.tab-button[draggable="true"]:active,
.tab-button.is-tab-dragging {
	cursor: grabbing;
}

.tab-button.is-tab-dragging {
	opacity: 0.55;
}

.tab-button.is-tab-drop-before::before,
.tab-button.is-tab-drop-after::after {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	width: 3px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
	pointer-events: none;
	z-index: 5;
}

.tab-button.is-tab-drop-before::before {
	left: -3px;
}

.tab-button.is-tab-drop-after::after {
	right: -3px;
}

.tab-button:hover {
	background: #e8eef4;
}

.tab-button.is-active {
	background: var(--surface);
	color: var(--text);
	border-color: var(--theme);
}

.titled-pane {
	overflow: hidden;
}

.titled-pane-header {
	padding: 12px 14px;
	margin: 0;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fbfcfe, #eef3f7);
}

.titled-pane-body {
	padding: 14px;
}

.table-shell {
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 580px;
}

thead {
	background: #eff4f8;
}

th,
td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

th {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--theme-soft);
}

tbody tr:last-child td {
	border-bottom: none;
}

.metric-grid,
.summary-grid,
.jump-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.metric-card strong,
.summary-pill strong {
	display: block;
	font-size: 1.28rem;
	font-weight: 700;
}

.metric-card span,
.summary-pill span {
	color: var(--text-muted);
}

.metric-card,
.summary-pill {
	padding: 14px;
}

.project-summary-pane {
	width: min(100%, 1080px);
	display: grid;
	gap: 18px;
}

.project-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.project-summary-title {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}

.project-summary-title img {
	width: 38px;
	height: 38px;
	object-fit: contain;
	flex: 0 0 auto;
}

.project-summary-title h3 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 650;
	line-height: 1.15;
}

.project-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.project-summary-item {
	min-width: 0;
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
}

.project-summary-item span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.project-summary-item strong {
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text);
}

.summary-pill {
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.settings-panel {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.settings-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px;
	align-items: start;
	gap: 16px;
}

.settings-field label {
	display: block;
	font-weight: 700;
	color: var(--text);
}

.settings-danger-zone {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
	align-items: start;
	gap: 16px;
	margin-top: 4px;
	padding: 14px;
	border: 1px solid rgba(180, 72, 72, 0.35);
	border-left: 4px solid var(--danger);
	border-radius: 3px;
	background: rgba(180, 72, 72, 0.06);
}

.settings-danger-zone label {
	display: block;
	font-weight: 700;
	color: var(--text);
}

.settings-danger-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.settings-danger-heading label {
	color: var(--danger);
}

.settings-danger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--danger);
	color: #fff;
	font-weight: 800;
	line-height: 1;
}

.settings-danger-copy {
	margin: 8px 0 0;
	color: var(--danger);
	font-weight: 700;
	line-height: 1.45;
}

.settings-danger-actions {
	display: grid;
	gap: 8px;
	justify-items: start;
}

.settings-danger-zone .settings-check-row {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 18px;
}

.settings-danger-zone .settings-check-row input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 auto;
}

.settings-danger-zone .settings-note {
	color: #7f3333;
}

.settings-number-input {
	width: 100%;
	height: 36px;
	padding: 0 10px 1px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: #fff;
	color: var(--text);
}

.settings-select,
.settings-select-input {
	width: 100%;
}

.settings-select-input {
	height: 36px;
	padding-left: 12px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background-color: #fff;
	color: var(--text);
}

.settings-note,
.settings-warning {
	margin: 0;
	line-height: 1.5;
}

.settings-note {
	color: var(--text-muted);
}

.settings-warning {
	padding: 10px 12px;
	border: 1px solid rgba(180, 72, 72, 0.35);
	border-radius: 3px;
	background: rgba(180, 72, 72, 0.08);
	color: var(--danger);
}

.jump-card {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
	text-align: left;
}

.jump-card:hover {
	background: var(--surface-muted);
}

.jump-card h4,
.sample-library-card h4 {
	margin: 0 0 6px;
	font-size: 1rem;
}

.jump-card h4 {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jump-card p,
.sample-library-card p,
.log-entry p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.5;
}

.empty-state {
	display: grid;
	gap: 10px;
	justify-items: start;
}

.empty-state h3 {
	font-size: 1.02rem;
}

.toolbar-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.overlay {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 31, 44, 0.35);
	backdrop-filter: blur(4px);
}

.overlay.overlay-javafx {
	background: rgba(0, 0, 0, 0.18);
	backdrop-filter: none;
}

.overlay[hidden],
.json-drawer[hidden] {
	display: none;
}

.export-progress-overlay {
	z-index: 40;
	background: rgba(20, 31, 44, 0.48);
}

.export-progress-dialog {
	width: min(520px, 100%);
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 26px 28px;
	border: 1px solid rgba(15, 118, 110, 0.24);
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28);
}

.export-progress-spinner {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border: 5px solid rgba(15, 118, 110, 0.18);
	border-top-color: var(--theme, #0f766e);
	border-radius: 50%;
	animation: excel-export-spin 0.8s linear infinite;
}

.export-progress-copy {
	display: grid;
	gap: 7px;
}

.export-progress-copy h2,
.export-progress-copy p {
	margin: 0;
}

.export-progress-copy h2 {
	font-size: 1.25rem;
	color: var(--text);
}

.export-progress-copy p {
	line-height: 1.5;
	color: var(--text-muted);
}

@keyframes excel-export-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.export-progress-spinner {
		animation: none;
	}
}

.modal-window {
	width: min(980px, 100%);
	max-height: min(82vh, 920px);
	overflow: auto;
	padding: 18px;
}

.modal-window.modal-window-javafx {
	width: auto;
	max-height: none;
	overflow: visible;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.modal-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.fx-dialog-window {
	border: 1px solid #7f7f7f;
	border-radius: 12px;
	background: #efefef;
	box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.fx-dialog-window-prompt {
	width: min(505px, calc(100vw - 28px));
}

.fx-dialog-titlebar {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 0 0 8px;
	border-bottom: 1px solid #ddd4cb;
	background: linear-gradient(180deg, #f7f0ea, #efe9e2);
}

.fx-dialog-titlegroup {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fx-dialog-appicon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex: 0 0 auto;
}

.fx-dialog-title {
	font-size: 1.05rem;
	font-weight: 400;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fx-dialog-window-close {
	width: 46px;
	height: 39px;
	border: none;
	background: transparent;
	color: #222;
	font-size: 1.4rem;
	line-height: 1;
}

.fx-dialog-window-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.fx-dialog-shell {
	display: grid;
	background: #efefef;
}

.fx-dialog-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 16px 16px 10px;
	background: linear-gradient(180deg, #fbfbfb, #f0f0f0);
}

.fx-dialog-header {
	padding: 0;
}

.modal-window.modal-window-javafx .fx-dialog-header h3 {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 400;
	color: #232323;
}

.fx-dialog-help-badge {
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 3px solid #f1f7f5;
	background: radial-gradient(circle at 32% 28%, #6ee7b7, #0f766e 58%, #115e59 100%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
	color: #fff;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
}

.fx-dialog-help-badge-info {
	background: radial-gradient(circle at 32% 28%, #6ee7b7, #0f766e 58%, #115e59 100%);
}

.fx-dialog-help-badge-success {
	background: radial-gradient(circle at 32% 28%, #8fd8a5, #46a764 58%, #2b7d45 100%);
}

.fx-dialog-help-badge-error {
	background: radial-gradient(circle at 32% 28%, #f0a1a1, #d16262 58%, #a43c3c 100%);
}

.fx-dialog-divider {
	height: 1px;
	background: #d1d1d1;
}

.fx-dialog-content,
.fx-dialog-body {
	display: grid;
	gap: 12px 14px;
	padding: 14px 16px 0;
	background: #efefef;
}

.fx-dialog-content {
	grid-template-columns: minmax(0, 1fr) 156px;
	align-items: start;
}

.fx-dialog-input-column {
	display: grid;
	gap: 6px;
}

.fx-dialog-body-confirm {
	padding-bottom: 6px;
}

.fx-dialog-body-message {
	padding-bottom: 6px;
}

.fx-dialog-body-transformer {
	padding-bottom: 6px;
}

.fx-dialog-body-local-range {
	padding-bottom: 6px;
}

.fx-dialog-copy {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	color: #1f1f1f;
	align-self: center;
}

.fx-transformer-dialog-grid {
	display: grid;
	gap: 12px;
}

.fx-transformer-dialog-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #1f1f1f;
	font-size: 1rem;
}

.fx-transformer-dialog-option input {
	margin-top: 3px;
}

.fx-transformer-dialog-manual {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 156px;
	align-items: center;
	gap: 12px;
}

.fx-local-range-dialog-grid {
	display: grid;
	gap: 10px;
}

.fx-local-range-dialog-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 156px;
	align-items: center;
	gap: 12px;
	color: #1f1f1f;
	font-size: 1rem;
}

.fx-dialog-input {
	width: 100%;
	height: 32px;
	padding: 0 8px 1px;
	border: 1px solid #8fb8ad;
	border-radius: 3px;
	background: #fff;
	color: #111;
	box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
	font-size: 1rem;
}

.fx-dialog-input:focus {
	outline: 2px solid rgba(15, 118, 110, 0.28);
	outline-offset: 0;
	border-color: var(--theme);
	box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.26);
}

.fx-dialog-validation {
	margin: 0;
	padding: 6px 8px;
	border: 1px solid #d7b26b;
	border-radius: 3px;
	background: #fff7d6;
	color: #3c2d00;
	font-size: 0.9rem;
	line-height: 1.35;
}

.fx-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	padding: 18px 18px 14px;
	background: #efefef;
}

.fx-dialog-button {
	min-width: 94px;
	height: 32px;
	padding: 0 14px;
	border: 1px solid #aeaeae;
	border-radius: 3px;
	background: linear-gradient(180deg, #fefefe, #d9d9d9);
	color: #111;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	font-size: 1rem;
}

.fx-dialog-button:hover {
	background: linear-gradient(180deg, #ffffff, #d4d4d4);
}

.fx-dialog-button:focus {
	outline: 2px solid rgba(15, 118, 110, 0.28);
	outline-offset: 1px;
}

.fx-dialog-button-primary {
	border-color: #8fb8ad;
	background: linear-gradient(180deg, #e4f8f3, #b7e3d8);
}

.fx-dialog-button-primary:hover {
	background: linear-gradient(180deg, #ecfbf7, #a8d9cd);
}

@media (max-width: 560px) {
	.fx-dialog-window-prompt {
		width: min(505px, calc(100vw - 18px));
	}

	.fx-dialog-content {
		grid-template-columns: 1fr;
	}

	.fx-transformer-dialog-manual {
		grid-template-columns: 1fr;
	}

	.fx-local-range-dialog-row {
		grid-template-columns: 1fr;
	}

	.fx-dialog-help-badge {
		width: 46px;
		height: 46px;
		font-size: 1.7rem;
	}
}

.modal-form-stack {
	display: grid;
	gap: 14px;
}

.modal-form-field {
	display: grid;
	gap: 8px;
}

.modal-form-field > span {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--text-muted);
}

.modal-form-field input {
	width: 100%;
	height: 40px;
	padding: 0 12px 1px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: #fff;
	color: var(--text);
}

.modal-confirm-copy {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.modal-confirm-copy p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.5;
}

.sample-library {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.start-project-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.start-project-option-wrap {
	min-width: 0;
	position: relative;
	display: grid;
}

.start-project-option {
	min-width: 0;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
	color: var(--text);
	text-align: left;
}

.start-project-option-wrap .start-project-option {
	padding-right: 46px;
}

.start-project-option:hover,
.start-project-option:focus {
	border-color: var(--theme);
	background: #f4f8fb;
}

.start-project-option:focus {
	outline: 2px solid rgba(15, 118, 110, 0.28);
	outline-offset: 1px;
}

.start-project-option-icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
}

.start-project-option-icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.start-project-option-copy {
	min-width: 0;
	display: grid;
	gap: 7px;
}

.start-project-option-copy strong {
	font-size: 1rem;
	line-height: 1.15;
}

.start-project-option-copy span {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

.start-project-help {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.start-project-help summary {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--theme-strong);
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	list-style: none;
}

.start-project-help summary::-webkit-details-marker {
	display: none;
}

.start-project-help p {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(280px, calc(100vw - 64px));
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	background: var(--surface);
	box-shadow: var(--shadow);
	color: var(--text-muted);
	font-size: 0.86rem;
	line-height: 1.45;
}

@media (max-width: 560px) {
	.start-project-options {
		grid-template-columns: 1fr;
	}
}

.sample-library-card {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
	text-align: left;
}

.template-library-card {
	min-width: 0;
	display: grid;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.template-library-card:hover {
	border-color: var(--theme);
	background: #f4f8fb;
}

.template-library-card h4,
.sample-library-card h4 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.25;
}

.template-library-card p,
.sample-library-card p {
	margin: 8px 0 0;
	color: var(--text-muted);
	font-size: 0.88rem;
	line-height: 1.35;
}

.template-library-card .toolbar-button {
	width: 100%;
	height: auto;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: normal;
	line-height: 1.25;
	padding-top: 8px;
	padding-bottom: 8px;
}

.project-type-library {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.project-type-card {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
	color: var(--text);
	text-align: left;
}

.project-type-card:hover,
.project-type-card:focus {
	border-color: var(--theme);
	background: #f4f8fb;
}

.project-type-card:focus {
	outline: 2px solid rgba(15, 118, 110, 0.28);
	outline-offset: 1px;
}

.project-type-card-icon {
	width: 34px;
	height: 34px;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
}

.project-type-card-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.project-type-card strong {
	font-size: 0.9rem;
	line-height: 1.25;
}

.sample-library-card:hover,
.sample-library-card.is-active {
	border-color: var(--theme);
	background: #f4f8fb;
}

.sample-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 8px;
	font-size: 0.84rem;
	color: var(--text-muted);
}

.log-dialog {
	display: grid;
	gap: 14px;
}

.log-dialog-head {
	position: sticky;
	top: -18px;
	z-index: 3;
	margin: -18px -18px 0;
	padding: 18px 18px 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
	border-bottom: 1px solid var(--line);
}

.log-overview-card,
.log-filter-card,
.log-results-card {
	background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.log-dialog .pane-card-header h4 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
}

.log-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.log-stat-card {
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: linear-gradient(180deg, #f7fafc, #eef4f8);
}

.log-stat-card.is-pending {
	border-color: #e0c88d;
	background: linear-gradient(180deg, #fffdf5, #fff7e5);
}

.log-stat-card span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.log-stat-card strong {
	font-size: 1.8rem;
	line-height: 1;
	color: var(--text);
}

.log-stat-card p {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--text-muted);
}

.log-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
	gap: 12px;
	align-items: end;
}

.log-toolbar .desktop-field {
	display: grid;
	gap: 6px;
	color: var(--text-muted);
}

.log-toolbar .desktop-field span {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.log-toolbar input,
.log-toolbar select {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
	color: var(--text);
}

.log-toolbar input:focus,
.log-toolbar select:focus {
	outline: none;
	border-color: var(--theme);
	box-shadow: 0 0 0 3px rgba(83, 97, 109, 0.12);
}

.log-field-search {
	min-width: 0;
}

.log-toolbar-actions,
.log-toolbar .fx-dialog-validation {
	grid-column: 1 / -1;
}

.log-toolbar-actions {
	justify-content: flex-end;
}

.log-toolbar .fx-dialog-validation {
	margin: 0;
}

.log-results-head {
	margin-bottom: 14px;
}

.log-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.log-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-subtle);
	font-size: 0.82rem;
	color: var(--text-muted);
}

.log-chip strong {
	color: var(--text);
}

.log-list {
	position: relative;
	display: grid;
	gap: 14px;
	max-height: min(50vh, 560px);
	overflow: auto;
	padding: 8px 0 8px 28px;
	scrollbar-gutter: stable;
}

.log-list::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: linear-gradient(180deg, #c9d3dc, #dde4ea);
}

.log-list.is-empty {
	max-height: none;
	overflow: visible;
	padding-left: 0;
}

.log-list.is-empty::before {
	display: none;
}

.log-entry {
	position: relative;
	padding: 14px 16px 14px 18px;
	border: 1px solid #d5dde5;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.log-entry::before {
	content: "";
	position: absolute;
	left: -22px;
	top: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #526674;
	border: 3px solid #eef4f8;
	box-shadow: 0 0 0 1px #b8c6d1;
}

.log-entry.is-pending {
	border-color: #e0c88d;
	background: linear-gradient(180deg, #fffdf6, #fff8e8);
}

.log-entry.is-pending::before {
	background: var(--theme);
	border-color: #fff8e8;
	box-shadow: 0 0 0 1px #8fd5c6;
}

.log-entry-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.log-entry-copy {
	display: grid;
	gap: 9px;
	min-width: 0;
}

.log-entry strong {
	display: block;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--text);
}

.log-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.log-meta-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef3f7;
	font-size: 0.78rem;
	color: var(--text-muted);
}

.log-badge {
	flex-shrink: 0;
	padding: 4px 9px;
	border: 1px solid #9eb3c7;
	border-radius: 999px;
	background: #eef5fb;
	color: #36526a;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.log-badge.is-pending {
	border-color: #d8b76b;
	background: #fff8e8;
	color: #7c5600;
}

.log-entry-id {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #d6dfe7;
	font-size: 0.78rem;
	color: var(--text-muted);
}

.log-entry-id span {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.log-entry-id code {
	width: fit-content;
	max-width: 100%;
	border-radius: 8px;
	font-family: "Consolas", "Courier New", monospace;
	word-break: break-all;
}

@media (max-width: 980px) {
	.log-overview-grid,
	.log-toolbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.log-field-search,
	.log-toolbar-actions,
	.log-toolbar .fx-dialog-validation {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.log-overview-grid,
	.log-toolbar {
		grid-template-columns: 1fr;
	}

	.log-summary,
	.log-toolbar-actions {
		justify-content: flex-start;
	}

	.log-results-head,
	.log-entry-head {
		flex-direction: column;
	}

	.log-list {
		max-height: none;
		padding-left: 18px;
	}

	.log-entry::before {
		left: -14px;
	}
}

.modal-error {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1px solid rgba(180, 72, 72, 0.24);
	border-radius: 3px;
	background: #fff5f5;
}

.modal-error h4,
.modal-error p {
	margin: 0;
}

.json-drawer {
	position: fixed;
	top: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 25;
	width: min(720px, calc(100vw - 36px));
	display: flex;
	flex-direction: column;
	padding: 16px;
}

.drawer-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.drawer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#raw-json {
	flex: 1;
	min-height: 0;
	font-family: "Consolas", "Courier New", monospace;
}

.statusbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border-top: 1px solid var(--theme);
	background: #f6f8fb;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.accent-copy {
	color: var(--accent);
}

.danger-copy {
	color: var(--danger);
}

.hidden {
	display: none !important;
}

@media (max-width: 1200px) {
	.metric-grid,
	.summary-grid,
	.jump-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	body {
		padding: 10px;
	}

	.app-frame {
		min-height: calc(100vh - 20px);
	}

	.workspace-shell {
		grid-template-columns: 1fr;
	}

	.navigator-pane {
		border-right: none;
		border-bottom: 1px solid var(--theme);
	}

	.drag-handle {
		display: none;
	}

	.description-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.content-root,
	.content-head,
	.pane-head,
	.navigator-footer {
		padding-left: 14px;
		padding-right: 14px;
	}

	.form-row,
	.field-grid,
	.settings-field,
	.settings-danger-zone {
		grid-template-columns: 1fr;
	}

	.metric-grid,
	.summary-grid,
	.jump-grid {
		grid-template-columns: 1fr;
	}

	.toolbar-shell {
		padding: 10px;
	}

	.json-drawer {
		top: 10px;
		right: 10px;
		bottom: 10px;
		width: calc(100vw - 20px);
	}
}

:root {
	--theme: #0f766e;
	--theme-soft: #0f766e;
	--theme-strong: #115e59;
	--surface: #ffffff;
	--surface-muted: #f8fafc;
	--surface-subtle: #f1f5f9;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--text: #0f172a;
	--text-muted: #475569;
	--shadow: none;
	--radius: 3px;
	--radius-sm: 3px;
	--toolbar-height: 50px;
}

html,
body {
	height: 100%;
	background: #f8fafc;
	font-size: 13px;
}

body {
	padding: 0;
}

.app-frame {
	min-height: 100vh;
	min-height: 100dvh;
	padding: 2px;
	background: #f8fafc;
	box-shadow: none;
	border: none;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

@media (min-width: 721px) {
	body {
		overflow: hidden;
	}

	.app-frame {
		height: 100vh;
		height: 100dvh;
	}
}

.toolbar-shell {
	min-height: 50px;
	padding: 4px 10px;
	box-sizing: border-box;
	border: 1px solid var(--theme);
	border-bottom: none;
	background: #f4f7f6;
	gap: 12px;
}

.toolbar-group {
	gap: 10px;
}

.toolbar-brand {
	height: 32px;
	gap: 8px;
	padding: 0 12px 0 2px;
	border-right-color: var(--line);
}

.toolbar-brand img {
	width: 28px;
	height: 28px;
}

.toolbar-brand span {
	color: var(--theme-strong);
	font-size: 12px;
}

.toolbar-group-icons {
	margin-left: auto;
}

.toolbar-button,
.icon-button,
.toolbar-menu summary,
.menu-item {
	border: 1px solid var(--line-strong);
	background: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
	color: var(--text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.toolbar-button:hover,
.icon-button:hover,
.toolbar-menu summary:hover,
.menu-item:hover {
	background: linear-gradient(180deg, #ffffff 0%, #dff1ed 100%);
}

.toolbar-button {
	height: 30px;
	min-height: 30px;
	padding: 0 14px;
	border-radius: 3px;
	font-size: 12px;
}

.toolbar-button-secondary {
	color: var(--text);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-width: 32px;
	height: 30px;
	min-height: 30px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 3px;
}

.icon-button img,
.toolbar-menu summary img {
	width: 16px;
	height: 16px;
}

.icon-button-muted,
.icon-button:disabled {
	opacity: 0.6;
}

.toolbar-menu summary {
	width: 58px;
	height: 30px;
	min-height: 30px;
	align-items: center;
	justify-content: flex-start;
	padding: 0 8px;
	position: relative;
	box-sizing: border-box;
}

.toolbar-menu summary::after {
	content: "";
	position: absolute;
	right: 9px;
	top: 50%;
	width: 8px;
	height: 8px;
	background: var(--theme);
	clip-path: polygon(18% 12%, 18% 88%, 78% 50%);
	transform: translateY(-50%) rotate(90deg);
}

.toolbar-menu-panel {
	top: calc(100% + 2px);
	left: 0;
	right: auto;
	min-width: 198px;
	padding: 0;
	gap: 0;
	border: 0;
	border-radius: 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
	background: #ffffff;
}

.menu-item {
	width: 198px;
	height: 32px;
	padding: 0 9px 0 6px;
	gap: 8px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	color: #111111;
	font-size: 13px;
	font-weight: 400;
	justify-content: flex-start;
	line-height: 1;
}

.menu-item img {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	object-fit: contain;
}

.menu-item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.menu-item:hover,
.menu-item:focus-visible,
.toolbar-menu[open] .toolbar-menu-panel:not(:hover) .menu-item:first-child {
	background: var(--theme);
	color: #ffffff;
}

.workspace-shell {
	min-height: 0;
	overflow: hidden;
	grid-template-columns: var(--navigator-width) var(--navigator-divider-width) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	border: 1px solid var(--theme);
	background: #ffffff;
}

.navigator-pane {
	min-height: 0;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
	border-right: 1px solid var(--line);
}

.pane-head,
.navigator-footer,
.content-head,
.statusbar {
	display: none;
}

.project-search-shell {
	padding: 6px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.project-search-label {
	display: none;
}

.project-search-input {
	height: 30px;
	padding: 0 8px 1px;
	font-size: 13px;
}

.tree-wrap {
	padding: 6px 0 0;
}

.project-list-section {
	gap: 0;
}

.project-list-section + .project-list-section {
	margin-top: 8px;
}

.project-list-section-head {
	padding: 6px 8px 5px;
	background: #f4f7f6;
	border-top: 1px solid #e0ebe8;
	border-bottom: 1px solid #e0ebe8;
}

.project-list-section:first-child .project-list-section-head {
	border-top: none;
}

.project-list-section-head h3 {
	font-size: 11px;
	letter-spacing: 0;
}

.project-list-section-head span {
	min-width: 18px;
	height: 18px;
	font-size: 11px;
}

.project-list-section-body {
	gap: 0;
}

.tree-level {
	gap: 0;
}

.tree-project-row {
	gap: 0;
}

.tree-node-children {
	margin-left: 24px;
	padding-left: 6px;
	border-left: none;
}

.tree-disclosure,
.tree-row,
.tree-branch,
.tree-project-shortcut {
	gap: 8px;
	padding: 5px 8px 5px 4px;
	border-radius: 0;
	min-height: 32px;
}

.tree-disclosure {
	width: 24px;
	flex: 0 0 24px;
	justify-content: center;
	padding: 5px 0;
}

.tree-branch {
	flex: 1 1 auto;
	min-width: 0;
}

.tree-disclosure:hover,
.tree-row:hover,
.tree-branch:hover,
.tree-project-shortcut:hover {
	background: #edf7f4;
}

.tree-row.is-active,
.tree-branch.is-active,
.tree-project-shortcut.is-active {
	background: var(--theme);
	box-shadow: none;
	color: #ffffff;
}

.tree-row.is-active .tree-label,
.tree-row.is-active .tree-note,
.tree-branch.is-active .tree-label,
.tree-branch.is-active .tree-note,
.tree-project-shortcut.is-active .tree-label,
.tree-project-shortcut.is-active .tree-note,
.tree-row.is-active .tree-caret {
	color: #ffffff;
}

.tree-label-group {
	display: block;
}

.tree-label {
	font-size: 13px;
}

.tree-note {
	display: none;
}

.tree-icon {
	width: 22px;
	height: 22px;
}

.tree-caret {
	width: 12px;
	height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #5b6670;
}

.workspace-shell.is-setup-flow .project-search-shell,
.workspace-shell.is-setup-flow .navigator-footer,
.workspace-shell.is-setup-flow .sample-badge {
	display: none;
}

.setup-tree {
	display: grid;
	gap: 10px;
}

.setup-discard-button {
	width: auto;
	margin-inline: 6px;
}

.setup-scope-group {
	display: grid;
	gap: 0;
}

.setup-scope-head {
	min-height: 30px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 8px 5px 4px;
	color: #35423f;
}

.setup-scope-copy {
	min-width: 0;
	display: block;
}

.setup-scope-title,
.setup-scope-note {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.setup-scope-title {
	font-size: 13px;
	font-weight: 600;
}

.setup-scope-note,
.setup-empty-step {
	color: var(--text-muted);
	font-size: 12px;
}

.setup-scope-children {
	margin-left: 24px;
}

.setup-empty-step {
	padding: 6px 8px 7px 8px;
}

.drag-handle {
	background: linear-gradient(180deg, var(--surface-muted), var(--line), var(--surface-muted));
}

.content-pane {
	min-height: 0;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
}

.content-root {
	padding: 18px 16px 16px;
	gap: 12px;
	background: #ffffff;
}

.content-root.content-root-desktop {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	padding: 0;
	gap: 0;
}

.content-root.content-root-desktop > .desktop-editor-shell,
.content-root.content-root-desktop > .housing-shell,
.content-root.content-root-desktop > .commerce-shell,
.content-root.content-root-desktop > .main-connection-shell,
.content-root.content-root-desktop > .transformers-shell {
	flex: 1 1 auto;
	min-height: 0;
}

.content-root.content-root-housing > .empty-state,
.content-root.content-root-commerce > .empty-state {
	margin: 18px 16px 0;
}

.panel-card,
.pane-card,
.titled-pane,
.metric-card,
.empty-state,
.modal-window,
.json-drawer,
.sample-library-card,
.log-entry,
.summary-pill,
.table-shell,
.jump-card {
	border: 1px solid var(--line);
	border-radius: 3px;
	box-shadow: none;
}

.panel-card,
.pane-card,
.empty-state {
	padding: 12px;
}

.titled-pane-header {
	padding: 10px 12px;
	background: #f5f5f5;
}

.titled-pane-body {
	padding: 12px;
}

.desktop-description-pane {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 36px 18px 24px;
}

.desktop-description-illustration {
	margin-bottom: 22px;
}

.desktop-description-illustration img {
	width: 150px;
	height: 150px;
	object-fit: contain;
}

.desktop-description-form {
	width: min(100%, 760px);
	display: grid;
	gap: 16px;
}

.project-details-pane {
	width: min(100%, 980px);
	margin: 0 auto;
	align-items: stretch;
	gap: 16px;
	padding: 24px 18px;
}

.project-details-pane .desktop-description-illustration {
	margin: 0 auto 4px;
}

.project-details-pane .desktop-description-illustration img {
	width: 110px;
	height: 110px;
}

.project-details-pane::after {
	content: "";
	display: block;
	flex: 0 0 56px;
}

.project-details-section {
	display: grid;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
}

.project-details-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.project-details-section-head h3 {
	margin: 0;
	font-size: 1.04rem;
	font-weight: 650;
	line-height: 1.2;
}

.project-details-form {
	width: 100%;
}

.project-details-form .desktop-form-row {
	grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
	gap: 14px;
}

.desktop-form-row {
	display: grid;
	grid-template-columns: minmax(180px, 255px) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}

.desktop-form-label {
	text-align: right;
	color: #1f1f1f;
}

.desktop-form-control {
	display: block;
}

.desktop-form-control input,
.desktop-form-control select,
.desktop-form-control textarea {
	width: 100%;
	max-width: 420px;
	min-height: 32px;
	padding: 0 10px 1px;
	line-height: normal;
	border: 1px solid #c5c9ce;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.desktop-form-control input[readonly] {
	background: #ffffff;
	color: var(--text);
}

.desktop-form-control select {
	background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}

.desktop-form-control input,
.desktop-form-control select {
	height: 32px;
}

.desktop-form-control textarea {
	max-width: 640px;
	min-height: 96px;
	padding: 8px 10px;
	line-height: 1.4;
	resize: vertical;
}

.project-notes-section .desktop-form-row {
	align-items: start;
}

.project-notes-section .desktop-form-label {
	padding-top: 8px;
}

.project-notes-input {
	max-width: 100% !important;
	min-height: 112px !important;
}

.project-activity-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.project-activity-stat {
	min-width: 0;
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface-muted);
}

.project-activity-stat span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.project-activity-stat strong {
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 1rem;
	line-height: 1.25;
}

.project-activity-list {
	display: grid;
	gap: 8px;
}

.project-activity-list.is-empty {
	padding: 2px 0;
}

.project-activity-entry {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: #fbfcfc;
}

.project-activity-entry.is-pending {
	border-color: #e0c88d;
	background: #fffaf0;
}

.project-activity-entry strong {
	display: block;
	line-height: 1.35;
}

.project-activity-entry p,
.project-activity-empty {
	margin: 5px 0 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--text-muted);
}

.project-activity-badge {
	flex: 0 0 auto;
	padding: 5px 8px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-muted);
}

.desktop-datetime-input::placeholder {
	color: #7e8790;
	opacity: 1;
}

.desktop-editor-shell {
	width: 100%;
	min-height: 0;
	height: 100%;
	justify-self: stretch;
	display: grid;
	align-content: start;
	gap: 0;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.2;
	color: #1f1f1f;
}

.desktop-editor-shell button,
.desktop-editor-shell input,
.desktop-editor-shell select,
.desktop-editor-shell textarea,
.desktop-editor-shell table {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

.desktop-action-toolbar {
	min-height: 33px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 2px 8px;
	box-sizing: border-box;
	background: var(--theme);
	border-bottom: 1px solid var(--theme-strong);
}

.desktop-action-toolbar-buttons {
	display: flex;
	align-items: center;
	gap: 6px;
}

.desktop-toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 34px;
	height: 25px;
	min-height: 25px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid #8292a2;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #dce4eb);
	box-shadow: none;
}

.desktop-toolbar-button:hover {
	background: linear-gradient(180deg, #ffffff, #d2dbe4);
	border-color: #6d7d8e;
}

.desktop-toolbar-button img {
	width: 16px;
	height: 16px;
}

.desktop-tabpane {
	display: flex;
	align-items: flex-end;
	padding: 8px 10px 0;
	background: linear-gradient(180deg, #f6f8fb, #e6ebf1);
}

.desktop-tab-strip {
	flex: 1 1 0;
	min-width: 0;
	gap: 2px;
	align-items: flex-end;
}

.desktop-tab-strip .tab-button {
	height: 32px;
	padding: 0 16px;
	position: relative;
	z-index: 1;
	margin-bottom: -1px;
	border: 1px solid #aab6c2;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, #f9f9fa, #dde4eb);
	color: inherit;
	box-shadow: none;
	font-size: 13px;
	font-weight: 400;
}

.desktop-tab-strip .tab-button:hover {
	background: linear-gradient(180deg, #ffffff, #d7dfe7);
}

.desktop-tab-strip .tab-button.is-active {
	z-index: 2;
	background: #ffffff;
	border-color: #94a2b0;
	border-bottom-color: #ffffff;
}

.desktop-editor-panel {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid #94a2b0;
	background: #ffffff;
}

.desktop-scroll-panel {
	border-top: none;
}

.desktop-title-row,
.desktop-floor-title {
	min-height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	color: var(--theme);
}

.desktop-title-row {
	flex-direction: column;
	gap: 2px;
}

.desktop-title-row h3,
.desktop-floor-title h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.desktop-title-row p {
	margin: 0;
	color: #4f5d6c;
}

.desktop-title-button {
	height: 28px;
	border-radius: 3px;
	font-size: 12px;
}

.desktop-titled-pane {
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.desktop-titled-pane + .desktop-titled-pane {
	margin-top: 0;
}

.desktop-titled-pane > .titled-pane-header {
	min-height: 37px;
	padding: 8px 12px;
	margin: 0;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.desktop-titled-pane > .titled-pane-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.desktop-titled-pane > .titled-pane-body {
	padding: 12px;
}

.desktop-form-grid {
	width: min(100%, 850px);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	align-items: center;
	margin: 0 auto;
}

.desktop-form-row-compact {
	grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
	gap: 10px;
}

.desktop-form-row-compact .desktop-form-label {
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.desktop-form-row-compact .desktop-form-control input,
.desktop-form-row-compact .desktop-form-control select,
.desktop-form-row-compact .desktop-form-control textarea,
.desktop-static-value,
.desktop-floor-summary .desktop-static-value {
	width: 100%;
	max-width: 220px;
	min-height: 26px;
	padding: 0 8px 1px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	color: inherit;
}

.desktop-form-row-compact .desktop-form-control input,
.desktop-form-row-compact .desktop-form-control select,
.desktop-static-value {
	height: 26px;
	display: inline-flex;
	align-items: center;
}

.desktop-static-value {
	display: block;
	height: auto;
	padding-top: 5px;
	padding-bottom: 5px;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.desktop-form-row-compact .desktop-form-control textarea {
	min-height: 70px;
	padding-top: 6px;
	resize: vertical;
}

.desktop-static-value {
	background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.desktop-floor-data-grid {
	width: 100%;
	display: grid;
	grid-template-columns: max-content minmax(96px, 220px) minmax(24px, 56px) max-content minmax(96px, 220px);
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.desktop-floor-total-summary-label {
	white-space: nowrap;
}

.desktop-floor-summary {
	width: min(100%, 820px);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin: 0 auto 4px;
}

.desktop-floor-summary .desktop-form-row {
	grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

.desktop-floor-window {
	border: 1px solid #94a2b0;
	background: #ffffff;
}

.desktop-floor-window-title {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 0 16px;
	color: var(--theme);
	text-align: center;
}

.desktop-floor-window-title h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.desktop-floor-window-title .desktop-title-button {
	position: absolute;
	right: 16px;
}

.desktop-floor-window-divider,
.desktop-floor-editor-divider {
	height: 0;
	border-top: 1px solid #c6cfd7;
	background: transparent;
}

.desktop-floor-panel {
	gap: 14px;
	padding: 24px 14px 14px;
	border-top: none;
}

.desktop-floor-editor {
	width: min(100%, 720px);
	margin: 0 auto;
	display: grid;
	gap: 14px;
}

.desktop-floor-editor-row,
.desktop-floor-detail-grid {
	display: flex;
	align-items: center;
	justify-content: center;
}

.desktop-floor-detail-grid {
	flex-direction: column;
	gap: 14px;
}

.desktop-floor-editor-field {
	display: grid;
	grid-template-columns: minmax(120px, 140px) minmax(120px, 120px);
	gap: 10px;
	align-items: center;
}

.desktop-floor-editor-label {
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
	text-align: right;
}

.desktop-floor-editor-control {
	min-height: 26px;
	padding: 0 8px 1px;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	font-size: 13px;
}

.desktop-floor-editor-control {
	width: 120px;
	height: 26px;
}

.desktop-floor-editor-value {
	width: 120px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #1f1f1f;
	text-align: center;
}

.desktop-floor-grid-shell {
	width: calc(100% + 28px);
	margin: 0 -14px;
	margin-top: 6px;
	box-sizing: border-box;
	display: grid;
	gap: 0;
	border: none;
	background: transparent;
	overflow: hidden;
}

.desktop-floor-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 33px;
	min-height: 33px;
	padding: 2px 8px;
	box-sizing: border-box;
	background: linear-gradient(
		180deg,
		var(--javafx-toolbar-top) 0%,
		var(--javafx-toolbar-mid) 52%,
		var(--javafx-toolbar-bottom) 100%
	);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.desktop-floor-toolbar-buttons {
	display: flex;
	align-items: center;
	gap: 6px;
}

.desktop-floor-toolbar .desktop-toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 34px;
	height: 25px;
	min-height: 25px;
	padding: 0;
	box-sizing: border-box;
}

.desktop-floor-toolbar .desktop-toolbar-button img {
	width: 16px;
	height: 16px;
}

.desktop-floor-table-shell {
	width: 100%;
	background: #ffffff;
	border: 1px solid #aeb7c2;
	border-top: none;
	box-shadow: none;
	overflow: auto;
}

.desktop-floor-table {
	width: 100%;
	min-width: 1220px;
	table-layout: fixed;
}

.desktop-floor-table thead {
	background: linear-gradient(180deg, #f9fafc, #e2e7ed);
}

.desktop-floor-table th,
.desktop-floor-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #d2dae2;
	font-size: 13px;
	vertical-align: middle;
}

.desktop-floor-table th {
	font-weight: 700;
	color: #1d1d1d;
	text-align: left;
}

.desktop-floor-section-row td {
	padding: 9px 12px;
	background: linear-gradient(180deg, #ffffff, #f7f9fb);
	border-bottom: none;
}

.desktop-floor-section-row[data-action] {
	cursor: pointer;
}

.desktop-floor-section-row[data-action]:hover td {
	background: #e7f3f0;
}

.desktop-floor-section-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--theme);
	font-weight: 400;
}

.desktop-floor-section-line {
	flex: 1 1 0;
	height: 0;
	border-top: 1px solid #d5dde5;
	background: transparent;
}

.desktop-floor-table-row {
	cursor: pointer;
}

.desktop-floor-table-row td {
	background: #ffffff;
}

.desktop-floor-table-row:nth-child(even) td {
	background: #fafafa;
}

.desktop-floor-table-row:hover td {
	background: #e7f3f0;
}

.desktop-floor-table-row.is-selected td {
	background: #c8e4dd;
}

.desktop-floor-table .desktop-floor-editor-control,
.desktop-floor-table .desktop-floor-editor-select {
	width: 100%;
	min-width: 0;
}

.desktop-floor-table .desktop-floor-number-cell {
	width: 100%;
}

.desktop-floor-table .desktop-floor-number-cell .desktop-floor-editor-control {
	flex: 1 1 auto;
	min-width: 0;
}

.desktop-floor-load-value.is-disabled,
.desktop-floor-table .desktop-floor-editor-control:disabled {
	color: #7c8792;
	background: #e3e7eb;
}

.desktop-floor-number-cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.desktop-floor-row-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.desktop-floor-empty-state {
	margin: 0;
	border: none;
	border-radius: 0;
}

.desktop-node-list {
	display: grid;
	gap: 8px;
}

.desktop-node-card {
	width: 100%;
	display: grid;
	gap: 4px;
	padding: 8px 10px;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	box-shadow: none;
	text-align: left;
}

.desktop-node-card:hover {
	background: linear-gradient(180deg, #ffffff, #e2e9f0);
}

.desktop-node-card h4,
.desktop-node-card p {
	margin: 0;
}

.desktop-node-card h4 {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}

.desktop-node-card p {
	color: #4f5d6c;
}

.desktop-editor-shell .table-shell {
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
}

.desktop-editor-shell thead {
	background: linear-gradient(180deg, #fafbfd, #e7ecf1);
}

.desktop-editor-shell th,
.desktop-editor-shell td {
	padding: 7px 10px;
	border-bottom: 1px solid #d3dbe2;
	font-size: 13px;
	vertical-align: middle;
}

.desktop-editor-shell th {
	font-weight: 700;
	color: inherit;
}

.desktop-editor-shell .table-shell input,
.desktop-editor-shell .table-shell select {
	height: 26px;
	min-height: 26px;
	padding: 0 8px 1px;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
}

.desktop-total-grid {
	display: grid;
	grid-template-columns: minmax(120px, 170px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	grid-template-rows: auto 1px auto 12px auto;
	column-gap: 0;
	row-gap: 4px;
	justify-content: center;
	align-items: start;
	padding: 14px 0;
}

.desktop-total-label,
.desktop-total-voltage {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.desktop-total-label-description {
	grid-column: 1;
	grid-row: 1;
}

.desktop-total-label-value {
	grid-column: 3;
	grid-row: 1;
}

.desktop-total-label-final {
	grid-column: 5;
	grid-row: 1;
}

.desktop-total-line {
	width: 100%;
	border-top: 1px solid #8593a1;
	align-self: end;
}

.desktop-total-line-description {
	grid-column: 1;
	grid-row: 2;
}

.desktop-total-line-value {
	grid-column: 3;
	grid-row: 2;
}

.desktop-total-voltage-description {
	grid-column: 1;
	grid-row: 3;
}

.desktop-total-voltage-value {
	grid-column: 3;
	grid-row: 3;
}

.desktop-total-voltage-final {
	grid-column: 5;
	grid-row: 3;
}

.desktop-total-equals {
	grid-row: 2;
	align-self: center;
	justify-self: center;
}

.desktop-total-equals-left {
	grid-column: 2;
}

.desktop-total-equals-right {
	grid-column: 4;
}

.desktop-panel-rating-label {
	grid-column: 1 / 5;
	grid-row: 5;
	align-self: center;
	font-weight: 700;
	text-decoration: underline;
	font-size: 15px;
}

.desktop-panel-rating-value {
	grid-column: 5;
	grid-row: 5;
	align-self: center;
	justify-self: center;
	font-size: 15px;
	font-weight: 700;
}

.housing-shell {
	width: 100%;
	min-height: 0;
	height: 100%;
	justify-self: stretch;
	display: grid;
	gap: 0;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: #1f1f1f;
}

.housing-shell button,
.housing-shell input,
.housing-shell select,
.housing-shell table {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.housing-toolbar {
	min-height: 33px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 2px 8px;
	box-sizing: border-box;
	background: var(--theme);
	border-bottom: 1px solid var(--theme-strong);
}

.housing-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.housing-toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 34px;
	height: 25px;
	min-height: 25px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid #8292a2;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #dce4eb);
	box-shadow: none;
}

.housing-toolbar-button:hover {
	background: linear-gradient(180deg, #ffffff, #d2dbe4);
	border-color: #6d7d8e;
}

.housing-toolbar-button img {
	width: 16px;
	height: 16px;
}

.housing-tabpane {
	display: flex;
	align-items: flex-end;
	padding: 8px 10px 0;
	background: linear-gradient(180deg, #f6f8fb, #e6ebf1);
}

.housing-tab-strip {
	flex: 1 1 0;
	min-width: 0;
	gap: 2px;
	align-items: flex-end;
}

.housing-tab-strip .tab-button {
	height: 32px;
	padding: 0 16px;
	position: relative;
	z-index: 1;
	margin-bottom: -1px;
	border: 1px solid #aab6c2;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, #f9f9fa, #dde4eb);
	color: inherit;
	box-shadow: none;
	font-size: 13px;
	font-weight: 400;
}

.housing-tab-strip .tab-button:hover {
	background: linear-gradient(180deg, #ffffff, #d7dfe7);
}

.housing-tab-strip .tab-button.is-active {
	z-index: 2;
	background: #ffffff;
	border-color: #94a2b0;
	border-bottom-color: #ffffff;
}

.housing-desktop-panel {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid #94a2b0;
	background: #ffffff;
}

.housing-section {
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.housing-section .titled-pane-header {
	min-height: 37px;
	padding: 8px 12px;
	margin: 0;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.housing-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.housing-section-header-inline-control {
	justify-content: flex-start;
}

.housing-section-toggle {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	min-height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	text-align: left;
}

.app-disclosure-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #5a6978;
}

.app-disclosure-icon::before {
	content: "";
	width: 8px;
	height: 8px;
	display: block;
	background: currentColor;
	clip-path: polygon(18% 12%, 18% 88%, 78% 50%);
	transform-origin: center;
	transition: transform 0.12s ease;
}

.tree-disclosure[aria-expanded="true"] .app-disclosure-icon::before,
.housing-section-toggle[aria-expanded="true"] .app-disclosure-icon::before,
.main-connection-section-toggle[aria-expanded="true"] .app-disclosure-icon::before,
.transformers-section-toggle[aria-expanded="true"] .app-disclosure-icon::before {
	transform: rotate(90deg);
}

.housing-section-arrow {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.housing-section-extra {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.housing-section-toggle-arrow {
	flex: 0 0 auto;
	width: 14px;
	min-width: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.housing-section-toggle-label {
	flex: 0 1 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
}

.housing-section-extra-inline {
	flex: 0 0 auto;
	gap: 10px;
	flex-wrap: wrap;
}

.housing-interlock-control {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	font-size: 13px;
}

.housing-interlock-control input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.housing-section-extra select {
	min-width: 110px;
	max-width: 140px;
}

.housing-inline-combo {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.housing-inline-combo-area-unit {
	width: 100%;
}

.housing-inline-combo-area-unit .housing-inline-combo-select {
	width: 100%;
	min-width: 0;
}

.housing-inline-combo-select {
	width: 128px;
	min-width: 128px;
	height: 26px;
	padding: 0 24px 1px 8px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
	color: inherit;
	font-size: 13px;
	appearance: none;
	-webkit-appearance: none;
}

.housing-inline-combo-select:focus {
	outline: none;
	border-color: #7d8b99;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), 0 0 0 2px rgba(34, 51, 68, 0.12);
}

.housing-section-title {
	display: inline-flex;
	align-items: center;
	min-height: 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
	color: inherit;
}

.housing-section .titled-pane-body {
	padding: 12px;
}

.housing-section-basic-load {
	margin-top: 10px;
}

.housing-section-heat-ac {
	margin-top: 10px;
}

.housing-section-total {
	margin-top: 10px;
}

.housing-section-body-information {
	padding-top: 10px;
	padding-bottom: 10px;
}

.housing-section-body-basic-load,
.housing-section-body-heat-ac {
	padding-top: 0;
	padding-bottom: 0;
}

.housing-section-body-total {
	padding-top: 24px;
	padding-bottom: 24px;
	min-height: 148px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.housing-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	align-items: center;
}

.housing-form-row,
.housing-area-row {
	display: grid;
	grid-template-columns: minmax(205px, 255px) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.housing-area-row {
	grid-column: 1 / -1;
	width: min(100%, 720px);
	justify-self: center;
}

.housing-form-row > span:first-child,
.housing-area-row > span:first-child {
	text-align: right;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.housing-form-control {
	display: block;
}

.housing-form-control input,
.housing-form-control select,
.housing-area-controls input,
.housing-area-controls select,
.housing-mode-title select,
.housing-table-shell input,
.housing-table-shell select {
	width: 100%;
	height: 26px;
	min-height: 26px;
	padding: 0 8px 1px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	color: inherit;
}

.housing-form-control input,
.housing-form-control select {
	max-width: 190px;
}

.housing-area-controls {
	max-width: 260px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 136px;
	gap: 8px;
}

.housing-count-card {
	justify-self: stretch;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	max-width: none;
	padding: 0;
	border: none;
	background: transparent;
	text-align: left;
}

.housing-count-card::before,
.housing-count-card::after {
	content: "";
}

.housing-count-card span {
	display: block;
	grid-column: 2;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.housing-count-card strong {
	grid-column: 3;
	min-width: 40px;
	height: 35px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f5f8fb);
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.housing-table-shell {
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
}

.housing-table-shell table {
	min-width: 0;
}

.housing-table-shell thead {
	background: linear-gradient(180deg, #fafbfd, #e7ecf1);
}

.housing-table-shell th,
.housing-table-shell td {
	padding: 7px 10px;
	border-bottom: 1px solid #d3dbe2;
	font-size: 13px;
	vertical-align: middle;
}

.housing-table-shell th {
	font-weight: 700;
	color: inherit;
}

.table-shell tbody tr:nth-child(odd) > td,
.commerce-table-shell tbody tr:nth-child(odd) > td {
	background: #ffffff;
}

.table-shell tbody tr:nth-child(even) > td,
.commerce-table-shell tbody tr:nth-child(even) > td {
	background: #fafafa;
}

:where(.main-connection-table-shell) tbody tr:nth-child(odd) > td {
	background: #ffffff;
}

:where(.main-connection-table-shell) tbody tr:nth-child(even) > td {
	background: #fafafa;
}

.housing-base-table-shell,
.housing-heat-shell {
	margin-bottom: 12px;
}

.housing-heat-shell {
	margin-bottom: 0;
}

.housing-base-table {
	width: 100%;
	table-layout: fixed;
}

.housing-heat-table {
	width: 100%;
	min-width: 780px;
	table-layout: fixed;
}

.housing-base-table td {
	width: 50%;
}

.housing-basic-load-label,
.housing-basic-load-power {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 0;
}

.housing-basic-load-power {
	justify-content: flex-start;
}

.housing-basic-load-row {
	transition: background-color 120ms ease, color 120ms ease;
}

.housing-basic-load-row.is-inactive {
	color: var(--text-muted);
	background: #f1f3f5;
}

.housing-basic-load-row.is-inactive input {
	color: #69727d;
	background: #e7eaee;
	border-color: #c8cfd7;
}

.housing-base-table td:last-child,
.housing-heat-table td:last-child {
	font-weight: 400;
	white-space: nowrap;
}

.housing-base-table td:last-child {
	white-space: normal;
}

.housing-heat-table td:last-child {
	width: 140px;
}

.housing-heat-description-cell {
	width: auto;
}

.housing-heat-description {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.housing-heat-description .housing-inline-combo {
	width: auto;
	flex: 0 0 auto;
}

.housing-heat-description .housing-inline-combo-select {
	width: 204px;
	min-width: 204px;
}

.housing-heat-input-cell {
	width: 170px;
	white-space: nowrap;
}

.housing-heat-cell-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	line-height: 1.1;
	color: var(--text-muted);
}

.housing-heat-table .housing-symbol-cell {
	width: 28px;
	text-align: center;
}

.housing-heat-table .housing-result-cell {
	width: 120px;
	text-align: left;
	font-weight: 400;
}

.housing-equipment-table {
	width: 100%;
	min-width: 960px;
	table-layout: fixed;
}

.housing-equipment-table th {
	font-weight: 700;
}

.housing-equipment-table th.housing-symbol-cell,
.housing-equipment-table th.housing-action-cell {
	font-weight: 400;
}

.housing-equipment-table .housing-equipment-col {
	width: 12.5%;
}

.housing-equipment-table .housing-input-column-power,
.housing-equipment-table .housing-input-column-percentage,
.housing-equipment-table .housing-symbol-cell,
.housing-equipment-table .housing-action-cell {
	width: auto;
}

.housing-unit-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.housing-unit-field .housing-unit-field-input {
	width: 88px;
	min-width: 88px;
	max-width: 88px;
}

.housing-unit-field .housing-unit-field-value {
	display: inline-block;
	width: 88px;
	min-width: 88px;
	max-width: 88px;
	font-variant-numeric: tabular-nums;
}

.housing-unit-field-area .housing-unit-field-input {
	width: 70px;
	min-width: 70px;
	max-width: 70px;
}

.housing-unit-field-percentage .housing-unit-field-input {
	width: 68px;
	min-width: 68px;
	max-width: 68px;
}

.housing-unit-field-percentage .housing-unit-field-value {
	width: 68px;
	min-width: 68px;
	max-width: 68px;
}

.housing-unit-field-suffix {
	font-size: 13px;
	color: inherit;
}

.housing-percentage-measure {
	display: none;
}

.housing-static-name {
	font-weight: 400;
}

.housing-equipment-name-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-weight: 400;
	white-space: nowrap;
}

.housing-table-shell .housing-equipment-name-toggle input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: checkbox;
	width: 16px;
	min-width: 16px;
	max-width: 16px;
	height: 16px;
	min-height: 16px;
	max-height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #0d6efd;
	flex: 0 0 auto;
}

.housing-demand-factor-static {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	min-width: 68px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #c4ccd4;
	border-radius: 3px;
	background: #eef2f5;
	color: #354150;
	font-size: 13px;
	white-space: nowrap;
}

.housing-equipment-detail-row td {
	background: #f7f9fb;
	color: #526070;
	font-size: 12px;
}

.housing-equipment-detail-name {
	display: inline-block;
	padding-left: 22px;
}

.housing-symbol-cell {
	width: 34px;
	text-align: center;
	color: inherit;
	font-weight: 400;
}

.housing-result-cell {
	font-weight: 400;
	white-space: nowrap;
}

.housing-equipment-table .housing-action-cell {
	text-align: center;
}

.housing-equipment-table .housing-action-cell .housing-inline-button {
	width: 100%;
}

.housing-inline-button {
	height: 28px;
	padding: 0 10px;
	border-radius: 3px;
	border-color: #aeb9c4;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.housing-add-equipment-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.housing-add-equipment-button img {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.housing-inline-button:hover {
	background: linear-gradient(180deg, #ffffff, #e2e9f0);
	border-color: #8c99a6;
}

.housing-equipment-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.housing-equipment-total {
	font-size: 12px;
	font-weight: 700;
	color: inherit;
}

.housing-equipment-note {
	margin: 9px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--text-muted);
}

.housing-mode-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.housing-mode-title h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

.housing-total-grid {
	display: grid;
	grid-template-columns: minmax(230px, 260px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	grid-template-rows: auto 1px auto 12px auto;
	column-gap: 0;
	row-gap: 4px;
	justify-content: center;
	align-items: start;
	align-content: start;
}

.housing-total-label {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: inherit;
}

.housing-total-label-description {
	grid-column: 1;
	grid-row: 1;
	white-space: nowrap;
}

.housing-total-label-value {
	grid-column: 3;
	grid-row: 1;
}

.housing-total-label-final {
	grid-column: 5;
	grid-row: 1;
}

.housing-total-line {
	width: 100%;
	border-top: 1px solid #8593a1;
	align-self: end;
}

.housing-total-line-description {
	grid-column: 1;
	grid-row: 2;
}

.housing-total-line-value {
	grid-column: 3;
	grid-row: 2;
}

.housing-total-voltage {
	text-align: center;
	color: inherit;
	font-size: 13px;
}

.housing-total-voltage-description {
	grid-column: 1;
	grid-row: 3;
}

.housing-total-voltage-value {
	grid-column: 3;
	grid-row: 3;
}

.housing-total-voltage-final {
	grid-column: 5;
	grid-row: 3;
}

.housing-total-equals {
	grid-row: 2;
	align-self: center;
	justify-self: center;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.housing-total-equals-left {
	grid-column: 2;
}

.housing-total-equals-right {
	grid-column: 4;
}

.housing-panel-rating-value {
	grid-column: 5;
	grid-row: 5;
	align-self: center;
	justify-self: center;
	font-size: 15px;
	font-weight: 700;
	color: inherit;
}

.housing-panel-rating-caption {
	grid-column: 3;
	grid-row: 5;
	align-self: center;
	justify-self: end;
	font-size: 13px;
	font-weight: 600;
	color: inherit;
}

.housing-continuity-note {
	grid-column: 1 / -1;
	grid-row: 6;
	justify-self: center;
	font-size: 12px;
	color: var(--text-muted);
}

.main-connection-shell {
	width: 100%;
	min-height: 0;
	height: 100%;
	justify-self: stretch;
	display: grid;
	gap: 0;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: #1f1f1f;
}

.main-connection-shell button,
.main-connection-shell input,
.main-connection-shell select,
.main-connection-shell table {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.main-connection-panel {
	display: grid;
	gap: 10px;
	padding: 14px;
	background: #ffffff;
}

.main-connection-title {
	min-height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--theme);
}

.main-connection-title h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.main-connection-section {
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.main-connection-section-header {
	min-height: 37px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.main-connection-section-header-inline-control {
	justify-content: flex-start;
}

.main-connection-section-toggle {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	min-height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	text-align: left;
}

.main-connection-section-title {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
}

.main-connection-section-extra {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.main-connection-section-extra-inline {
	flex: 0 0 auto;
}

.main-connection-section-arrow {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.main-connection-section-toggle-arrow {
	flex: 0 0 auto;
	width: 14px;
	min-width: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.main-connection-section-toggle-label {
	flex: 0 1 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
}

.main-connection-section-body {
	padding: 12px;
}

.main-connection-subsections {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.main-connection-subsection .main-connection-section-body {
	padding: 10px 12px 12px;
}

.main-connection-header-select,
.main-connection-voltage-select {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.main-connection-header-select {
	width: 128px;
}

.main-connection-header-select-control,
.main-connection-voltage-select-control {
	width: 100%;
	height: 26px;
	padding: 0 24px 1px 8px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
	color: inherit;
	font-size: 13px;
	appearance: none;
	-webkit-appearance: none;
}

.main-connection-voltage-select {
	width: 240px;
}

.main-connection-table-shell {
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
}

.main-connection-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.main-connection-charge-table {
	min-width: 860px;
}

.main-connection-formula-table {
	min-width: 640px;
}

.main-connection-special-charge-table {
	min-width: 960px;
}

.main-connection-charge-table col:nth-child(1),
.main-connection-special-charge-table col:nth-child(1) {
	width: 40%;
}

.main-connection-charge-table col:nth-child(2),
.main-connection-charge-table col:nth-child(4),
.main-connection-charge-table col:nth-child(6),
.main-connection-special-charge-table col:nth-child(2),
.main-connection-special-charge-table col:nth-child(4),
.main-connection-special-charge-table col:nth-child(6) {
	width: 5%;
}

.main-connection-charge-table col:nth-child(3),
.main-connection-charge-table col:nth-child(5),
.main-connection-charge-table col:nth-child(7),
.main-connection-special-charge-table col:nth-child(3),
.main-connection-special-charge-table col:nth-child(5),
.main-connection-special-charge-table col:nth-child(7) {
	width: 15%;
}

.main-connection-formula-table col {
	width: 16.6667%;
}

.main-connection-table thead {
	background: linear-gradient(180deg, #fafbfd, #e7ecf1);
}

.main-connection-table th,
.main-connection-table td {
	padding: 7px 10px;
	border-bottom: 1px solid #d3dbe2;
	font-size: 13px;
	vertical-align: middle;
	text-align: center;
}

.main-connection-table th {
	font-weight: 700;
	color: inherit;
}

.main-connection-table th.main-connection-symbol-column {
	font-weight: 400;
}

.main-connection-table th:first-child,
.main-connection-table td:first-child {
	text-align: left;
}

.main-connection-table .desktop-floor-section-row td {
	padding: 9px 12px;
	background: linear-gradient(180deg, #ffffff, #f7f9fb);
	border-bottom: none;
}

.main-connection-table .desktop-floor-section-row[data-action]:hover td {
	background: #e7f3f0;
}

.main-connection-charge-row {
	cursor: pointer;
}

.main-connection-charge-row:hover td {
	background: #e7f3f0;
}

.main-connection-charge-row.is-selected td {
	background: #c8e4dd;
}

.main-connection-symbol-column,
.main-connection-symbol-cell {
	width: 34px;
	text-align: center;
	color: inherit;
	font-weight: 400;
}

.main-connection-description-cell {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	text-align: left;
}

.main-connection-row-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.main-connection-formula-total-row,
.main-connection-special-total-row {
	font-weight: 700;
}

.main-connection-charge-name-cell {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 100%;
}

.main-connection-charge-name-cell input {
	flex: 0 1 220px;
	min-width: 0;
	width: 220px;
	max-width: 100%;
}

.main-connection-charge-name-static {
	font-weight: 400;
}

.main-connection-remove-button,
.main-connection-inline-button {
	height: 28px;
	padding: 0 10px;
	border-radius: 3px;
	border-color: #aeb9c4;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.main-connection-remove-button:hover,
.main-connection-inline-button:hover {
	background: linear-gradient(180deg, #ffffff, #e2e9f0);
	border-color: #8c99a6;
}

.main-connection-unit-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.main-connection-unit-field-input,
.main-connection-unit-field-static,
.main-connection-main-input {
	height: 26px;
	min-height: 26px;
	padding: 0 8px 1px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	color: inherit;
}

.main-connection-unit-field-input {
	width: 88px;
	min-width: 88px;
	max-width: 88px;
}

.main-connection-unit-field-percentage .main-connection-unit-field-input {
	width: 68px;
	min-width: 68px;
	max-width: 68px;
}

.main-connection-unit-field-static {
	min-width: 88px;
	display: inline-flex;
	align-items: center;
}

.main-connection-unit-field-percentage .main-connection-unit-field-static {
	min-width: 68px;
}

.main-connection-unit-field-suffix,
.main-connection-result-cell {
	font-size: 13px;
	color: inherit;
}

.main-connection-result-cell {
	white-space: nowrap;
}

.main-connection-charge-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: 12px;
}

.main-connection-inline-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.main-connection-inline-button img {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.main-connection-total-grid {
	display: grid;
	grid-template-columns: minmax(230px, 260px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	grid-template-rows: auto 1px auto;
	column-gap: 0;
	row-gap: 4px;
	justify-content: center;
	align-items: start;
	align-content: start;
	padding: 8px 0 4px;
}

.main-connection-total-label,
.main-connection-total-voltage {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.main-connection-total-label-description {
	grid-column: 1;
	grid-row: 1;
	white-space: nowrap;
}

.main-connection-total-label-value {
	grid-column: 3;
	grid-row: 1;
}

.main-connection-total-label-final {
	grid-column: 5;
	grid-row: 1;
}

.main-connection-total-line {
	width: 100%;
	border-top: 1px solid #8593a1;
	align-self: end;
}

.main-connection-total-line-description {
	grid-column: 1;
	grid-row: 2;
}

.main-connection-total-line-value {
	grid-column: 3;
	grid-row: 2;
}

.main-connection-total-voltage-description {
	grid-column: 1;
	grid-row: 3;
}

.main-connection-total-voltage-value {
	grid-column: 3;
	grid-row: 3;
}

.main-connection-total-voltage-final {
	grid-column: 5;
	grid-row: 3;
}

.main-connection-total-equals {
	grid-row: 2;
	align-self: center;
	justify-self: center;
	font-size: 13px;
	font-weight: 400;
}

.main-connection-total-equals-left {
	grid-column: 2;
}

.main-connection-total-equals-right {
	grid-column: 4;
}

.main-connection-total-meta {
	display: grid;
	gap: 16px;
	width: fit-content;
	max-width: 100%;
	margin: 16px auto 0;
}

.main-connection-main-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	min-height: 32px;
}

.main-connection-main-label {
	display: inline-flex;
	align-items: center;
	height: 32px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: underline;
	transform: translateY(-1px);
}

.main-connection-main-value {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.main-connection-main-input {
	width: 80px;
	max-width: 80px;
	height: 32px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.main-connection-main-input.is-forced {
	color: var(--theme);
}

.main-connection-main-input.is-error {
	color: #b3261e;
}

.main-connection-main-unit {
	font-size: 15px;
	font-weight: 700;
}

.main-connection-voltage-row {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 12px;
	justify-content: center;
	min-height: 26px;
}

.main-connection-voltage-label {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	height: 26px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
	white-space: nowrap;
}

.main-connection-empty-state {
	margin: 0;
}

.transformers-shell {
	width: 100%;
	min-height: 0;
	height: 100%;
	justify-self: stretch;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: #1f1f1f;
}

.transformers-shell button,
.transformers-shell table {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.transformers-tabpane {
	min-height: 40px;
}

.transformers-panel {
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid #94a2b0;
	background: #ffffff;
	overflow: auto;
}

.transformers-title {
	min-height: 49px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
	color: var(--theme);
}

.transformers-title h3 {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.transformers-status-badge {
	padding: 2px 7px;
	border: 1px solid var(--status-warn-fg);
	border-radius: 3px;
	background: var(--status-warn-bg);
	color: var(--status-warn-fg);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.transformers-title p {
	margin: 0;
	font-size: 13px;
	color: #1f1f1f;
}

.transformers-validity-banner {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--status-warn-fg);
	border-radius: 3px;
	background: var(--status-warn-bg);
	color: var(--status-warn-fg);
}

.transformers-validity-banner strong {
	display: block;
	font-size: 13px;
}

.transformers-validity-banner p {
	margin: 3px 0 0;
	font-size: 12px;
	line-height: 1.4;
}

.transformers-validity-banner .toolbar-button {
	flex: 0 0 auto;
}

.transformers-section {
	flex: 0 0 auto;
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.transformers-section-header {
	min-height: 37px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.transformers-section-toggle {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	min-height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	text-align: left;
}

.transformers-section-arrow {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.transformers-section-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.transformers-section-title {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: #1f1f1f;
}

.transformers-section-body {
	padding: 12px;
}

.transformers-subsection {
	margin-top: 10px;
}

.transformers-subsection .transformers-section-body {
	padding: 10px 12px 12px;
}

.transformers-table-shell {
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
}

.transformers-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.transformers-charge-table {
	min-width: 860px;
}

.transformers-formula-table {
	min-width: 640px;
}

.transformers-charge-table col:nth-child(1) {
	width: 40%;
}

.transformers-charge-table col:nth-child(2),
.transformers-charge-table col:nth-child(4),
.transformers-charge-table col:nth-child(6) {
	width: 5%;
}

.transformers-charge-table col:nth-child(3),
.transformers-charge-table col:nth-child(5),
.transformers-charge-table col:nth-child(7) {
	width: 15%;
}

.transformers-formula-table col {
	width: 16.6667%;
}

.transformers-table thead {
	background: linear-gradient(180deg, #fafbfd, #e7ecf1);
}

.transformers-table th,
.transformers-table td {
	padding: 7px 10px;
	border-bottom: 1px solid #d3dbe2;
	font-size: 13px;
	vertical-align: middle;
	text-align: center;
}

.transformers-table th {
	font-weight: 700;
	color: inherit;
}

.transformers-table th:first-child,
.transformers-table td:first-child {
	text-align: left;
}

:where(.transformers-table-shell) tbody tr:nth-child(odd) > td {
	background: #ffffff;
}

:where(.transformers-table-shell) tbody tr:nth-child(even) > td {
	background: #fafafa;
}

.transformers-table .desktop-floor-section-row td {
	padding: 9px 12px;
	background: linear-gradient(180deg, #ffffff, #f7f9fb);
	border-bottom: none;
}

.transformers-table .desktop-floor-section-row[data-action]:hover td {
	background: #e7f3f0;
}

.transformers-charge-row {
	cursor: pointer;
}

.transformers-table-shell tbody tr.transformers-charge-row:hover > td {
	background: #e7f3f0;
}

.transformers-table-shell tbody tr.transformers-charge-row.is-selected > td {
	background: #c8e4dd;
}

.transformers-description-cell {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	text-align: left;
}

.transformers-row-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.transformers-symbol-cell {
	width: 34px;
	text-align: center;
	color: inherit;
	font-weight: 400;
}

.transformers-total-row {
	font-weight: 700;
}

.transformers-total-grid {
	display: grid;
	grid-template-columns: minmax(230px, 260px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	grid-template-rows: auto 1px auto 12px auto;
	column-gap: 0;
	row-gap: 4px;
	justify-content: center;
	align-items: start;
	align-content: start;
	padding: 14px 0;
}

.transformers-total-label,
.transformers-total-voltage {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.transformers-total-label-description {
	grid-column: 1;
	grid-row: 1;
	white-space: nowrap;
}

.transformers-total-label-value {
	grid-column: 3;
	grid-row: 1;
}

.transformers-total-label-final {
	grid-column: 5;
	grid-row: 1;
}

.transformers-total-line {
	width: 100%;
	border-top: 1px solid #8593a1;
	align-self: end;
}

.transformers-total-line-description {
	grid-column: 1;
	grid-row: 2;
}

.transformers-total-line-value {
	grid-column: 3;
	grid-row: 2;
}

.transformers-total-voltage-description {
	grid-column: 1;
	grid-row: 3;
}

.transformers-total-voltage-value {
	grid-column: 3;
	grid-row: 3;
}

.transformers-total-voltage-final {
	grid-column: 5;
	grid-row: 3;
}

.transformers-total-equals {
	grid-row: 2;
	align-self: center;
	justify-self: center;
	font-size: 13px;
	font-weight: 400;
}

.transformers-total-equals-left {
	grid-column: 2;
}

.transformers-total-equals-right {
	grid-column: 4;
}

.transformers-main-connection-label {
	grid-column: 1 / 5;
	grid-row: 5;
	align-self: center;
	justify-self: end;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
}

.transformers-main-connection-value {
	grid-column: 5;
	grid-row: 5;
	align-self: center;
	justify-self: center;
	font-size: 15px;
	font-weight: 700;
}

.transformers-summary-strip {
	min-height: 100px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 26px;
}

.transformers-summary-item {
	width: 140px;
	min-height: 72px;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 3px;
	text-align: center;
}

.transformers-summary-item strong {
	font-size: 15px;
	font-weight: 700;
}

.transformers-summary-item span {
	font-size: 13px;
}

.transformers-empty-state {
	margin: 0;
}

.commerce-shell {
	width: 100%;
	min-height: 0;
	height: 100%;
	justify-self: stretch;
	display: grid;
	gap: 0;
	border: 1px solid var(--theme);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: #1f1f1f;
}

.commerce-shell button,
.commerce-shell input,
.commerce-shell select,
.commerce-shell table {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.commerce-toolbar {
	min-height: 33px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 2px 8px;
	box-sizing: border-box;
	background: var(--theme);
	border-bottom: 1px solid var(--theme-strong);
}

.commerce-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.commerce-toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 34px;
	height: 25px;
	min-height: 25px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid #8292a2;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #dce4eb);
	box-shadow: none;
}

.commerce-toolbar-button:hover {
	background: linear-gradient(180deg, #ffffff, #d2dbe4);
	border-color: #6d7d8e;
}

.commerce-toolbar-button img {
	width: 16px;
	height: 16px;
}

.commerce-tabpane {
	display: flex;
	align-items: flex-end;
	padding: 8px 10px 0;
	background: linear-gradient(180deg, #f6f8fb, #e6ebf1);
}

.commerce-tab-strip {
	flex: 1 1 0;
	min-width: 0;
	gap: 2px;
	align-items: flex-end;
}

.commerce-tab-strip .tab-button {
	height: 32px;
	padding: 0 16px;
	position: relative;
	z-index: 1;
	margin-bottom: -1px;
	border: 1px solid #aab6c2;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, #f9f9fa, #dde4eb);
	color: inherit;
	box-shadow: none;
	font-size: 13px;
	font-weight: 400;
}

.commerce-tab-strip .tab-button:hover {
	background: linear-gradient(180deg, #ffffff, #d7dfe7);
}

.commerce-tab-strip .tab-button.is-active {
	z-index: 2;
	background: #ffffff;
	border-color: #94a2b0;
	border-bottom-color: #ffffff;
}

.commerce-desktop-panel {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-top: 1px solid #94a2b0;
	background: #ffffff;
}

.commerce-section {
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.commerce-section .titled-pane-header {
	min-height: 37px;
	padding: 8px 12px;
	margin: 0;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.commerce-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.commerce-section-toggle {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	min-height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	text-align: left;
}

.commerce-section-arrow {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.commerce-section-title {
	display: inline-flex;
	align-items: center;
	min-height: 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
	color: inherit;
}

.commerce-section-extra {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.commerce-section-body {
	padding: 12px;
}

.commerce-info-grid {
	display: flex;
	justify-content: flex-start;
}

.commerce-form-row {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	margin: 0;
}

.commerce-form-row-description {
	align-items: start;
}

.commerce-form-row > span:first-child {
	text-align: left;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
}

.commerce-form-control {
	display: block;
	flex: 0 0 auto;
}

.commerce-info-grid .commerce-form-control input {
	width: 150px;
	min-width: 150px;
	max-width: 150px;
}

.commerce-form-control input,
.commerce-form-control select,
.commerce-number-control,
.commerce-table-text-input,
.commerce-unit-field-input,
.commerce-main-connection-input {
	height: 26px;
	min-height: 26px;
	padding: 0 8px 1px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	color: inherit;
}

.commerce-form-control input,
.commerce-form-control select {
	width: 100%;
	max-width: 190px;
}

.commerce-form-control textarea {
	width: min(100%, 420px);
	min-height: 70px;
	padding: 6px 8px;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #f6f8fa);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	color: inherit;
	resize: vertical;
}

.commerce-sub-local-shell {
	display: grid;
	gap: 0;
	border: 1px solid #b8c2cb;
	border-radius: 3px;
	background: #ffffff;
	overflow: hidden;
}

.commerce-sub-local-card {
	display: grid;
	gap: 10px;
	padding: 8px 10px 12px;
	margin-top: 0;
	border: none;
	border-radius: 0;
	background: #ffffff;
}

.commerce-sub-local-controls {
	display: flex;
	justify-content: center;
	padding: 0 4px 2px;
}

.commerce-sub-local-controls-row {
	width: 100%;
	min-height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.commerce-sub-local-label {
	min-height: 35px;
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 400;
	color: #1f1f1f;
	white-space: nowrap;
}

.commerce-sub-local-edge-spacer {
	flex: 1 1 24px;
	min-width: 18px;
	max-width: 120px;
}

.commerce-sub-local-group-spacer {
	flex: 0 0 72px;
	min-width: 36px;
}

.commerce-sub-local-inline-select {
	width: 120px;
	flex: 0 0 120px;
}

.commerce-sub-local-type-select {
	width: 34ch;
	flex-basis: 34ch;
}

.commerce-sub-local-unit-select {
	width: 148px;
	flex-basis: 148px;
}

.commerce-select-control {
	width: 120px;
	min-width: 120px;
	max-width: 120px;
}

.commerce-sub-local-inline-select .commerce-inline-combo-select {
	min-width: 0;
}

.commerce-sub-local-type-select .commerce-select-control {
	width: 100%;
	min-width: 0;
	max-width: none;
}

.commerce-sub-local-unit-select .commerce-select-control {
	width: 100%;
	min-width: 0;
	max-width: none;
}

.commerce-inline-combo {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.commerce-inline-combo-select {
	width: 100%;
	min-width: 120px;
	height: 26px;
	padding: 0 24px 1px 8px;
	line-height: normal;
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
	color: inherit;
	font-size: 13px;
	appearance: none;
	-webkit-appearance: none;
}

.commerce-number-control {
	width: 70px;
	min-width: 70px;
	max-width: 70px;
	text-align: center;
}

.commerce-sub-pane {
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: hidden;
}

.commerce-sub-pane-header {
	min-height: 37px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #c2ccd5;
	background: linear-gradient(180deg, #fbfbfc, #e7ecf1);
}

.commerce-sub-pane-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

.commerce-sub-pane-body {
	padding: 12px;
}

.commerce-table-shell {
	border: 1px solid #aeb9c4;
	border-radius: 3px;
	background: #ffffff;
	box-shadow: none;
	overflow: auto;
}

.commerce-formula-table,
.commerce-special-charge-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.commerce-formula-table {
	min-width: 680px;
}

.commerce-special-charge-table {
	min-width: 980px;
}

.commerce-formula-table col {
	width: 16.6667%;
}

.commerce-special-charge-table col {
	width: 14.2857%;
}

.commerce-table-shell thead {
	background: linear-gradient(180deg, #fafbfd, #e7ecf1);
}

.commerce-table-shell th,
.commerce-table-shell td {
	padding: 7px 10px;
	border-bottom: 1px solid #d3dbe2;
	font-size: 13px;
	vertical-align: middle;
}

.commerce-table-shell th {
	font-weight: 700;
	color: inherit;
}

.commerce-table-shell th.commerce-symbol-cell {
	font-weight: 400;
}

.commerce-symbol-cell {
	width: 34px;
	text-align: center;
	color: inherit;
	font-weight: 400;
}

.commerce-charge-name-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
}

.commerce-charge-name-cell input {
	flex: 0 1 220px;
	min-width: 0;
	width: 220px;
	max-width: 100%;
}

.commerce-charge-name-static {
	font-weight: 400;
}

.commerce-remove-button,
.commerce-inline-button {
	height: 28px;
	padding: 0 10px;
	border-radius: 3px;
	border-color: #aeb9c4;
	background: linear-gradient(180deg, #ffffff, #edf2f6);
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.commerce-remove-button:hover,
.commerce-inline-button:hover {
	background: linear-gradient(180deg, #ffffff, #e2e9f0);
	border-color: #8c99a6;
}

.commerce-unit-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.commerce-unit-field .commerce-unit-field-input {
	width: 88px;
	min-width: 88px;
	max-width: 88px;
}

.commerce-unit-field-percentage .commerce-unit-field-input {
	width: 68px;
	min-width: 68px;
	max-width: 68px;
}

.commerce-unit-field-suffix,
.commerce-result-cell {
	font-size: 13px;
	color: inherit;
}

.commerce-result-cell {
	white-space: nowrap;
}

.commerce-charge-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: 12px;
}

.commerce-add-charge-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.commerce-add-charge-button img {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.commerce-total-grid {
	display: grid;
	grid-template-columns: minmax(230px, 260px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	grid-template-rows: auto 1px auto;
	column-gap: 0;
	row-gap: 4px;
	justify-content: center;
	align-items: start;
	align-content: start;
	padding: 8px 0 4px;
}

.commerce-total-label,
.commerce-total-voltage {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.commerce-total-label-description {
	grid-column: 1;
	grid-row: 1;
	white-space: nowrap;
}

.commerce-total-label-value {
	grid-column: 3;
	grid-row: 1;
}

.commerce-total-label-final {
	grid-column: 5;
	grid-row: 1;
}

.commerce-total-line {
	width: 100%;
	border-top: 1px solid #8593a1;
	align-self: end;
}

.commerce-total-line-description {
	grid-column: 1;
	grid-row: 2;
}

.commerce-total-line-value {
	grid-column: 3;
	grid-row: 2;
}

.commerce-total-voltage-description {
	grid-column: 1;
	grid-row: 3;
}

.commerce-total-voltage-value {
	grid-column: 3;
	grid-row: 3;
}

.commerce-total-voltage-final {
	grid-column: 5;
	grid-row: 3;
}

.commerce-total-equals {
	grid-row: 2;
	align-self: center;
	justify-self: center;
	font-size: 13px;
	font-weight: 400;
}

.commerce-total-equals-left {
	grid-column: 2;
}

.commerce-total-equals-right {
	grid-column: 4;
}

.commerce-total-meta {
	display: grid;
	grid-template-columns: minmax(230px, 260px) 40px minmax(120px, 170px) 40px minmax(120px, 170px);
	gap: 16px 0;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	margin: 16px auto 0;
}

.commerce-transformers-toggle {
	grid-column: 1;
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	justify-self: start;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
}

.commerce-transformers-toggle input {
	align-self: center;
	width: 16px;
	height: 16px;
}

.commerce-transformers-toggle span {
	display: inline-flex;
	align-items: center;
	align-self: center;
	min-height: 16px;
	line-height: 1;
	transform: translateY(-1px);
}

.commerce-main-connection-row {
	grid-column: 3 / 6;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	min-height: 32px;
	width: 100%;
}

.commerce-main-connection-label {
	display: inline-flex;
	align-items: center;
	align-self: center;
	height: 32px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: underline;
	transform: translateY(-1px);
}

.commerce-main-connection-value {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 6px;
}

.commerce-main-connection-input {
	width: 80px;
	max-width: 80px;
	height: 32px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.commerce-main-connection-input.is-forced {
	color: var(--theme);
}

.commerce-main-connection-input.is-error {
	color: #b3261e;
}

.commerce-voltage-row {
	grid-column: 3 / 6;
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 12px;
	justify-content: center;
	min-height: 26px;
}

.commerce-voltage-row .commerce-inline-combo {
	align-self: center;
}

.commerce-voltage-label {
	display: inline-flex;
	align-items: center;
	align-self: center;
	justify-self: start;
	height: 26px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
	white-space: nowrap;
}

.commerce-voltage-select {
	width: 220px;
	min-width: 220px;
}

.commerce-empty-state {
	margin: 0;
}

.commerce-school-info-grid {
	justify-content: space-between;
	align-items: center;
	gap: 18px 32px;
	flex-wrap: wrap;
}

.commerce-school-area-field {
	flex-wrap: wrap;
}

.commerce-school-area-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.commerce-school-area-editor {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.commerce-school-derived-area {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 35px;
}

.commerce-school-derived-area strong,
.commerce-school-density strong {
	font-weight: 700;
}

.commerce-school-validation {
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 1px solid #d98c86;
	border-radius: 3px;
	background: #fff4f2;
	color: #8d231d;
}

.commerce-school-area-table,
.commerce-school-load-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.commerce-school-area-table {
	min-width: 620px;
}

.commerce-school-load-table {
	min-width: 760px;
}

.commerce-school-area-table th,
.commerce-school-area-table td,
.commerce-school-load-table th,
.commerce-school-load-table td {
	text-align: left;
}

.commerce-school-area-table th:last-child,
.commerce-school-area-table td:last-child,
.commerce-school-load-table th:last-child,
.commerce-school-load-table td:last-child {
	text-align: right;
}

.commerce-school-load-table td[rowspan] {
	vertical-align: middle;
}

.commerce-school-total-row td {
	font-weight: 700;
	background: #f2f6f8;
}

.commerce-school-scenario {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding: 8px 10px;
	border-left: 3px solid var(--theme);
	background: #f0f7f5;
}

.commerce-school-scenario strong {
	color: var(--theme-strong);
}

.commerce-school-density {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding: 8px 10px;
	border: 1px solid #b6c2cc;
	border-radius: 3px;
	background: #f7f9fa;
}

.commerce-school-demand-totals {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 24px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.commerce-school-demand-totals span:last-child {
	padding-left: 18px;
	border-left: 1px solid #aeb9c4;
}

@media (max-width: 760px) {
	.commerce-school-info-grid,
	.commerce-school-area-editor {
		align-items: flex-start;
		flex-direction: column;
	}

	.commerce-school-demand-totals {
		align-items: flex-start;
		justify-content: flex-start;
		flex-direction: column;
	}

	.commerce-school-demand-totals span:last-child {
		padding-left: 0;
		border-left: none;
	}
}

@media (max-width: 980px) {
	body {
		padding: 0;
	}

	.app-frame {
		min-height: 100vh;
	}

	.content-root.content-root-housing {
		padding: 0;
	}

	.housing-info-grid {
		grid-template-columns: 1fr;
	}

	.housing-count-card {
		justify-self: start;
	}

	.commerce-form-row,
	.commerce-sub-local-controls,
	.commerce-total-meta,
	.commerce-voltage-row {
		grid-template-columns: 1fr;
	}

	.commerce-total-meta {
		width: 100%;
		margin: 16px 0 0;
	}

	.main-connection-total-meta {
		width: 100%;
		margin: 16px 0 0;
	}

	.commerce-transformers-toggle,
	.commerce-main-connection-row,
	.commerce-voltage-row {
		grid-column: auto;
	}

	.main-connection-main-row,
	.main-connection-voltage-row {
		justify-content: start;
	}

	.main-connection-voltage-row {
		grid-template-columns: 1fr;
	}

	.commerce-form-row > span:first-child,
	.commerce-voltage-label {
		text-align: left;
		justify-self: start;
	}

	.main-connection-voltage-label {
		text-align: left;
		justify-self: start;
	}

	.commerce-main-connection-row {
		justify-content: start;
		width: auto;
	}

	.commerce-main-connection-label {
		justify-self: start;
	}

	.commerce-sub-local-controls {
		justify-content: flex-start;
	}

	.commerce-sub-local-controls-row {
		justify-content: flex-start;
	}

	.commerce-sub-local-edge-spacer,
	.commerce-sub-local-group-spacer {
		display: none;
	}
}

@media (max-width: 720px) {
	.workspace-shell {
		grid-template-columns: 1fr;
	}

	.desktop-description-pane {
		padding-left: 0;
		padding-right: 0;
	}

	.desktop-description-form {
		max-width: 100%;
	}

	.project-details-pane {
		padding-top: 18px;
	}

	.project-details-section-head {
		flex-direction: column;
	}

	.project-activity-summary {
		grid-template-columns: 1fr;
	}

	.project-activity-entry {
		flex-direction: column;
	}

	.project-summary-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.project-summary-grid {
		grid-template-columns: 1fr;
	}

	.desktop-form-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.desktop-form-grid,
	.desktop-floor-summary {
		grid-template-columns: 1fr;
	}

	.desktop-floor-data-grid {
		grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
	}

	.desktop-floor-data-column-spacer {
		display: none;
	}

	.desktop-floor-total-summary-label {
		white-space: normal;
	}

	.desktop-floor-window-title {
		padding: 10px 14px 42px;
	}

	.desktop-floor-window-title .desktop-title-button {
		right: 14px;
		bottom: 10px;
	}

	.desktop-floor-editor-field {
		grid-template-columns: 1fr;
	}

	.desktop-floor-editor-label {
		text-align: left;
	}

	.desktop-floor-editor-control,
	.desktop-floor-editor-value {
		width: 100%;
	}

	.desktop-floor-editor-select,
	.desktop-form-control > .app-select,
	.desktop-form-row-compact .desktop-form-control > .app-select {
		max-width: 100%;
		width: 100%;
	}

	.main-connection-header-select,
	.main-connection-voltage-select {
		width: 100%;
		max-width: 100%;
	}

	.desktop-form-label {
		text-align: left;
	}

	.desktop-form-row-compact .desktop-form-control input,
	.desktop-form-row-compact .desktop-form-control select,
	.desktop-form-row-compact .desktop-form-control textarea,
	.desktop-static-value,
	.desktop-floor-summary .desktop-static-value {
		max-width: 100%;
	}

	.housing-form-row,
	.housing-area-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.housing-form-row > span:first-child,
	.housing-area-row > span:first-child {
		text-align: left;
	}

	.housing-area-controls {
		max-width: 100%;
	}

	.housing-section-basic-load,
	.housing-section-heat-ac,
	.housing-section-total {
		margin-top: 10px;
	}

	.housing-total-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		justify-content: stretch;
		row-gap: 8px;
	}

	.housing-total-label-description {
		white-space: normal;
	}

	.desktop-total-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		justify-content: stretch;
		row-gap: 8px;
	}

	.commerce-sub-local-area-fields {
		grid-template-columns: 1fr;
	}

	.commerce-total-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		justify-content: stretch;
		row-gap: 8px;
	}

	.main-connection-total-grid,
	.transformers-total-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		justify-content: stretch;
		row-gap: 8px;
	}

	.housing-total-grid > *,
	.desktop-total-grid > *,
	.commerce-total-grid > *,
	.main-connection-total-grid > *,
	.transformers-total-grid > * {
		grid-column: auto !important;
		grid-row: auto !important;
	}

	.housing-total-line,
	.housing-total-equals,
	.desktop-total-line,
	.desktop-total-equals,
	.commerce-total-line,
	.commerce-total-equals,
	.main-connection-total-line,
	.main-connection-total-equals,
	.transformers-total-line,
	.transformers-total-equals {
		display: none;
	}

	.housing-total-label,
	.housing-total-voltage,
	.housing-panel-rating-value,
	.desktop-total-label,
	.desktop-total-voltage,
	.desktop-panel-rating-label,
	.desktop-panel-rating-value,
	.commerce-total-label,
	.commerce-total-voltage,
	.main-connection-total-label,
	.main-connection-total-voltage,
	.transformers-total-label,
	.transformers-total-voltage,
	.transformers-main-connection-label,
	.transformers-main-connection-value {
		text-align: left;
		justify-self: start;
	}

	.desktop-panel-rating-label,
	.transformers-main-connection-label {
		margin-top: 6px;
	}

	.transformers-total-label-description {
		white-space: normal;
	}

	.commerce-charge-name-cell {
		justify-content: center;
	}

	.commerce-main-connection-row {
		justify-content: start;
		width: auto;
	}

	.main-connection-main-row,
	.main-connection-voltage-row {
		justify-content: start;
	}

	.commerce-sub-local-controls-row {
		gap: 6px;
	}
}

@media (max-width: 980px) {
	html,
	body {
		height: auto;
		min-height: 100%;
		overflow-x: hidden;
	}

	body {
		overflow: auto;
	}

	.app-frame {
		width: 100%;
		max-width: 100vw;
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 0;
		grid-template-rows: auto auto auto;
		align-content: start;
	}

	.toolbar-shell {
		position: sticky;
		top: 0;
		z-index: 24;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		align-items: stretch;
		align-content: flex-start;
		gap: 6px 8px;
		padding: 6px;
		border-top: none;
		border-right: none;
		border-left: none;
	}

	.toolbar-brand {
		flex: 0 1 100%;
		width: 100%;
		max-width: 100%;
		height: 32px;
		padding: 0 4px;
		border-right: none;
	}

	.toolbar-group {
		min-width: 0;
	}

	.toolbar-group-text {
		order: 2;
		flex: 0 1 100%;
		width: 100%;
		max-width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 2px;
	}

	.toolbar-group-text .toolbar-button {
		flex: 0 0 auto;
		height: 34px;
		min-height: 34px;
		min-width: max-content;
		padding: 0 12px;
	}

	.toolbar-group-icons {
		order: 3;
		flex: 0 1 100%;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: 6px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 2px;
	}

	.toolbar-menu-panel {
		position: fixed;
		top: 112px;
		left: 8px;
		right: auto;
		max-width: calc(100vw - 16px);
	}

	.session-user {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.workspace-shell {
		width: 100%;
		max-width: 100%;
		grid-template-columns: 1fr !important;
		grid-template-rows: auto minmax(0, 1fr);
		min-height: 0;
		overflow: visible;
		border-right: none;
		border-left: none;
	}

	.navigator-pane {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 150px;
		max-height: min(42vh, 330px);
		border-right: none;
		border-bottom: 1px solid var(--line);
	}

	.drag-handle {
		display: none !important;
	}

	.project-search-shell {
		padding: 8px;
	}

	.tree-wrap {
		max-height: calc(min(42vh, 330px) - 47px);
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
	}

	.tree-disclosure,
	.tree-row,
	.tree-branch,
	.tree-project-shortcut {
		min-height: 36px;
		padding-top: 7px;
		padding-bottom: 7px;
	}

	.content-pane,
	.content-root,
	.content-root.content-root-desktop,
	.desktop-editor-shell,
	.housing-shell,
	.commerce-shell,
	.main-connection-shell,
	.transformers-shell {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.content-root {
		padding: 12px;
	}

	.content-root.content-root-desktop > .desktop-editor-shell,
	.content-root.content-root-desktop > .housing-shell,
	.content-root.content-root-desktop > .commerce-shell,
	.content-root.content-root-desktop > .main-connection-shell,
	.content-root.content-root-desktop > .transformers-shell {
		flex: none;
	}

	.transformers-shell {
		grid-template-rows: auto auto;
	}

	.transformers-panel {
		overflow: visible;
	}

	.desktop-editor-panel,
	.housing-desktop-panel,
	.commerce-desktop-panel,
	.main-connection-panel,
	.transformers-panel {
		padding: 12px;
	}

	.desktop-tabpane,
	.housing-tabpane,
	.commerce-tabpane,
	.transformers-tabpane {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-right: 6px;
		padding-left: 6px;
	}

	.desktop-tab-strip,
	.housing-tab-strip,
	.commerce-tab-strip {
		flex-wrap: nowrap;
	}

	.desktop-tab-strip .tab-button,
	.housing-tab-strip .tab-button,
	.commerce-tab-strip .tab-button {
		flex: 0 0 auto;
		max-width: 70vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.table-shell,
	.desktop-floor-table-shell,
	.housing-table-shell,
	.commerce-table-shell,
	.main-connection-table-shell,
	.transformers-table-shell {
		max-width: 100%;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.desktop-floor-table {
		min-width: 580px;
	}

	.project-details-pane {
		padding: 16px 12px;
	}

	.overlay {
		align-items: flex-start;
		overflow: auto;
		padding: 10px;
	}

	.modal-window {
		width: calc(100vw - 20px);
		max-height: calc(100dvh - 20px);
		padding: 14px;
	}

	.json-drawer {
		top: 8px;
		right: 8px;
		bottom: 8px;
		width: calc(100vw - 16px);
	}
}

@media (max-width: 720px) {
	.toolbar-shell {
		gap: 5px;
	}

	.toolbar-brand {
		justify-content: center;
	}

	.toolbar-brand span {
		white-space: normal;
		text-align: center;
		line-height: 1.15;
	}

	.toolbar-group-icons {
		justify-content: flex-start;
	}

	.toolbar-button {
		height: auto;
		min-height: 34px;
		padding-top: 6px;
		padding-bottom: 6px;
		line-height: 1.15;
		white-space: normal;
	}

	.icon-button,
	.toolbar-menu summary {
		width: 36px;
		min-width: 36px;
		height: 34px;
		min-height: 34px;
	}

	.toolbar-menu summary {
		width: 52px;
		min-width: 52px;
	}

	.toolbar-menu-panel {
		top: 120px;
	}

	.navigator-pane {
		min-height: 132px;
		max-height: 36vh;
	}

	.tree-wrap {
		max-height: calc(36vh - 47px);
	}

	.content-root {
		padding: 10px;
	}

	.desktop-description-pane {
		padding: 18px 10px;
	}

	.desktop-description-illustration {
		margin-bottom: 14px;
	}

	.desktop-description-illustration img {
		width: 96px;
		height: 96px;
	}

	.project-details-section {
		padding: 12px;
	}

	.project-details-form .desktop-form-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.desktop-form-control input,
	.desktop-form-control select,
	.desktop-form-control textarea,
	.housing-form-control input,
	.housing-form-control select,
	.commerce-form-control input,
	.commerce-form-control select,
	.commerce-form-control textarea {
		width: 100%;
		max-width: 100%;
	}

	.desktop-form-control input,
	.desktop-form-control select,
	.housing-form-control input,
	.housing-form-control select,
	.commerce-form-control input,
	.commerce-form-control select {
		min-height: 34px;
	}

	.housing-area-controls {
		grid-template-columns: minmax(0, 1fr) 112px;
		gap: 6px;
	}

	.housing-count-card {
		grid-template-columns: auto auto;
		justify-content: start;
		gap: 8px;
	}

	.housing-count-card::before,
	.housing-count-card::after {
		display: none;
	}

	.housing-count-card span,
	.housing-count-card strong {
		grid-column: auto;
	}

	.housing-section-header,
	.commerce-section-header,
	.main-connection-section-header,
	.transformers-section-header {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.housing-section-extra,
	.commerce-section-extra,
	.main-connection-section-extra {
		width: 100%;
		justify-content: flex-start;
	}

	.housing-section-extra select,
	.main-connection-header-select,
	.main-connection-voltage-select {
		width: 100%;
		max-width: 100%;
	}

	.housing-heat-cell-label {
		font-size: 11px;
	}

	.commerce-info-grid {
		display: block;
	}

	.commerce-form-row {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.commerce-form-control {
		width: 100%;
		flex: none;
	}

	.commerce-info-grid .commerce-form-control input {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.commerce-sub-local-controls-row {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.commerce-sub-local-label {
		min-height: auto;
		white-space: normal;
	}

	.commerce-sub-local-inline-select,
	.commerce-sub-local-type-select,
	.commerce-sub-local-unit-select,
	.commerce-select-control,
	.commerce-voltage-select {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		flex: none;
		flex-basis: auto;
	}

	.commerce-number-control {
		width: 100%;
		min-width: 0;
		max-width: none;
		text-align: left;
	}

	.main-connection-main-row,
	.commerce-main-connection-row {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	.main-connection-main-label,
	.commerce-main-connection-label {
		height: auto;
		min-height: 28px;
		white-space: normal;
	}

	.housing-total-grid,
	.desktop-total-grid,
	.commerce-total-grid,
	.main-connection-total-grid,
	.transformers-total-grid {
		width: 100%;
	}

	.desktop-floor-window-title h3 {
		font-size: 20px;
		line-height: 1.15;
	}

	.fx-dialog-actions {
		flex-wrap: wrap;
		gap: 8px;
	}

	.fx-dialog-button {
		flex: 1 1 110px;
	}
}

@media (max-width: 480px) {
	.auth-shell {
		min-height: 100vh;
		min-height: 100dvh;
		padding: 12px;
		border: none;
	}

	.auth-card {
		padding: 22px 16px;
	}

	.auth-card h2 {
		font-size: 2rem;
	}

	.auth-logo {
		width: min(110px, 60%);
	}

	.navigator-pane {
		min-height: 120px;
		max-height: 34vh;
	}

	.tree-wrap {
		max-height: calc(34vh - 47px);
	}

	.desktop-editor-panel,
	.housing-desktop-panel,
	.commerce-desktop-panel,
	.main-connection-panel,
	.transformers-panel {
		padding: 10px;
	}

	.housing-area-controls {
		grid-template-columns: 1fr;
	}

	.main-connection-main-value,
	.commerce-main-connection-value {
		width: 100%;
	}
}

/* Home workspace */
.navigator-primary-nav {
	flex: 0 0 auto;
	padding: 6px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.navigator-home-button {
	width: 100%;
	min-height: 34px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	color: #263b36;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.navigator-home-button:hover,
.navigator-home-button:focus-visible {
	border-color: #c3d9d3;
	background: #edf7f4;
}

.navigator-home-button:focus-visible {
	outline: 2px solid rgba(15, 118, 110, 0.3);
	outline-offset: -2px;
}

.navigator-home-button.is-active {
	border-color: var(--theme);
	background: var(--theme);
	color: #ffffff;
}

.navigator-home-icon {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
}

.content-root.content-root-home {
	display: block;
	padding: 22px;
	background:
		linear-gradient(180deg, rgba(231, 243, 240, 0.42), rgba(255, 255, 255, 0) 220px),
		#ffffff;
}

.home-page {
	width: min(100%, 1240px);
	margin: 0 auto;
	display: grid;
	gap: 26px;
	padding-bottom: 34px;
}

.home-welcome {
	min-height: 150px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: 24px;
	border: 1px solid #b8d4cd;
	border-radius: 5px;
	background:
		linear-gradient(120deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.025) 62%, rgba(255, 255, 255, 0.9)),
		#f9fcfb;
	overflow: hidden;
}

.home-welcome-mark {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border: 1px solid #afccc5;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(15, 118, 110, 0.09);
}

.home-welcome-mark img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.home-welcome-copy {
	min-width: 0;
}

.home-eyebrow {
	margin: 0 0 7px;
	color: var(--theme);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-welcome-copy h2 {
	margin: 0;
	font-size: clamp(1.55rem, 2.5vw, 2.15rem);
	font-weight: 450;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.home-welcome-copy h2 strong {
	font-weight: 700;
}

.home-welcome-copy > p:last-child {
	margin: 9px 0 0;
	color: var(--text-muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

.home-browse-button {
	min-width: 148px;
}

.home-section {
	display: grid;
	gap: 15px;
}

.home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.home-section-head h3 {
	margin: 0;
	font-size: 1.32rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.home-section-head > div > p:last-child {
	margin: 7px 0 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.home-section-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.home-text-button {
	min-height: 30px;
	padding: 4px 2px;
	border: 0;
	border-bottom: 1px solid transparent;
	background: transparent;
	color: var(--theme);
	font-size: 0.86rem;
	font-weight: 700;
}

.home-text-button:hover,
.home-text-button:focus-visible {
	border-bottom-color: currentColor;
	color: var(--theme-strong);
}

.home-text-button:focus-visible {
	outline: 2px solid rgba(15, 118, 110, 0.28);
	outline-offset: 2px;
}

.home-project-type-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.home-project-type-card {
	min-width: 0;
	min-height: 224px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #ffffff;
	color: var(--text);
	text-align: left;
	box-shadow: 0 5px 16px rgba(15, 118, 110, 0.045);
}

.home-project-type-card .template-card-actions {
	margin-top: auto;
}

.project-type-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
}

.project-type-card-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.project-type-card-copy > span {
	color: var(--text-muted);
	font-size: 0.78rem;
}

.template-card-actions {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	grid-column: 1 / -1;
}

.template-card-actions .toolbar-button {
	width: 100%;
	height: auto;
	min-height: 34px;
	padding: 7px 9px;
	white-space: normal;
}

.template-page-section {
	display: grid;
	gap: 10px;
}

.template-page-section > h3 {
	margin: 8px 0 0;
}

.templates-page {
	display: grid;
	gap: 18px;
}

.home-project-type-card:hover,
.home-project-type-card:focus-visible {
	border-color: var(--theme);
	background: #f8fcfb;
	box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.home-project-type-card:focus-visible {
	outline: 2px solid rgba(15, 118, 110, 0.34);
	outline-offset: 2px;
}

.home-project-type-icon {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	border: 1px solid #c4dbd5;
	border-radius: 4px;
	background: var(--surface-subtle);
}

.home-project-type-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.home-project-type-copy {
	min-width: 0;
	display: grid;
	gap: 7px;
}

.home-card-kicker {
	color: var(--theme);
	font-size: 0.69rem;
	font-weight: 750;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.home-project-type-copy strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.home-card-description {
	color: var(--text-muted);
	font-size: 0.83rem;
	line-height: 1.45;
}

.home-card-action {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #e0ebe8;
	color: var(--theme);
	font-size: 0.82rem;
	font-weight: 700;
}

.home-card-action span,
.home-recent-open span {
	font-size: 1.1rem;
	line-height: 0.8;
}

.home-recent-section {
	padding-top: 4px;
}

.home-recent-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.home-recent-card {
	min-width: 0;
	min-height: 126px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"icon copy time"
		"open open open";
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #ffffff;
	color: var(--text);
	text-align: left;
}

.home-recent-card:hover,
.home-recent-card:focus-visible {
	border-color: var(--theme);
	background: #f8fcfb;
}

.home-recent-card:focus-visible {
	outline: 2px solid rgba(15, 118, 110, 0.34);
	outline-offset: 2px;
}

.home-recent-icon {
	grid-area: icon;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid #d2e2de;
	border-radius: 4px;
	background: #f5f9f8;
}

.home-recent-icon img {
	width: 23px;
	height: 23px;
	object-fit: contain;
}

.home-recent-copy {
	grid-area: copy;
	min-width: 0;
	display: grid;
	gap: 6px;
}

.home-recent-copy strong,
.home-recent-copy span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-recent-copy strong {
	font-size: 0.94rem;
}

.home-recent-copy span,
.home-recent-card time {
	color: var(--text-muted);
	font-size: 0.75rem;
}

.home-recent-card time {
	grid-area: time;
	align-self: start;
	white-space: nowrap;
}

.home-recent-open {
	grid-area: open;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid #e0ebe8;
	color: var(--theme);
	font-size: 0.8rem;
	font-weight: 700;
}

.home-recent-empty {
	display: grid;
	gap: 6px;
	padding: 20px;
	border: 1px dashed var(--line-strong);
	border-radius: 5px;
	background: #fbfdfc;
}

.home-recent-empty strong {
	font-size: 0.92rem;
}

.home-recent-empty p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.45;
}

@media (max-width: 1200px) {
	.home-project-type-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-recent-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.home-welcome {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.home-browse-button {
		grid-column: 2;
		justify-self: start;
	}

	.home-project-type-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-section-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.navigator-primary-nav {
		padding: 7px 8px;
	}

	.content-root.content-root-home {
		padding: 14px 12px 24px;
	}

	.home-page {
		gap: 22px;
	}

	.home-welcome {
		padding: 18px;
	}
}

@media (max-width: 480px) {
	.home-welcome {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.home-welcome-mark {
		width: 58px;
		height: 58px;
	}

	.home-welcome-mark img {
		width: 34px;
		height: 34px;
	}

	.home-browse-button {
		grid-column: 1;
	}

	.home-project-type-grid,
	.home-recent-grid {
		grid-template-columns: 1fr;
	}

	.home-project-type-card {
		min-height: 200px;
	}
}

.toolbar-primary-actions {
	flex: 0 1 auto;
}

.toolbar-secondary-actions {
	margin-left: auto;
}

.toolbar-menu summary,
.toolbar-submenu summary {
	list-style: none;
}

.toolbar-menu summary::-webkit-details-marker,
.toolbar-submenu summary::-webkit-details-marker {
	display: none;
}

.toolbar-menu.more-menu > summary.more-menu-trigger,
.toolbar-menu.account-menu > summary.account-menu-trigger {
	display: inline-flex;
	align-items: center;
	height: 30px;
	min-height: 30px;
	box-sizing: border-box;
	border-radius: 3px;
}

.account-menu {
	margin-left: 10px;
}

.toolbar-menu.more-menu > summary.more-menu-trigger {
	width: auto;
	min-width: 74px;
	justify-content: center;
	gap: 6px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 500;
}

.toolbar-menu.more-menu > summary.more-menu-trigger::after,
.toolbar-menu.account-menu > summary.account-menu-trigger::after {
	display: none;
}

.more-trigger-dots {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 18px;
	height: 30px;
	margin-top: 0;
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
}

.more-trigger-dots::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
}

.toolbar-menu.account-menu > summary.account-menu-trigger {
	width: auto;
	min-width: 0;
	height: 34px;
	min-height: 34px;
	gap: 8px;
	padding: 0 4px 0 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #111827;
	justify-content: flex-start;
}

.toolbar-menu.account-menu > summary.account-menu-trigger:hover {
	background: transparent;
}

.account-avatar {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	border-radius: 999px;
	background: #697590;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.account-name {
	max-width: 128px;
	overflow: hidden;
	color: #111827;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-chevron {
	width: 7px;
	height: 7px;
	flex: 0 0 auto;
	border-right: 1.5px solid #1f2937;
	border-bottom: 1.5px solid #1f2937;
	transform: translateY(-2px) rotate(45deg);
}

.more-menu .toolbar-menu-panel,
.account-menu .toolbar-menu-panel {
	right: 0;
	left: auto;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.more-menu-panel,
.account-menu-panel {
	min-width: 150px;
	padding: 7px 0;
	background: #ffffff;
}

.more-menu-panel {
	min-width: 148px;
}

.account-menu-panel {
	min-width: 142px;
}

.toolbar-menu[open] .toolbar-menu-panel:not(:hover) .menu-item:first-child {
	background: #ffffff;
	color: #263348;
}

.toolbar-menu-panel .menu-item,
.toolbar-submenu > summary.menu-item {
	position: relative;
	width: 100%;
	height: 38px;
	min-height: 38px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px 0 10px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	color: #263348;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	text-align: left;
}

.toolbar-menu-panel .menu-item:hover,
.toolbar-menu-panel .menu-item:focus-visible,
.toolbar-submenu > summary.menu-item:hover,
.toolbar-submenu[open] > summary.menu-item {
	background: #f4f7fb;
	color: #172033;
}

.toolbar-menu-panel .menu-item:disabled,
.toolbar-menu-panel .menu-item[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.toolbar-menu-panel .menu-item img {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	object-fit: contain;
}

.toolbar-menu-panel .menu-item span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.menu-separator {
	height: 1px;
	margin: 7px 10px;
	background: #edf0f4;
}

.menu-item-danger,
.toolbar-menu-panel .menu-item-danger {
	color: #ef1f2c;
}

.menu-item-danger:hover,
.menu-item-danger:focus-visible {
	background: #fff2f2;
	color: #d9101f;
}

.toolbar-submenu {
	position: relative;
}

.toolbar-submenu > summary.menu-item {
	padding-right: 24px;
	cursor: pointer;
}

.toolbar-submenu > summary.menu-item::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.toolbar-submenu-panel {
	position: absolute;
	top: -7px;
	left: calc(100% - 1px);
	z-index: 22;
	min-width: 190px;
	padding: 7px 0;
	display: grid;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.more-menu .toolbar-submenu-panel {
	right: calc(100% - 1px);
	left: auto;
}

.toolbar-submenu:not([open]) > .toolbar-submenu-panel {
	display: none;
}

.toolbar-submenu[open] > .toolbar-submenu-panel {
	display: grid;
}

@media (max-width: 900px) {
	.toolbar-primary-actions {
		order: 1;
		flex: 1 1 auto;
		width: auto;
		max-width: 100%;
		overflow: visible;
	}

	.toolbar-primary-actions .toolbar-button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.toolbar-secondary-actions {
		order: 2;
		flex: 0 1 auto;
		width: auto;
		max-width: 100%;
		margin-left: auto;
		justify-content: flex-end;
		overflow: visible;
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel {
		position: fixed;
		top: 54px;
		right: 8px;
		left: auto;
		max-width: calc(100vw - 16px);
	}

	.toolbar-submenu-panel {
		position: static;
		right: auto;
		left: auto;
		margin: 0 0 4px 28px;
		min-width: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}
}

@media (max-width: 480px) {
	.toolbar-shell {
		justify-content: flex-start;
	}

	.toolbar-primary-actions,
	.toolbar-secondary-actions {
		flex: 1 1 100%;
		width: 100%;
		margin-left: 0;
	}

	.toolbar-secondary-actions {
		justify-content: flex-start;
	}

	.account-name {
		max-width: min(110px, 38vw);
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel {
		top: 96px;
		right: auto;
		left: 8px;
	}
}

/* Adaptive workspace layout -------------------------------------------------
   This final layer intentionally sits after the desktop-parity styles above.
   It keeps the dense calculator experience on wide screens while providing a
   touch-first, off-canvas workspace on compact screens. */

:root {
	--adaptive-gutter: clamp(10px, 1.35vw, 24px);
	--compact-control-size: 44px;
	--compact-navigator-width: min(360px, calc(100vw - 48px));
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.app-frame {
	width: min(100%, 2200px);
	margin-inline: auto;
}

.navigator-toggle,
.navigator-close,
.navigator-backdrop {
	display: none;
}

.mobile-action-label,
.mobile-menu-item {
	display: none;
}

.navigator-toggle,
.navigator-close {
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
	color: var(--theme-strong);
}

.navigator-toggle svg,
.navigator-close svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.commerce-section-toggle,
.housing-section-toggle,
.main-connection-section-toggle,
.transformers-section-toggle {
	min-height: 32px;
}

.content-pane,
.content-root,
.desktop-editor-shell,
.housing-shell,
.commerce-shell,
.main-connection-shell,
.transformers-shell,
.desktop-editor-panel,
.housing-desktop-panel,
.commerce-desktop-panel,
.main-connection-panel,
.transformers-panel,
.titled-pane,
.titled-pane-body,
.modal-window {
	min-width: 0;
}

.table-shell,
.desktop-floor-table-shell,
.housing-table-shell,
.commerce-table-shell,
.main-connection-table-shell,
.transformers-table-shell {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	touch-action: pan-x pan-y;
}

.table-shell.has-horizontal-overflow,
.desktop-floor-table-shell.has-horizontal-overflow,
.housing-table-shell.has-horizontal-overflow,
.commerce-table-shell.has-horizontal-overflow,
.main-connection-table-shell.has-horizontal-overflow,
.transformers-table-shell.has-horizontal-overflow {
	background:
		linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0)) left center / 42px 100% local,
		linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0)) right center / 42px 100% local,
		radial-gradient(farthest-side at 0 50%, rgba(15, 118, 110, 0.18), transparent) left center / 12px 100% scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(15, 118, 110, 0.18), transparent) right center / 12px 100% scroll;
	background-repeat: no-repeat;
}

.table-shell.has-horizontal-overflow:focus-visible,
.desktop-floor-table-shell.has-horizontal-overflow:focus-visible,
.housing-table-shell.has-horizontal-overflow:focus-visible,
.commerce-table-shell.has-horizontal-overflow:focus-visible,
.main-connection-table-shell.has-horizontal-overflow:focus-visible,
.transformers-table-shell.has-horizontal-overflow:focus-visible {
	outline: 3px solid rgba(15, 118, 110, 0.34);
	outline-offset: 2px;
}

.desktop-editor-panel,
.housing-desktop-panel,
.commerce-desktop-panel,
.main-connection-panel,
.transformers-panel {
	padding-inline: clamp(10px, 1.25vw, 18px);
}

@media (min-width: 1600px) {
	.content-root.content-root-home {
		padding: clamp(24px, 2vw, 38px);
	}

	.home-page {
		width: min(100%, 1500px);
		gap: 32px;
	}

	.home-project-type-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 16px;
	}

	.home-recent-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 2000px) {
	html,
	body {
		font-size: 14px;
	}

	.toolbar-shell {
		min-height: 56px;
		padding: 7px 12px;
	}

	.toolbar-button,
	.icon-button,
	.toolbar-menu.more-menu > summary.more-menu-trigger,
	.toolbar-menu.account-menu > summary.account-menu-trigger {
		min-height: 36px;
		height: 36px;
	}

	.icon-button {
		width: 36px;
		min-width: 36px;
	}

	.project-search-input,
	.navigator-home-button,
	.tree-disclosure,
	.tree-row,
	.tree-branch,
	.tree-project-shortcut {
		min-height: 36px;
	}

	.home-project-type-card {
		min-height: 236px;
	}

	.home-recent-card {
		min-height: 134px;
	}
}

@media (min-width: 2200px) {
	body {
		background: #e6eeeb;
	}

	.app-frame {
		height: 100dvh;
		min-height: 100dvh;
		margin-block: 0;
		border: 1px solid var(--theme);
		box-shadow: 0 18px 50px rgba(15, 118, 110, 0.12);
	}
}

@media (max-width: 1366px) and (min-width: 981px) {
	.toolbar-shell {
		gap: 8px;
		padding-inline: 8px;
	}

	.toolbar-group {
		gap: 6px;
	}

	.toolbar-brand {
		padding-right: 8px;
	}

	.content-root.content-root-home {
		padding: 18px;
	}

	.home-project-type-grid,
	.home-recent-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-project-type-card {
		min-height: 208px;
	}
}

@media (max-width: 1100px) {
	html,
	body {
		width: 100%;
		min-width: 0;
		height: auto;
		min-height: 100%;
		overflow-x: hidden;
	}

	html.is-compact-navigator-open,
	html.is-compact-navigator-open body {
		overflow: hidden !important;
	}

	body {
		padding: 0;
		overflow-y: auto;
	}

	.auth-shell {
		min-height: 100vh;
		min-height: 100dvh;
		overflow: auto;
	}

	.app-frame {
		width: 100%;
		max-width: 100vw;
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 0;
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	.toolbar-shell {
		position: sticky;
		top: 0;
		z-index: 30;
		width: 100%;
		min-width: 0;
		min-height: 56px;
		display: grid;
		grid-template-columns: auto auto minmax(170px, 1fr) auto;
		grid-template-areas: "brand navigator primary secondary";
		align-items: center;
		gap: 6px;
		padding:
			max(6px, env(safe-area-inset-top))
			max(8px, env(safe-area-inset-right))
			6px
			max(8px, env(safe-area-inset-left));
		border: 0;
		border-bottom: 1px solid var(--theme);
	}

	.toolbar-brand {
		grid-area: brand;
		width: auto;
		max-width: 190px;
		height: var(--compact-control-size);
		flex: 0 0 auto;
		padding: 0 8px 0 0;
		border-right: 1px solid var(--line);
	}

	.navigator-toggle {
		grid-area: navigator;
		min-width: var(--compact-control-size);
		height: var(--compact-control-size);
		display: inline-flex;
		padding: 0 12px;
		font-size: 13px;
		font-weight: 700;
	}

	.toolbar-primary-actions {
		grid-area: primary;
		order: 0;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		flex: none;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
	}

	.toolbar-primary-actions::-webkit-scrollbar,
	.toolbar-secondary-actions::-webkit-scrollbar {
		display: none;
	}

	.toolbar-primary-actions .toolbar-button {
		height: var(--compact-control-size);
		min-height: var(--compact-control-size);
		flex: 0 0 auto;
		padding-inline: 12px;
		white-space: nowrap;
	}

	.toolbar-secondary-actions {
		grid-area: secondary;
		order: 0;
		width: auto;
		max-width: 100%;
		min-width: 0;
		margin-left: 0;
		justify-content: flex-end;
		flex: none;
		flex-wrap: nowrap;
		gap: 5px;
	}

	.toolbar-secondary-actions .icon-button,
	.toolbar-menu.more-menu > summary.more-menu-trigger,
	.toolbar-menu.account-menu > summary.account-menu-trigger {
		height: var(--compact-control-size);
		min-height: var(--compact-control-size);
	}

	.toolbar-secondary-actions .icon-button {
		width: var(--compact-control-size);
		min-width: var(--compact-control-size);
	}

	.toolbar-menu.more-menu > summary.more-menu-trigger {
		min-width: 76px;
	}

	.toolbar-menu.account-menu > summary.account-menu-trigger {
		min-width: var(--compact-control-size);
		padding-right: 4px;
	}

	.account-menu {
		margin-left: 2px;
	}

	.account-avatar {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel,
	.toolbar-menu-panel {
		position: fixed;
		top: 60px;
		right: max(8px, env(safe-area-inset-right));
		left: auto;
		max-width: calc(100vw - 16px);
		max-height: calc(100dvh - 68px);
		overflow: auto;
	}

	.toolbar-menu-panel .menu-item,
	.toolbar-submenu > summary.menu-item {
		min-height: var(--compact-control-size);
		height: var(--compact-control-size);
	}

	.toolbar-submenu-panel,
	.more-menu .toolbar-submenu-panel {
		position: static;
		right: auto;
		left: auto;
		margin: 0 0 4px 24px;
		min-width: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.workspace-shell {
		position: relative;
		width: 100%;
		max-width: 100%;
		min-height: 0;
		display: block;
		overflow: visible;
		border-right: 0;
		border-left: 0;
	}

	.navigator-pane {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 70;
		width: var(--compact-navigator-width);
		max-width: calc(100vw - 48px);
		height: 100vh;
		height: 100dvh;
		min-height: 0;
		max-height: none;
		display: flex;
		transform: translateX(calc(-100% - 18px));
		transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
		border: 0;
		border-right: 1px solid var(--theme);
		background: #ffffff;
		box-shadow: 12px 0 36px rgba(15, 40, 34, 0.22);
		visibility: hidden;
	}

	.workspace-shell.is-navigator-open .navigator-pane {
		transform: translateX(0);
		visibility: visible;
	}

	.navigator-backdrop {
		position: fixed;
		inset: 0;
		z-index: 69;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(9, 26, 22, 0.42);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 180ms ease, visibility 180ms ease;
	}

	.workspace-shell.is-navigator-open .navigator-backdrop {
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.navigator-pane .pane-head {
		min-height: 62px;
		display: flex;
		align-items: center;
		padding:
			max(8px, env(safe-area-inset-top))
			max(10px, env(safe-area-inset-right))
			8px
			max(12px, env(safe-area-inset-left));
	}

	.navigator-pane .brand-lockup {
		flex: 1 1 auto;
	}

	.navigator-pane .sample-badge {
		display: none;
	}

	.navigator-close {
		width: var(--compact-control-size);
		min-width: var(--compact-control-size);
		height: var(--compact-control-size);
		display: inline-flex;
		padding: 0;
	}

	.navigator-primary-nav {
		padding: 8px;
	}

	.navigator-home-button,
	.tree-disclosure,
	.tree-row,
	.tree-branch,
	.tree-project-shortcut {
		min-height: var(--compact-control-size);
	}

	.tree-disclosure {
		width: 36px;
		flex-basis: 36px;
	}

	.project-search-shell {
		padding: 8px;
	}

	.project-search-input {
		height: var(--compact-control-size);
	}

	.tree-wrap {
		flex: 1 1 auto;
		min-height: 0;
		max-height: none;
		overflow: auto;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}

	.drag-handle {
		display: none !important;
	}

	.content-pane,
	.content-root,
	.content-root.content-root-desktop,
	.desktop-editor-shell,
	.housing-shell,
	.commerce-shell,
	.main-connection-shell,
	.transformers-shell {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.content-root {
		padding: var(--adaptive-gutter);
	}

	.content-root.content-root-desktop > .desktop-editor-shell,
	.content-root.content-root-desktop > .housing-shell,
	.content-root.content-root-desktop > .commerce-shell,
	.content-root.content-root-desktop > .main-connection-shell,
	.content-root.content-root-desktop > .transformers-shell {
		flex: none;
	}

	.desktop-tabpane,
	.housing-tabpane,
	.commerce-tabpane,
	.transformers-tabpane {
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.desktop-tab-strip,
	.housing-tab-strip,
	.commerce-tab-strip {
		width: max-content;
		min-width: 100%;
		flex-wrap: nowrap;
	}

	.tab-button {
		min-height: var(--compact-control-size);
	}

	.content-pane button,
	.content-pane summary,
	.modal-window button,
	.modal-window summary,
	.json-drawer button,
	.commerce-section-toggle,
	.housing-section-toggle,
	.main-connection-section-toggle,
	.transformers-section-toggle {
		min-height: var(--compact-control-size) !important;
	}

	.content-pane .icon-button,
	.modal-window .icon-button {
		width: var(--compact-control-size) !important;
		min-width: var(--compact-control-size) !important;
	}

	.content-pane input:not([type="checkbox"]):not([type="radio"]),
	.content-pane select,
	.content-pane .app-select-control,
	.modal-window input:not([type="checkbox"]):not([type="radio"]),
	.modal-window select,
	.json-drawer textarea {
		min-height: var(--compact-control-size) !important;
	}

	.overlay {
		align-items: flex-start;
		overflow: auto;
		padding:
			max(8px, env(safe-area-inset-top))
			max(8px, env(safe-area-inset-right))
			max(8px, env(safe-area-inset-bottom))
			max(8px, env(safe-area-inset-left));
	}

	.modal-window {
		width: min(100%, 780px);
		max-width: 100%;
		max-height: calc(100dvh - 16px);
		overflow: auto;
		padding: clamp(12px, 2vw, 18px);
	}

	.modal-head,
	.drawer-head,
	.fx-dialog-actions {
		flex-wrap: wrap;
	}

	.json-drawer {
		top: max(8px, env(safe-area-inset-top));
		right: max(8px, env(safe-area-inset-right));
		bottom: max(8px, env(safe-area-inset-bottom));
		left: max(8px, env(safe-area-inset-left));
		width: auto;
		max-width: none;
	}

	.home-project-type-card,
	.home-recent-card {
		content-visibility: auto;
		contain-intrinsic-size: 220px;
	}
}

@media (max-width: 840px) and (min-width: 721px) {
	.toolbar-shell {
		grid-template-columns: auto auto minmax(150px, 1fr) auto;
	}

	.toolbar-brand {
		width: var(--compact-control-size);
		padding: 0;
		border: 0;
	}

	.toolbar-brand span,
	.account-name {
		display: none;
	}

	.navigator-toggle {
		padding-inline: 10px;
	}
}

@media (max-width: 720px) {
	.toolbar-shell {
		min-height: 98px;
		grid-template-columns: auto minmax(128px, 0.9fr) minmax(150px, 1.1fr);
		grid-template-areas:
			"navigator brand brand"
			"primary primary secondary";
		align-content: center;
	}

	.toolbar-brand {
		justify-self: center;
		justify-content: center;
		max-width: 100%;
		padding: 0;
		border: 0;
	}

	.toolbar-brand span {
		white-space: nowrap;
	}

	.toolbar-primary-actions,
	.toolbar-secondary-actions {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.toolbar-primary-actions {
		justify-content: flex-start;
	}

	.toolbar-secondary-actions {
		justify-content: flex-start;
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel,
	.toolbar-menu-panel {
		top: 102px;
		max-height: calc(100dvh - 110px);
	}

	.content-root.content-root-home {
		padding: 16px 12px 28px;
	}

	.home-page {
		gap: 22px;
	}

	.home-welcome,
	.home-section-head,
	.project-details-section-head,
	.project-summary-head,
	.project-activity-entry {
		align-items: flex-start;
	}

	.home-section-head,
	.project-details-section-head,
	.project-summary-head,
	.project-activity-entry {
		flex-direction: column;
	}

	.home-project-type-grid,
	.home-recent-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.desktop-form-row,
	.housing-form-row,
	.housing-area-row,
	.commerce-form-row,
	.commerce-sub-local-controls,
	.main-connection-voltage-row,
	.settings-field,
	.settings-danger-zone {
		grid-template-columns: minmax(0, 1fr);
	}

	.desktop-form-label,
	.housing-form-row > span:first-child,
	.housing-area-row > span:first-child,
	.commerce-form-row > span:first-child,
	.commerce-voltage-label,
	.main-connection-voltage-label {
		justify-self: start;
		text-align: left;
	}

	.desktop-form-control,
	.desktop-form-control > .app-select,
	.desktop-form-control input,
	.desktop-form-control select,
	.desktop-form-control textarea,
	.housing-form-control,
	.housing-form-control > .app-select,
	.housing-form-control input,
	.housing-form-control select,
	.commerce-form-control,
	.commerce-form-control > .app-select,
	.commerce-form-control input,
	.commerce-form-control select,
	.commerce-form-control textarea,
	.main-connection-header-select,
	.main-connection-voltage-select {
		width: 100%;
		max-width: 100%;
	}

	.housing-total-grid,
	.desktop-total-grid,
	.commerce-total-grid,
	.main-connection-total-grid,
	.transformers-total-grid {
		width: 100%;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		justify-content: stretch;
		row-gap: 8px;
	}

	.housing-total-grid > *,
	.desktop-total-grid > *,
	.commerce-total-grid > *,
	.main-connection-total-grid > *,
	.transformers-total-grid > * {
		grid-column: auto !important;
		grid-row: auto !important;
	}

	.housing-total-line,
	.housing-total-equals,
	.desktop-total-line,
	.desktop-total-equals,
	.commerce-total-line,
	.commerce-total-equals,
	.main-connection-total-line,
	.main-connection-total-equals,
	.transformers-total-line,
	.transformers-total-equals {
		display: none;
	}

	.housing-total-label,
	.housing-total-voltage,
	.housing-panel-rating-value,
	.desktop-total-label,
	.desktop-total-voltage,
	.desktop-panel-rating-label,
	.desktop-panel-rating-value,
	.commerce-total-label,
	.commerce-total-voltage,
	.main-connection-total-label,
	.main-connection-total-voltage,
	.transformers-total-label,
	.transformers-total-voltage,
	.transformers-main-connection-label,
	.transformers-main-connection-value {
		justify-self: start;
		text-align: left;
	}

	.fx-dialog-actions .fx-dialog-button {
		min-height: var(--compact-control-size);
		flex: 1 1 132px;
	}
}

@media (max-width: 480px) {
	:root {
		--adaptive-gutter: 10px;
		--compact-navigator-width: min(330px, calc(100vw - 34px));
	}

	.auth-shell {
		padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
	}

	.auth-card {
		padding: 22px 16px;
	}

	.toolbar-shell {
		grid-template-columns: var(--compact-control-size) 78px minmax(0, 1fr);
		gap: 5px;
	}

	.navigator-toggle {
		width: var(--compact-control-size);
		padding: 0;
	}

	.navigator-toggle-label,
	.account-name,
	.more-menu-trigger > span:not(.more-trigger-dots) {
		display: none;
	}

	.desktop-action-label,
	.toolbar-secondary-actions > [data-action="undo"],
	.toolbar-secondary-actions > [data-action="redo"] {
		display: none;
	}

	.mobile-action-label {
		display: inline;
	}

	.toolbar-menu-panel .mobile-menu-item {
		display: flex;
	}

	.toolbar-primary-actions .toolbar-button {
		min-width: 58px;
		justify-content: center;
		padding-inline: 10px;
	}

	.toolbar-menu.more-menu > summary.more-menu-trigger {
		width: var(--compact-control-size);
		min-width: var(--compact-control-size);
		padding-inline: 8px;
	}

	.toolbar-menu.account-menu > summary.account-menu-trigger {
		width: var(--compact-control-size);
		padding: 0 4px;
	}

	.account-chevron {
		display: none;
	}

	.home-welcome {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 16px;
	}

	.home-browse-button {
		grid-column: auto;
		width: 100%;
	}

	.home-project-type-grid,
	.home-recent-grid,
	.project-summary-grid,
	.project-activity-summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-project-type-card {
		min-height: 176px;
	}

	.home-recent-card {
		min-height: 120px;
	}

	.housing-area-controls,
	.housing-count-card,
	.commerce-sub-local-controls-row,
	.commerce-sub-local-area-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.modal-head,
	.drawer-head {
		align-items: stretch;
		flex-direction: column;
	}

	.drawer-actions {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.drawer-actions .toolbar-button,
	.fx-dialog-actions .fx-dialog-button {
		width: 100%;
	}
}

@media (pointer: coarse) {
	button,
	.toolbar-menu > summary,
	.toolbar-submenu > summary,
	.tab-button,
	.commerce-section-toggle,
	.housing-section-toggle,
	.main-connection-section-toggle,
	.transformers-section-toggle {
		min-height: 44px;
	}

	input:not([type="checkbox"]):not([type="radio"]),
	select,
	.app-select-control {
		min-height: 44px;
	}

	input[type="checkbox"],
	input[type="radio"] {
		min-width: 20px;
		min-height: 20px;
	}
}

@media (max-width: 1100px) and (orientation: landscape) and (max-height: 600px) {
	:root {
		--compact-navigator-width: min(340px, 72vw);
	}

	.toolbar-shell {
		min-height: 56px;
		grid-template-columns: auto auto minmax(128px, 0.85fr) minmax(150px, 1.15fr);
		grid-template-areas: "brand navigator primary secondary";
		padding-top: max(5px, env(safe-area-inset-top));
		padding-bottom: 5px;
	}

	.toolbar-brand {
		grid-area: brand;
		width: var(--compact-control-size);
		padding: 0;
		border: 0;
	}

	.toolbar-brand span,
	.account-name,
	.more-menu-trigger > span:not(.more-trigger-dots) {
		display: none;
	}

	.toolbar-primary-actions {
		grid-area: primary;
	}

	.toolbar-secondary-actions {
		grid-area: secondary;
	}

	.toolbar-menu.more-menu > summary.more-menu-trigger {
		width: var(--compact-control-size);
		min-width: var(--compact-control-size);
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel,
	.toolbar-menu-panel {
		top: 58px;
		max-height: calc(100dvh - 64px);
	}

	.content-root.content-root-home {
		padding: 12px;
	}

	.home-page {
		gap: 18px;
	}

	.home-welcome {
		min-height: 0;
		grid-template-columns: auto minmax(0, 1fr) auto;
		padding: 14px 16px;
	}

	.home-welcome-mark {
		width: 54px;
		height: 54px;
	}

	.home-welcome-mark img {
		width: 32px;
		height: 32px;
	}

	.home-browse-button {
		grid-column: auto;
		width: auto;
	}

	.home-project-type-grid,
	.home-recent-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.auth-shell {
		place-items: start center;
		padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
	}

	.auth-layout {
		width: min(760px, 100%);
	}

	.auth-card {
		grid-template-columns: minmax(150px, 0.65fr) minmax(280px, 1fr);
		align-items: center;
		gap: 20px;
		padding: 16px 20px;
	}

	.auth-card-head {
		gap: 10px;
	}

	.auth-brand {
		padding-block: 0;
	}

	.auth-logo {
		width: min(92px, 60%);
	}

	.auth-copy {
		font-size: 0.9rem;
		line-height: 1.4;
	}

	.auth-form {
		gap: 8px;
	}

	.auth-field {
		gap: 5px;
	}

	.auth-field input {
		height: 44px;
	}

	.toolbar-button.auth-submit {
		min-height: 52px;
		padding-block: 8px;
	}

	.modal-window {
		max-height: calc(100dvh - 12px);
	}
}

@media (max-width: 680px) and (orientation: landscape) and (max-height: 600px) {
	.navigator-toggle {
		width: var(--compact-control-size);
		padding: 0;
	}

	.navigator-toggle-label {
		display: none;
	}

	.toolbar-shell {
		grid-template-columns: auto auto minmax(122px, 0.8fr) minmax(138px, 1.2fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.navigator-pane,
	.navigator-backdrop {
		transition: none;
	}
}

/* Manager-controlled appearance tokens and Design Lab ------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
legend {
	font-family: var(--font-heading, var(--font-sans));
}

html,
body,
.app-frame {
	background-color: var(--app-page-background, #f8fafc);
}

.workspace-shell,
.content-pane,
.content-root.content-root-projects,
.content-root.content-root-templates,
.content-root.content-root-settings {
	background: var(--app-page-background, #f8fafc);
}

.project-detail-pane,
.navigator-pane,
.navigator-primary-nav {
	background: var(--surface);
}

@media (min-width: 1101px) {
	.workspace-shell {
		grid-template-columns: var(--design-navigation-width, var(--navigator-width)) var(--navigator-divider-width) minmax(0, 1fr);
	}
}

@media (min-width: 1181px) {
	.content-pane.has-project-split {
		grid-template-columns: var(--project-context-width, 260px) minmax(0, 1fr);
	}

	.content-pane.has-project-split.has-project-collection {
		grid-template-columns: var(--project-context-width, 260px) var(--project-collection-width, 320px) minmax(0, 1fr);
	}
}

.appearance-lab {
	display: grid;
	gap: 18px;
	margin-top: 20px;
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--theme-border);
	border-top: 4px solid var(--theme);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.appearance-lab-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.appearance-lab-head h3 {
	margin: 9px 0 7px;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.appearance-lab-head .help-copy {
	max-width: 700px;
	margin: 0;
}

.appearance-title-row,
.appearance-actions,
.appearance-actions-primary,
.appearance-actions-secondary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.manager-badge,
.appearance-unsaved-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.manager-badge {
	border: 1px solid var(--theme-border);
	background: var(--theme-light);
	color: var(--theme-strong);
}

.appearance-unsaved-badge {
	border: 1px solid #f5c56b;
	background: #fff7df;
	color: #8a5200;
}

.appearance-version-copy {
	min-width: min(100%, 260px);
	display: grid;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-muted);
}

.appearance-version-copy strong {
	font-size: 0.82rem;
}

.appearance-version-copy span {
	color: var(--text-muted);
	font-size: 0.71rem;
	line-height: 1.4;
}

.appearance-error {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(185, 28, 28, 0.35);
	border-radius: 8px;
	background: #fff1f2;
	color: var(--danger);
	font-weight: 700;
	line-height: 1.4;
}

.appearance-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.appearance-group {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 14px;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-muted);
}

.appearance-group legend {
	padding: 0 7px;
	color: var(--text);
	font-size: 0.95rem;
	font-weight: 750;
}

.appearance-color-group {
	grid-column: 1 / -1;
}

.appearance-control,
.appearance-range-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 0.9fr);
	align-items: center;
	gap: 14px;
	color: var(--text);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
}

.appearance-control .app-select,
.appearance-select {
	width: 100%;
}

.appearance-select {
	height: 38px;
	padding-left: 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background-color: var(--surface);
	color: var(--text);
}

.appearance-range-control > div {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(90px, 1fr) 50px;
	align-items: center;
	gap: 10px;
}

.appearance-range-control input[type="range"] {
	width: 100%;
	accent-color: var(--theme);
}

.appearance-range-control output,
.appearance-color-picker output {
	color: var(--text-muted);
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 0.72rem;
	font-weight: 650;
	text-align: right;
}

.appearance-group-note {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.72rem;
	line-height: 1.45;
}

.appearance-color-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.appearance-color-control {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--surface);
}

.appearance-color-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.appearance-color-copy strong {
	font-size: 0.8rem;
}

.appearance-color-copy small {
	color: var(--text-muted);
	font-size: 0.68rem;
	line-height: 1.35;
}

.appearance-color-picker {
	display: grid;
	grid-template-columns: 42px 64px;
	align-items: center;
	gap: 8px;
}

.appearance-color-picker input[type="color"] {
	width: 42px;
	height: 34px;
	padding: 2px;
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	background: var(--surface);
	cursor: pointer;
}

.appearance-contrast {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.contrast-check {
	display: grid;
	gap: 3px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--surface-muted);
}

.contrast-check strong {
	font-size: 0.74rem;
}

.contrast-check span {
	font-size: 0.68rem;
	font-weight: 700;
}

.contrast-check.is-pass span {
	color: var(--success);
}

.contrast-check.is-warning {
	border-color: #f5c56b;
	background: #fff9e8;
}

.contrast-check.is-warning span {
	color: #9a5a00;
}

.appearance-actions {
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.appearance-actions-secondary {
	justify-content: flex-end;
}

@media (max-width: 900px) {
	.appearance-lab-head {
		flex-direction: column;
	}

	.appearance-version-copy {
		width: 100%;
	}

	.appearance-groups,
	.appearance-color-grid,
	.appearance-contrast {
		grid-template-columns: minmax(0, 1fr);
	}

	.appearance-color-group {
		grid-column: auto;
	}

	.appearance-actions,
	.appearance-actions-secondary {
		align-items: stretch;
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.appearance-lab {
		padding: 15px;
	}

	.appearance-group {
		padding: 14px;
	}

	.appearance-control,
	.appearance-range-control {
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}

	.appearance-color-control {
		align-items: flex-start;
		flex-direction: column;
	}

	.appearance-actions-primary,
	.appearance-actions-secondary {
		width: 100%;
	}

	.appearance-actions .toolbar-button {
		flex: 1 1 150px;
	}
}

/* Primary workspace navigation and recent-project workflow ---------------- */
.workspace-shell {
	--navigator-width: 80px;
	--navigator-divider-width: 0px;
}

.workspace-shell > .content-pane {
	grid-column: 3;
}

.navigator-pane {
	background: #ffffff;
	border-right: 1px solid var(--line);
}

.navigator-primary-nav {
	flex: 1 1 auto;
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 14px 9px 14px 0;
	border: 0;
	background: #ffffff;
}

.navigator-primary-button {
	position: relative;
	width: 100%;
	min-height: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 6px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: #344b45;
	font-size: 12px;
	font-weight: 650;
	line-height: 1;
	text-align: center;
}

.navigator-primary-button:hover,
.navigator-primary-button:focus-visible {
	border-color: #bfd8d1;
	background: #edf7f4;
	color: var(--theme-strong);
}

.navigator-primary-button:focus-visible {
	outline: 2px solid rgba(15, 118, 110, 0.34);
	outline-offset: 2px;
}

.navigator-primary-button.is-active {
	border-color: var(--theme);
	background: var(--theme);
	color: #ffffff;
	box-shadow: 0 7px 16px rgba(15, 118, 110, 0.16);
}

.navigator-primary-icon {
	width: 25px;
	height: 25px;
	flex: 0 0 25px;
}

.navigator-primary-count {
	position: absolute;
	top: 5px;
	right: 7px;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border: 1px solid #c4dbd5;
	border-radius: 999px;
	background: #ffffff;
	color: var(--theme);
	font-size: 10px;
	font-weight: 750;
}

.navigator-primary-button.is-active .navigator-primary-count {
	border-color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.content-root.content-root-projects {
	display: block;
	overflow: auto;
	padding: clamp(20px, 2.4vw, 36px);
	background:
		linear-gradient(180deg, rgba(231, 243, 240, 0.55), rgba(255, 255, 255, 0) 260px),
		#ffffff;
}

.content-root.content-root-templates,
.content-root.content-root-settings {
	display: block;
	overflow: auto;
	padding: clamp(20px, 2.4vw, 36px);
	background: linear-gradient(180deg, rgba(231, 243, 240, 0.55), rgba(255, 255, 255, 0) 260px), #ffffff;
}

.workspace-page {
	width: min(100%, 1180px);
	margin: 0 auto;
	padding-bottom: 34px;
}

.workspace-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.workspace-page-head h2 {
	margin: 0;
	font-size: clamp(1.65rem, 2.5vw, 2.2rem);
}

.projects-page {
	width: min(100%, 1180px);
	margin: 0 auto;
	display: grid;
	gap: 22px;
	padding-bottom: 34px;
}

.projects-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.projects-page-head h2 {
	margin: 0;
	font-size: clamp(1.65rem, 2.5vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.projects-page-head > div:first-child > p:last-child {
	max-width: 690px;
	margin: 9px 0 0;
	color: var(--text-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.projects-page-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

.projects-collection {
	display: grid;
	gap: 14px;
}

.projects-collection + .projects-collection {
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.projects-collection-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.projects-collection-head h3 {
	margin: 0;
	font-size: 1.2rem;
}

.projects-collection-head p {
	margin: 5px 0 0;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.projects-collection-count {
	display: inline-grid;
	min-width: 28px;
	height: 28px;
	place-items: center;
	padding: 0 8px;
	border: 1px solid #bfd8d1;
	border-radius: 999px;
	background: #edf7f4;
	color: var(--theme-strong);
	font-size: 0.76rem;
	font-weight: 750;
}

.projects-workflow-list {
	display: grid;
	gap: 14px;
}

.projects-workflow-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 118, 110, 0.055);
}

.projects-workflow-card.is-expanded {
	border-color: #a8c9c0;
	box-shadow: 0 13px 30px rgba(15, 118, 110, 0.09);
}

.projects-workflow-card-head {
	min-height: 78px;
	display: grid;
	grid-template-columns: 34px 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 12px 14px 12px 8px;
}

.projects-card-disclosure.tree-disclosure {
	width: 34px;
	min-height: 42px;
	padding: 0;
	border-radius: 4px;
}

.projects-card-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 1px solid #c9ddd8;
	border-radius: 5px;
	background: #f3f9f7;
}

.projects-card-icon img {
	width: 25px;
	height: 25px;
	object-fit: contain;
}

.projects-card-identity {
	min-width: 0;
}

.projects-card-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.projects-card-title-row h3 {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: var(--text);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.projects-card-identity > p {
	margin: 6px 0 0;
	overflow: hidden;
	color: var(--text-muted);
	font-size: 0.78rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.projects-open-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 0 11px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--theme);
	font-size: 0.82rem;
	font-weight: 700;
}

.projects-open-button:hover,
.projects-open-button:focus-visible {
	border-color: #bfd8d1;
	background: #edf7f4;
}

.projects-workflow-card-body {
	padding: 0 14px 15px 53px;
	border-top: 1px solid #e2ece9;
	background: #fbfdfc;
}

.project-workflow-stage {
	border-bottom: 1px solid #e0ebe8;
}

.project-workflow-stage:last-child {
	border-bottom: 0;
}

.project-workflow-stage > summary {
	min-height: 64px;
	display: grid;
	grid-template-columns: 26px 34px minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 11px;
	padding: 9px 8px;
	list-style: none;
	cursor: pointer;
	color: var(--text);
}

.project-workflow-stage > summary::-webkit-details-marker {
	display: none;
}

.project-workflow-stage > summary:hover {
	background: #f0f8f6;
}

.project-workflow-stage-number {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border: 1px solid #bfd3ce;
	border-radius: 999px;
	background: #ffffff;
	color: var(--theme-strong);
	font-size: 11px;
	font-weight: 750;
}

.project-workflow-stage-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 4px;
	background: var(--surface-subtle);
}

.project-workflow-stage-icon img {
	width: 21px;
	height: 21px;
	object-fit: contain;
}

.project-workflow-stage-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.project-workflow-stage-copy strong {
	font-size: 0.9rem;
	line-height: 1.25;
}

.project-workflow-stage-copy > span {
	overflow: hidden;
	color: var(--text-muted);
	font-size: 0.75rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.projects-status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--text-muted);
	font-size: 0.68rem;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
}

.projects-status-badge.is-complete {
	border-color: #9fcfc0;
	background: #e9f7f2;
	color: var(--theme-strong);
}

.projects-status-badge.is-progress {
	border-color: #b9d0ca;
	background: #f4f8f7;
	color: #38564e;
}

.projects-status-badge.is-attention {
	border-color: rgba(180, 72, 72, 0.36);
	background: #fff4f4;
	color: #8a3535;
}

.project-workflow-stage-caret {
	width: 18px;
	height: 18px;
}

.project-workflow-stage[open] > summary .project-workflow-stage-caret::before {
	transform: rotate(90deg);
}

.project-workflow-stage-items {
	display: grid;
	gap: 5px;
	padding: 0 8px 12px 78px;
}

.project-workflow-item {
	width: 100%;
	min-height: 48px;
	display: grid;
	grid-template-columns: 31px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 7px 9px;
	border: 1px solid #d6e4e0;
	border-radius: 4px;
	background: #ffffff;
	color: var(--text);
	text-align: left;
}

.project-workflow-item:hover,
.project-workflow-item:focus-visible {
	border-color: var(--theme);
	background: #f6fbf9;
}

.project-workflow-item-icon {
	width: 31px;
	height: 31px;
	display: grid;
	place-items: center;
	border-radius: 3px;
	background: #eff6f4;
}

.project-workflow-item-icon img {
	width: 19px;
	height: 19px;
	object-fit: contain;
}

.project-workflow-item-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.project-workflow-item-copy strong,
.project-workflow-item-copy span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.project-workflow-item-copy strong {
	font-size: 0.82rem;
}

.project-workflow-item-copy span {
	color: var(--text-muted);
	font-size: 0.72rem;
}

.project-workflow-item-open {
	color: var(--theme);
	font-size: 1rem;
}

.project-workflow-action {
	grid-template-columns: 31px minmax(0, 1fr);
	border-style: dashed;
	color: var(--theme-strong);
}

.project-workflow-action .project-workflow-item-icon {
	color: var(--theme);
	font-size: 1.4rem;
	line-height: 1;
}

.project-workflow-stage-empty {
	margin: 0;
	padding: 12px;
	border: 1px dashed #c8d9d5;
	border-radius: 4px;
	background: #ffffff;
	color: var(--text-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

.projects-empty-state {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 22px;
	border: 1px dashed var(--line-strong);
	border-radius: 6px;
	background: #fbfdfc;
}

.projects-empty-icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 5px;
	background: var(--surface-subtle);
}

.projects-empty-icon img {
	width: 27px;
	height: 27px;
}

.projects-empty-state h3 {
	margin: 0;
	font-size: 1rem;
}

.projects-empty-state p {
	margin: 6px 0 0;
	color: var(--text-muted);
	line-height: 1.45;
}

@media (max-width: 1100px) {
	.workspace-shell > .content-pane {
		grid-column: auto;
	}

	.navigator-primary-nav {
		gap: 4px;
		padding: 10px;
	}

	.navigator-primary-button {
		min-height: 50px;
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		padding: 8px 12px;
		font-size: 14px;
		text-align: left;
	}

	.navigator-primary-icon {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
	}

	.navigator-primary-count {
		position: static;
		margin-left: auto;
	}

	.content-root.content-root-projects,
	.content-root.content-root-templates,
	.content-root.content-root-settings {
		padding: 20px 16px 30px;
	}
}

@media (max-width: 720px) {
	.projects-page-head,
	.workspace-page-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.projects-page-actions {
		justify-content: flex-start;
	}

	.projects-workflow-card-head {
		grid-template-columns: 32px 38px minmax(0, 1fr);
		gap: 9px;
		padding-right: 10px;
	}

	.projects-card-icon {
		width: 38px;
		height: 38px;
	}

	.projects-open-button {
		grid-column: 3;
		justify-self: start;
		min-height: 30px;
		padding: 0;
	}

	.projects-workflow-card-body {
		padding: 0 8px 10px;
	}

	.project-workflow-stage > summary {
		grid-template-columns: 24px 30px minmax(0, 1fr) 16px;
		gap: 8px;
		padding-inline: 5px;
	}

	.project-workflow-stage-icon {
		width: 30px;
		height: 30px;
	}

	.project-workflow-stage > summary .projects-status-badge {
		grid-column: 3;
		justify-self: start;
	}

	.project-workflow-stage-caret {
		grid-column: 4;
		grid-row: 1 / span 2;
	}

	.project-workflow-stage-items {
		padding-left: 67px;
	}

	.projects-empty-state {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.projects-empty-state .toolbar-button {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 480px) {
	.content-root.content-root-projects {
		padding: 16px 10px 24px;
	}

	.projects-page-actions {
		width: 100%;
	}

	.projects-page-actions .toolbar-button {
		flex: 1 1 145px;
	}

	.project-workflow-stage-items {
		padding-left: 5px;
	}

	.project-workflow-item-copy span {
		white-space: normal;
	}
}

/* Project master-detail workspace ---------------------------------------- */
.content-pane.has-project-split {
	display: grid;
	grid-template-columns: clamp(250px, 20vw, 260px) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	overflow: hidden;
}

.content-pane.has-project-split > .content-head {
	grid-column: 2;
	grid-row: 1;
}

.content-pane.has-project-split > .content-root {
	display: contents;
}

.project-context-pane {
	grid-column: 1;
	grid-row: 1 / span 2;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: auto;
	border-right: 1px solid var(--line);
	background: #f7fbfa;
	scrollbar-width: thin;
}

.project-context-head {
	display: grid;
	gap: 12px;
	padding: 16px 14px 14px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.project-context-current-label {
	color: var(--theme-strong) !important;
	font-size: 0.62rem !important;
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1 !important;
	text-transform: uppercase;
}

.project-context-back,
.project-context-footer-button {
	width: max-content;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 2px;
	border: 0;
	background: transparent;
	color: var(--theme);
	font-size: 0.78rem;
	font-weight: 700;
}

.project-context-back:hover,
.project-context-back:focus-visible,
.project-context-footer-button:hover,
.project-context-footer-button:focus-visible {
	color: var(--theme-strong);
	text-decoration: underline;
}

.project-context-identity {
	min-width: 0;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}

.project-context-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid #c9ddd8;
	border-radius: 5px;
	background: #f3f9f7;
}

.project-context-icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.project-context-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.project-context-copy strong,
.project-context-copy > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.project-context-copy strong {
	font-size: 0.94rem;
	line-height: 1.25;
}

.project-context-copy > span {
	color: var(--text-muted);
	font-size: 0.71rem;
	line-height: 1.35;
}

.project-context-overview {
	width: 100%;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid #d6e4e0;
	border-radius: 4px;
	background: #ffffff;
	color: var(--text);
	font-size: 0.82rem;
	font-weight: 700;
	text-align: left;
}

.project-context-overview:hover,
.project-context-overview:focus-visible,
.project-context-overview.is-active {
	border-color: var(--theme);
	background: #eaf6f2;
	color: var(--theme-strong);
}

.project-context-overview.is-active {
	box-shadow: inset 3px 0 0 var(--theme);
}

.project-context-workflow {
	flex: 1 0 auto;
	padding: 4px 12px 12px;
}

.project-context-workflow .project-workflow-stage > summary {
	grid-template-columns: 24px 30px minmax(0, 1fr) 16px;
	grid-template-rows: auto auto;
	gap: 5px 8px;
	padding: 10px 4px;
}

.project-context-workflow .project-workflow-stage-icon {
	width: 30px;
	height: 30px;
	grid-row: 1 / span 2;
}

.project-context-workflow .project-workflow-stage-icon img {
	width: 19px;
	height: 19px;
}

.project-context-workflow .project-workflow-stage-number {
	grid-row: 1 / span 2;
}

.project-context-workflow .project-workflow-stage-copy {
	grid-column: 3;
	grid-row: 1;
}

.project-context-workflow .project-workflow-stage-copy strong {
	font-size: 0.83rem;
}

.project-context-workflow .project-workflow-stage-copy > span {
	font-size: 0.69rem;
}

.project-context-workflow .project-workflow-stage > summary .projects-status-badge {
	grid-column: 3;
	grid-row: 2;
	justify-self: start;
}

.project-context-workflow .project-workflow-stage-caret {
	grid-column: 4;
	grid-row: 1 / span 2;
}

.project-context-workflow .project-workflow-stage-items {
	gap: 5px;
	padding: 0 2px 10px 62px;
}

.project-context-workflow .project-workflow-item {
	min-height: 44px;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 8px;
	padding: 6px 8px;
}

.project-context-workflow .project-workflow-item-icon {
	width: 28px;
	height: 28px;
}

.project-context-workflow .project-workflow-item-icon img {
	width: 17px;
	height: 17px;
}

.project-context-workflow .project-workflow-item.is-active {
	border-color: var(--theme);
	background: #eaf6f2;
	box-shadow: inset 3px 0 0 var(--theme);
	color: var(--theme-strong);
}

.project-context-workflow .project-workflow-item.is-active .project-workflow-item-copy span {
	color: #38564e;
}

.project-context-workflow .project-workflow-stage-empty {
	padding: 9px;
	font-size: 0.74rem;
}

.project-context-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding: 12px 14px;
	border-top: 1px solid var(--line);
	background: #ffffff;
}

.project-detail-pane {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
	min-height: 0;
	display: grid;
	align-content: start;
	gap: 16px;
	overflow: auto;
	padding: 18px 20px 20px;
	background: #ffffff;
}

.project-detail-pane.is-desktop {
	display: flex;
	flex-direction: column;
	align-content: normal;
	gap: 0;
	overflow: hidden;
	padding: 0;
}

.project-detail-pane.is-desktop > .draft-recovery-banner {
	margin: 12px;
}

.project-detail-pane.is-desktop > .desktop-editor-shell,
.project-detail-pane.is-desktop > .housing-shell,
.project-detail-pane.is-desktop > .commerce-shell,
.project-detail-pane.is-desktop > .main-connection-shell,
.project-detail-pane.is-desktop > .transformers-shell {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.project-detail-pane.is-desktop > .empty-state {
	margin: 18px 16px 0;
}

@media (max-width: 1280px) {
	.content-pane.has-project-split {
		grid-template-columns: clamp(230px, 19vw, 240px) minmax(0, 1fr);
	}

	.project-context-head {
		padding-inline: 12px;
	}

	.project-context-workflow {
		padding-inline: 8px;
	}

	.project-context-workflow .project-workflow-stage-items {
		padding-left: 54px;
	}
}

@media (max-width: 720px) {
	.content-pane.has-project-split {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	.content-pane.has-project-split > .content-root {
		display: contents;
	}

	.content-pane.has-project-split .project-context-pane {
		order: 1;
	}

	.content-pane.has-project-split > .content-head {
		order: 2;
	}

	.content-pane.has-project-split .project-detail-pane {
		order: 3;
	}

	.project-context-pane {
		width: 100%;
		max-height: min(46vh, 390px);
		flex: none;
		overflow: auto;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.project-context-head {
		padding: 12px;
	}

	.project-context-footer {
		display: none;
	}

	.project-detail-pane,
	.project-detail-pane.is-desktop {
		width: 100%;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.project-detail-pane {
		padding: 12px;
	}

	.project-detail-pane.is-desktop {
		display: block;
		padding: 0;
	}

	.project-detail-pane.is-desktop > .desktop-editor-shell,
	.project-detail-pane.is-desktop > .housing-shell,
	.project-detail-pane.is-desktop > .commerce-shell,
	.project-detail-pane.is-desktop > .main-connection-shell,
	.project-detail-pane.is-desktop > .transformers-shell {
		flex: none;
		height: auto;
		overflow: visible;
	}
}

/* VoltAI-inspired visual refinement --------------------------------------
   This layer changes presentation and hierarchy only. Existing controls,
   actions, field paths, and calculation behavior remain unchanged. */
:root {
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
	--toolbar-height: 58px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
}

label,
button,
summary {
	line-height: 1.25;
}

button,
summary,
a,
input,
select,
textarea,
.home-project-type-card,
.home-recent-card,
.projects-workflow-card,
.project-collection-row,
.project-context-section-button {
	transition:
		background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
		border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1),
		color 150ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 0;
	border-color: var(--theme) !important;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
}

.app-frame {
	padding: 0;
	background: var(--surface-muted);
}

/* Quiet global toolbar with all original actions retained. */
.toolbar-shell {
	position: relative;
	z-index: 40;
	min-height: var(--toolbar-height);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
	backdrop-filter: blur(16px);
}

.toolbar-brand {
	height: 40px;
	gap: 9px;
	padding: 0 16px 0 0;
	border-right: 1px solid var(--line);
}

.toolbar-brand img {
	width: 30px;
	height: 30px;
}

.toolbar-brand span {
	color: var(--text);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.05em;
}

.toolbar-primary-actions {
	flex: 0 0 auto;
	width: auto;
}

.project-menu-trigger,
.toolbar-menu.project-menu > summary.project-menu-trigger {
	width: auto;
	min-width: 112px;
	height: 38px;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: none;
	color: var(--text);
	font-size: 13px;
	font-weight: 650;
}

.project-menu-trigger:hover,
.toolbar-menu.project-menu[open] > summary.project-menu-trigger {
	border-color: #b7d2cb;
	background: #f2f8f6;
	color: var(--theme-strong);
}

.project-menu-trigger::after {
	display: none !important;
}

.project-menu-trigger > svg,
.project-menu-panel .menu-item svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.project-menu-chevron {
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.project-menu[open] .project-menu-chevron {
	transform: translateY(2px) rotate(225deg);
}

.project-menu .project-menu-panel {
	top: calc(100% + 7px);
	right: auto;
	left: 0;
	min-width: 224px;
	padding: 7px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.project-menu .menu-item {
	height: 40px;
	min-height: 40px;
	border-radius: 7px;
	font-weight: 550;
}

.toolbar-secondary-actions {
	margin-left: auto;
	gap: 5px;
}

.toolbar-save-button,
.icon-button,
.toolbar-menu.more-menu > summary.more-menu-trigger {
	height: 38px;
	min-height: 38px;
	border-radius: 8px;
	box-shadow: none;
}

.toolbar-save-button {
	min-width: 78px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 12px;
	border: 1px solid var(--theme);
	background: var(--theme);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.toolbar-save-button:hover {
	border-color: var(--theme-strong);
	background: var(--theme-strong);
}

.toolbar-save-button.is-saving,
.toolbar-save-button.is-saving:hover {
	border-color: var(--accent);
	background: var(--accent);
}

.toolbar-save-button.is-saved,
.toolbar-save-button.is-saved:hover {
	border-color: var(--success);
	background: var(--success);
}

.toolbar-save-button.is-failed,
.toolbar-save-button.is-failed:hover {
	border-color: var(--danger);
	background: var(--danger);
}

.toolbar-save-button.is-saving svg {
	animation: save-button-pulse 0.85s ease-in-out infinite;
}

.save-feedback {
	position: fixed;
	z-index: 45;
	top: calc(var(--toolbar-height) + 12px);
	right: 16px;
	width: min(420px, calc(100vw - 32px));
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 9px;
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.save-feedback.is-saved {
	border-left-color: var(--success);
}

.save-feedback.is-failed {
	border-left-color: var(--danger);
}

.save-feedback[hidden] {
	display: none;
}

.toolbar-save-button svg,
.icon-button svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.icon-button {
	width: 38px;
	min-width: 38px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--text-muted);
}

.icon-button:hover {
	border-color: var(--line);
	background: var(--surface-subtle);
	color: var(--theme-strong);
}

.icon-button-muted,
.icon-button:disabled {
	opacity: 0.48;
}

.toolbar-menu.more-menu > summary.more-menu-trigger {
	min-width: 78px;
	border: 1px solid var(--line);
	background: #ffffff;
}

.toolbar-menu.more-menu > summary.more-menu-trigger:hover,
.toolbar-menu.more-menu[open] > summary.more-menu-trigger {
	border-color: #b7d2cb;
	background: #f2f8f6;
}

.account-menu {
	margin-left: 5px;
}

.account-avatar {
	background: var(--theme);
}

.more-menu .toolbar-menu-panel,
.account-menu .toolbar-menu-panel {
	top: calc(100% + 7px);
	padding: 7px;
	border-color: var(--line);
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.toolbar-menu-panel .menu-item,
.toolbar-submenu > summary.menu-item {
	border-radius: 7px;
}

.toolbar-menu-panel .menu-item img {
	filter: grayscale(1) saturate(0.2);
	opacity: 0.76;
}

.toolbar-menu-panel .menu-item:hover img,
.toolbar-menu-panel .menu-item:focus-visible img {
	opacity: 1;
}

/* Application rail and card geometry. */
.workspace-shell {
	--navigator-width: 72px;
	--navigator-divider-width: 0px;
	border: 0;
	background: var(--surface);
}

.navigator-pane {
	border-right: 1px solid var(--line);
}

.navigator-primary-nav {
	gap: 7px;
	padding: 12px 8px;
}

.navigator-primary-button {
	min-height: 58px;
	gap: 6px;
	padding: 8px 4px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
}

.navigator-primary-icon {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
}

.navigator-primary-button.is-active {
	box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.navigator-primary-count {
	top: 4px;
	right: 4px;
}

.panel-card,
.pane-card,
.titled-pane,
.metric-card,
.empty-state,
.modal-window,
.json-drawer,
.sample-library-card,
.summary-pill,
.table-shell,
.jump-card,
.home-project-type-card,
.home-recent-card,
.projects-workflow-card,
.project-details-section,
.project-activity-stat,
.project-activity-entry,
.project-summary-item,
.projects-empty-state,
.settings-panel,
.settings-danger-zone {
	border-radius: 12px;
}

.panel-card,
.pane-card,
.empty-state {
	padding: 20px;
}

.home-welcome {
	border-radius: 14px;
}

.home-project-type-card,
.home-recent-card,
.projects-workflow-card {
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.home-project-type-card:hover,
.home-recent-card:hover,
.projects-workflow-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(15, 118, 110, 0.09);
}

.home-project-type-icon,
.home-recent-icon,
.projects-card-icon,
.project-context-icon,
.project-workflow-stage-icon,
.project-workflow-item-icon,
.project-context-section-icon,
.project-context-phase-icon {
	border-radius: 9px;
	background: #f0f7f5;
}

/* Guided project workflow. */
.content-pane.has-project-split {
	grid-template-columns: 260px minmax(0, 1fr);
}

.content-pane.has-project-split.has-project-collection {
	grid-template-columns: 260px 320px minmax(0, 1fr);
}

.project-context-pane {
	background: #f8fbfa;
}

.project-context-head {
	gap: 13px;
	padding: 18px 15px 16px;
}

.project-context-icon {
	width: 42px;
	height: 42px;
	border-color: #cfe0dc;
}

.project-context-icon img,
.projects-card-icon img,
.project-workflow-stage-icon img,
.project-workflow-item-icon img,
.project-context-section-icon img,
.project-context-phase-icon img {
	filter: none;
}

.project-context-overview {
	min-height: 42px;
	border-radius: 8px;
}

.project-context-overview.is-active {
	border-color: var(--theme);
	background: var(--theme);
	box-shadow: 0 5px 14px rgba(15, 118, 110, 0.16);
	color: #ffffff;
}

.project-context-workflow {
	padding: 8px 10px 16px;
}

.project-context-section-list,
.project-context-phase-list,
.project-context-phase-sections {
	gap: 7px;
}

.project-context-section-list {
	padding: 5px 0 13px;
}

.project-context-section-button {
	min-height: 66px;
	grid-template-columns: 24px 34px minmax(0, 1fr) 16px;
	gap: 8px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 9px;
}

.project-context-section-button:hover,
.project-context-section-button:focus-visible {
	border-color: #bfd8d1;
	background: #edf7f4;
}

.project-context-section-button.is-active {
	border-color: var(--theme);
	background: var(--theme);
	box-shadow: 0 7px 18px rgba(15, 118, 110, 0.19);
	color: #ffffff;
}

.project-context-section-button.is-active .project-context-section-copy > span,
.project-context-section-button.is-active .project-context-section-open {
	color: rgba(255, 255, 255, 0.82);
}

.project-context-section-button.is-active .project-context-section-icon {
	background: rgba(255, 255, 255, 0.14);
}

.project-context-section-button.is-active .project-context-section-icon img {
	filter: brightness(0) invert(1);
}

.project-context-section-button.is-active .projects-status-badge {
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.project-context-section-icon {
	width: 34px;
	height: 34px;
}

.project-context-section-copy {
	gap: 3px;
}

.project-context-section-copy strong {
	font-size: 0.8rem;
	line-height: 1.2;
}

.project-context-section-copy .project-context-section-note {
	font-size: 0.68rem;
	line-height: 1.25;
}

.project-context-section-copy .projects-status-badge {
	width: max-content;
	min-height: 18px;
	margin-top: 2px;
	padding: 1px 6px;
	font-size: 0.6rem;
}

.projects-status-badge.is-pending {
	border-color: var(--line);
	background: var(--surface-subtle);
	color: var(--text-muted);
}

.project-context-phase {
	border-radius: 9px;
	overflow: hidden;
}

.project-context-footer {
	padding: 13px 15px;
}

/* Collection list: compact, scan-friendly, and contextual. */
.project-collection-pane {
	background: #f8fbfa;
}

.project-collection-head {
	padding: 18px 16px;
}

.project-collection-head h3 {
	font-size: 1.05rem;
	line-height: 1.25;
}

.project-collection-add {
	min-height: 36px;
	border-radius: 7px;
}

.project-collection-table-head {
	min-height: 38px;
	background: var(--surface-muted);
	font-size: 0.65rem;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.project-collection-table-body {
	gap: 7px;
	padding: 10px;
}

.project-collection-row {
	border-radius: 8px;
}

.project-collection-row.is-selected {
	box-shadow: inset 3px 0 0 var(--theme), 0 4px 12px rgba(15, 118, 110, 0.08);
}

.project-collection-row-select {
	min-height: 56px;
}

.project-collection-delete {
	border-radius: 7px;
	opacity: 0;
	transform: translateX(3px);
}

.project-collection-row:hover .project-collection-delete,
.project-collection-row:focus-within .project-collection-delete {
	opacity: 1;
	transform: translateX(0);
}

.project-detail-pane {
	padding: 24px;
	background: var(--surface-muted);
}

.project-detail-pane.is-desktop {
	padding: 0;
	background: #ffffff;
}

/* Project information: Details and Notes share the first desktop row. */
.project-details-pane,
.desktop-description-pane.project-details-pane {
	width: min(100%, 1320px);
	min-height: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	align-items: stretch;
	gap: 20px;
	padding: 24px;
	background: var(--surface-muted);
}

.project-details-pane::after {
	display: none;
}

.project-details-pane .desktop-description-illustration {
	grid-column: 1 / -1;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	margin: 0 auto -2px;
	border: 1px solid #cfe0dc;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

.project-details-pane .desktop-description-illustration img {
	width: 30px;
	height: 30px;
}

.project-details-section {
	gap: 16px;
	padding: 20px;
	border-color: var(--line);
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.project-details-section-head {
	padding-bottom: 14px;
}

.project-details-section-head h3 {
	font-size: 1rem;
}

.project-details-section-head .help-copy {
	font-size: 0.82rem;
}

.project-details-form .desktop-form-row {
	grid-template-columns: minmax(125px, 160px) minmax(0, 1fr);
	gap: 12px;
}

.project-details-form .desktop-form-label {
	color: var(--text-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.project-details-form .desktop-form-control input,
.project-details-form .desktop-form-control select,
.project-details-form .desktop-form-control textarea,
.project-details-form .desktop-static-value {
	max-width: 100%;
}

.project-details-form .desktop-form-control input,
.project-details-form .desktop-form-control select,
.project-details-form .desktop-form-control textarea {
	border-radius: 7px;
	box-shadow: none;
}

.project-notes-section .project-details-form,
.project-notes-section .desktop-form-row,
.project-notes-section .desktop-form-control {
	height: 100%;
}

.project-notes-input {
	min-height: 252px !important;
	line-height: 1.6 !important;
}

.project-activity-section,
.project-other-section {
	grid-column: 1 / -1;
}

.project-activity-summary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.project-activity-stat {
	padding: 14px;
}

.project-activity-entry {
	padding: 12px 14px;
}

/* Forms, cards, and editable controls. */
.field-card,
.housing-detail-name-row,
.desktop-editor-shell,
.housing-shell,
.commerce-shell,
.main-connection-shell,
.transformers-shell {
	border-radius: 12px;
}

.desktop-form-control input,
.desktop-form-control select,
.desktop-form-control textarea,
.housing-form-control input,
.housing-form-control select,
.commerce-form-control input,
.commerce-form-control select,
.commerce-form-control textarea,
.field-card input,
.field-card select,
.field-card textarea,
.form-row input,
.form-row select,
.form-row textarea,
.table-shell input,
.table-shell select,
.main-connection-main-input,
.fx-dialog-input {
	border-radius: 7px;
	box-shadow: none;
}

.toolbar-button,
.fx-dialog-button,
.desktop-title-button,
.main-connection-inline-button {
	border-radius: 7px;
	box-shadow: none;
}

.toolbar-button {
	background: var(--theme);
	border-color: var(--theme);
	color: #ffffff;
	font-weight: 650;
}

.toolbar-button:hover {
	background: var(--theme-strong);
	border-color: var(--theme-strong);
}

.toolbar-button-secondary {
	border-color: var(--line-strong);
	background: #ffffff;
	color: var(--text);
}

.toolbar-button-secondary:hover {
	border-color: #b7d2cb;
	background: #f2f8f6;
	color: var(--theme-strong);
}

.tab-button {
	border-radius: 8px 8px 0 0;
}

.titled-pane-header,
.desktop-section-header,
.housing-section-header,
.commerce-section-header,
.main-connection-section-header,
.transformers-section-header {
	background: var(--surface-muted);
}

/* Dense technical tables read as a modern results ledger. */
.table-shell,
.desktop-floor-table-shell,
.housing-table-shell,
.commerce-table-shell,
.main-connection-table-shell,
.transformers-table-shell {
	border-radius: 9px;
}

table {
	font-size: 13px;
}

thead,
thead th {
	background: var(--surface-muted);
}

thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	height: 38px;
	padding: 9px 12px;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

tbody td {
	min-height: 40px;
	padding: 10px 12px;
	line-height: 1.35;
}

tbody tr:hover > td {
	background: #f6faf9;
}

.desktop-floor-section-row td,
.transformers-table .desktop-floor-section-row td,
.main-connection-table .desktop-floor-section-row td {
	background: #eef6f4;
	color: var(--theme-strong);
	font-weight: 700;
}

/* Calculation totals become the visual destination. */
.main-connection-section:has(.main-connection-total-grid),
.transformers-section:has(.transformers-total-grid) {
	border: 2px solid var(--theme);
	background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
	box-shadow: 0 12px 30px rgba(15, 118, 110, 0.09);
}

.main-connection-section:has(.main-connection-total-grid) .main-connection-section-header,
.transformers-section:has(.transformers-total-grid) .transformers-section-header {
	background: transparent;
}

.main-connection-total-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
	grid-template-rows: auto auto auto;
	gap: 7px 20px;
	align-items: center;
	padding: 8px 4px 14px;
}

.main-connection-total-line,
.main-connection-total-equals {
	display: none;
}

.main-connection-total-label-description {
	grid-column: 1;
	grid-row: 1;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.main-connection-total-label-value {
	grid-column: 1;
	grid-row: 2;
	font-size: 1.05rem;
	font-weight: 700;
}

.main-connection-total-voltage-description,
.main-connection-total-voltage-value {
	grid-column: 1;
	grid-row: 3;
	color: var(--text-muted);
	font-size: 0.78rem;
}

.main-connection-total-voltage-description {
	display: none;
}

.main-connection-total-label-final {
	grid-column: 2;
	grid-row: 1 / span 2;
	justify-self: center;
	color: var(--text);
	font-size: clamp(2rem, 3vw, 2.55rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.main-connection-total-voltage-final {
	grid-column: 2;
	grid-row: 3;
	justify-self: center;
	color: var(--theme);
	font-size: 0.78rem;
	font-weight: 700;
}

.main-connection-total-meta {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #cce2dc;
}

.transformers-total-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
	grid-template-rows: auto auto auto auto;
	gap: 7px 20px;
	align-items: center;
	padding: 8px 4px 12px;
}

.transformers-total-line,
.transformers-total-equals {
	display: none;
}

.transformers-total-label-description {
	grid-column: 1;
	grid-row: 1;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.transformers-total-label-value {
	grid-column: 1;
	grid-row: 2;
	font-size: 1.05rem;
	font-weight: 700;
}

.transformers-total-voltage-description,
.transformers-total-voltage-value {
	grid-column: 1;
	grid-row: 3;
	color: var(--text-muted);
	font-size: 0.78rem;
}

.transformers-total-voltage-description {
	display: none;
}

.transformers-total-label-final {
	grid-column: 2;
	grid-row: 1 / span 2;
	justify-self: center;
	color: var(--text);
	font-size: clamp(2rem, 3vw, 2.55rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.transformers-total-voltage-final {
	grid-column: 2;
	grid-row: 3;
	justify-self: center;
	color: var(--theme);
	font-size: 0.78rem;
	font-weight: 700;
}

.transformers-main-connection-label {
	grid-column: 1;
	grid-row: 4;
	padding-top: 12px;
	border-top: 1px solid #cce2dc;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.transformers-main-connection-value {
	grid-column: 2;
	grid-row: 4;
	justify-self: center;
	padding-top: 12px;
	color: var(--theme-strong);
	font-size: 1.15rem;
}

.transformers-summary-strip {
	gap: 12px;
}

.transformers-summary-item {
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

/* Tablet: keep the workflow visible while giving the editor full width. */
@media (max-width: 1180px) and (min-width: 721px) {
	.content-pane.has-project-split {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.content-pane.has-project-split.has-project-collection {
		grid-template-columns: 240px minmax(0, 1fr);
		grid-template-rows: minmax(220px, 34vh) minmax(0, 1fr);
	}

	.content-pane.has-project-split.has-project-collection .project-context-pane {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.content-pane.has-project-split.has-project-collection .project-collection-pane {
		grid-column: 2;
		grid-row: 1;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.content-pane.has-project-split.has-project-collection .project-detail-pane {
		grid-column: 2;
		grid-row: 2;
	}

	.project-details-pane,
	.desktop-description-pane.project-details-pane {
		grid-template-columns: minmax(0, 1fr);
	}

	.project-details-section,
	.project-activity-section,
	.project-other-section {
		grid-column: 1;
	}
}

/* Compact layouts use the existing off-canvas global navigator and a
   horizontal, touch-friendly project workflow. */
@media (max-width: 1100px) {
	.toolbar-shell {
		position: sticky;
		top: 0;
		min-height: 58px;
		display: flex;
		flex-wrap: nowrap;
		gap: 6px;
		padding: max(6px, env(safe-area-inset-top)) 8px 6px;
	}

	.navigator-toggle {
		order: 0;
		height: 44px;
		min-height: 44px;
		border-radius: 9px;
		background: #ffffff;
	}

	.toolbar-brand {
		order: 1;
		width: auto;
		height: 44px;
		padding-right: 8px;
	}

	.toolbar-primary-actions {
		order: 2;
		width: auto;
		flex: 0 0 auto;
		overflow: visible;
	}

	.toolbar-secondary-actions {
		order: 3;
		width: auto;
		flex: 0 0 auto;
		margin-left: auto;
		overflow: visible;
	}

	.project-menu-trigger,
	.toolbar-menu.project-menu > summary.project-menu-trigger,
	.toolbar-save-button,
	.icon-button,
	.toolbar-menu.more-menu > summary.more-menu-trigger,
	.toolbar-menu.account-menu > summary.account-menu-trigger {
		height: 44px;
		min-height: 44px;
	}

	.project-menu .project-menu-panel,
	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel,
	.toolbar-menu-panel {
		position: fixed;
		top: 62px;
		right: 8px;
		left: auto;
		max-height: calc(100dvh - 70px);
		overflow: auto;
	}

	.project-menu .project-menu-panel {
		right: auto;
		left: 8px;
	}

	.navigator-primary-nav {
		gap: 5px;
		padding: 10px;
	}

	.navigator-primary-button {
		min-height: 50px;
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		padding: 8px 12px;
		font-size: 14px;
		text-align: left;
	}

	.navigator-primary-count {
		position: static;
		margin-left: auto;
	}

	.project-collection-delete {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 720px) {
	html,
	body,
	.app-frame,
	.toolbar-shell,
	.workspace-shell,
	.content-pane,
	.content-pane.has-project-split {
		width: 100vw !important;
		max-width: 100vw !important;
		min-width: 0 !important;
	}

	body,
	.app-frame,
	.workspace-shell,
	.content-pane,
	.content-pane.has-project-split {
		overflow-x: clip !important;
	}

	.toolbar-shell {
		min-height: 58px;
		display: flex;
		align-content: normal;
	}

	.toolbar-brand {
		width: 34px;
		flex: 0 0 34px;
		padding: 0;
		border: 0;
	}

	.toolbar-brand span {
		display: none;
	}

	.toolbar-brand img {
		width: 30px;
		height: 30px;
	}

	.toolbar-secondary-actions > [data-action="undo"],
	.toolbar-secondary-actions > [data-action="redo"] {
		display: none;
	}

	.more-menu .toolbar-menu-panel,
	.account-menu .toolbar-menu-panel,
	.toolbar-menu-panel,
	.project-menu .project-menu-panel {
		top: 62px;
	}

	.content-pane.has-project-split {
		display: flex;
		flex-direction: column;
	}

	.content-pane.has-project-split .project-context-pane {
		order: 1;
	}

	.content-pane.has-project-split .project-collection-pane {
		order: 2;
	}

	.content-pane.has-project-split .project-detail-pane {
		order: 3;
	}

	.project-context-pane {
		width: 100vw !important;
		max-width: 100vw !important;
		min-width: 0 !important;
		max-height: min(52vh, 430px);
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.project-context-head,
	.project-context-workflow,
	.project-context-phases-head,
	.project-context-phase-list,
	.project-context-phase,
	.project-context-phase > summary,
	.project-context-phase-sections {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.project-context-head {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px;
		padding: 12px;
	}

	.project-context-back {
		grid-column: 1 / -1;
	}

	.project-context-overview {
		width: auto;
		min-width: 132px;
	}

	.project-context-workflow {
		padding: 6px 10px 12px;
	}

	.project-context-section-list {
		width: calc(100vw - 20px);
		max-width: calc(100vw - 20px);
		min-width: 0;
		grid-auto-flow: column;
		grid-auto-columns: minmax(210px, 72vw);
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}

	.project-context-section-button {
		scroll-snap-align: start;
	}

	.project-collection-pane {
		width: 100vw;
		max-width: 100vw;
		min-width: 0;
		max-height: none;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.project-collection-head {
		padding: 14px 12px;
	}

	.project-detail-pane,
	.project-detail-pane.is-desktop {
		width: 100vw;
		max-width: 100vw;
		min-width: 0;
		padding: 0;
		background: #ffffff;
	}

	.project-details-pane,
	.desktop-description-pane.project-details-pane {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 14px 12px 24px;
	}

	.project-details-section,
	.project-activity-section,
	.project-other-section {
		grid-column: 1;
	}

	.project-details-form .desktop-form-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.project-details-form .desktop-form-label {
		justify-self: start;
		text-align: left;
	}

	.project-activity-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-collection-table-head {
		display: none;
	}

	.project-collection-table-body {
		padding: 10px 12px 14px;
	}

	.project-collection-row-select {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 12px;
		padding: 11px 8px 11px 12px;
	}

	.project-collection-row-select strong {
		grid-column: 1 / -1;
		font-size: 0.86rem;
	}

	.project-collection-row-select span {
		display: grid;
		gap: 3px;
	}

	.project-collection-row-select span::before {
		content: "Value";
		color: var(--text-muted);
		font-size: 0.58rem;
		font-weight: 700;
		letter-spacing: 0.045em;
		text-transform: uppercase;
	}

	.project-collection-row-select[data-kind="housing"] span:nth-of-type(1)::before,
	.project-collection-row-select[data-kind="commerce"] span:nth-of-type(1)::before {
		content: "Amps";
	}

	.project-collection-row-select[data-kind="housing"] span:nth-of-type(2)::before {
		content: "Apartments";
	}

	.project-collection-row-select[data-kind="commerce"] span:nth-of-type(2)::before {
		content: "Occupancies";
	}

	.project-collection-row-select[data-kind="floor"] span:nth-of-type(1)::before {
		content: "Apartments";
	}

	.project-collection-row-select[data-kind="floor"] span:nth-of-type(2)::before {
		content: "Occupancies";
	}

	.project-collection-row-select[data-kind="transformers"] span:nth-of-type(1)::before {
		content: "Total load";
	}

	.project-collection-row-select[data-kind="transformers"] span:nth-of-type(2)::before {
		content: "Transformers";
	}

	.desktop-floor-table,
	.housing-table,
	.commerce-table,
	.main-connection-table,
	.transformers-table {
		min-width: 720px;
	}

	.desktop-floor-table th:first-child,
	.desktop-floor-table td:first-child,
	.housing-table th:first-child,
	.housing-table td:first-child,
	.commerce-table th:first-child,
	.commerce-table td:first-child,
	.main-connection-table th:first-child,
	.main-connection-table td:first-child,
	.transformers-table th:first-child,
	.transformers-table td:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #ffffff;
		box-shadow: 1px 0 0 var(--line);
	}

	.desktop-floor-table th:first-child,
	.housing-table th:first-child,
	.commerce-table th:first-child,
	.main-connection-table th:first-child,
	.transformers-table th:first-child {
		z-index: 3;
		background: var(--surface-muted);
	}

	.main-connection-total-grid,
	.transformers-total-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 8px;
	}

	.main-connection-total-grid > *,
	.transformers-total-grid > * {
		grid-column: 1 !important;
		grid-row: auto !important;
		justify-self: start !important;
	}

	.main-connection-total-label-final,
	.transformers-total-label-final {
		margin-top: 6px;
		font-size: 2.25rem;
	}

	.main-connection-total-voltage-final,
	.transformers-total-voltage-final {
		margin-bottom: 8px;
	}

	.transformers-main-connection-value {
		padding-top: 0;
	}
}

@media (max-width: 480px) {
	.toolbar-shell {
		gap: 4px;
		padding-inline: 6px;
	}

	.navigator-toggle,
	.project-menu-trigger,
	.toolbar-menu.project-menu > summary.project-menu-trigger,
	.toolbar-save-button,
	.toolbar-menu.more-menu > summary.more-menu-trigger,
	.toolbar-menu.account-menu > summary.account-menu-trigger {
		width: 42px;
		min-width: 42px;
		padding-inline: 0;
	}

	.navigator-toggle-label,
	.project-menu-trigger > span:not(.project-menu-chevron),
	.project-menu-chevron,
	.toolbar-save-button > span,
	.more-menu-trigger > span:not(.more-trigger-dots),
	.account-name,
	.account-chevron {
		display: none;
	}

	.account-menu {
		margin-left: 0;
	}

	.account-avatar {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	.project-menu .project-menu-panel {
		left: 6px;
	}

	.project-activity-summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.project-details-section {
		padding: 16px;
	}

	.project-notes-input {
		min-height: 190px !important;
	}
}

@media (pointer: coarse) {
	.project-collection-delete {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	button,
	summary,
	a,
	input,
	select,
	textarea,
	.home-project-type-card,
	.home-recent-card,
	.projects-workflow-card,
	.project-collection-row,
	.project-context-section-button {
		transition: none;
	}
}

/* Canonical appearance semantics -----------------------------------------
   Keep this layer last. The legacy application contains several page-level
   style generations; these rules make every manager color control map to one
   stable purpose across all of them. */
html,
body,
.app-frame,
.workspace-shell,
.content-pane,
.content-root,
.content-root.content-root-home,
.content-root.content-root-projects,
.content-root.content-root-templates,
.content-root.content-root-settings,
.project-detail-pane,
.project-detail-pane.is-desktop,
.project-details-pane,
.desktop-description-pane.project-details-pane,
.desktop-editor-shell,
.housing-shell,
.commerce-shell,
.main-connection-shell,
.transformers-shell {
	background: var(--app-page-background, #f8fafc);
	color: var(--text);
}

/* Raised surfaces: chrome, cards, panels, menus, tables, and fields. */
.auth-card,
.toolbar-shell,
.toolbar-menu-panel,
.toolbar-submenu-panel,
.project-menu .project-menu-panel,
.more-menu-panel,
.account-menu-panel,
.navigator-pane,
.navigator-primary-nav,
.content-head,
.statusbar,
.modal-window,
.json-drawer,
.panel-card,
.pane-card,
.titled-pane,
.metric-card,
.empty-state,
.sample-library-card,
.template-library-card,
.project-type-card,
.project-type-card-icon,
.summary-pill,
.settings-panel,
.appearance-lab,
.appearance-color-control,
.home-project-type-card,
.home-recent-card,
.home-welcome-mark,
.projects-workflow-card,
.project-workflow-stage-number,
.projects-status-badge,
.project-workflow-item,
.project-workflow-stage-empty,
.project-context-pane,
.project-context-head,
.project-context-footer,
.project-context-phase,
.project-context-overview,
.project-collection-pane,
.project-collection-head,
.project-collection-row,
.project-collection-empty,
.project-details-pane .desktop-description-illustration,
.project-details-section,
.project-activity-stat,
.project-activity-entry,
.project-summary-item,
.jump-card,
.log-stat-card,
.log-entry,
.fx-transformer-dialog-option,
.fx-local-range-dialog-row,
.desktop-floor-window,
.desktop-editor-panel,
.desktop-titled-pane,
.desktop-floor-table-shell,
.desktop-editor-shell .table-shell,
.desktop-node-card,
.housing-desktop-panel,
.housing-section,
.housing-table-shell,
.main-connection-panel,
.main-connection-section,
.main-connection-table-shell,
.transformers-panel,
.transformers-section,
.transformers-table-shell,
.transformers-summary-item,
.commerce-desktop-panel,
.commerce-section,
.commerce-sub-local-shell,
.commerce-sub-local-card,
.commerce-sub-pane,
.commerce-table-shell {
	background: var(--surface);
	color: var(--text);
}

/* Secondary areas are derived only from the panel color—not the page. */
.appearance-version-copy,
.appearance-group,
.projects-workflow-card-body,
.projects-empty-state,
.home-recent-empty,
.project-context-phase-sections,
.project-collection-table-head,
.project-collection-table-body,
.titled-pane-header,
.desktop-action-toolbar,
.desktop-tab-strip,
.desktop-floor-window-title,
.desktop-floor-toolbar,
.desktop-section-header,
.housing-toolbar,
.housing-tab-strip,
.housing-section-header,
.commerce-toolbar,
.commerce-tab-strip,
.commerce-section-header,
.main-connection-title,
.main-connection-section-header,
.transformers-title,
.transformers-section-header,
thead,
thead th {
	background: var(--surface-muted);
	color: var(--text);
}

.home-welcome {
	border-color: var(--theme-border);
	background: linear-gradient(120deg, var(--surface-selected), var(--surface));
	color: var(--text);
}

/* Form controls always belong to the panel layer. */
.auth-field input,
.project-search-input,
.settings-number-input,
.settings-select-input,
.appearance-select,
.modal-form-field input,
.fx-dialog-input,
.field-card input,
.field-card select,
.field-card textarea,
.form-row input,
.form-row select,
.form-row textarea,
.table-shell input,
.table-shell select,
.drawer-head + textarea,
.desktop-form-control input,
.desktop-form-control select,
.desktop-form-control textarea,
.desktop-form-control input[readonly],
.desktop-form-row-compact .desktop-form-control input,
.desktop-form-row-compact .desktop-form-control select,
.desktop-form-row-compact .desktop-form-control textarea,
.desktop-static-value,
.desktop-floor-editor-control,
.desktop-editor-shell .table-shell input,
.desktop-editor-shell .table-shell select,
.housing-inline-combo-select,
.housing-form-control input,
.housing-form-control select,
.housing-area-controls input,
.housing-area-controls select,
.housing-mode-title select,
.housing-table-shell input,
.housing-table-shell select,
.main-connection-header-select-control,
.main-connection-voltage-select-control,
.main-connection-unit-field-input,
.main-connection-unit-field-static,
.main-connection-main-input,
.commerce-form-control input,
.commerce-form-control select,
.commerce-form-control textarea,
.commerce-number-control,
.commerce-table-text-input,
.commerce-unit-field-input,
.commerce-main-connection-input,
.commerce-inline-combo-select {
	border-color: var(--line-strong);
	background: var(--surface);
	color: var(--text);
}

.desktop-form-control input[readonly],
input:disabled,
select:disabled,
textarea:disabled,
.desktop-floor-editor-control:disabled {
	background: var(--surface-subtle);
	color: var(--text-muted);
}

/* Tables use one consistent panel/stripe/hover hierarchy. */
tbody td,
.desktop-floor-table-row td,
.desktop-floor-table-row:nth-child(even) td,
.table-shell tbody tr:nth-child(odd) > td,
.table-shell tbody tr:nth-child(even) > td,
.commerce-table-shell tbody tr:nth-child(odd) > td,
.commerce-table-shell tbody tr:nth-child(even) > td,
:where(.main-connection-table-shell) tbody tr:nth-child(odd) > td,
:where(.main-connection-table-shell) tbody tr:nth-child(even) > td,
:where(.transformers-table-shell) tbody tr:nth-child(odd) > td,
:where(.transformers-table-shell) tbody tr:nth-child(even) > td {
	background: var(--surface);
	color: var(--text);
}

.desktop-floor-table-row:nth-child(even) td,
.table-shell tbody tr:nth-child(even) > td,
.commerce-table-shell tbody tr:nth-child(even) > td,
:where(.main-connection-table-shell) tbody tr:nth-child(even) > td,
:where(.transformers-table-shell) tbody tr:nth-child(even) > td {
	background: var(--surface-muted);
}

tbody tr:hover > td,
.desktop-floor-table-row:hover td,
.desktop-floor-section-row[data-action]:hover td,
.main-connection-charge-row:hover td,
.main-connection-table .desktop-floor-section-row[data-action]:hover td,
.transformers-table-shell tbody tr.transformers-charge-row:hover > td,
.transformers-table .desktop-floor-section-row[data-action]:hover td {
	background: var(--surface-hover);
}

.desktop-floor-table-row.is-selected td,
.main-connection-charge-row.is-selected td,
.transformers-table-shell tbody tr.transformers-charge-row.is-selected > td {
	background: var(--surface-selected);
}

.desktop-floor-section-row td,
.transformers-table .desktop-floor-section-row td,
.main-connection-table .desktop-floor-section-row td {
	background: var(--theme-light);
	color: var(--theme-strong);
}

.table-shell.has-horizontal-overflow,
.desktop-floor-table-shell.has-horizontal-overflow,
.housing-table-shell.has-horizontal-overflow,
.commerce-table-shell.has-horizontal-overflow,
.main-connection-table-shell.has-horizontal-overflow,
.transformers-table-shell.has-horizontal-overflow {
	background:
		linear-gradient(to right, var(--surface) 30%, transparent) left center / 42px 100% local,
		linear-gradient(to left, var(--surface) 30%, transparent) right center / 42px 100% local,
		radial-gradient(farthest-side at 0 50%, var(--focus-ring), transparent) left center / 12px 100% scroll,
		radial-gradient(farthest-side at 100% 50%, var(--focus-ring), transparent) right center / 12px 100% scroll;
	background-repeat: no-repeat;
}

/* Neutral borders all come from the single Borders control. */
.auth-card,
.auth-field input,
.toolbar-shell,
.toolbar-menu-panel,
.toolbar-submenu-panel,
.project-menu .project-menu-panel,
.navigator-pane,
.content-head,
.statusbar,
.panel-card,
.pane-card,
.titled-pane,
.metric-card,
.empty-state,
.sample-library-card,
.template-library-card,
.project-type-card,
.project-type-card-icon,
.summary-pill,
.settings-panel,
.appearance-group,
.appearance-color-control,
.home-project-type-card,
.home-recent-card,
.projects-workflow-card,
.project-workflow-item,
.project-context-pane,
.project-context-head,
.project-context-footer,
.project-context-phase,
.project-context-overview,
.project-collection-pane,
.project-collection-head,
.project-collection-row,
.project-details-section,
.project-activity-stat,
.project-activity-entry,
.project-summary-item,
.jump-card,
.log-stat-card,
.log-entry,
.fx-transformer-dialog-option,
.fx-local-range-dialog-row,
.desktop-floor-window,
.desktop-editor-panel,
.desktop-titled-pane,
.desktop-floor-table-shell,
.desktop-node-card,
.housing-desktop-panel,
.housing-section,
.housing-table-shell,
.main-connection-panel,
.main-connection-section,
.main-connection-table-shell,
.transformers-panel,
.transformers-section,
.transformers-table-shell,
.transformers-summary-item,
.commerce-desktop-panel,
.commerce-section,
.commerce-sub-local-shell,
.commerce-sub-local-card,
.commerce-sub-pane,
.commerce-table-shell {
	border-color: var(--line);
}

/* Primary actions and selected navigation share one foreground calculation. */
.toolbar-button:not(.toolbar-button-secondary):not(.toolbar-button-danger),
.toolbar-save-button,
.fx-dialog-button-primary,
.navigator-home-button.is-active,
.navigator-primary-button.is-active,
.project-context-overview.is-active,
.project-collection-add,
.sample-badge,
.account-avatar,
.desktop-title-button,
.housing-add-equipment-button {
	border-color: var(--theme);
	background: var(--theme);
	color: var(--on-primary);
}

.navigator-home-button.is-active img,
.navigator-primary-button.is-active img,
.project-context-overview.is-active img,
.toolbar-button:not(.toolbar-button-secondary):not(.toolbar-button-danger) img,
.toolbar-save-button img,
.project-collection-add img {
	filter: var(--on-primary-icon-filter);
}

.navigator-primary-button.is-active .navigator-primary-count {
	border-color: currentColor;
	background: transparent;
	color: var(--on-primary);
}

.toolbar-button:not(.toolbar-button-secondary):not(.toolbar-button-danger):hover,
.toolbar-save-button:hover,
.fx-dialog-button-primary:hover,
.project-collection-add:hover,
.desktop-title-button:hover,
.housing-add-equipment-button:hover {
	border-color: var(--theme-strong);
	background: var(--theme-strong);
	color: var(--on-primary);
}

.toolbar-button-secondary,
.fx-dialog-button:not(.fx-dialog-button-primary),
.desktop-toolbar-button,
.housing-toolbar-button,
.commerce-toolbar-button,
.housing-inline-button,
.commerce-remove-button,
.commerce-inline-button,
.main-connection-remove-button,
.main-connection-inline-button,
.navigator-toggle,
.navigator-close,
.toolbar-menu.more-menu > summary.more-menu-trigger,
.project-menu-trigger,
.toolbar-menu.project-menu > summary.project-menu-trigger {
	border-color: var(--line-strong);
	background: var(--surface);
	color: var(--text);
}

.toolbar-button-secondary:hover,
.fx-dialog-button:not(.fx-dialog-button-primary):hover,
.desktop-toolbar-button:hover,
.housing-toolbar-button:hover,
.commerce-toolbar-button:hover,
.housing-inline-button:hover,
.commerce-remove-button:hover,
.commerce-inline-button:hover,
.main-connection-remove-button:hover,
.main-connection-inline-button:hover,
.navigator-toggle:hover,
.navigator-close:hover,
.project-menu-trigger:hover,
.toolbar-menu.project-menu[open] > summary.project-menu-trigger,
.toolbar-menu.more-menu > summary.more-menu-trigger:hover,
.toolbar-menu.more-menu[open] > summary.more-menu-trigger,
.toolbar-menu-panel .menu-item:hover,
.toolbar-menu-panel .menu-item:focus-visible,
.toolbar-submenu > summary.menu-item:hover,
.toolbar-submenu[open] > summary.menu-item,
.navigator-home-button:not(.is-active):hover,
.navigator-home-button:not(.is-active):focus-visible,
.navigator-primary-button:not(.is-active):hover,
.navigator-primary-button:not(.is-active):focus-visible,
.home-project-type-card:hover,
.home-project-type-card:focus-visible,
.home-recent-card:hover,
.home-recent-card:focus-visible,
.template-library-card:hover,
.template-library-card:focus-visible,
.project-type-card:hover,
.project-type-card:focus-visible,
.sample-library-card:hover,
.sample-library-card.is-active,
.projects-open-button:hover,
.projects-open-button:focus-visible,
.project-workflow-stage > summary:hover,
.project-workflow-item:hover,
.project-workflow-item:focus-visible,
.project-context-overview:not(.is-active):hover,
.project-context-overview:not(.is-active):focus-visible,
.project-context-section-button:hover,
.project-context-section-button:focus-visible {
	border-color: var(--theme-border);
	background: var(--surface-hover);
	color: var(--theme-strong);
}

.project-context-section-button.is-active,
.project-context-workflow .project-workflow-item.is-active,
.project-collection-row.is-selected,
.projects-status-badge.is-progress {
	border-color: var(--theme);
	background: var(--surface-selected);
	color: var(--theme-strong);
}

.project-context-section-button.is-active .project-context-section-copy > span,
.project-context-section-button.is-active .project-context-section-open,
.project-context-section-button.is-active .projects-status-badge {
	color: var(--theme-strong);
}

.project-context-section-button.is-active .project-context-section-icon,
.project-context-section-button.is-active .projects-status-badge {
	border-color: var(--theme-border);
	background: var(--theme-light);
}

.project-context-section-button.is-active .project-context-section-icon img {
	filter: none;
}

.projects-workflow-card.is-expanded {
	border-color: var(--theme-border);
}

.home-project-type-icon,
.home-recent-icon,
.projects-card-icon,
.project-context-icon,
.project-workflow-stage-icon,
.project-workflow-item-icon,
.project-context-section-icon,
.project-context-phase-icon,
.projects-collection-count,
.project-context-phases-head strong {
	border-color: var(--theme-border);
	background: var(--theme-light);
	color: var(--theme-strong);
}

.main-connection-section:has(.main-connection-total-grid),
.transformers-section:has(.transformers-total-grid) {
	border-color: var(--theme);
	background: linear-gradient(180deg, var(--surface), var(--theme-light));
}

/* Explicit legacy text colors are normalized to the two text controls. */
.fx-dialog-title,
.modal-window.modal-window-javafx .fx-dialog-header h3,
.fx-dialog-copy,
.fx-transformer-dialog-option,
.fx-local-range-dialog-row,
.fx-dialog-input,
.fx-dialog-button,
.menu-item,
.desktop-form-label,
.desktop-editor-shell,
.desktop-titled-pane > .titled-pane-header h3,
.desktop-form-row-compact .desktop-form-label,
.desktop-floor-editor-label,
.desktop-floor-editor-value,
.desktop-floor-table th,
.housing-shell,
.housing-form-row > span:first-child,
.housing-area-row > span:first-child,
.housing-count-card span,
.main-connection-shell,
.transformers-shell,
.transformers-title p,
.transformers-section-header h3,
.transformers-section-title,
.commerce-shell,
.commerce-form-row > span:first-child,
.commerce-sub-local-label,
.navigator-home-button,
.toolbar-menu.account-menu > summary.account-menu-trigger,
.account-name,
.toolbar-menu-panel .menu-item,
.toolbar-submenu > summary.menu-item,
.navigator-primary-button {
	color: var(--text);
}

.help-copy,
.pane-kicker,
.selection-copy,
.project-collection-head > div > p:last-child,
.project-collection-table-head,
.project-collection-row-select span,
.tree-caret,
.setup-scope-head,
.desktop-datetime-input::placeholder,
.desktop-title-row p,
.desktop-node-card p,
.desktop-floor-load-value.is-disabled,
.desktop-floor-table .desktop-floor-editor-control:disabled,
.app-disclosure-icon,
.housing-basic-load-row.is-inactive input,
.housing-demand-factor-static,
.housing-equipment-detail-row td,
.project-context-copy > span,
.project-workflow-stage-copy > span,
.project-workflow-item-copy span,
.projects-status-badge,
.transformers-summary-item span {
	color: var(--text-muted);
}

.project-context-workflow .project-workflow-item.is-active .project-workflow-item-copy span {
	color: var(--text-muted);
}

button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	border-color: var(--theme) !important;
	box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

@media (min-width: 1101px) {
	.workspace-shell {
		grid-template-columns: var(--design-navigation-width, var(--navigator-width)) var(--navigator-divider-width) minmax(0, 1fr);
	}
}

@media (min-width: 1181px) {
	.content-pane.has-project-split {
		grid-template-columns: var(--project-context-width, 260px) minmax(0, 1fr);
	}

	.content-pane.has-project-split.has-project-collection {
		grid-template-columns: var(--project-context-width, 260px) var(--project-collection-width, 320px) minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.project-detail-pane,
	.project-detail-pane.is-desktop {
		background: var(--app-page-background, #f8fafc);
	}

	.desktop-floor-table th:first-child,
	.desktop-floor-table td:first-child,
	.housing-table th:first-child,
	.housing-table td:first-child,
	.commerce-table th:first-child,
	.commerce-table td:first-child,
	.main-connection-table th:first-child,
	.main-connection-table td:first-child,
	.transformers-table th:first-child,
	.transformers-table td:first-child {
		background: var(--surface);
	}

	.desktop-floor-table th:first-child,
	.housing-table th:first-child,
	.commerce-table th:first-child,
	.main-connection-table th:first-child,
	.transformers-table th:first-child {
		background: var(--surface-muted);
	}
}

/* Building artwork uses the full icon viewport; source-specific scaling removes uneven raster padding. */
.project-type-card-icon,
.home-project-type-icon,
.home-recent-icon,
.projects-card-icon,
.project-context-icon,
.project-summary-type-icon {
	overflow: hidden;
	border: 0;
	background: transparent;
}

.project-type-card-icon {
	width: 42px;
	height: 42px;
}

.project-summary-type-icon {
	width: 38px;
	height: 38px;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
}

.project-type-card-icon img,
.home-project-type-icon img,
.home-recent-icon img,
.projects-card-icon img,
.project-context-icon img,
.project-summary-type-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.project-type-art {
	transform: scale(var(--project-type-icon-scale, 1));
	transform-origin: center;
	mix-blend-mode: multiply;
}

/* Shared dwelling and apartment editor */
.dwelling-shell {
	--dwelling-table-band: color-mix(in srgb, var(--theme) 13%, var(--surface));
	border-color: var(--line-strong);
	border-radius: 4px;
	background: var(--surface);
	color: var(--text);
}

.dwelling-panel {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 10px;
	padding: clamp(10px, 1.3vw, 18px);
}

.dwelling-hero {
	display: grid;
	justify-items: start;
	gap: 2px;
}

.dwelling-hero p {
	margin: 0;
	color: var(--text-muted);
	font-size: 12px;
}

.dwelling-hero .dwelling-hero-name {
	color: var(--theme-strong);
	font-size: 13px;
	font-weight: 700;
}

.dwelling-hero h2 {
	margin: 0 0 1px;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.2;
}

.dwelling-identity-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 85px;
	gap: 10px;
	max-width: 235px;
}

.dwelling-apartment-name {
	grid-column: 1 / -1;
}

.dwelling-basic-settings {
	max-width: 620px;
	font-size: 11px;
}

.dwelling-basic-settings > h4 {
	margin: 0;
	color: var(--theme-strong);
	font-size: inherit;
	font-weight: 650;
}

.dwelling-basic-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
	margin-top: 6px;
}

.dwelling-basic-settings-grid .housing-unit-field-input {
	width: 100%;
	min-width: 0;
	max-width: none;
}

.dwelling-field {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 6px;
	color: var(--text);
}

.dwelling-basic-fields .dwelling-field > span:first-child {
	font-size: 11px;
	font-weight: 400;
}

.dwelling-field small {
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 400;
}

.dwelling-field > input,
.dwelling-area-value > input,
.dwelling-basic-settings .housing-unit-field-input,
.dwelling-climate-controls .housing-unit-field-input,
.dwelling-load-table .housing-unit-field-input,
.dwelling-load-table td > input {
	width: 100%;
	min-width: 0;
	max-width: none;
	min-height: 34px;
	padding: 5px 8px;
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	background: var(--surface);
	color: var(--text);
	box-shadow: none;
}

.dwelling-content {
	display: grid;
	gap: 22px;
}

.dwelling-content-title,
.dwelling-card h3 {
	margin: 0;
	color: var(--theme-strong);
}

.dwelling-content-title {
	font-size: 16px;
}

.dwelling-card {
	min-width: 0;
	display: grid;
	gap: 8px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.dwelling-card h3 {
	color: var(--theme);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.dwelling-basic-card {
	gap: 6px;
}

.dwelling-basic-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.46fr);
	align-items: end;
	gap: 18px;
}

.dwelling-basic-fields {
	min-width: 0;
	display: grid;
	gap: 9px;
}

.dwelling-area-row {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.dwelling-area-label {
	color: var(--text);
	font-size: 11px;
	font-weight: 400;
}

.dwelling-area-pair {
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 400px;
}

.dwelling-area-value {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--text-muted);
	font-size: 11px;
	white-space: nowrap;
}

.dwelling-area-value > input {
	width: 66px;
	flex: 0 1 66px;
}

.dwelling-area-value > span {
	white-space: nowrap;
}

.dwelling-basic-fields .dwelling-field > input,
.dwelling-basic-settings .housing-unit-field-input,
.dwelling-area-value > input {
	min-height: 24px;
	padding: 3px 6px;
	border-color: color-mix(in srgb, var(--theme) 50%, var(--surface));
	border-radius: 4px;
}

.dwelling-field-help {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--text-muted);
	font-size: 11px;
	line-height: 1.4;
}

.dwelling-basic-summary {
	align-self: end;
	display: grid;
	gap: 5px;
	padding: 9px 10px;
	border-radius: 7px;
	background: var(--dwelling-table-band);
	color: var(--text-muted);
	font-size: 11px;
}

.dwelling-basic-summary > div {
	gap: 6px;
}

.dwelling-basic-summary > .housing-basic-load-row,
.dwelling-basic-summary > .dwelling-subtotal {
	justify-content: flex-end;
}

.dwelling-basic-summary [data-housing-basic-label]::after {
	content: ":";
}

.dwelling-basic-summary [data-housing-basic-power] {
	font-weight: 400;
}

.dwelling-basic-summary .housing-basic-load-row.is-inactive {
	display: none;
}

.dwelling-basic-summary > div,
.dwelling-breakdown > div,
.dwelling-feeder-calculation > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.dwelling-basic-summary strong,
.dwelling-breakdown strong,
.dwelling-feeder-calculation strong {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.dwelling-basic-summary .dwelling-subtotal {
	padding-top: 2px;
	color: var(--text);
	font-weight: 700;
}

.dwelling-table-wrap {
	min-width: 0;
	overflow-x: auto;
	border: 1px solid color-mix(in srgb, var(--theme) 8%, var(--surface));
	border-radius: 8px;
}

.dwelling-load-table {
	width: 100%;
	min-width: 580px;
	border-collapse: collapse;
	table-layout: fixed;
}

.dwelling-load-name-col {
	width: 29%;
}

.dwelling-load-power-col {
	width: 16%;
}

.dwelling-load-factor-col {
	width: 29%;
}

.dwelling-load-symbol-col {
	width: 4%;
}

.dwelling-load-action-col {
	width: 26px;
}

.dwelling-load-table th,
.dwelling-load-table td {
	height: auto;
	padding: 3px 6px;
	border-bottom: 1px solid var(--line);
	color: var(--text-muted);
	font-size: 11px;
	line-height: 1.3;
	vertical-align: middle;
}

.dwelling-load-table th {
	padding-block: 4px;
	background: var(--dwelling-table-band);
	color: var(--text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	text-align: left;
}

.dwelling-load-table tbody tr:last-child td {
	border-bottom: 0;
}

.dwelling-load-table .housing-unit-field {
	--dwelling-value-width: 64px;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
}

.dwelling-load-table .housing-unit-field-percentage {
	--dwelling-value-width: auto;
	padding-inline-end: 4px;
}

.dwelling-load-table .housing-unit-field-input,
.dwelling-load-table .housing-unit-field-value {
	width: var(--dwelling-value-width);
	min-width: 0;
	max-width: none;
	flex: 0 0 var(--dwelling-value-width);
	min-height: 20px;
	height: 20px;
	padding: 1px 3px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	font-size: inherit;
	line-height: normal;
	text-align: right;
}

.dwelling-load-table .housing-unit-field-value {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}

.dwelling-load-table .housing-percentage-control {
	position: relative;
	display: inline-block;
}

.dwelling-load-table .housing-percentage-measure {
	display: block;
	visibility: hidden;
	min-height: 20px;
	padding: 1px 3px;
	border: 1px solid transparent;
	line-height: normal;
}

.dwelling-load-table .housing-percentage-control .housing-unit-field-input {
	position: absolute;
	inset: 0;
	width: 100%;
}

.dwelling-load-table td > input {
	min-height: 20px;
	height: 20px;
	padding: 1px 3px;
	border-color: transparent;
	border-radius: 3px;
	background: transparent;
	font-size: inherit;
}

.dwelling-load-table input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

.dwelling-load-table input::-webkit-inner-spin-button,
.dwelling-load-table input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.dwelling-load-table input:not([type="checkbox"]):hover,
.dwelling-load-table input:not([type="checkbox"]):focus-visible {
	border-color: var(--theme);
	background: var(--surface);
}

.dwelling-load-table .housing-unit-field-suffix {
	font-size: inherit;
}

.dwelling-load-table th:nth-child(4),
.dwelling-load-table td:nth-child(4) {
	text-align: center;
}

.dwelling-load-table .housing-demand-factor-static {
	width: auto;
	min-width: 0;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
	justify-content: center;
	text-align: center;
}

.dwelling-load-table .housing-equipment-name-toggle {
	white-space: normal;
}

.dwelling-load-table tfoot td {
	border-bottom: 0;
	background: var(--dwelling-table-band);
	font-weight: 400;
}

.dwelling-load-table tfoot strong {
	color: var(--text);
	font-weight: 700;
}

.dwelling-load-table .dwelling-detail-row td {
	color: var(--text-muted);
	font-size: 11px;
}

.dwelling-number {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.dwelling-load-table th.dwelling-number {
	text-align: right;
}

.dwelling-symbol {
	padding-inline: 0 !important;
	text-align: center;
}

.dwelling-add-load,
.dwelling-remove {
	border: 0;
	background: transparent;
	color: var(--theme-strong);
	font-weight: 400;
}

.dwelling-add-load {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	color: var(--text-muted);
}

.dwelling-add-icon {
	color: var(--theme);
	font-size: 18px;
	line-height: 1;
}

.dwelling-remove {
	width: 20px;
	height: 20px;
	padding: 0;
	border-radius: 5px;
	font-size: 18px;
}

.dwelling-add-load:hover,
.dwelling-remove:hover {
	background: var(--surface-selected);
}

.dwelling-climate-controls,
.dwelling-ev-options {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 16px;
}

.dwelling-climate-controls > label:first-child,
.dwelling-interlock-choice,
.dwelling-ev-options label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.dwelling-climate-controls input[type="checkbox"],
.dwelling-ev-options input[type="checkbox"],
.dwelling-load-table .housing-equipment-name-toggle input[type="checkbox"] {
	width: 12px;
	height: 12px;
	min-width: 12px;
	min-height: 12px;
	margin: 0;
	accent-color: var(--theme);
}

.dwelling-climate-controls .housing-inline-combo-select {
	width: 150px;
	min-width: 150px;
	height: 24px;
	font-size: 11px;
}

.dwelling-ev-options {
	font-size: 11px;
}

.dwelling-results-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(130px, 0.6fr);
	gap: 12px;
}

.dwelling-breakdown,
.dwelling-feeder-calculation,
.dwelling-feeder-result {
	display: grid;
	align-content: start;
	gap: 9px;
	padding: 15px;
	border-radius: 9px;
	background: var(--surface-muted);
}

.dwelling-breakdown h4,
.dwelling-feeder-calculation h4 {
	margin: 0 0 5px;
	color: var(--theme-strong);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.dwelling-feeder-calculation p {
	margin: 3px 0 0;
	color: var(--text-muted);
	font-size: 11px;
}

.dwelling-feeder-result {
	align-content: center;
	justify-items: center;
	background: var(--theme);
	color: var(--on-primary);
	text-align: center;
}

.dwelling-feeder-result strong {
	font-size: 28px;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1440px) {
	.dwelling-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dwelling-feeder-result {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.dwelling-panel {
		padding: 10px;
	}
	.dwelling-card {
		padding: 0;
	}
	.dwelling-basic-grid {
		grid-template-columns: minmax(0, 1fr) 170px;
		gap: 10px;
	}
	.dwelling-area-pair {
		gap: 5px;
	}
	.dwelling-area-value {
		gap: 4px;
		font-size: 9px;
	}
	.dwelling-area-value > input {
		padding-inline: 4px;
	}
	.dwelling-results-grid {
		grid-template-columns: 1fr;
	}
	.dwelling-feeder-result {
		grid-column: auto;
	}
}

@media (max-width: 460px) {
	.dwelling-basic-grid {
		grid-template-columns: 1fr;
	}
	.dwelling-basic-summary {
		justify-self: stretch;
	}
}

/* Floor editor follows the compact apartment layout. */
.floor-panel {
	gap: 28px;
}

.floor-hero .dwelling-hero-name,
.floor-section-heading {
	text-transform: uppercase;
}

.floor-hero h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	text-transform: uppercase;
}

.desktop-floor-shell .floor-name {
	min-width: 80px;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	background: var(--surface);
	color: var(--text);
	font-size: inherit;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.floor-name:hover,
.floor-name:focus-visible {
	border-color: var(--theme);
}

.floor-data,
.floor-details {
	min-width: 0;
	display: grid;
	gap: 8px;
}

.floor-section-heading {
	margin: 0;
	color: var(--theme-strong);
	font-size: 13px;
	font-weight: 650;
}

.floor-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	align-items: start;
	gap: 16px 24px;
}

.floor-summary-card {
	min-width: 0;
	overflow: hidden;
	border-radius: 5px;
	background: var(--dwelling-table-band);
}

.floor-summary-card h4 {
	margin: 0;
	padding: 5px 8px;
	background: var(--theme);
	color: var(--on-primary, #fff);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.floor-summary-card dl {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 6px 8px;
}

.floor-numbering-label,
.floor-summary-row dt {
	color: var(--text-muted);
	font-size: 10px;
	line-height: 1.4;
	text-transform: uppercase;
}

.floor-numbering-label {
	margin: 6px 8px 0;
}

.floor-summary-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
}

.floor-summary-row dd {
	margin: 0;
	color: var(--text);
	font-size: 11px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.floor-summary-row .floor-summary-value {
	min-width: 70px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--surface);
	font-weight: 400;
}

.floor-details-heading,
.floor-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.floor-details-heading {
	justify-content: space-between;
	flex-wrap: wrap;
}

.desktop-floor-shell .floor-actions .dwelling-add-load {
	font-size: 11px;
}

.floor-actions .desktop-toolbar-button {
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 24px;
	padding: 3px;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.floor-actions .desktop-toolbar-button img {
	width: 14px;
	height: 14px;
}

.floor-occupancy-groups,
.floor-occupancy-group {
	min-width: 0;
	display: grid;
	gap: 0;
}

.desktop-floor-shell .floor-group-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 4px 8px;
	border: 0;
	border-radius: 0;
	background: var(--theme-light);
	color: var(--theme-strong);
	font-size: 12px;
	font-weight: 400;
	text-align: left;
}

.floor-group-heading:hover {
	filter: brightness(0.98);
}

.floor-group-heading img {
	width: 14px;
	height: 14px;
	object-fit: contain;
}

.desktop-floor-shell .desktop-floor-table-shell {
	min-width: 0;
	border: 1px solid var(--line-strong);
	border-top: 0;
	border-radius: 0;
}

.desktop-floor-shell .floor-occupancy-table {
	min-width: 700px;
	border-collapse: collapse;
	font-size: 11px;
}

.floor-number-col { width: 11%; }
.floor-id-col { width: 12%; }
.floor-type-col { width: 15%; }
.floor-load-col { width: 16%; }
.floor-meter-col { width: 11%; }
.floor-remove-col { width: 3%; }

.desktop-floor-shell .floor-occupancy-table th,
.desktop-floor-shell .floor-occupancy-table td {
	height: 24px;
	padding: 2px 6px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-size: 11px;
	line-height: 1.3;
}

.desktop-floor-shell .floor-occupancy-table th {
	padding-block: 5px;
	background: var(--theme);
	color: var(--on-primary, #fff);
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: left;
}

.floor-occupancy-table td:nth-child(n+4):nth-child(-n+7) {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.desktop-floor-shell .floor-occupancy-table td:last-child,
.desktop-floor-shell .floor-occupancy-table th:last-child {
	padding-inline: 0;
	border-right: 0;
	text-align: center;
}

.floor-occupancy-table tr:last-child td {
	border-bottom: 0;
}

.desktop-floor-shell .floor-occupancy-table .desktop-floor-editor-control {
	min-height: 20px;
	height: 20px;
	padding: 1px 3px;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	font-size: 11px;
}

.floor-occupancy-table td:nth-child(n+4) input {
	text-align: right;
}

.floor-occupancy-table input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

.floor-occupancy-table input::-webkit-inner-spin-button,
.floor-occupancy-table input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.desktop-floor-shell .floor-occupancy-table .desktop-floor-editor-control:not(:disabled):hover,
.desktop-floor-shell .floor-occupancy-table .desktop-floor-editor-control:focus-visible {
	border-color: var(--theme);
	background: var(--surface);
}

.desktop-floor-shell .floor-remove {
	width: 18px;
	height: 18px;
	color: var(--danger);
	font-size: 16px;
}

.desktop-floor-shell .desktop-floor-empty-state {
	padding: 24px;
}
