#sgd-app .sgd-step.is-done {
	background: var(--mist);
}

#sgd-app .sgd-step.is-done .sgd-num {
	background: var(--ink);
	color: #fff;
}

#sgd-app .sgd-door {
	position: absolute;
}

#sgd-app .sgd-door>svg {
	display: block;
	width: 100%;
	height: 100%;
}

#sgd-app .sgd-door.is-edit {
	outline: 2px dashed var(--gold);
	outline-offset: 0;
	cursor: move;
	touch-action: none;
}

#sgd-app .sgd-door.is-edit:focus-visible {
	outline: 3px solid var(--gold);
}

#sgd-app .sgd-door.is-active:not(.is-edit) {
	outline: 3px solid var(--gold);
}

#sgd-app .sgd-tag {
	position: absolute;
	left: 6px;
	top: 6px;
	background: var(--gold);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	pointer-events: none;
}

#sgd-app .sgd-h {
	position: absolute;
	width: 22px;
	height: 22px;
	background: #fff;
	border: 3px solid var(--gold);
	border-radius: 50%;
	touch-action: none;
}

#sgd-app .sgd-h[data-h="nw"] {
	left: -11px;
	top: -11px;
	cursor: nwse-resize;
}

#sgd-app .sgd-h[data-h="ne"] {
	right: -11px;
	top: -11px;
	cursor: nesw-resize;
}

#sgd-app .sgd-h[data-h="sw"] {
	left: -11px;
	bottom: -11px;
	cursor: nesw-resize;
}

#sgd-app .sgd-h[data-h="se"] {
	right: -11px;
	bottom: -11px;
	cursor: nwse-resize;
}

#sgd-app .sgd-h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 26px 0 10px;
	line-height: 1.25;
}

#sgd-app .sgd-panel>.sgd-h3:first-child, #sgd-app .sgd-tabs+.sgd-h3 {
	margin-top: 0;
}

#sgd-app .sgd-hint {
	font-size: 15px;
	color: var(--steel);
	margin: -2px 0 14px;
	max-width: 60ch;
}

#sgd-app .sgd-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#sgd-app .sgd-chip {
	min-width: 48px;
	min-height: 44px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
}

#sgd-app .sgd-chip:hover {
	border-color: var(--steel);
}

#sgd-app .sgd-chip.is-on {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--ink);
	background: var(--mist);
}

#sgd-app .sgd-size {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

#sgd-app .sgd-size legend {
	font-weight: 700;
	padding: 0;
	margin-bottom: 6px;
	font-size: 16px;
}

#sgd-app .sgd-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: var(--steel);
	font-weight: 500;
}

#sgd-app select, #sgd-app input[type=text], #sgd-app input[type=tel], #sgd-app input[type=email], #sgd-app textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	box-shadow: none;
}

#sgd-app select:focus, #sgd-app input:focus, #sgd-app textarea:focus {
	border-color: var(--ink);
}

#sgd-app textarea {
	min-height: 84px;
	resize: vertical;
}

#sgd-app .sgd-report {
	background: #fff6e3;
	border: 1.5px solid var(--gold);
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 18px;
	font-size: 14px;
}

#sgd-app .sgd-report summary {
	font-weight: 700;
	cursor: pointer;
}

#sgd-app .sgd-report ul {
	margin: 6px 0 0;
	padding-left: 18px;
	max-height: 160px;
	overflow: auto;
}

#sgd-app .sgd-coords {
	font-family: Consolas, Menlo, monospace;
	font-size: 13px;
	min-height: 64px;
}

#sgd-app .sgd-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

#sgd-app .sgd-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	text-align: left;
}

#sgd-app .sgd-card:hover {
	border-color: var(--steel);
}

#sgd-app .sgd-card.is-on {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--ink);
}

#sgd-app .sgd-thumb {
	height: 64px;
	background: var(--mist);
	border-radius: 4px;
	padding: 6px;
	display: block;
}

#sgd-app .sgd-card b {
	font-size: 15px;
	font-weight: 700;
}

#sgd-app .sgd-card small {
	font-size: 13px;
	color: var(--steel);
	line-height: 1.3;
}

#sgd-app .sgd-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 10px;
}

#sgd-app .sgd-tiles.is-wide {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

#sgd-app .sgd-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 6px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	text-align: left;
	font-size: 13px;
	font-weight: 600;
}

#sgd-app .sgd-tile:hover {
	border-color: var(--steel);
}

#sgd-app .sgd-tile.is-on {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--ink);
}

#sgd-app .sgd-tthumb {
	display: block;
	aspect-ratio: 4/3;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 4px;
	overflow: hidden;
}

#sgd-app .sgd-tlabel {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.25;
}

#sgd-app .sgd-tlabel small {
	font-weight: 400;
	color: var(--steel);
	font-size: 12px;
}

#sgd-app .sgd-sw i {
	overflow: hidden;
}

#sgd-app .sgd-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 10px;
}

#sgd-app .sgd-sw {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}

#sgd-app .sgd-sw i {
	display: block;
	width: 100%;
	aspect-ratio: 1.3;
	border-radius: 5px;
	border: 1.5px solid rgba(0, 0, 0, .18);
}

#sgd-app .sgd-sw.is-on i {
	box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--ink);
}

#sgd-app .sgd-sw.is-on {
	font-weight: 700;
}

#sgd-app .sgd-custom {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: 15px;
}

#sgd-app .sgd-custom input {
	width: 54px;
	height: 40px;
	padding: 2px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: #fff;
}

#sgd-app .sgd-list {
	display: grid;
	gap: 8px;
}

#sgd-app .sgd-opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	text-align: left;
}

#sgd-app .sgd-opt b {
	font-size: 15px;
}

#sgd-app .sgd-opt small {
	font-size: 13px;
	color: var(--steel);
}

#sgd-app .sgd-opt.is-on {
	border-color: var(--ink);
	box-shadow: inset 4px 0 0 var(--gold), inset 0 0 0 1.5px var(--ink);
}

#sgd-app .sgd-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 18px;
	flex-wrap: wrap;
}

#sgd-app .sgd-tabs .sgd-chip.is-on {
	background: var(--ink);
	color: #fff;
}

#sgd-app .sgd-samples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

#sgd-app .sgd-sample {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 6px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

#sgd-app .sgd-sample img {
	display: block;
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
	border-radius: 4px;
	margin: 0;
}

#sgd-app .sgd-sample.is-on {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--ink);
}

#sgd-app .sgd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 12px 22px;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	border: 1.5px solid var(--ink);
	text-decoration: none;
	cursor: pointer;
}

#sgd-app .sgd-btn:hover {
	background: #26364a;
}

#sgd-app .sgd-btn.is-ghost {
	background: var(--paper);
	color: var(--ink);
}

#sgd-app .sgd-btn.is-ghost:hover {
	background: var(--mist);
}

#sgd-app .sgd-btn.is-gold {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

#sgd-app .sgd-btn.is-gold:hover {
	background: #f0b33a;
}

#sgd-app .sgd-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 30px;
	flex-wrap: wrap;
}

#sgd-app .sgd-nav .sgd-btn:only-child {
	margin-left: auto;
}

#sgd-app .sgd-note {
	background: #fff6e3;
	border-left: 4px solid var(--gold);
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 15px;
	margin: 14px 0 8px;
}

#sgd-app .sgd-err {
	color: var(--err);
	font-size: 15px;
	font-weight: 600;
	margin: 8px 0 0;
}

#sgd-app .sgd-okmsg {
	background: #e9f5ee;
	border-left: 4px solid var(--ok);
	padding: 14px;
	border-radius: 4px;
	font-weight: 600;
}

#sgd-app .sgd-spec {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

#sgd-app .sgd-spec:first-of-type {
	border-top: 0;
}

#sgd-app .sgd-spec .sgd-thumb {
	height: 90px;
}

#sgd-app .sgd-spec h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
}

#sgd-app .sgd-spec dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 3px 12px;
	margin: 0 0 6px;
	font-size: 14px;
}

#sgd-app .sgd-spec dt {
	color: var(--steel);
	margin: 0;
}

#sgd-app .sgd-spec dd {
	margin: 0;
	font-weight: 600;
}

#sgd-app .sgd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 6px;
}

#sgd-app .sgd-actions .sgd-btn {
	min-height: 42px;
	padding: 9px 16px;
	font-size: 15px;
}

#sgd-app .sgd-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
	padding: 18px;
	background: var(--mist);
	border-radius: 8px;
}

#sgd-app .sgd-form .sgd-full {
	grid-column: 1/-1;
}

#sgd-app .sgd-form .sgd-h3 {
	margin: 0;
}

#sgd-app .sgd-form .sgd-hint {
	margin: 0;
}

#sgd-app .sgd-call {
	font-size: 15px;
	margin: 12px 0 0;
}

#sgd-app .sgd-call a {
	color: var(--ink);
	font-weight: 700;
}

@media (max-width:880px) {}

@media (max-width:560px) {
	#sgd-app .sgd-cards, #sgd-app .sgd-samples {
		grid-template-columns: 1fr 1fr;
	}
	
	#sgd-app .sgd-form {
		grid-template-columns: 1fr;
	}
	
	#sgd-app .sgd-spec {
		grid-template-columns: 90px 1fr;
	}
}

@media (prefers-reduced-motion:reduce) {}

@media print {}