/*
 * Lemonade Stand Tycoon
 *
 * Everything is scoped under .lst-app so the game looks the same inside any
 * theme. Layout responds to the width of the game itself (container queries),
 * not the browser window, because themes give page content very different widths.
 */

@font-face {
	font-family: "LST Chewy";
	src: url(fonts/chewy.woff2) format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "LST Nunito";
	src: url(fonts/nunito.woff2) format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

.lst-app {
	--lst-sky: #cfebf7;
	--lst-lemon: #ffd23f;
	--lst-rind: #f0a202;
	--lst-leaf: #1f7a4d;
	--lst-chalk: #21403a;
	--lst-cherry: #d9303f;
	--lst-paper: #fffef8;
	--lst-ink: #17302b;
	--lst-wood: #b07a3c;
	--lst-muted: #50645f;
	--lst-line: #d6e3de;
	--awn: #d9303f;
	--lst-sign: "LST Chewy", "Chalkboard SE", "Comic Sans MS", cursive;
	--lst-body: "LST Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	container: lst-app / inline-size; /* Named, so a stand card (its own container) does not answer the game box's queries. */
	position: relative;
	box-sizing: border-box;
	padding: 16px;
	border-radius: 20px;
	background: var(--lst-sky);
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
	font-variant-numeric: tabular-nums;
	-webkit-text-size-adjust: 100%;
}

.lst-app *,
.lst-app *::before,
.lst-app *::after {
	box-sizing: border-box;
}

/* Element resets carry a doubled class so theme content styles do not win. */
.lst-app.lst-app p,
.lst-app.lst-app ul,
.lst-app.lst-app dl,
.lst-app.lst-app dd,
.lst-app.lst-app h2,
.lst-app.lst-app h3,
.lst-app.lst-app h4 {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.lst-app.lst-app ul {
	list-style: none;
}

.lst-app.lst-app p {
	font-size: 1em;
	line-height: 1.45;
}

.lst-app.lst-app .lst-h {
	font-family: var(--lst-sign);
	font-weight: 400;
	font-size: 1.375rem;
	line-height: 1.15;
}

.lst-app .lst-muted {
	color: var(--lst-muted);
	font-weight: 600;
}

.lst-app .lst-loading {
	padding: 40px 0;
	text-align: center;
	font-family: var(--lst-sign);
	font-size: 1.375rem;
}

/* ---------- Buttons ---------- */

.lst-app .lst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 18px;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 3px 0 var(--lst-ink);
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: transform 80ms ease, box-shadow 80ms ease;
}

.lst-app .lst-btn:hover {
	background: #fff7d1;
	color: var(--lst-ink);
}

.lst-app .lst-btn:active {
	transform: translateY( 2px );
	box-shadow: 0 1px 0 var(--lst-ink);
}

.lst-app .lst-btn-primary {
	background: var(--lst-lemon);
}

.lst-app .lst-btn-primary:hover {
	background: #ffc400;
}

.lst-app .lst-btn-danger {
	background: var(--lst-cherry);
	color: #fff;
}

.lst-app .lst-btn-danger:hover {
	background: #bd2331;
	color: #fff;
}

.lst-app .lst-btn-small {
	min-height: 38px;
	padding: 5px 14px;
	font-size: 0.9375rem;
	box-shadow: 0 2px 0 var(--lst-ink);
}

.lst-app .lst-btn[disabled] {
	border-color: #8ea09b;
	background: #eef3f1;
	box-shadow: none;
	color: #5c6f6a;
	cursor: not-allowed;
	transform: none;
}

.lst-app .lst-btn-note {
	font-weight: 600;
	font-size: 0.875rem;
	opacity: 0.85;
}

.lst-app .lst-link {
	margin: 0;
	padding: 6px 4px;
	border: 0;
	border-radius: 4px;
	background: none;
	box-shadow: none;
	color: var(--lst-leaf);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.lst-app .lst-link:hover {
	background: none;
	color: var(--lst-ink);
}

.lst-app .lst-btn:focus-visible,
.lst-app .lst-link:focus-visible,
.lst-app .lst-tab:focus-visible,
.lst-app .lst-seg:focus-visible,
.lst-app .lst-round:focus-visible,
.lst-app input:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app.lst-busy .lst-btn,
.lst-app.lst-busy .lst-seg,
.lst-app.lst-busy .lst-link {
	cursor: progress;
}

/* ---------- Header: the cash box ---------- */

.lst-app .lst-header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--lst-chalk);
	color: #f3f7ef;
}

.lst-app .lst-header > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lst-app .lst-cash-label,
.lst-app .lst-level-note,
.lst-app .lst-energy-note,
.lst-app .lst-weather-note {
	color: #c4d6cf;
	font-size: 0.875rem;
	font-weight: 600;
}

.lst-app .lst-cash-amount {
	color: var(--lst-lemon);
	font-family: var(--lst-sign);
	font-size: 2.25rem;
	line-height: 1;
	transform-origin: left center;
}

/* What all the stands together make an hour, under the cash. */
.lst-app.lst-app .lst-cash-rate {
	align-self: flex-start;
	min-height: 0;
	margin: 4px 0 0;
	padding: 2px 10px;
	border: 0;
	border-radius: 999px;
	background: rgba( 255, 210, 63, 0.16 );
	box-shadow: none;
	color: #fff4c2;
	font-family: var(--lst-body);
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

.lst-app.lst-app .lst-cash-rate:hover,
.lst-app.lst-app .lst-cash-rate:focus-visible {
	background: rgba( 255, 210, 63, 0.3 );
	color: #fff;
}

.lst-app.lst-app .lst-cash-rate-neg {
	background: rgba( 255, 120, 120, 0.2 );
	color: #ffd9d4;
}

.lst-app .lst-pop .lst-cash-amount {
	animation: lst-pop 420ms ease-out;
}

@keyframes lst-pop {
	0% { transform: scale( 1 ); }
	35% { transform: scale( 1.12 ); color: #fff; }
	100% { transform: scale( 1 ); }
}

.lst-app .lst-level-name,
.lst-app .lst-energy-amount,
.lst-app .lst-weather-now {
	font-family: var(--lst-sign);
	font-size: 1.25rem;
	line-height: 1.2;
}

.lst-app .lst-bar {
	display: block;
	height: 10px;
	max-width: 220px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.18 );
	overflow: hidden;
}

.lst-app .lst-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--lst-lemon);
	transition: width 400ms ease;
}

/* In a narrow column the cash box and the weather each get a row to themselves, so a big balance has room. */
.lst-app .lst-header > .lst-cash,
.lst-app .lst-header > .lst-weather {
	grid-column: 1 / -1;
}

@container lst-app ( min-width: 760px ) {
	.lst-app .lst-header {
		grid-template-columns: 1.2fr 1.2fr 1fr 1.3fr;
		align-items: center;
	}

	.lst-app .lst-header > .lst-cash,
	.lst-app .lst-header > .lst-weather {
		grid-column: auto;
	}
}

/* ---------- Notices ---------- */

.lst-app .lst-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 14px;
	padding: 12px 16px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: #fff7d1;
}

.lst-app .lst-notice p {
	flex: 1 1 260px;
}

.lst-app .lst-notice-error {
	background: #ffe6e3;
}

/* ---------- Tabs ---------- */

.lst-app .lst-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 14px;
}

.lst-app .lst-tab {
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.6 );
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-tab:hover {
	background: #fff;
	color: var(--lst-ink);
}

.lst-app .lst-tab[aria-selected="true"] {
	background: var(--lst-ink);
	color: #fff;
}

.lst-app .lst-tab-count {
	display: inline-block;
	min-width: 1.5em;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--lst-lemon);
	color: var(--lst-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}

/* The tabs, with the screen's own controls at the end of the row: stands side by side, and full screen. */
.lst-app .lst-tabbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 18px 0 14px;
}

.lst-app .lst-tabbar > .lst-tabs {
	margin: 0;
}

.lst-app .lst-tab-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-left: auto;
}

.lst-app .lst-cols {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lst-app .lst-cols-label {
	margin-right: 4px;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 800;
}

.lst-app .lst-cols-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: rgba( 255, 255, 255, 0.6 );
	box-shadow: none;
	color: var(--lst-ink);
	cursor: pointer;
}

.lst-app .lst-cols-btn:hover {
	background: #fff;
	color: var(--lst-ink);
}

.lst-app .lst-cols-btn[aria-pressed="true"] {
	background: var(--lst-ink);
	color: #fff;
}

.lst-app .lst-cols-btn:focus-visible,
.lst-app .lst-full-btn:focus-visible {
	outline: 3px solid var(--lst-rind);
	outline-offset: 2px;
}

/* A little picture of the columns: one bar for each stand side by side. */
.lst-app .lst-cols-pic {
	display: flex;
	gap: 2px;
	width: 20px;
	height: 14px;
}

.lst-app .lst-cols-pic i {
	flex: 1;
	border-radius: 1px;
	background: currentColor;
}

.lst-app .lst-cols-n {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
}

.lst-app .lst-full-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.lst-app .lst-full-ico {
	flex: none;
}

/* Full screen: the browser's own, or (where there is none, as on an iPhone) the game box covering the page. */
.lst-app:fullscreen {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
	overflow-y: auto;
}

.lst-app.lst-big {
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: auto;
	max-width: none;
	margin: 0;
	border-radius: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

html.lst-big-page,
html.lst-big-page body {
	overflow: hidden;
}

.lst-app.lst-is-full > .lst-toasts {
	position: fixed;
}

/* ---------- A stand ---------- */

.lst-app .lst-stands {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 22px;
}

/* As many side by side as the player chose (the game only offers what fits). */
.lst-app .lst-stands.lst-cols-1 {
	grid-template-columns: minmax( 0, 1fr );
}

.lst-app .lst-stands.lst-cols-2 {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.lst-app .lst-stands.lst-cols-3 {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.lst-app .lst-stands.lst-cols-4 {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px;
}

@container lst-app ( min-width: 980px ) {
	.lst-app .lst-stands {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

.lst-app .lst-stand {
	--awn: #d9303f;
	container: lst-card / inline-size; /* What is inside a card fits the card, however many are side by side. */
	position: relative;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
}

/* The striped awning with a scalloped edge, in the location's colour. */
.lst-app .lst-awning {
	position: relative;
	height: 30px;
	border-bottom: 2px solid var(--lst-ink);
	border-radius: 11px 11px 0 0;
	background: repeating-linear-gradient( 90deg, var(--awn) 0 28px, #fff 28px 56px );
}

.lst-app .lst-awning::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 16px;
	background:
		radial-gradient( circle at 14px 0, var(--awn) 11.5px, var(--lst-ink) 12px 13.5px, transparent 14px ) 0 0 / 56px 16px repeat-x,
		radial-gradient( circle at 42px 0, #fff 11.5px, var(--lst-ink) 12px 13.5px, transparent 14px ) 0 0 / 56px 16px repeat-x;
}

.lst-app .lst-stand-body {
	display: grid;
	gap: 16px;
	padding: 28px 18px 18px;
}

.lst-app .lst-stand-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.lst-app.lst-app .lst-stand-name {
	font-family: var(--lst-sign);
	font-weight: 400;
	font-size: 1.75rem;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.lst-app .lst-stand-where {
	color: var(--lst-muted);
	font-weight: 700;
}

.lst-app .lst-stand-menu {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.lst-app .lst-stand-mid {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 16px;
}

@container lst-app ( min-width: 560px ) {
	.lst-app .lst-stand-mid {
		grid-template-columns: 250px minmax( 0, 1fr );
		align-items: start;
	}
}

/* A card too narrow for the chalkboard and the details side by side (three or four stands across). */
@container lst-card ( max-width: 479px ) {
	.lst-app .lst-stand .lst-stand-mid {
		grid-template-columns: minmax( 0, 1fr );
	}
}

/* The price chalkboard. */
.lst-app .lst-board {
	padding: 12px 12px 14px;
	border: 6px solid var(--lst-wood);
	border-radius: 8px;
	background: var(--lst-chalk);
	color: #f3f7ef;
	text-align: center;
}

.lst-app .lst-board-label {
	display: block;
	margin: 0;
	color: #c4d6cf;
	font-family: var(--lst-body);
	font-size: 0.875rem;
	font-weight: 700;
}

.lst-app .lst-board-price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 4px 0 6px;
}

.lst-app .lst-board-dollar {
	font-family: var(--lst-sign);
	font-size: 1.75rem;
	line-height: 1;
}

.lst-app .lst-board .lst-board-input {
	width: 5.2ch;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 2px dashed rgba( 255, 255, 255, 0.45 );
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: var(--lst-sign);
	font-size: 2rem;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.lst-app .lst-board-input::-webkit-outer-spin-button,
.lst-app .lst-board-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.lst-app .lst-round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 2px solid #f3f7ef;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #f3f7ef;
	font-family: var(--lst-body);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.lst-app .lst-round:hover {
	background: #f3f7ef;
	color: var(--lst-chalk);
}

.lst-app .lst-board .lst-round:focus-visible,
.lst-app .lst-board .lst-board-input:focus-visible {
	outline-color: var(--lst-lemon);
}

.lst-app.lst-app .lst-board-mood {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.lst-app .lst-mood-good { color: #b9f0c9; }
.lst-app .lst-mood-warn { color: var(--lst-lemon); }
.lst-app .lst-mood-bad { color: #ffb3ab; }

/* Stock and recipe. */
.lst-app .lst-supply {
	display: grid;
	gap: 10px;
}

.lst-app .lst-supply-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	font-weight: 800;
}

.lst-app .lst-supply-head span:last-child {
	color: var(--lst-muted);
	font-weight: 700;
}

.lst-app .lst-pitcher {
	display: block;
	height: 18px;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.lst-app .lst-pitcher-fill {
	display: block;
	height: 100%;
	background: var(--lst-lemon);
	border-right: 2px solid var(--lst-ink);
	transition: width 400ms ease;
}

.lst-app .lst-pitcher-fill[style*="width:0.0%"] {
	border-right: 0;
}

.lst-app .lst-supply-buy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	min-height: 38px;
}

.lst-app .lst-segs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lst-app .lst-seg {
	min-height: 38px;
	margin: 0;
	padding: 5px 12px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-seg:hover {
	background: #fff7d1;
	color: var(--lst-ink);
}

.lst-app .lst-seg[aria-pressed="true"] {
	background: var(--lst-leaf);
	color: #fff;
}

.lst-app .lst-seg[disabled] {
	border-color: #8ea09b;
	border-style: dashed;
	background: transparent;
	color: #5c6f6a;
	cursor: not-allowed;
}

.lst-app .lst-seg-note {
	font-weight: 600;
	font-size: 0.8125rem;
}

/* Three numbers that sum the stand up. */
.lst-app.lst-app .lst-stats {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
	padding: 12px 0;
	border-top: 2px dashed var(--lst-line);
	border-bottom: 2px dashed var(--lst-line);
}

.lst-app .lst-stats dt {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
}

.lst-app.lst-app .lst-stats dd {
	font-family: var(--lst-sign);
	font-size: 1.5rem;
	line-height: 1.2;
}

.lst-app .lst-stats small {
	font-family: var(--lst-body);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--lst-muted);
}

.lst-app .lst-neg {
	color: var(--lst-cherry);
}

.lst-app.lst-app .lst-tip {
	padding: 8px 12px;
	border-left: 5px solid var(--lst-rind);
	border-radius: 4px;
	background: #fff4cf;
	font-weight: 700;
}

.lst-app.lst-app .lst-tip-bad {
	border-left-color: var(--lst-cherry);
	background: #ffe6e3;
}

/* Crew. */
.lst-app.lst-app .lst-crew-title {
	margin-bottom: 4px;
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 800;
}

.lst-app .lst-crew-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 12px;
	padding: 6px 0;
	border-top: 1px solid var(--lst-line);
}

.lst-app .lst-crew-who {
	flex: 1 1 200px;
	min-width: 0;
}

.lst-app .lst-crew-role {
	color: var(--lst-muted);
	font-weight: 700;
}

.lst-app .lst-crew-wage {
	font-weight: 700;
}

.lst-app .lst-crew-actions {
	display: flex;
	gap: 6px;
}

.lst-app .lst-stars {
	color: var(--lst-rind);
	letter-spacing: 1px;
	white-space: nowrap;
}

.lst-app .lst-stars-off {
	color: #cfd9d5;
}

/* A stand's reputation with its regulars: up to five stars, in halves. */
.lst-app .lst-star {
	color: #cfd9d5;
}

.lst-app .lst-star-on {
	color: var(--lst-rind);
}

.lst-app .lst-star-half {
	background: linear-gradient( 90deg, var(--lst-rind) 50%, #cfd9d5 50% );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lst-app.lst-app .lst-stand-rep {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin: 2px 0 6px;
	color: var(--lst-muted);
	font-size: 0.9375rem;
	font-weight: 700;
}

.lst-app .lst-stand-rep .lst-stars,
.lst-app .lst-rep-head .lst-stars {
	font-size: 1.125rem;
}

.lst-app.lst-app .lst-rep-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
}

.lst-app.lst-app .lst-rep-parts {
	margin: 6px 0 10px 1.25em;
	padding: 0;
	list-style: disc;
}

.lst-app .lst-rep-parts li {
	margin: 2px 0;
}

/* How well a drink suits a location. */
.lst-app .lst-seg-tag.lst-fit-hi,
.lst-app .lst-fit-hi {
	color: var(--lst-leaf);
}

.lst-app .lst-seg-tag.lst-fit-hi {
	background: #dff3e7;
}

.lst-app .lst-seg-tag.lst-fit-lo {
	background: #eef1f0;
	color: var(--lst-muted);
}

.lst-app .lst-fit-lo {
	color: var(--lst-muted);
}

.lst-app.lst-app .lst-loc-drinks {
	font-weight: 600;
}

.lst-app .lst-stand-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Rush hour: the big shift. */
.lst-app .lst-btn-rush {
	background: #ffb35c;
}

.lst-app .lst-btn-rush:not([disabled]):hover {
	background: #ff9f2e;
}

/* ---------- Locations ---------- */

.lst-app .lst-locs {
	display: grid;
	gap: 12px;
}

.lst-app .lst-loc {
	--awn: #d9303f;
	display: grid;
	grid-template-columns: 56px minmax( 0, 1fr );
	gap: 10px 14px;
	align-items: center;
	padding: 14px 16px;
	border: 2px solid var(--lst-ink);
	border-left: 12px solid var(--awn);
	border-radius: 14px;
	background: var(--lst-paper);
}

.lst-app .lst-loc-icon {
	font-size: 2.25rem;
	line-height: 1;
	text-align: center;
}

.lst-app .lst-loc-facts {
	color: var(--lst-muted);
	font-weight: 700;
}

.lst-app .lst-loc-action {
	grid-column: 1 / -1;
}

@container lst-app ( min-width: 700px ) {
	.lst-app .lst-loc {
		grid-template-columns: 56px minmax( 0, 1fr ) auto;
	}

	.lst-app .lst-loc-action {
		grid-column: auto;
	}
}

.lst-app .lst-tag {
	display: inline-block;
	padding: 6px 14px;
	border: 2px solid var(--lst-leaf);
	border-radius: 999px;
	color: var(--lst-leaf);
	font-weight: 800;
}

.lst-app .lst-tag-locked {
	border-color: #8ea09b;
	border-style: dashed;
	color: var(--lst-muted);
}

/* ---------- Job board ---------- */

.lst-app .lst-hire-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 14px;
	font-weight: 700;
}

.lst-app .lst-applicants {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 12px;
}

.lst-app .lst-applicant {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 14px 16px 16px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
}

.lst-app .lst-applicant-role {
	font-weight: 800;
}

.lst-app .lst-applicant-pay {
	color: var(--lst-muted);
	font-weight: 600;
}

.lst-app .lst-applicant .lst-btn {
	margin-top: 6px;
}

.lst-app.lst-app .lst-role-help {
	display: grid;
	gap: 4px;
	margin-top: 16px;
	font-size: 0.9375rem;
}

/* ---------- Tables, empty states ---------- */

.lst-app .lst-table {
	width: 100%;
	margin: 0;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--lst-paper);
	overflow: hidden;
}

.lst-app .lst-table th,
.lst-app .lst-table td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--lst-line);
	background: transparent;
	color: var(--lst-ink);
	font-size: 1rem;
	text-align: left;
}

.lst-app .lst-table th {
	font-weight: 800;
}

.lst-app .lst-table tr:last-child td {
	border-bottom: 0;
}

.lst-app .lst-table .lst-num {
	text-align: right;
}

.lst-app .lst-table .lst-row-me td {
	background: #fff4cf;
	font-weight: 800;
}

/* A face and a name, side by side however long the name is. */
.lst-app .lst-top-who {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-wrap: break-word;
}

/* The name column takes whatever room the numbers leave. */
.lst-app .lst-top th:nth-child( 2 ),
.lst-app .lst-top td:nth-child( 2 ) {
	width: 100%;
}

.lst-app .lst-top td.lst-num {
	white-space: nowrap;
}

/* The leaderboard in a narrow column: tighter cells, and level and stands move under the name. */
.lst-app .lst-top-sub {
	display: block;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lst-app .lst-top th,
.lst-app .lst-top td {
	padding: 10px 8px;
}

.lst-app .lst-top .lst-col-extra {
	display: none;
}

@container lst-app ( min-width: 560px ) {
	.lst-app .lst-top th,
	.lst-app .lst-top td {
		padding: 10px 14px;
	}

	.lst-app .lst-top .lst-col-extra {
		display: table-cell;
	}

	.lst-app .lst-top-sub {
		display: none;
	}
}

.lst-app .lst-empty {
	padding: 28px 20px;
	border: 2px dashed var(--lst-ink);
	border-radius: 14px;
	background: rgba( 255, 255, 255, 0.6 );
	text-align: center;
}

.lst-app.lst-app .lst-empty p {
	max-width: 46ch;
	margin: 6px auto 14px;
}

.lst-app.lst-app .lst-empty p:last-child {
	margin-bottom: 0;
}

/* ---------- Dialog and toasts ---------- */

.lst-app .lst-dialog {
	width: min( 440px, calc( 100vw - 32px ) );
	padding: 20px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
	color: var(--lst-ink);
	font-family: var(--lst-body);
}

.lst-app .lst-dialog::backdrop {
	background: rgba( 23, 48, 43, 0.6 );
}

/* The close button, in a row of no height that sticks to the top, so it stays in view while a long dialog scrolls. */
.lst-app .lst-dialog-x {
	position: sticky;
	top: 8px;
	z-index: 3;
	display: flex;
	flex: none;
	justify-content: flex-end;
	height: 0;
}

.lst-app .lst-dialog-xbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	margin: -10px -10px 0 0;
	padding: 0;
	border: 2px solid var(--lst-ink);
	border-radius: 50%;
	background: var(--lst-paper);
	color: var(--lst-ink);
	font: 700 22px/1 var(--lst-body);
	cursor: pointer;
}

.lst-app .lst-dialog-xbtn:hover {
	background: var(--lst-lemon);
}

.lst-app .lst-dialog-xbtn:focus-visible {
	outline: 3px solid var(--lst-leaf);
	outline-offset: 2px;
}

/* No close button while a shift is played or the first character is made. */
.lst-app .lst-dialog-shift .lst-dialog-x,
.lst-app .lst-dialog-nox .lst-dialog-x {
	display: none;
}

/* Room beside the title for the close button. */
.lst-app.lst-app .lst-dialog > .lst-h {
	padding-right: 34px;
}

.lst-app .lst-dialog-shift > .lst-h,
.lst-app .lst-dialog-nox > .lst-h {
	padding-right: 0;
}

/* A click outside a dialog that has to stay open: a little shake. */
.lst-app .lst-dialog-nudge {
	animation: lst-nudge 0.4s ease;
}

@keyframes lst-nudge {
	0%, 100% { transform: translateX( 0 ); }
	20% { transform: translateX( -6px ); }
	40% { transform: translateX( 6px ); }
	60% { transform: translateX( -4px ); }
	80% { transform: translateX( 4px ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.lst-app .lst-dialog-nudge {
		animation: none;
		outline: 3px solid var(--lst-rind);
	}
}

.lst-app.lst-app .lst-dialog p {
	margin: 8px 0 0;
}

.lst-app .lst-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}

.lst-app .lst-choices {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.lst-app .lst-choice {
	justify-content: space-between;
	border-radius: 12px;
	text-align: left;
}

.lst-app .lst-field {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	font-weight: 700;
}

.lst-app .lst-field input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1rem;
}

.lst-toasts {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 99999;
	display: grid;
	gap: 8px;
	width: min( 420px, calc( 100vw - 32px ) );
	transform: translateX( -50% );
	pointer-events: none;
}

.lst-toasts .lst-toast {
	padding: 12px 16px;
	border-radius: 12px;
	background: #17302b;
	color: #fff;
	font-family: "LST Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: 0 6px 18px rgba( 23, 48, 43, 0.3 );
	animation: lst-rise 180ms ease-out;
}

.lst-toasts .lst-toast-error {
	background: #a81f2c;
}

@keyframes lst-rise {
	from { opacity: 0; transform: translateY( 8px ); }
	to { opacity: 1; transform: none; }
}

/* ---------- Goals strip ---------- */

.lst-app .lst-goals {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 8px;
	margin-top: 12px;
}

.lst-app .lst-goal {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	gap: 4px 10px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: var(--lst-paper);
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	cursor: pointer;
}

.lst-app .lst-goal:hover {
	background: #fff7d1;
	color: var(--lst-ink);
}

.lst-app .lst-goal-who {
	grid-row: span 2;
	font-size: 1.5rem;
	line-height: 1;
}

.lst-app .lst-goal-count {
	color: var(--lst-muted);
	font-weight: 700;
	white-space: nowrap;
}

.lst-app .lst-goal-bar {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: #dfe9e5;
	overflow: hidden;
}

.lst-app .lst-goal-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--lst-leaf);
	transition: width 400ms ease;
}

/* ---------- Messages ---------- */

.lst-app .lst-chat {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
	overflow: hidden;
}

.lst-app.lst-app .lst-thread-list {
	margin: 0;
	padding: 0;
}

/* On a phone the list and the open thread take turns. */
.lst-app.lst-app .lst-chat-open .lst-thread-list {
	display: none;
}

.lst-app .lst-thread-list li {
	margin: 0;
	border-bottom: 1px solid var(--lst-line);
}

.lst-app .lst-thread-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	cursor: pointer;
}

.lst-app .lst-thread-item:hover {
	background: #fff7d1;
	color: var(--lst-ink);
}

.lst-app .lst-thread-item[aria-current="true"] {
	background: #fff1b8;
}

.lst-app .lst-thread-item:focus-visible,
.lst-app .lst-goal:focus-visible,
.lst-app .lst-chip:focus-visible,
.lst-app .lst-thread-log:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: -3px;
}

.lst-app .lst-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 2px solid var(--lst-ink);
	border-radius: 50%;
	background: var(--awn);
	font-size: 1.375rem;
	line-height: 1;
}

.lst-app .lst-avatar-small,
.lst-app .lst-avatar-gap {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
	font-size: 1rem;
}

.lst-app .lst-avatar-gap {
	display: inline-block;
	flex: 0 0 32px;
	height: 0;
}

.lst-app .lst-thread-meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.lst-app .lst-thread-preview {
	overflow: hidden;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lst-app .lst-dot {
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--lst-cherry);
}

.lst-app .lst-thread-flag {
	padding: 2px 8px;
	border: 2px solid var(--lst-leaf);
	border-radius: 999px;
	color: var(--lst-leaf);
	font-size: 0.75rem;
	font-weight: 800;
}

.lst-app .lst-thread {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lst-app .lst-thread-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 2px solid var(--lst-ink);
	background: var(--lst-paper);
}

.lst-app .lst-thread-log {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: min( 54vh, 460px );
	padding: 16px 14px;
	background: #eaf5fa;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lst-app .lst-msg {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 100%;
}

.lst-app .lst-msg-me {
	justify-content: flex-end;
}

.lst-app .lst-bubble {
	max-width: min( 78%, 46ch );
	padding: 9px 13px;
	border: 2px solid var(--lst-ink);
	border-radius: 16px 16px 16px 4px;
	background: #fff;
	overflow-wrap: anywhere;
}

.lst-app .lst-msg-me .lst-bubble {
	border-radius: 16px 16px 4px 16px;
	background: var(--lst-lemon);
	font-weight: 700;
}

.lst-app .lst-msg-chapter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0 6px;
	color: var(--lst-muted);
	font-family: var(--lst-sign);
	font-size: 1.125rem;
}

.lst-app .lst-msg-chapter::before,
.lst-app .lst-msg-chapter::after {
	content: "";
	flex: 1 1 0;
	border-top: 2px dashed #b9cfd9;
}

.lst-app .lst-msg-note {
	align-self: center;
	margin: 4px 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: #d7efdf;
	color: #14532f;
	font-size: 0.875rem;
	font-weight: 800;
}

/* Friendship: a note in the chat when a reply warms or cools a character, and a badge in the thread's header. */
.lst-app .lst-msg-friend {
	align-self: center;
	margin: 2px 0;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 800;
}

.lst-app .lst-msg-friend-up {
	background: #ffe3ec;
	color: #8a1538;
}

.lst-app .lst-msg-friend-down {
	background: #e7ecea;
	color: #3d4f4a;
}

.lst-app .lst-friend {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	margin-left: auto;
	flex: 0 0 auto;
	font-size: 0.8125rem;
	font-weight: 800;
	white-space: nowrap;
}

.lst-app .lst-friend-dots {
	display: inline-flex;
	gap: 3px;
}

.lst-app .lst-friend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d6e3de;
}

.lst-app .lst-friend-dot-on {
	background: var(--lst-leaf);
}

.lst-app .lst-friend-enemy .lst-friend-dot-on,
.lst-app .lst-friend-cool .lst-friend-dot-on {
	background: var(--lst-cherry);
}

.lst-app .lst-friend-close .lst-friend-dot-on {
	background: #e0457b;
}

.lst-app .lst-friend-mini {
	font-size: 0.875rem;
}

.lst-app .lst-msg-goal {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	gap: 6px 12px;
	align-items: center;
	align-self: stretch;
	margin: 6px 0 6px 40px;
	padding: 10px 14px;
	border: 2px dashed var(--lst-leaf);
	border-radius: 12px;
	background: #fff;
}

.lst-app .lst-msg-goal > strong {
	grid-column: 1 / -1;
}

.lst-app .lst-msg-goal-label {
	display: none;
}

.lst-app .lst-thread-foot {
	display: grid;
	gap: 10px;
	padding: 12px 14px;
	border-top: 2px solid var(--lst-ink);
	background: var(--lst-paper);
}

.lst-app .lst-replies {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.lst-app .lst-replies-quiz {
	flex-direction: column;
	align-items: stretch;
}

.lst-app .lst-replies-quiz .lst-btn {
	justify-content: flex-start;
	border-radius: 14px;
	text-align: left;
}

@container lst-app ( min-width: 752px ) {
	.lst-app .lst-chat {
		grid-template-columns: 270px minmax( 0, 1fr );
	}

	.lst-app.lst-app .lst-chat-open .lst-thread-list {
		display: block;
		border-right: 2px solid var(--lst-ink);
	}

	.lst-app .lst-thread-back {
		display: none;
	}
}

/* ---------- Books: a green ledger pad ---------- */

.lst-app .lst-books-nav {
	margin-bottom: 12px;
}

.lst-app .lst-period {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.lst-app .lst-chip {
	min-height: 36px;
	margin: 0;
	padding: 4px 12px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.6 );
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-chip:hover {
	background: #fff;
	color: var(--lst-ink);
}

.lst-app .lst-chip[aria-pressed="true"] {
	border-color: var(--lst-ink);
	background: #fff;
}

.lst-app .lst-paper {
	--lst-rule: #c7dcb9;
	margin-bottom: 16px;
	padding: 18px 18px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: #f1f7ea;
}

.lst-app.lst-app .lst-paper-lead {
	max-width: 62ch;
	margin: 4px 0 12px;
	color: var(--lst-muted);
	font-weight: 600;
}

.lst-app.lst-app .lst-paper-note {
	max-width: 62ch;
	margin-top: 12px;
	font-weight: 700;
}

.lst-app .lst-statement {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.lst-app .lst-statement th,
.lst-app .lst-statement td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--lst-rule);
	background: transparent;
	color: var(--lst-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	vertical-align: top;
}

.lst-app .lst-statement td {
	padding-left: 16px;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.lst-app .lst-statement small {
	display: block;
	max-width: 52ch;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.lst-app .lst-statement .lst-line-sub th,
.lst-app .lst-statement .lst-line-sub td,
.lst-app .lst-statement .lst-line-total th,
.lst-app .lst-statement .lst-line-total td {
	border-top: 2px solid var(--lst-ink);
	font-weight: 800;
}

.lst-app .lst-statement .lst-line-total th,
.lst-app .lst-statement .lst-line-total td {
	border-bottom: 5px double var(--lst-ink);
	font-size: 1.125rem;
}

.lst-app .lst-statement .lst-line-head th {
	padding-top: 16px;
	border-bottom: 2px solid var(--lst-ink);
	font-family: var(--lst-sign);
	font-size: 1.125rem;
	font-weight: 400;
}

.lst-app .lst-statement td.lst-neg,
.lst-app .lst-table td.lst-neg {
	color: #b3202e;
}

.lst-app.lst-app .lst-books-h {
	margin: 20px 0 10px;
}

/* ---------- The books in pictures ---------- */

.lst-app {
	--lst-c-sales: #ffd23f;
	--lst-c-profit: #1f7a4d;
	--lst-c-loss: #d9303f;
	--lst-c-cogs: #f0a202;
	--lst-c-wages: #3a7bd5;
	--lst-c-rent: #8e5cc4;
	--lst-c-other: #8a8f98;
}

.lst-app .lst-c-sales { background: var(--lst-c-sales); }
.lst-app .lst-c-profit { background: var(--lst-c-profit); }
.lst-app .lst-c-loss { background: var(--lst-c-loss); }
.lst-app .lst-c-cogs { background: var(--lst-c-cogs); }
.lst-app .lst-c-wages { background: var(--lst-c-wages); }
.lst-app .lst-c-rent { background: var(--lst-c-rent); }
.lst-app .lst-c-other { background: var(--lst-c-other); }

.lst-app .lst-charts {
	display: grid;
	gap: 14px;
	margin: 12px 0 16px;
}

@container lst-app ( min-width: 860px ) {
	.lst-app .lst-charts:has( .lst-chart-days ) {
		grid-template-columns: minmax( 0, 1.4fr ) minmax( 0, 1fr );
	}
}

.lst-app.lst-app .lst-chart-split {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lst-app.lst-app .lst-chart {
	min-width: 0;
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--lst-line);
	border-radius: 12px;
	background: #fff;
}

.lst-app.lst-app .lst-chart-title {
	margin: 0 0 10px;
	font-weight: 800;
}

/* Where each $1 went: one bar in parts. */
.lst-app .lst-split {
	display: flex;
	height: 34px;
	overflow: hidden;
	border: 2px solid var(--lst-ink);
	border-radius: 8px;
}

.lst-app .lst-split-part {
	flex-basis: 0;
	min-width: 3px;
}

.lst-app .lst-split-part + .lst-split-part {
	border-left: 2px solid var(--lst-paper);
}

.lst-app.lst-app .lst-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 700;
}

.lst-app .lst-legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.lst-app .lst-legend i {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid rgba( 0, 0, 0, 0.25 );
	border-radius: 3px;
}

.lst-app .lst-legend b {
	color: var(--lst-ink);
}

/* Day by day: a pair of bars a day, losses below the line. */
.lst-app .lst-days {
	position: relative;
	display: grid;
	grid-template-columns: repeat( var(--n), minmax( 0, 1fr ) );
	gap: 4px;
	height: 190px;
	padding-top: 18px;
}

.lst-app .lst-days-many {
	gap: 2px;
}

.lst-app .lst-days-top {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--lst-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.lst-app .lst-day {
	display: grid;
	grid-template-rows: minmax( 0, var(--up) ) minmax( 0, 1fr ) auto;
	min-width: 0;
}

.lst-app .lst-day-up {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	border-bottom: 2px solid var(--lst-ink);
}

.lst-app .lst-day-down {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
}

.lst-app .lst-days .lst-dbar-gap {
	visibility: hidden;
}

.lst-app .lst-days .lst-dbar {
	display: block;
	width: min( 40%, 22px );
	min-height: 1px;
	border-radius: 3px 3px 0 0;
}

.lst-app .lst-day-down .lst-dbar {
	border-radius: 0 0 3px 3px;
}

.lst-app .lst-day-label {
	overflow: hidden;
	padding-top: 4px;
	color: var(--lst-muted);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

/* A week on a phone: the date alone under each day. */
.lst-app .lst-day-short {
	display: none;
}

@container lst-app ( max-width: 560px ) {
	.lst-app .lst-day-long {
		display: none;
	}

	.lst-app .lst-day-short {
		display: inline;
	}
}

/* Profit by stand: sales behind, profit in front. */
.lst-app.lst-app .lst-hbars {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lst-app.lst-app .lst-hbar {
	display: grid;
	grid-template-columns: minmax( 0, 11em ) minmax( 0, 1fr ) auto;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.lst-app .lst-hbar-name {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lst-app .lst-hbar-track {
	position: relative;
	display: block;
	height: 22px;
}

.lst-app .lst-hbar-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	min-width: 2px;
	border-radius: 0 4px 4px 0;
}

.lst-app .lst-hbar-bar + .lst-hbar-bar {
	top: 25%;
	height: 50%;
}

.lst-app .lst-hbar-val {
	min-width: 5.5em;
	font-weight: 800;
	text-align: right;
}

@container lst-app ( max-width: 520px ) {
	.lst-app.lst-app .lst-hbar {
		grid-template-columns: minmax( 0, 1fr ) auto;
		gap: 2px 8px;
	}

	.lst-app .lst-hbar-track {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

.lst-app.lst-app .lst-chart-more {
	margin: 8px 0 0;
	font-size: 0.875rem;
}

.lst-app .lst-chart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 14px;
}

.lst-app.lst-app .lst-stand-pics {
	margin-bottom: 14px;
}

.lst-app .lst-stand-pics .lst-chart {
	border: 0;
	padding: 0;
	background: none;
}

.lst-app .lst-picture {
	display: block;
	width: 100%;
	height: auto;
	margin: 10px 0 4px;
	border-radius: 8px;
	image-rendering: auto;
}

.lst-app .lst-post .lst-chart {
	margin-top: 8px;
}

.lst-app .lst-table-wrap {
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
	overflow-x: auto;
}

.lst-app .lst-table-wrap .lst-table {
	border: 0;
	border-radius: 0;
}

.lst-app .lst-stand-table th,
.lst-app .lst-stand-table td {
	white-space: nowrap;
}

.lst-app .lst-details {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 2px dashed var(--lst-leaf);
	border-radius: 12px;
	background: #fff;
}

.lst-app .lst-details summary {
	color: var(--lst-leaf);
	font-weight: 800;
	cursor: pointer;
}

.lst-app.lst-app .lst-details p {
	max-width: 62ch;
	margin: 10px 0;
}

.lst-app .lst-entry {
	padding: 12px 0;
	border-top: 1px solid var(--lst-rule);
}

.lst-app .lst-entry header {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	align-items: baseline;
	margin-bottom: 6px;
}

.lst-app .lst-entry-date {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 700;
}

.lst-app .lst-entry-lines {
	width: 100%;
	max-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.lst-app .lst-entry-lines th,
.lst-app .lst-entry-lines td {
	padding: 3px 0;
	border: 0;
	background: transparent;
	color: var(--lst-ink);
	font-size: 0.9375rem;
	text-align: left;
}

.lst-app .lst-entry-lines th {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app .lst-entry-lines .lst-num {
	width: 6.5em;
	font-weight: 700;
	text-align: right;
}

/* Credits are indented, as on a paper journal. */
.lst-app .lst-entry-lines td.lst-credit {
	padding-left: 28px;
}

.lst-app.lst-app .lst-entry-why {
	max-width: 62ch;
	margin-top: 6px;
	color: var(--lst-muted);
	font-size: 0.9375rem;
	font-weight: 600;
}

.lst-app.lst-app .lst-journal-more {
	padding-top: 12px;
	border-top: 1px solid var(--lst-rule);
}

/* ---------- Faces and scenes (with an art pack) ---------- */

.lst-app .lst-header > .lst-cash {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.lst-app .lst-cash-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lst-app .lst-me {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 2px solid #f3f7ef;
	border-radius: 50%;
	background: var(--lst-sky);
	box-shadow: none;
	overflow: hidden;
	cursor: pointer;
}

.lst-app .lst-me:hover {
	border-color: var(--lst-lemon);
	background: var(--lst-sky);
}

.lst-app .lst-me:focus-visible {
	outline: 3px solid var(--lst-lemon);
	outline-offset: 2px;
}

.lst-app .lst-avatar-face {
	overflow: hidden;
}

.lst-app .lst-mug {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin-right: 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 50%;
	background: var(--lst-sky);
	overflow: hidden;
	vertical-align: middle;
}

.lst-app .lst-mug-big {
	width: 88px;
	height: 88px;
	margin: 0 0 4px;
}

.lst-app .lst-stand-has-scene .lst-stand-body {
	padding-top: 16px;
}

.lst-app .lst-dialog-wide {
	width: min( 600px, calc( 100vw - 24px ) );
}

/* The builder dialog keeps the preview and the save button in view; only the options scroll. */
.lst-app .lst-dialog-wide[open] {
	display: flex;
	flex-direction: column;
	max-height: calc( 100vh - 24px );
	max-height: calc( 100dvh - 24px );
	overflow: hidden;
}

.lst-app .lst-look-host {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	margin-top: 12px;
}

.lst-app .lst-look-host .lst-look {
	flex: 1 1 auto;
	grid-template-rows: auto minmax( 0, 1fr );
	min-height: 0;
}

.lst-app .lst-look-host .lst-look-rows {
	min-height: 0;
	padding-right: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lst-app .lst-look-host .lst-look-preview {
	padding: 8px 14px;
}

.lst-app .lst-dialog-wide .lst-dialog-actions {
	flex: none;
	margin-top: 12px;
}

/* What just left the cash box (wages, a manager's shopping), named beside the "Cash" label for a moment. */
.lst-app .lst-cash-text {
	position: relative;
}

.lst-app .lst-cash-note {
	position: absolute;
	top: -2px;
	left: 3.4em;
	padding: 1px 8px;
	border-radius: 999px;
	background: #ffd9d4;
	color: #7a1420;
	font-family: var(--lst-body);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.35;
	white-space: nowrap;
	pointer-events: none;
	animation: lst-cash-note 2.6s ease-out both;
}

.lst-app .lst-cash-note-second {
	top: 100%;
	left: 0;
}

@keyframes lst-cash-note {
	0% { opacity: 0; transform: translateX( -8px ); }
	12% { opacity: 1; transform: none; }
	75% { opacity: 1; }
	100% { opacity: 0; }
}

/* ---------- Counter talk ---------- */

.lst-app .lst-talk-row {
	display: flex;
	align-items: flex-start;
	gap: 2px;
	padding: 7px 0;
	border-top: 1px solid var(--lst-line);
}

.lst-app .lst-talk-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lst-app .lst-talk-who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-size: 0.875rem;
}

.lst-app .lst-talk-when {
	color: var(--lst-muted);
}

.lst-app .lst-talk-kind {
	padding: 0 7px;
	border-radius: 999px;
	background: #e3ece9;
	color: var(--lst-ink);
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
}

.lst-app .lst-talk-kind-price { background: #ffe9a6; }
.lst-app .lst-talk-kind-forecast,
.lst-app .lst-talk-kind-weather { background: #cfe6f7; }
.lst-app .lst-talk-kind-gossip { background: #f3d9ec; }
.lst-app .lst-talk-kind-visit { background: #fde2c4; }
.lst-app .lst-talk-kind-stock,
.lst-app .lst-talk-kind-wait { background: #ffd9d4; }

.lst-app .lst-talk-quote,
.lst-app .lst-talk-said {
	display: block;
	margin-top: 1px;
}

.lst-app .lst-talk-quote {
	quotes: "\201c" "\201d";
}

.lst-app .lst-talk-said {
	font-style: italic;
}

.lst-app.lst-app .lst-talk-empty {
	padding: 7px 0 0;
	border-top: 1px solid var(--lst-line);
	font-size: 0.9375rem;
}

.lst-app .lst-talk .lst-link {
	padding-left: 0;
}

/* ---------- Working a shift ---------- */

.lst-app .lst-dialog-shift {
	width: min( 620px, calc( 100vw - 16px ) );
	padding: 16px;
}

.lst-app .lst-dialog-shift[open] {
	overflow-y: auto;
}

.lst-app .lst-shift-host {
	margin-top: 10px;
}

.lst-app.lst-app .lst-shift-totals {
	margin: 12px 0 4px;
}

.lst-app.lst-app .lst-shift-heard-title {
	margin-top: 14px;
}

.lst-app.lst-app .lst-shift-heard li {
	padding: 6px 0;
	border-top: 1px solid var(--lst-line);
}

/* ---------- Before logging in ---------- */

.lst-app.lst-guest {
	padding: 0;
	border: 2px solid var(--lst-ink);
	background: var(--lst-paper);
}

.lst-app.lst-guest .lst-awning {
	height: 36px;
	border-radius: 17px 17px 0 0;
}

.lst-app .lst-guest-body {
	padding: 40px 24px 28px;
}

.lst-app.lst-app .lst-guest-title {
	max-width: 16ch;
	font-family: var(--lst-sign);
	font-weight: 400;
	font-size: clamp( 2rem, 7cqw, 3.25rem );
	line-height: 1.05;
}

.lst-app.lst-app .lst-guest-body p {
	max-width: 52ch;
	margin-top: 14px;
	font-size: 1.0625rem;
}

.lst-app.lst-app .lst-guest-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

/* "Play now": a guest game straight away. */
.lst-app .lst-btn-play {
	min-width: 168px;
	font-size: 1.125rem;
}

.lst-app.lst-app .lst-guest-body .lst-guest-note {
	margin-top: 16px;
	color: var(--lst-muted);
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-guest-body .lst-guest-said {
	min-height: 1.45em;
	margin-top: 8px;
	font-weight: 700;
}

.lst-app.lst-app .lst-guest-body .lst-guest-said-bad {
	color: var(--lst-cherry);
}

/* ---------- Guest games ---------- */

.lst-app .lst-guestbar {
	background: #fff3e0;
}

.lst-app .lst-guestbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lst-app.lst-app .lst-guestbar-small {
	margin-top: 10px;
	color: var(--lst-muted);
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-guestbar-small .lst-link {
	padding: 2px 2px;
}

.lst-app.lst-app .lst-guest-rank {
	margin-top: 12px;
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-guest-rank .lst-link,
.lst-app.lst-app .lst-guide-guest .lst-link {
	padding: 0 2px;
	font-size: inherit;
}

.lst-app.lst-app .lst-guide-guest {
	margin-bottom: 14px;
	padding: 10px 14px;
	border: 2px dashed var(--lst-rind);
	border-radius: 12px;
	background: #fff7d1;
}

.lst-app .lst-join-panel {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.lst-app.lst-app .lst-join-panel p {
	max-width: 60ch;
	margin-top: 10px;
}

.lst-app .lst-dialog-join {
	width: min( 480px, calc( 100vw - 32px ) );
}

.lst-app.lst-app .lst-join-why {
	font-weight: 700;
}

.lst-app.lst-app .lst-dialog .lst-join-risk {
	margin-top: 12px;
	padding: 8px 12px;
	border: 2px solid var(--lst-rind);
	border-radius: 10px;
	background: #fff3e0;
}

.lst-app .lst-join-field {
	margin-top: 14px;
}

.lst-app .lst-join-input {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.lst-app .lst-join-input input {
	flex: 1 1 auto;
	min-width: 0;
}

.lst-app .lst-join-input .lst-join-peek {
	flex: none;
	min-height: 44px;
}

.lst-app.lst-app .lst-join-hint {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.lst-app.lst-app .lst-dialog .lst-join-error {
	min-height: 1.45em;
	margin-top: 12px;
	color: var(--lst-cherry);
	font-weight: 700;
}

.lst-app.lst-app .lst-dialog .lst-join-done {
	margin-top: 12px;
	color: var(--lst-leaf);
	font-weight: 800;
}

.lst-app.lst-app .lst-dialog .lst-join-login {
	margin-top: 16px;
	font-size: 0.9375rem;
}

.lst-app.lst-board-only {
	padding: 0;
	background: transparent;
}

@media ( prefers-reduced-motion: reduce ) {
	.lst-toasts .lst-toast,
	.lst-app *,
	.lst-app *::before,
	.lst-app *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Company name and sign ---------- */

.lst-app .lst-header > .lst-brand-row {
	grid-column: 1 / -1;
	align-items: flex-start;
	margin: -4px 0 -2px;
}

.lst-app .lst-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 3px 12px 3px 4px;
	border: 2px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 10px;
	background: rgba( 255, 255, 255, 0.08 );
	box-shadow: none;
	color: #f3f7ef;
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	flex-wrap: wrap;
}

.lst-app .lst-brand:hover {
	border-color: var(--lst-lemon);
	background: rgba( 255, 255, 255, 0.14 );
	color: #fff;
}

.lst-app .lst-brand:focus-visible {
	outline: 3px solid var(--lst-lemon);
	outline-offset: 2px;
}

.lst-app .lst-brand-name {
	flex: 1 1 auto;
	min-width: 6ch;
	font-family: var(--lst-sign);
	font-size: 1.25rem;
	font-weight: 400;
	overflow-wrap: break-word;
}

.lst-app .lst-brand-edit {
	flex: none;
	color: #c4d6cf;
	font-size: 0.8125rem;
	text-decoration: underline;
}

.lst-app .lst-brand-lemon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 24px;
	border-radius: 3px;
	background: #f8f8f8;
	font-size: 1rem;
	line-height: 1;
}

/* A drawn sign, shown as crisp squares at any size. */
.lst-app .lst-logo {
	flex: none;
	border-radius: 2px;
	box-shadow: 0 0 0 2px var(--lst-wood);
	image-rendering: pixelated;
	vertical-align: middle;
}

.lst-app .lst-top-company {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0;
	color: var(--lst-leaf);
	font-size: 0.875rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.lst-app.lst-board-only .lst-top-company {
	display: block;
}

.lst-app.lst-app .lst-company-note {
	margin-top: 4px;
	font-size: 0.875rem;
}

.lst-app .lst-logo-edit {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 14px;
	margin-top: 8px;
}

@media ( min-width: 600px ) {
	.lst-app .lst-logo-edit {
		grid-template-columns: minmax( 0, 1fr ) 196px;
		align-items: start;
	}
}

/* Twelve squares across, eight down: the shape of the sign. */
.lst-app .lst-logo-grid {
	display: grid;
	grid-template-columns: repeat( 12, minmax( 0, 1fr ) );
	gap: 1px;
	padding: 1px;
	border: 6px solid var(--lst-wood);
	border-radius: 8px;
	background: #c9ced6;
	cursor: crosshair;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.lst-app .lst-logo-grid i {
	display: block;
	aspect-ratio: 1;
}

.lst-app .lst-logo-grid:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app .lst-logo-grid:focus-visible .lst-logo-at {
	position: relative;
	z-index: 1;
	outline: 3px solid #0b6fb8;
	outline-offset: -1px;
}

.lst-app .lst-logo-side {
	display: grid;
	gap: 12px;
}

.lst-app .lst-logo-inks {
	display: grid;
	grid-template-columns: repeat( 8, minmax( 0, 1fr ) );
	gap: 4px;
}

@media ( min-width: 600px ) {
	.lst-app .lst-logo-inks {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}

.lst-app .lst-logo-ink {
	position: relative;
	min-width: 0;
	min-height: 36px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--lst-ink);
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
}

.lst-app .lst-logo-ink[aria-pressed="true"] {
	outline: 3px solid var(--lst-ink);
	outline-offset: 2px;
}

.lst-app .lst-logo-ink:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

/* The first colour is the sign's own paper: drawing with it rubs out. */
.lst-app .lst-logo-rub::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 15%;
	right: 15%;
	border-top: 2px solid var(--lst-cherry);
	transform: rotate( -35deg );
}

.lst-app .lst-logo-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lst-app .lst-logo-show {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 700;
}

.lst-app .lst-logo-preview {
	width: 128px;
	height: 104px;
	border: 2px solid var(--lst-ink);
	border-radius: 8px;
	background: #9fc8a0;
	image-rendering: pixelated;
}

/* ---------- Stand cards: folded away, and the lines that explain the numbers ---------- */

.lst-app .lst-stand-menu {
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}

.lst-app .lst-fold {
	min-height: 36px;
	margin: 0;
	padding: 4px 12px;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

.lst-app .lst-fold::after {
	content: " ▾";
}

.lst-app .lst-fold[aria-expanded="true"]::after {
	content: " ▴";
}

.lst-app .lst-fold:hover {
	background: #fff4cf;
	color: var(--lst-ink);
}

.lst-app .lst-fold:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app .lst-sum {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1.6fr ) minmax( 0, 1fr );
	gap: 10px 14px;
	align-items: stretch; /* The three boxes are the same height. */
	padding: 10px 0;
	border-top: 2px dashed var(--lst-line);
}

.lst-app .lst-sum-item {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.lst-app .lst-sum-label {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
}

.lst-app .lst-sum strong {
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.25;
}

.lst-app .lst-sum small {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app .lst-pitcher-small {
	height: 12px;
	margin-top: 2px;
}

.lst-app.lst-app .lst-board-keep {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed rgba( 255, 255, 255, 0.3 );
	color: #f3f7ef;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.lst-app .lst-board-keep strong {
	color: var(--lst-lemon);
}

.lst-app.lst-app .lst-board-fair {
	margin-top: 4px;
	color: #c4d6cf;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.lst-app.lst-app .lst-drink-note,
.lst-app.lst-app .lst-counter {
	color: var(--lst-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.lst-app .lst-counter strong {
	color: var(--lst-ink);
}

.lst-app .lst-counter .lst-link {
	padding: 0 2px;
}

/* ---------- How to play ---------- */

.lst-app .lst-guide-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.lst-app .lst-guide-sec {
	scroll-margin-top: 16px;
}

.lst-app .lst-guide-sec[hidden] {
	display: none;
}

/* On a wide screen the sections are a list down the side, and the one chosen fills the rest. */
@container lst-app ( min-width: 900px ) {
	.lst-app .lst-guide {
		display: grid;
		grid-template-columns: 240px minmax( 0, 1fr );
		gap: 18px;
		align-items: start;
	}

	.lst-app.lst-app .lst-guide-nav {
		position: sticky;
		top: 44px;
		flex-direction: column;
		flex-wrap: nowrap;
		margin: 0;
	}

	.lst-app .lst-guide-nav .lst-chip {
		width: 100%;
		text-align: left;
	}
}

/* The way on, at the end of each section. */
.lst-app.lst-app .lst-guide-next {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 2px dashed var(--lst-line);
}

.lst-app .lst-guide-sec:focus {
	outline: none;
}

.lst-app.lst-app .lst-guide-sec p,
.lst-app.lst-app .lst-guide-sec ul {
	max-width: 70ch;
	margin: 8px 0 0;
}

.lst-app.lst-app .lst-guide-sec ul {
	padding-left: 1.2em;
	list-style: disc;
}

.lst-app .lst-guide-sec li {
	margin: 4px 0;
}

.lst-app .lst-guide-sec .lst-table-wrap {
	margin-top: 10px;
	overflow-x: auto;
}

.lst-app .lst-guide-table th,
.lst-app .lst-guide-table td {
	padding: 8px 12px;
	font-size: 0.9375rem;
	vertical-align: top;
}

.lst-app .lst-guide-table tbody th {
	font-weight: 800;
}

.lst-app .lst-guide-table small {
	display: block;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lst-app .lst-guide-table tr:last-child th {
	border-bottom: 0;
}

.lst-app .lst-guide-table .lst-row-me th {
	background: #fff4cf;
}

/* On a narrow card the name takes the first line and the links drop below it. */
.lst-app .lst-stand-top {
	flex-wrap: wrap;
}

.lst-app .lst-stand-top > div:first-child {
	flex: 1 1 200px;
	min-width: 0;
}

.lst-app .lst-stand-menu {
	flex-shrink: 1;
	margin-left: auto;
}

/* ---------- Events: what is happening in town ---------- */

.lst-app .lst-events {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 8px;
	margin-top: 12px;
}

.lst-app .lst-event {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	gap: 2px 12px;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: 8px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: #fff4cf;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-event:hover {
	background: #ffe9a3;
	color: var(--lst-ink);
}

.lst-app .lst-event:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

/* Not started yet: quieter, with a dashed edge. */
.lst-app .lst-event-soon {
	border-style: dashed;
	background: var(--lst-paper);
}

.lst-app .lst-event-soon:hover {
	background: #fff7d1;
}

.lst-app .lst-event-icon {
	grid-row: span 2;
	font-size: 1.5rem;
	line-height: 1;
}

.lst-app .lst-event-text strong {
	font-family: var(--lst-sign);
	font-size: 1.125rem;
	font-weight: 400;
}

.lst-app .lst-event-what {
	display: block;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 700;
}

.lst-app .lst-event-on .lst-event-what {
	color: #5a4a00;
}

.lst-app .lst-event-when {
	grid-column: 2;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	white-space: nowrap;
}

/* With room to spare, how long is left sits at the right-hand end. */
@container lst-app ( min-width: 700px ) {
	.lst-app .lst-event {
		grid-template-columns: auto minmax( 0, 1fr ) auto;
	}

	.lst-app .lst-event-icon {
		grid-row: auto;
	}

	.lst-app .lst-event-when {
		grid-column: auto;
		text-align: right;
	}
}

.lst-app.lst-app .lst-event-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lst-app .lst-event-tag {
	padding: 3px 10px;
	border: 1px solid #e3c65a;
	border-radius: 999px;
	background: #fff4cf;
	font-size: 0.875rem;
	line-height: 1.35;
}

/* A drink that is only on the menu for a while. */
.lst-app .lst-seg-tag {
	margin-left: 2px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--lst-lemon);
	color: var(--lst-ink);
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
}

/* ---------- Marketing ---------- */

.lst-app.lst-app .lst-ad-intro {
	max-width: 70ch;
	margin-bottom: 14px;
	font-weight: 600;
}

.lst-app .lst-ad-stands {
	margin-bottom: 14px;
}

.lst-app.lst-app .lst-ad-facts {
	margin-bottom: 10px;
}

.lst-app.lst-app .lst-ad-paper .lst-tip {
	margin: 0 0 12px;
}

.lst-app.lst-app .lst-tip-good {
	border-left-color: var(--lst-leaf);
	background: #dff3e4;
}

.lst-app .lst-pos {
	color: var(--lst-leaf);
}

.lst-app .lst-ad-list {
	display: grid;
	gap: 10px;
}

.lst-app .lst-ad,
.lst-app .lst-ad-live {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	gap: 10px 14px;
	align-items: start;
	padding: 12px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: var(--lst-paper);
}

.lst-app .lst-ad .lst-btn {
	grid-column: 1 / -1;
	justify-self: stretch;
}

@container lst-app ( min-width: 640px ) {
	.lst-app .lst-ad {
		grid-template-columns: auto minmax( 0, 1fr ) auto;
		align-items: center;
	}

	.lst-app .lst-ad .lst-btn {
		grid-column: auto;
		justify-self: end;
	}
}

.lst-app .lst-ad-locked {
	border-style: dashed;
	border-color: #8ea09b;
	background: transparent;
}

.lst-app .lst-ad-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--lst-lemon);
	font-size: 1.6rem;
	line-height: 1;
}

.lst-app .lst-ad-locked .lst-ad-icon {
	background: #dfe8e4;
	filter: grayscale( 1 );
}

.lst-app.lst-app .lst-ad-name {
	font-family: var(--lst-body);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.lst-app.lst-app .lst-ad-text p,
.lst-app.lst-app .lst-ad-live-text p {
	margin-top: 3px;
}

.lst-app.lst-app .lst-ad-nums {
	color: var(--lst-muted);
	font-weight: 600;
}

.lst-app.lst-app .lst-ad-nums strong {
	color: var(--lst-ink);
}

.lst-app .lst-ad-on,
.lst-app .lst-ad-off {
	margin-left: 4px;
	padding: 1px 10px;
	border-width: 1px;
	font-size: 0.8125rem;
	vertical-align: 2px;
	white-space: nowrap;
}

.lst-app .lst-ad-on {
	background: #dff3e4;
}

.lst-app .lst-ad-off {
	border-color: var(--lst-cherry);
	background: #ffe6e3;
	color: #a31f2c;
}

.lst-app.lst-app .lst-ad-said {
	font-weight: 600;
}

.lst-app .lst-ad-said q {
	font-style: italic;
}

/* A stand card's marketing, as tags that lead to the tab. */
.lst-app .lst-ad-tag {
	margin: 0;
	padding: 3px 10px;
	border: 1px solid #8fc6a3;
	border-radius: 999px;
	background: #dff3e4;
	box-shadow: none;
	color: var(--lst-ink);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.lst-app .lst-ad-tag:hover {
	border-color: var(--lst-leaf);
	background: #cdebd6;
	color: var(--lst-ink);
}

.lst-app .lst-ad-tag:focus-visible {
	outline: 3px solid var(--lst-ink);
	outline-offset: 2px;
}

.lst-app .lst-ad-tag-off {
	border-color: #e5a29b;
	background: #ffe6e3;
}

.lst-app .lst-ad-tag-off:hover {
	border-color: var(--lst-cherry);
	background: #ffd6d1;
}

.lst-app.lst-app .lst-stats-note {
	color: var(--lst-muted);
	font-family: var(--lst-body);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

/* What a stand is known for. */
.lst-app.lst-app .lst-signs {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.lst-app .lst-sign {
	display: grid;
	gap: 8px 14px;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid #b9cdbf;
	border-radius: 12px;
	background: var(--lst-paper);
}

.lst-app .lst-sign .lst-btn {
	justify-self: start;
}

@container lst-app ( min-width: 640px ) {
	.lst-app .lst-sign {
		grid-template-columns: minmax( 0, 1fr ) auto;
	}

	.lst-app .lst-sign .lst-btn {
		justify-self: end;
	}
}

.lst-app .lst-sign-mine {
	border: 2px solid var(--lst-ink);
}

.lst-app.lst-app .lst-sign-text p {
	margin-top: 3px;
}

.lst-app.lst-app .lst-sign .lst-tip {
	margin: 8px 0 0;
}

/* The notebook. */
.lst-app .lst-notes {
	display: grid;
	gap: 12px;
}

.lst-app .lst-note {
	padding: 12px 14px;
	border: 1px solid #b9cdbf;
	border-left: 6px solid var(--lst-leaf);
	border-radius: 10px;
	background: var(--lst-paper);
}

.lst-app .lst-note-bad {
	border-left-color: var(--lst-cherry);
}

.lst-app .lst-note-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
}

.lst-app .lst-note-when {
	color: var(--lst-muted);
	font-size: 0.875rem;
}

.lst-app.lst-app .lst-note-nums {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 8px 12px;
	margin: 10px 0;
}

@container lst-app ( min-width: 560px ) {
	.lst-app.lst-app .lst-note-nums {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}

.lst-app .lst-note-nums dt {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app.lst-app .lst-note-nums dd {
	font-size: 1.15rem;
	font-weight: 800;
}

.lst-app.lst-app .lst-note .lst-tip {
	margin: 8px 0 0;
}

.lst-app.lst-app .lst-note-lesson {
	margin-top: 8px;
	color: var(--lst-muted);
	font-size: 0.875rem;
}

.lst-app.lst-app .lst-note p + p {
	margin-top: 6px;
}

/* Planning a campaign, and what it taught. */
.lst-app .lst-dialog-ad {
	width: min( 560px, calc( 100vw - 24px ) );
	max-height: calc( 100vh - 24px );
	max-height: calc( 100dvh - 24px );
	overflow-y: auto;
}

.lst-app .lst-ad-options {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.lst-app .lst-ad-options legend {
	margin-bottom: 8px;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 800;
}

.lst-app .lst-ad-option {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	gap: 10px;
	align-items: start;
	padding: 10px 12px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}

.lst-app .lst-ad-option:hover {
	background: #fff8dd;
}

.lst-app .lst-ad-option:has( input:checked ) {
	background: var(--lst-lemon);
}

.lst-app .lst-ad-option:has( input:focus-visible ) {
	outline: 3px solid var(--lst-ink);
	outline-offset: 2px;
}

.lst-app .lst-ad-option input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--lst-ink);
}

.lst-app .lst-ad-test {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	color: var(--lst-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.lst-app .lst-ad-test-bar,
.lst-app .lst-ad-score-bar {
	display: block;
	flex: 0 0 96px;
	height: 10px;
	overflow: hidden;
	border: 1px solid var(--lst-ink);
	border-radius: 999px;
	background: #fff;
}

.lst-app .lst-ad-test-bar span,
.lst-app .lst-ad-score-bar span {
	display: block;
	height: 100%;
	background: var(--lst-leaf);
}

.lst-app .lst-ad-score {
	margin-top: 10px;
	padding: 10px 12px;
	border-left: 5px solid var(--lst-leaf);
	border-radius: 4px;
	background: #dff3e4;
}

.lst-app .lst-ad-score-bar {
	width: 100%;
	margin-bottom: 6px;
}

.lst-app .lst-ad-score-warn {
	border-left-color: var(--lst-rind);
	background: #fff4cf;
}

.lst-app .lst-ad-score-warn .lst-ad-score-bar span {
	background: var(--lst-rind);
}

.lst-app .lst-ad-score-bad {
	border-left-color: var(--lst-cherry);
	background: #ffe6e3;
}

.lst-app .lst-ad-score-bad .lst-ad-score-bar span {
	background: var(--lst-cherry);
}

.lst-app .lst-ad-lesson {
	margin-top: 14px;
	padding: 12px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: #f1f7ea;
}

.lst-app.lst-app .lst-ad-source {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-style: italic;
}

.lst-app .lst-talk-kind-ad { background: #dff3e4; }

.lst-app.lst-app .lst-ad-room {
	color: #8a4b00;
	font-size: 0.875rem;
	font-weight: 700;
}

/* ---------- Wardrobe ---------- */

.lst-app.lst-app .lst-look-note {
	flex: none;
	margin: 10px 0 0;
	padding: 8px 12px;
	border-left: 5px solid var(--lst-leaf);
	border-radius: 4px;
	background: #dff3e4;
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-look-note-no {
	border-left-color: var(--lst-rind);
	background: #fff4cf;
}

.lst-app.lst-app .lst-look-note[hidden] {
	display: none;
}

/* ---------- A stand's details: how it is doing, then one part at a time ---------- */

.lst-app .lst-how {
	padding: 12px 14px;
	border: 2px solid var(--lst-line);
	border-radius: 12px;
	background: #f4f9f6;
}

.lst-app.lst-app .lst-how-line {
	font-size: 1.0625rem;
	line-height: 1.4;
}

.lst-app .lst-how-pitcher,
.lst-app .lst-how-price {
	border-color: #f0b8b1;
	background: #fff1ef;
}

.lst-app.lst-app .lst-how-parts {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
	margin-top: 10px;
}

.lst-app .lst-how-part {
	min-width: 0;
	padding: 8px 10px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #fff;
}

.lst-app .lst-how-part dt {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
}

.lst-app.lst-app .lst-how-part dd {
	font-family: var(--lst-sign);
	font-size: 1.5rem;
	line-height: 1.15;
}

.lst-app .lst-how-part small {
	color: var(--lst-muted);
	font-family: var(--lst-body);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app.lst-app .lst-how-part .lst-how-note {
	min-height: 1.3em;
	color: var(--lst-muted);
	font-family: var(--lst-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

/* The smallest of the three is what the stand sells. */
.lst-app .lst-how-limit {
	border-color: var(--lst-rind);
	background: #fff4cf;
}

.lst-app.lst-app .lst-how-limit .lst-how-note {
	color: #7a4a00;
	font-weight: 800;
}

.lst-app.lst-app .lst-how-profit {
	margin-top: 10px;
	color: var(--lst-muted);
	font-size: 0.9375rem;
}

.lst-app .lst-how-profit strong {
	color: var(--lst-ink);
	font-size: 1.0625rem;
}

.lst-app .lst-how-profit strong.lst-neg {
	color: var(--lst-cherry);
}

.lst-app .lst-secs {
	border: 2px solid var(--lst-line);
	border-radius: 12px;
	overflow: hidden;
}

.lst-app .lst-sec + .lst-sec {
	border-top: 2px solid var(--lst-line);
}

.lst-app.lst-app .lst-sec-head {
	margin: 0;
	font: inherit;
}

.lst-app .lst-sec-btn {
	display: grid;
	grid-template-columns: 7.5em minmax( 0, 1fr ) auto;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-sec-btn:hover {
	background: #fff8dd;
	color: var(--lst-ink);
}

.lst-app .lst-sec-btn:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: -3px;
}

.lst-app .lst-sec-open > .lst-sec-head .lst-sec-btn {
	background: #fff4cf;
}

.lst-app .lst-sec-title {
	font-weight: 800;
}

.lst-app .lst-sec-sum {
	min-width: 0;
	overflow: hidden;
	color: var(--lst-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lst-app .lst-sec-sum strong {
	color: var(--lst-ink);
}

.lst-app .lst-sec-arrow {
	width: 9px;
	height: 9px;
	margin: 0 4px 4px 0;
	border-right: 3px solid var(--lst-ink);
	border-bottom: 3px solid var(--lst-ink);
	transform: rotate( 45deg );
}

.lst-app .lst-sec-open > .lst-sec-head .lst-sec-arrow {
	margin: 4px 4px 0 0;
	transform: rotate( -135deg );
}

.lst-app .lst-sec-body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 12px;
	padding: 14px 12px 16px;
	border-top: 2px dashed var(--lst-line);
	background: var(--lst-paper);
}

.lst-app.lst-app .lst-sec-sub {
	margin: 6px 0 0;
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 800;
}

.lst-app .lst-mood-dot.lst-mood-good { color: var(--lst-leaf); }
.lst-app .lst-mood-dot.lst-mood-warn { color: #8a5a00; }
.lst-app .lst-mood-dot.lst-mood-bad { color: var(--lst-cherry); }

.lst-app .lst-mood-dot::before {
	content: "· ";
	color: var(--lst-muted);
}

.lst-app .lst-sec-body .lst-board {
	max-width: 300px;
}

.lst-app.lst-app .lst-sec-body .lst-board-fair {
	margin: 0;
	color: var(--lst-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.lst-app .lst-sec-body .lst-board-fair strong {
	color: var(--lst-ink);
}

.lst-app .lst-stand-more {
	display: grid;
	gap: 12px;
}

.lst-app .lst-more-row {
	display: grid;
	gap: 8px;
	align-items: center;
}

.lst-app .lst-more-row .lst-btn {
	justify-self: start;
}

@container lst-app ( min-width: 560px ) {
	.lst-app .lst-more-row {
		grid-template-columns: minmax( 0, 1fr ) auto;
	}

	.lst-app .lst-more-row .lst-btn {
		justify-self: end;
	}
}

.lst-app .lst-more-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding-top: 10px;
	border-top: 2px dashed var(--lst-line);
}

.lst-app.lst-app .lst-secs-all {
	margin-top: -8px;
	font-size: 0.875rem;
	text-align: right;
}

@container ( max-width: 430px ) {
	.lst-app .lst-sec-btn {
		grid-template-columns: minmax( 0, 1fr ) auto;
		gap: 2px 10px;
	}

	.lst-app .lst-sec-title {
		grid-column: 1;
	}

	.lst-app .lst-sec-sum {
		grid-column: 1;
		grid-row: 2;
		font-size: 0.9375rem;
	}

	.lst-app .lst-sec-arrow {
		grid-row: 1 / span 2;
	}

	/* Too narrow for three boxes side by side: one to a line, name on the left and number on the right. */
	.lst-app.lst-app .lst-how-parts {
		grid-template-columns: minmax( 0, 1fr );
		gap: 6px;
	}

	.lst-app .lst-how-part {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) auto;
		gap: 0 10px;
		align-items: baseline;
		padding: 6px 10px;
	}

	.lst-app .lst-how-part dt {
		font-size: 0.875rem;
	}

	.lst-app.lst-app .lst-how-part dd {
		font-size: 1.25rem;
		text-align: right;
	}

	.lst-app.lst-app .lst-how-part .lst-how-note {
		grid-column: 1 / -1;
		min-height: 0;
		text-align: left;
	}

	.lst-app .lst-how {
		padding: 10px;
	}
}

/* ---------- Hiring: the facts, and Ada's working ---------- */

.lst-app .lst-choice-facts {
	display: grid;
	gap: 2px;
	justify-items: start;
	white-space: normal;
}

.lst-app .lst-choice-facts .lst-btn-note {
	margin: 0;
	font-weight: 600;
	text-align: left;
}

.lst-app .lst-ada {
	display: grid;
	gap: 8px;
	justify-items: start;
	margin-top: 16px;
	padding: 12px 14px;
	border: 2px dashed var(--lst-leaf);
	border-radius: 12px;
	background: #f1f7ea;
}

.lst-app.lst-app .lst-ada p {
	margin: 0;
}

.lst-app.lst-app .lst-ada-says {
	padding: 10px 14px;
	border-radius: 12px;
	background: #f1f7ea;
	font-style: italic;
}

.lst-app .lst-ada-name {
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}

.lst-app .lst-ada-name::before {
	content: "— ";
}

.lst-app .lst-advice {
	margin-top: 14px;
	padding: 12px 14px;
	border: 2px solid var(--lst-ink);
	border-left-width: 8px;
	border-radius: 12px;
	background: #fff;
}

.lst-app .lst-advice-good { border-left-color: var(--lst-leaf); }
.lst-app .lst-advice-bad { border-left-color: var(--lst-cherry); }
.lst-app .lst-advice-warn { border-left-color: var(--lst-rind); }

.lst-app .lst-advice-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
}

.lst-app .lst-advice-tag {
	padding: 2px 12px;
	font-size: 0.875rem;
}

.lst-app .lst-advice-bad .lst-advice-tag {
	border-color: var(--lst-cherry);
	background: #ffe6e3;
	color: #a31f2c;
}

.lst-app .lst-advice-good .lst-advice-tag {
	background: #dff3e4;
}

.lst-app .lst-advice-warn .lst-advice-tag {
	border-color: var(--lst-rind);
	background: #fff4cf;
	color: #7a4a00;
}

.lst-app.lst-app .lst-sums-steps {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0 0 0 1.4em;
	list-style: decimal;
}

.lst-app.lst-app .lst-sums-steps li {
	margin: 0;
	padding: 0;
	list-style: decimal;
}

.lst-app .lst-sums {
	width: 100%;
	margin: 10px 0 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.lst-app .lst-sums th,
.lst-app .lst-sums td {
	padding: 6px 0;
	border: 0;
	border-top: 1px solid var(--lst-line);
	background: transparent;
	color: var(--lst-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	vertical-align: top;
}

.lst-app .lst-sums td {
	padding-left: 12px;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.lst-app .lst-sums td.lst-neg { color: var(--lst-cherry); }
.lst-app .lst-sums td.lst-pos { color: var(--lst-leaf); }

.lst-app .lst-sums-total th,
.lst-app .lst-sums-total td {
	border-top: 2px solid var(--lst-ink);
	font-size: 1rem;
	font-weight: 800;
}

.lst-app.lst-app .lst-advice .lst-tip {
	margin: 10px 0 0;
}

.lst-app.lst-app .lst-advice > p {
	margin: 10px 0 0;
}

.lst-app .lst-advice .lst-details {
	margin: 10px 0 0;
}

/* ---------- Crew: everyone who works for you ---------- */

.lst-app .lst-crew-tabs {
	margin-bottom: 14px;
}

.lst-app .lst-crew-tabs .lst-tab-count {
	margin-left: 4px;
}

.lst-app.lst-app .lst-crew-sum {
	margin-bottom: 14px;
}

.lst-app .lst-crewstand {
	margin-bottom: 14px;
	padding: 14px 16px 10px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
}

.lst-app .lst-crewstand-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
}

.lst-app.lst-app .lst-crewstand-limit {
	margin: 6px 0 4px;
	padding: 6px 10px;
	border-left: 4px solid var(--lst-line);
	border-radius: 4px;
	background: #f4f8f6;
	font-size: 0.9375rem;
	font-weight: 600;
}

.lst-app.lst-app .lst-crewstand-pitcher,
.lst-app.lst-app .lst-crewstand-price {
	border-left-color: var(--lst-cherry);
	background: #ffe6e3;
}

.lst-app.lst-app .lst-crewstand-counter {
	border-left-color: var(--lst-rind);
	background: #fff4cf;
}

.lst-app .lst-crew-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 10px 0;
	border-top: 1px solid var(--lst-line);
}

.lst-app .lst-crew-card-moved {
	animation: lst-moved 1.6s ease-out;
}

@keyframes lst-moved {
	0%, 30% { background: #fff4cf; box-shadow: 0 0 0 6px #fff4cf; }
	100% { background: transparent; box-shadow: 0 0 0 6px transparent; }
}

@media ( prefers-reduced-motion: reduce ) {
	.lst-app .lst-crew-card-moved {
		animation: none;
	}
}

.lst-app .lst-crew-cards .lst-crew-card:first-child {
	border-top: 0;
}

.lst-app .lst-crew-card .lst-crew-who {
	display: flex;
	align-items: center;
	flex: 1 1 240px;
}

.lst-app .lst-crew-meta {
	display: block;
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.lst-app .lst-crew-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.lst-app .lst-crew-card-open {
	color: var(--lst-muted);
	font-weight: 700;
}

.lst-app .lst-crew-card-open > span {
	padding: 6px 12px;
	border: 2px dashed #a9bbb5;
	border-radius: 10px;
}

.lst-app.lst-app .lst-move {
	width: auto;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 4px 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 700;
}

.lst-app .lst-link-danger {
	color: var(--lst-cherry);
}

.lst-app.lst-app .lst-crew-foot {
	margin-top: 4px;
	font-size: 0.9375rem;
}

/* ---------- Top players: who has the most cash ---------- */

.lst-app .lst-top-by {
	margin-bottom: 12px;
}

.lst-app .lst-richest {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: linear-gradient( 135deg, #fff4cf, var(--lst-lemon) );
	font-size: 1.0625rem;
}

.lst-app .lst-richest .lst-mug {
	width: 52px;
	height: 52px;
}

.lst-app .lst-richest-label {
	display: block;
	font-family: var(--lst-sign);
	font-size: 1.125rem;
	line-height: 1.2;
}

.lst-app .lst-top-seen {
	display: block;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lst-app.lst-app .lst-top-note {
	margin-bottom: 12px;
	font-size: 0.875rem;
}

/* ---------- The town feed ---------- */

/* One column down the middle of the screen, however wide it is. */
.lst-app .lst-feed {
	max-width: 680px;
	margin: 0 auto;
}

/* What to share, at the top. */
.lst-app.lst-app .lst-feed-top {
	margin: 0 0 14px;
}

.lst-app .lst-feed-compose {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lst-app .lst-feed-compose > .lst-btn {
	flex: none;
	white-space: nowrap;
}

.lst-app .lst-feed-compose > .lst-face-btn,
.lst-app .lst-feed-compose > .lst-mug {
	flex: none;
}

.lst-app .lst-feed-prompt {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	overflow: hidden;
	border: 2px solid var(--lst-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--lst-muted);
	font-family: var(--lst-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: left;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

.lst-app .lst-feed-prompt:hover {
	border-color: var(--lst-ink);
	background: #fff;
	color: var(--lst-ink);
}

.lst-app .lst-feed-prompt:focus-visible {
	outline: 3px solid var(--lst-rind);
	outline-offset: 2px;
}

/* On a phone the button says it all. */
@container lst-app ( max-width: 560px ) {
	.lst-app .lst-feed-prompt {
		display: none;
	}

	.lst-app.lst-app .lst-feed-compose > .lst-btn {
		flex: 1 1 auto;
	}
}

.lst-app.lst-app .lst-feed-intro {
	margin: 10px 0 0;
	color: var(--lst-muted);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Whose posts, and what kind. */
.lst-app .lst-feed-bar {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.lst-app.lst-app .lst-feed-bar .lst-feed-scope,
.lst-app.lst-app .lst-feed-bar .lst-feed-filters {
	margin: 0;
}

.lst-app .lst-posts {
	display: grid;
	gap: 14px;
}

.lst-app .lst-feed-empty {
	text-align: center;
}

.lst-app.lst-app .lst-feed-more {
	text-align: center;
}

.lst-app .lst-post {
	padding: 12px 16px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
	overflow-wrap: break-word;
}

.lst-app .lst-post-head {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.lst-app .lst-mug-plain {
	background: var(--lst-lemon);
	font-family: var(--lst-sign);
	font-size: 1.125rem;
	line-height: 1;
}

.lst-app.lst-app .lst-post-who {
	min-width: 0;
	line-height: 1.3;
}

.lst-app .lst-post-who small {
	display: block;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lst-app.lst-app .lst-post-body > * + * {
	margin-top: 6px;
}

.lst-app.lst-app .lst-post-quote {
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-left: 5px solid var(--lst-lemon);
	border-radius: 4px 12px 12px 4px;
	background: #fff8dc;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1.0625rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
	quotes: "\201c" "\201d";
}

.lst-app .lst-post-quote::before {
	content: open-quote;
}

.lst-app .lst-post-quote::after {
	content: close-quote;
}

.lst-app.lst-app .lst-post-meta {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.lst-app.lst-app .lst-post-label {
	color: var(--lst-muted);
	font-size: 0.875rem;
	font-weight: 800;
}

.lst-app.lst-app .lst-post-title {
	font-family: var(--lst-sign);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.2;
}

.lst-app.lst-app .lst-post-eg {
	font-weight: 600;
}

.lst-app .lst-post-eg q {
	font-style: italic;
}

.lst-app.lst-app .lst-post-big {
	font-family: var(--lst-sign);
	font-size: 1.75rem;
	line-height: 1.15;
}

.lst-app .lst-post-ask {
	display: flex;
	align-items: flex-start;
}

.lst-app .lst-post-npc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin-right: 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 50%;
	font-size: 1.125rem;
}

.lst-app.lst-app .lst-post-answer {
	font-weight: 800;
}

.lst-app .lst-post-answer > span:first-child {
	margin-right: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--lst-leaf);
	color: #fff;
	font-size: 0.8125rem;
	vertical-align: 1px;
}

.lst-app .lst-post .lst-entry-lines,
.lst-app .lst-post .lst-statement {
	margin-top: 6px;
}

.lst-app table.lst-post-pnl {
	max-width: 420px;
}

.lst-app .lst-post-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed var(--lst-line);
}

.lst-app .lst-reacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.lst-app .lst-react {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 44px;
	min-height: 36px;
	margin: 0;
	padding: 3px 10px;
	border: 2px solid var(--lst-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.lst-app button.lst-react:hover {
	border-color: var(--lst-ink);
	background: #fff7d1;
	color: var(--lst-ink);
}

.lst-app .lst-react[aria-pressed="true"] {
	border-color: var(--lst-leaf);
	background: #dff3e4;
}

.lst-app .lst-react:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app .lst-react-n {
	font-size: 0.875rem;
}

.lst-app .lst-react-count {
	cursor: default;
	font-size: 0.9375rem;
}

.lst-app.lst-busy .lst-react {
	cursor: progress;
}

.lst-app .lst-feed-auto {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
}

.lst-app .lst-feed-auto input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lst-leaf);
}

/* Share buttons dotted around the game, and the tag that replaces them. */
.lst-app .lst-share-link {
	padding-left: 0;
	font-size: 0.875rem;
}

.lst-app .lst-shared {
	color: var(--lst-leaf);
	font-size: 0.875rem;
	font-weight: 800;
	white-space: nowrap;
}

.lst-app .lst-shared-big {
	display: inline-block;
	padding: 8px 4px;
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-share-h {
	margin: 14px 0 4px;
	font-size: 1rem;
	font-weight: 800;
}

.lst-app .lst-share-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid var(--lst-line);
}

.lst-app .lst-share-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
}

.lst-app .lst-share-text small {
	display: block;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app .lst-share-text q {
	font-style: italic;
}

.lst-app .lst-share-item .lst-btn {
	flex: none;
}

/* ---------- Snapshots ---------- */

.lst-app .lst-snap {
	margin: 0 0 8px;
	padding: 8px 8px 6px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: #fff;
}

.lst-app .lst-snap-f1 { background: #ffe9a6; }
.lst-app .lst-snap-f2 { background: #d6f0de; }
.lst-app .lst-snap-f3 { background: #cfe6f7; }
.lst-app .lst-snap-f4 { background: #f3d9ec; }
.lst-app .lst-snap-f5 { background: #ffd9c2; }

.lst-app .lst-snap-pic {
	display: block;
	width: 100%;
	height: auto;
	border: 2px solid var(--lst-ink);
	border-radius: 4px;
	background: #b9d7c4;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.lst-app.lst-app .lst-snap-cap {
	margin: 4px 2px 0;
	font-family: var(--lst-sign);
	font-size: 1.375rem;
	line-height: 1.2;
}

.lst-app .lst-snap-cap[hidden] {
	display: none;
}

.lst-app .lst-post .lst-snap {
	max-width: 100%;
}

.lst-app.lst-app .lst-step-what {
	padding: 8px 12px;
	border-left: 5px solid var(--lst-lemon);
	border-radius: 4px 12px 12px 4px;
	background: #fff8dc;
	font-weight: 700;
	overflow-wrap: break-word;
}

.lst-app.lst-app .lst-stage-toggle {
	margin-top: 12px;
}

.lst-app .lst-snap-new {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 2px dashed var(--lst-line);
	border-radius: 12px;
}

/* The stager: the picture stays in view; the choices scroll beside or under it. */
.lst-app .lst-dialog-stage {
	width: min( 780px, calc( 100vw - 16px ) );
	padding: 16px;
}

.lst-app .lst-dialog-stage[open] {
	display: flex;
	flex-direction: column;
	max-height: calc( 100vh - 16px );
	max-height: calc( 100dvh - 16px );
	overflow: hidden;
}

.lst-app .lst-dialog-stage > p,
.lst-app .lst-dialog-stage .lst-dialog-actions {
	flex: none;
}

.lst-app .lst-stage {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	min-height: 0;
	margin-top: 10px;
}

.lst-app .lst-stage-view {
	flex: none;
}

.lst-app .lst-stage-view .lst-snap {
	margin: 0;
}

.lst-app .lst-stage-pic {
	cursor: crosshair;
	touch-action: none;
}

.lst-app .lst-stage-pic:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app.lst-app .lst-stage-hint {
	margin-top: 4px;
	font-size: 0.8125rem;
}

.lst-app .lst-stage-controls {
	display: grid;
	flex: 1 1 auto;
	align-content: start;
	gap: 10px;
	min-height: 0;
	padding: 2px 6px 2px 2px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lst-app .lst-stage-group {
	display: grid;
	gap: 4px;
}

.lst-app .lst-stage-h {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lst-muted);
}

.lst-app .lst-stage-opts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.lst-app .lst-stage-opts .lst-chip {
	min-height: 34px;
	border-color: var(--lst-line);
	background: #fff;
	font-size: 0.875rem;
}

.lst-app .lst-stage-opts .lst-chip[aria-pressed="true"] {
	border-color: var(--lst-leaf);
	background: #dff3e4;
}

.lst-app .lst-stage-opts .lst-chip[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.lst-app .lst-stage-opts .lst-chip:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app .lst-bubble-pic {
	display: block;
	flex: none;
	width: 32px;
	height: 32px;
	background-repeat: no-repeat;
	image-rendering: pixelated;
}

.lst-app .lst-stage-opts .lst-bubble-pic {
	margin: -4px -6px;
}

.lst-app .lst-swatch {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 -4px;
	border: 2px solid var(--lst-ink);
	border-radius: 50%;
}

.lst-app .lst-stage-opts input[type="range"] {
	flex: 1 1 140px;
	max-width: 260px;
	accent-color: var(--lst-leaf);
}

.lst-app .lst-stage-zoom {
	min-width: 3ch;
	font-weight: 800;
}

.lst-app.lst-app .lst-stage-opts select {
	width: auto;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 4px 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--lst-ink);
	font-family: var(--lst-body);
	font-size: 0.9375rem;
	font-weight: 700;
}

.lst-app .lst-stage-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.lst-app .lst-stage-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lst-leaf);
}

.lst-app.lst-app .lst-stage-note {
	font-size: 0.8125rem;
}

@media ( min-width: 720px ) {
	.lst-app .lst-stage {
		display: grid;
		grid-template-columns: minmax( 0, 1.2fr ) minmax( 0, 1fr );
		grid-template-rows: minmax( 0, 1fr );
		align-items: start;
	}

	.lst-app .lst-stage-controls {
		max-height: 100%;
	}
}

/* ---------- Moods, brand and player cards ---------- */

.lst-app .lst-me-wrap {
	position: relative;
	display: inline-flex;
	flex: none;
}

.lst-app .lst-mood-btn {
	position: absolute;
	right: -10px;
	bottom: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--lst-chalk);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--lst-ink);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.lst-app .lst-mood-btn:hover {
	background: #fff7d1;
}

.lst-app .lst-mood-btn:focus-visible,
.lst-app .lst-name-btn:focus-visible {
	outline: 3px solid #0b6fb8;
	outline-offset: 2px;
}

.lst-app .lst-mugwrap {
	position: relative;
	display: inline-flex;
	flex: none;
	margin-right: 14px;
}

.lst-app .lst-mugwrap .lst-mug {
	margin-right: 0;
}

.lst-app .lst-mood-badge {
	position: absolute;
	top: -10px;
	right: -12px;
	pointer-events: none;
}

/* The company dialog has grown: the form scrolls, and Save stays in reach. */
.lst-app .lst-dialog-wide form[data-submit="company"] {
	flex: 1 1 auto;
	min-height: 0;
	margin-right: -8px;
	padding-right: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lst-app .lst-dialog-wide form[data-submit="company"] .lst-dialog-actions {
	position: sticky;
	bottom: 0;
	margin-top: 12px;
	padding: 10px 0 2px;
	background: var(--lst-paper);
}

.lst-app .lst-face-btn {
	display: inline-flex;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.lst-app .lst-name-btn {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 800;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.lst-app .lst-name-btn:hover {
	background: none;
	color: var(--lst-leaf);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lst-app .lst-mood-grid,
.lst-app .lst-brand-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.lst-app .lst-mood-grid .lst-chip,
.lst-app .lst-brand-opts .lst-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-color: var(--lst-line);
	background: #fff;
	font-size: 0.875rem;
}

.lst-app .lst-mood-grid .lst-chip[aria-pressed="true"],
.lst-app .lst-brand-opts .lst-chip[aria-pressed="true"] {
	border-color: var(--lst-leaf);
	background: #dff3e4;
}

.lst-app .lst-mood-pick {
	padding-left: 4px;
}

.lst-app .lst-brand-opts .lst-swatch {
	margin: 0;
}

.lst-app .lst-brand-opts .lst-uniform {
	min-height: 64px;
	padding: 4px 6px;
}

.lst-app .lst-dialog-card {
	width: min( 480px, calc( 100vw - 24px ) );
}

.lst-app .lst-card-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 12px;
}

.lst-app .lst-card-head .lst-mug-big {
	width: 72px;
	height: 72px;
}

.lst-app.lst-app .lst-card-company {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--lst-leaf);
	font-weight: 800;
}

.lst-app .lst-dialog-card .lst-snap {
	margin-bottom: 12px;
}

.lst-app.lst-app .lst-card-nums {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
	margin: 0;
	padding: 10px 0;
	border-top: 2px dashed var(--lst-line);
	border-bottom: 2px dashed var(--lst-line);
}

.lst-app .lst-card-nums dt {
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.lst-app.lst-app .lst-card-nums dd {
	margin: 0;
	font-family: var(--lst-sign);
	font-size: 1.25rem;
}

.lst-app.lst-app .lst-card-places {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.lst-app .lst-card-place {
	padding: 2px 10px;
	border-width: 1px;
	font-size: 0.875rem;
}

.lst-app.lst-app .lst-card-brand {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-weight: 700;
}

.lst-app .lst-card-brand > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lst-app .lst-card-brand .lst-swatch {
	margin: 0;
}

.lst-app.lst-app .lst-card-note {
	font-size: 0.8125rem;
}

/* Followers, and the button to follow or stop. */
.lst-app.lst-app .lst-card-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 4px 0 0;
	font-size: 0.9375rem;
}

.lst-app .lst-card-follow .lst-tag {
	padding: 1px 8px;
	border-width: 1px;
	font-size: 0.8125rem;
}

.lst-app .lst-btn.lst-following {
	background: #fff;
	color: var(--lst-leaf);
	border-color: var(--lst-leaf);
}

.lst-app .lst-btn.lst-following:hover,
.lst-app .lst-btn.lst-following:focus-visible {
	background: #fde8ea;
	color: var(--lst-cherry);
	border-color: var(--lst-cherry);
}

/* Everyone / Following above the town feed. */
.lst-app .lst-feed-scope {
	margin: 0 0 10px;
}

/* An ingredient's picture inside a sentence. */
.lst-app .lst-ico-ing {
	width: 16px;
	height: 16px;
	margin-right: 3px;
	vertical-align: -3px;
	image-rendering: pixelated;
}

/* ---------- Shop ---------- */

.lst-app .lst-shop-views {
	margin-bottom: 12px;
}

.lst-app .lst-shop-views .lst-ico {
	width: 16px;
	height: 16px;
	margin-right: 4px;
	vertical-align: -3px;
	image-rendering: pixelated;
}

.lst-app.lst-app .lst-shop-intro {
	max-width: 62ch;
	margin: 0 0 12px;
	color: var(--lst-muted);
	font-weight: 600;
}

/* "Bring friends, get rewards" at the top of the clothes. */
.lst-app .lst-shop-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: linear-gradient( 135deg, #fff4cf, var(--lst-lemon) );
	box-shadow: 0 3px 0 var(--lst-ink);
	color: var(--lst-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lst-app .lst-shop-banner:hover {
	background: var(--lst-lemon);
}

.lst-app .lst-shop-banner:active {
	box-shadow: 0 1px 0 var(--lst-ink);
	transform: translateY( 2px );
}

.lst-app .lst-shop-banner-icon {
	flex: none;
	font-size: 1.75rem;
	line-height: 1;
}

.lst-app .lst-shop-banner-icon .lst-ico {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
}

.lst-app .lst-shop-banner > span:nth-child(2) {
	flex: 1;
	min-width: 0;
}

.lst-app .lst-shop-banner-go {
	flex: none;
	font-size: 1.5rem;
	font-weight: 800;
}

.lst-app .lst-shop-sec {
	margin-bottom: 20px;
}

.lst-app.lst-app .lst-shop-sec > .lst-muted {
	max-width: 62ch;
	margin: 2px 0 10px;
	font-size: 0.9375rem;
}

.lst-app.lst-app .lst-shop-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 118px, 1fr ) );
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lst-app.lst-app .lst-shop-grid li {
	margin: 0;
	padding: 0;
}

.lst-app .lst-shop-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 10px 8px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 0 var(--lst-ink);
	color: var(--lst-ink);
	font: inherit;
	cursor: pointer;
}

.lst-app .lst-shop-item:hover {
	background: #fff7d1;
}

.lst-app .lst-shop-item:active {
	box-shadow: 0 1px 0 var(--lst-ink);
	transform: translateY( 2px );
}

.lst-app .lst-shop-item-have {
	background: #eef8f0;
}

.lst-app .lst-shop-pic {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--lst-sky);
}

.lst-app .lst-shop-pic-face {
	align-items: center;
}

.lst-app .lst-shop-item-locked .lst-shop-pic > span {
	opacity: 0.75;
}

.lst-app .lst-shop-name {
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.lst-app .lst-shop-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--lst-lemon);
	font-size: 0.875rem;
	font-weight: 800;
	white-space: nowrap;
}

.lst-app .lst-shop-tag .lst-ico {
	width: 14px;
	height: 14px;
	image-rendering: pixelated;
}

.lst-app .lst-shop-have {
	background: #d5f0dc;
	color: var(--lst-leaf);
}

.lst-app .lst-shop-locked {
	background: var(--lst-ink);
	color: #fff;
}

/* ---------- Bringing friends ---------- */

.lst-app.lst-app .lst-friends p {
	max-width: 66ch;
}

.lst-app .lst-friends-link {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 10px;
	margin: 4px 0 10px;
}

.lst-app .lst-friends-link .lst-field {
	flex: 1 1 260px;
	margin: 0;
}

.lst-app .lst-friends-link .lst-field input {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9375rem;
}

.lst-app .lst-friends-btns {
	display: flex;
	gap: 8px;
}

.lst-app.lst-app .lst-friends-count {
	margin: 8px 0;
}

.lst-app .lst-friends-bar {
	height: 12px;
	margin: 6px 0 14px;
	overflow: hidden;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: #fff;
}

.lst-app .lst-friends-bar span {
	display: block;
	height: 100%;
	background: var(--lst-leaf);
}

.lst-app.lst-app .lst-tiers {
	display: grid;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.lst-app.lst-app .lst-tier {
	margin: 0;
	padding: 10px 12px;
	border: 2px dashed #8ea09b;
	border-radius: 12px;
	background: #fff;
}

.lst-app.lst-app .lst-tier-done {
	border: 2px solid var(--lst-leaf);
	background: #eef8f0;
}

.lst-app .lst-tier-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.lst-app .lst-tier-n {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border: 2px solid var(--lst-ink);
	border-radius: 999px;
	background: var(--lst-lemon);
	font-size: 1.125rem;
	font-weight: 800;
}

.lst-app .lst-tier-done .lst-tier-n {
	background: var(--lst-leaf);
	color: #fff;
}

.lst-app .lst-tier-what {
	font-weight: 800;
}

.lst-app .lst-tier-state {
	margin-left: auto;
	color: var(--lst-muted);
	font-size: 0.9375rem;
	font-weight: 700;
}

.lst-app .lst-tier-done .lst-tier-state {
	color: var(--lst-leaf);
}

.lst-app .lst-tier-state .lst-ico {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	image-rendering: pixelated;
}

.lst-app.lst-app .lst-tier-rewards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.lst-app.lst-app .lst-tier-reward {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.lst-app .lst-tier-pic {
	flex: none;
	margin: 0;
	padding: 0;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.lst-app .lst-tier-pic:hover .lst-shop-pic {
	background: #fff7d1;
}

.lst-app .lst-tier-text {
	font-weight: 800;
	line-height: 1.25;
}

.lst-app .lst-tier-text small {
	display: block;
	max-width: 30ch;
	color: var(--lst-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.lst-app .lst-tier-place-icon {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: var(--lst-sky);
	font-size: 1.75rem;
}

.lst-app .lst-tier-place-icon .lst-ico {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
}

.lst-app.lst-app .lst-friends-names {
	margin: 0 0 8px;
}

.lst-app.lst-app .lst-friends-note,
.lst-app.lst-app .lst-friends-why {
	margin: 8px 0 0;
	font-size: 0.875rem;
}

.lst-app .lst-friends-why .lst-ico {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	image-rendering: pixelated;
}

/* A location that needs friends. */
.lst-app.lst-app .lst-loc-friends {
	color: var(--lst-leaf);
	font-weight: 700;
}

.lst-app .lst-loc-friends .lst-ico {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	image-rendering: pixelated;
}

.lst-app .lst-loc-action .lst-btn-small {
	margin-top: 6px;
}

/* "Someone invited you" on the screen before playing. */
.lst-app.lst-app .lst-guest-body .lst-guest-invite {
	display: inline-block;
	margin: 0 0 16px;
	padding: 8px 14px;
	border: 2px solid var(--lst-ink);
	border-radius: 12px;
	background: var(--lst-lemon);
	font-size: 1rem;
}

.lst-app .lst-guest-invite span {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
}

/* ---------- The tour ---------- */

/* A layer over the game box. Only the card takes clicks: the rest of the game works as usual underneath. */
.lst-app .lst-tour {
	position: absolute;
	inset: 0;
	z-index: 40;
	pointer-events: none;
}

.lst-app .lst-tour[hidden] {
	display: none;
}

/* The ring round the thing the step is about, with the rest of the page dimmed. */
.lst-app .lst-tour-ring {
	position: absolute;
	border: 3px solid var(--lst-lemon);
	border-radius: 12px;
	box-shadow: 0 0 0 3px var(--lst-ink), 0 0 0 9999px rgba( 23, 48, 43, 0.42 );
	transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.lst-app .lst-tour-card {
	position: absolute;
	box-sizing: border-box;
	padding: 14px 16px 12px;
	border: 2px solid var(--lst-ink);
	border-radius: 14px;
	background: var(--lst-paper);
	color: var(--lst-ink);
	box-shadow: 0 8px 24px rgba( 23, 48, 43, 0.3 );
	pointer-events: auto;
	transition: left 0.25s ease, top 0.25s ease;
}

.lst-app.lst-app .lst-tour-count {
	margin: 0;
	color: var(--lst-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lst-app.lst-app .lst-tour-title {
	margin: 2px 0 6px;
	font-family: var(--lst-sign);
	font-size: 20px;
	line-height: 1.2;
}

.lst-app.lst-app .lst-tour-text {
	margin: 0;
	font-size: 15px;
}

.lst-app .lst-tour-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

@media ( prefers-reduced-motion: reduce ) {
	.lst-app .lst-tour-ring,
	.lst-app .lst-tour-card {
		transition: none;
	}
}

/* How to play: the tour, taken again. */
.lst-app.lst-app .lst-guide-tour {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 12px;
	color: var(--lst-muted);
}
