/* Farm Studio (create.html) and the variants gallery. */
main.studio, main.gallery {
	max-width: 60rem;
}
main.studio section, main.gallery section {
	background: white;
	border: 1px solid #D8CCB0;
	border-radius: 0.5rem;
	padding: 0.5rem 0.75rem;
	margin: 0.5rem 0;
}
main h2 {
	font-size: 1.1rem;
	margin: 0.25rem 0 0.5rem 0;
	color: var(--barn);
}
main h3 {
	font-size: 1rem;
	margin: 0.75rem 0 0.25rem 0;
}
.note {
	color: #6A5A44;
	font-size: 0.85rem;
}
label {
	display: inline-block;
	margin: 0.15rem 0.5rem 0.15rem 0;
}
input, select {
	font-family: inherit;
	font-size: 0.95rem;
	padding: 0.2rem 0.3rem;
	max-width: 100%;
}
#vName {
	width: 20rem;
}
#pasted {
	width: 100%;
	font-family: monospace;
}
.tableWrap {
	overflow-x: auto;
}
#ecoTable {
	border-collapse: collapse;
	font-size: 0.9rem;
}
#ecoTable th, #ecoTable td {
	border: 1px solid #DDD;
	padding: 0.15rem;
	text-align: center;
	vertical-align: middle;
}
#ecoTable input[type=number] {
	width: 3.6rem;
	text-align: right;
}
#ecoTable input.up {
	color: #157A1F;
}
#ecoTable input.down {
	color: #A15C00;
}
.iconInput {
	width: 3rem;
	text-align: center;
	font-size: 1.1rem;
}
.resName {
	display: block;
	width: 5.5rem;
	margin-top: 0.15rem;
	font-size: 0.8rem;
}
.itemName {
	width: 8rem;
}
.iconPreview img {
	height: 1.5rem;
	vertical-align: middle;
}
#ecoTable tr.special td {
	background: #F7F2E4;
	font-weight: bold;
}
#palette {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem;
	margin: 0.25rem 0 0.5rem 0;
}
#palette .pal {
	font-size: 1.2rem;
	padding: 0.1rem 0.25rem;
	background: white;
	border-color: #DDD;
}
#balance .warn, .warn {
	color: #B00020;
}
#balance span {
	margin-right: 0.5rem;
	white-space: nowrap;
}
#puzzleList li {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	margin: 0.4rem 0;
}
#puzzleList .mini {
	font-family: monospace;
	font-size: 0.6rem;
	line-height: 0.62rem;
	background: #F7F2E4;
	padding: 0.2rem;
	white-space: nowrap;
}
#puzzleList button, #mine button {
	font-size: 0.8rem;
	padding: 0.15rem 0.4rem;
}
.good {
	color: #157A1F;
	font-weight: bold;
}
.bad {
	color: #B00020;
	font-weight: bold;
}
.actions button {
	margin-right: 0.4rem;
}
#mine img {
	height: 1.2rem;
	vertical-align: middle;
}
/* Gallery */
.themes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 0.6rem;
}
.theme {
	border: 1px solid #D8CCB0;
	border-radius: 0.5rem;
	padding: 0.5rem;
	background: #FFFDF6;
}
.theme h3 {
	margin: 0 0 0.2rem 0;
}
.theme .kind {
	font-size: 0.75rem;
	color: #6A5A44;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.theme .icons {
	font-size: 1.4rem;
	margin: 0.3rem 0;
	letter-spacing: 0.1em;
}
.theme .icons img {
	height: 1.4rem;
	vertical-align: middle;
}
.theme p {
	font-size: 0.85rem;
	margin: 0.3rem 0;
}
.theme .links a {
	margin-right: 0.3rem;
	display: inline-block;
	margin-top: 0.2rem;
}
