/* ==========================================================================
   GP Garden Planner 2.1.0 — your garden photo (garden-planner-gardenphoto.js).

   Full screen over the garden: the photo on a dark ground so it reads
   true, one slim bar on top (back, undo, redo, before/after, save) and the
   planner's own tool bar along the bottom, in the same glass and icons.
   Loaded after garden-planner-v2.css.
   ========================================================================== */

.gpgpl-app .gpgpl-gph {
	position: absolute;
	inset: 0;
	z-index: 1100;
	background: #241D16;
	color: var(--gp-ink);
	font-family: var(--gpgpl-font-ui);
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}
.gpgpl-app .gpgpl-gph[hidden] { display: none; }
/* 2.3.2: the planner's tab bar stays along the bottom, the photo above it */
.gpgpl-app .gpgpl-gph.has-tabs { bottom: var(--gp-tabs-h); }

.gpgpl-app .gpgpl-gph-stage { position: absolute; inset: 0; }
.gpgpl-app .gpgpl-gph-canvas {
	display: block;
	touch-action: none;
	cursor: grab;
	outline: none;
}
.gpgpl-app .gpgpl-gph-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gp-straw); }

/* Glass, as the planner's floating bars */
.gpgpl-app .gpgpl-gph-top-btn,
.gpgpl-app .gpgpl-gph-title,
.gpgpl-app .gpgpl-gph-tip,
.gpgpl-app .gpgpl-gph-before,
.gpgpl-app .gpgpl-gph-tray,
.gpgpl-app .gpgpl-gph-selbar,
.gpgpl-app .gpgpl-gph-dock {
	background: var(--gpgpl-glass);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(226, 214, 194, 0.9);
	box-shadow: var(--gpgpl-float-shadow);
}

/* ---------- Top bar ---------- */

.gpgpl-app .gpgpl-gph-top {
	position: absolute;
	top: max(10px, env(safe-area-inset-top));
	left: max(10px, env(safe-area-inset-left));
	right: max(10px, env(safe-area-inset-right));
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}
.gpgpl-app .gpgpl-gph-top > * { pointer-events: auto; }
.gpgpl-app .gpgpl-gph-top-btn { border-radius: 14px; }
.gpgpl-app .gpgpl-gph-top-btn[disabled] { opacity: 0.4; cursor: default; }
.gpgpl-app .gpgpl-gph-top-btn.is-on { background: var(--gp-ink); color: var(--gp-paper); border-color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-title {
	margin: 0;
	padding: 0 14px;
	height: 44px;
	display: flex;
	align-items: center;
	border-radius: 14px;
	font: 400 1.02rem/1 var(--gpgpl-font-display);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.gpgpl-app .gpgpl-gph-top-acts { display: flex; gap: 6px; margin-left: auto; flex: none; }

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

.gpgpl-app .gpgpl-gph-tip,
.gpgpl-app .gpgpl-gph-before {
	position: absolute;
	top: calc(max(10px, env(safe-area-inset-top)) + 54px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(560px, calc(100% - 24px));
	box-sizing: border-box;
	margin: 0;
	padding: 10px 14px;
	border-radius: 16px;
	font: 700 0.95rem/1.4 var(--gpgpl-font-ui);
	color: var(--gp-ink);
	z-index: 2;
}
.gpgpl-app .gpgpl-gph-tip[hidden], .gpgpl-app .gpgpl-gph-before[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-tip b { color: var(--gp-moss-d); margin-right: 4px; }
.gpgpl-app .gpgpl-gph-tip.is-warn { border-left: 5px solid var(--gp-clay); }
.gpgpl-app .gpgpl-gph-tip { pointer-events: none; } /* a passing message never blocks the photo */

/* Getting started: a numbered note at the top of the tool's panel */
.gpgpl-app .gpgpl-gph-coach {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--gp-moss-l);
	border: 1.5px solid rgba(93, 110, 80, 0.35);
}
.gpgpl-app .gpgpl-gph-coach p { flex: 1 1 220px; margin: 0; font: 700 0.95rem/1.35 var(--gpgpl-font-ui); color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-coach-n {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	background: var(--gp-moss);
	color: #FAF6EE;
	font: 700 0.85rem/1 var(--gpgpl-font-ui);
	box-sizing: border-box;
}
.gpgpl-app .gpgpl-gph-before { background: var(--gp-ink); color: var(--gp-paper); border-color: var(--gp-ink); padding: 8px 14px; border-radius: 20px; }

/* ---------- First screen: add a photo ---------- */

.gpgpl-app .gpgpl-gph-start {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	width: min(420px, calc(100% - 32px));
	box-sizing: border-box;
	padding: 24px 22px 20px;
	border-radius: 22px;
	background-color: var(--gp-paper);
	background-image: var(--gp-kraft-tex);
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.gpgpl-app .gpgpl-gph-start[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-start-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 22px;
	background: var(--gp-moss-l);
	color: var(--gp-moss-d);
}
.gpgpl-app .gpgpl-gph-start-title { margin: 14px 0 6px; font: 400 1.35rem/1.2 var(--gpgpl-font-display); }
.gpgpl-app .gpgpl-gph-start-text { margin: 0 0 16px; color: var(--gp-ink2); font-size: 1rem; }
.gpgpl-app .gpgpl-gph-start-small { margin: 14px 0 0; color: var(--gp-ink3); font-size: 0.86rem; }

/* ---------- Bottom: tray, chosen plant, tools ---------- */

.gpgpl-app .gpgpl-gph-bottom {
	position: absolute;
	left: max(10px, env(safe-area-inset-left));
	right: max(10px, env(safe-area-inset-right));
	bottom: max(10px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 720px;
	margin: 0 auto;
	pointer-events: none;
}
.gpgpl-app .gpgpl-gph-bottom > * { pointer-events: auto; }

.gpgpl-app .gpgpl-gph-dock { display: flex; padding: 4px; border-radius: 18px; }
.gpgpl-app .gpgpl-gph-dock .gpgpl-tools { display: flex; flex: 1; gap: 2px; min-width: 0; }

.gpgpl-app .gpgpl-gph-tray {
	position: absolute;
	left: max(10px, env(safe-area-inset-left));
	right: max(10px, env(safe-area-inset-right));
	bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--gph-dock, 62px) + 8px);
	width: auto;
	max-width: 720px;
	margin: 0 auto;
	z-index: 1;
	max-height: min(46vh, 420px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 10px 14px 14px;
	border-radius: 18px;
	box-sizing: border-box;
}
.gpgpl-app .gpgpl-gph-tray[hidden], .gpgpl-app .gpgpl-gph-selbar[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-tray > * + * { margin-top: 10px; }
.gpgpl-app .gpgpl-gph-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gpgpl-app .gpgpl-gph-tray-title { margin: 0; font: 400 1.1rem/1.2 var(--gpgpl-font-display); }
.gpgpl-app .gpgpl-gph-tray-x { width: 38px; height: 38px; border-color: transparent; background: transparent; color: var(--gp-ink2); }

.gpgpl-app .gpgpl-gph-note { margin: 0; color: var(--gp-ink2); font-size: 0.95rem; }
.gpgpl-app .gpgpl-gph-note b { color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-note svg { vertical-align: -3px; }
.gpgpl-app .gpgpl-gph-note.is-small { font-size: 0.86rem; }
.gpgpl-app .gpgpl-gph-label { margin: 0; font: 700 0.86rem/1.2 var(--gpgpl-font-ui); color: var(--gp-ink2); text-transform: none; }

.gpgpl-app .gpgpl-gph-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gpgpl-app .gpgpl-gph-row > .gp-btn { flex: 1 1 160px; }
.gpgpl-app .gpgpl-gph-row.is-small > .gp-btn { flex: 0 0 auto; }
.gpgpl-app .gpgpl-gph-row.is-stack { flex-direction: column; align-items: stretch; }
.gpgpl-app .gpgpl-gph-row.is-stack > .gp-btn { flex: none; }
.gpgpl-app .gpgpl-gph-tray > .gp-btn { width: 100%; }
.gpgpl-app .gp-btn.is-ghost.is-on { background: var(--gp-ink); color: var(--gp-paper); box-shadow: none; }
.gpgpl-app .gpgpl-gph-danger { color: var(--gp-clay); }

.gpgpl-app .gpgpl-gph-seg button { gap: 6px; }
.gpgpl-app .gpgpl-gph-seg button span { white-space: nowrap; }
.gpgpl-app .gpgpl-gph-chips small { opacity: 0.7; font-weight: 700; }

.gpgpl-app .gpgpl-gph-field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 0.92rem/1.2 var(--gpgpl-font-ui);
	color: var(--gp-ink2);
}
.gpgpl-app .gpgpl-gph-field input {
	width: 84px;
	min-height: 44px;
	padding: 0 10px;
	border: 1.5px solid var(--gp-line);
	border-radius: 12px;
	background: var(--gp-paper);
	color: var(--gp-ink);
	font: 700 1rem/1 var(--gpgpl-font-ui);
	box-sizing: border-box;
}
.gpgpl-app .gpgpl-gph-field input:focus-visible,
.gpgpl-app .gpgpl-gph-search input:focus-visible,
.gpgpl-app .gpgpl-gph-slider input:focus-visible,
.gpgpl-app .gpgpl-gph-plant:focus-visible { outline: 3px solid var(--gp-straw); outline-offset: 2px; }

.gpgpl-app .gpgpl-gph-slider { display: block; }
.gpgpl-app .gpgpl-gph-slider-label { display: block; font: 700 0.92rem/1.3 var(--gpgpl-font-ui); color: var(--gp-ink2); }
.gpgpl-app .gpgpl-gph-slider-label b { color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-slider-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.gpgpl-app .gpgpl-gph-slider-row small { flex: none; min-width: 3.4em; font-size: 0.8rem; font-weight: 700; color: var(--gp-ink3); }
.gpgpl-app .gpgpl-gph-slider-row small:last-child { text-align: right; }
.gpgpl-app .gpgpl-gph-slider input[type="range"] { flex: 1; min-width: 0; height: 32px; accent-color: var(--gp-moss); }

.gpgpl-app .gpgpl-gph-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	min-height: 46px;
	border: 1.5px solid var(--gp-line);
	border-radius: 14px;
	background: var(--gp-paper);
	color: var(--gp-ink2);
}
.gpgpl-app .gpgpl-gph-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--gp-ink);
	font: 700 1rem/1.2 var(--gpgpl-font-ui);
	outline: none;
	padding: 10px 0;
}
.gpgpl-app .gpgpl-gph-all { width: 100%; justify-content: flex-start; }

.gpgpl-app .gpgpl-gph-plants {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 8px;
}
.gpgpl-app .gpgpl-gph-plant {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 4px 8px;
	border: 1.5px solid var(--gp-line);
	border-radius: 14px;
	background: var(--gp-paper);
	color: var(--gp-ink);
	cursor: pointer;
	text-align: center;
	min-width: 0;
}
.gpgpl-app .gpgpl-gph-plant:hover { border-color: var(--gp-moss); }
.gpgpl-app .gpgpl-gph-plant-pic {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--gp-paper2);
}
.gpgpl-app .gpgpl-gph-plant-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gpgpl-app .gpgpl-gph-plant-name {
	font: 700 0.84rem/1.2 var(--gpgpl-font-ui);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 100%;
}
.gpgpl-app .gpgpl-gph-plant small { font-size: 0.74rem; color: var(--gp-ink3); font-weight: 700; }

.gpgpl-app .gpgpl-gph-save { margin: 0; font-size: 0.9rem; color: var(--gp-ink2); }
.gpgpl-app .gpgpl-gph-save svg { vertical-align: -3px; }
.gpgpl-app .gpgpl-gph-save.is-ok { color: var(--gp-moss-d); font-weight: 700; }
.gpgpl-app .gpgpl-gph-save.is-warn { color: var(--gp-clay); font-weight: 700; }
.gpgpl-app .gpgpl-gph-save.is-busy { font-style: italic; }

/* The chosen plant: its name, then the same tools as the plan's own bar */
.gpgpl-app .gpgpl-gph-selbar { padding: 6px 4px 4px; border-radius: 18px; }
.gpgpl-app .gpgpl-gph-sel-name {
	margin: 0 10px 4px;
	font: 400 1rem/1.25 var(--gpgpl-font-display);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gpgpl-app .gpgpl-gph-sel-name small { font: 700 0.8rem/1 var(--gpgpl-font-ui); color: var(--gp-ink3); margin-left: 4px; }
.gpgpl-app .gpgpl-gph-selbar .gpgpl-tools { display: flex; gap: 2px; }
.gpgpl-app .gpgpl-gph-selbar .gpgpl-tool.is-warn { color: var(--gp-clay); }
.gpgpl-app .gpgpl-gph-selbar .gpgpl-tool.is-done { background: var(--gp-moss); color: #FAF6EE; box-shadow: 0 2px 0 var(--gp-moss-d); }

/* Wide screens: the tool's panel stands to the right of the photo */
@media (min-width: 900px) {
	.gpgpl-app .gpgpl-gph-tray {
		left: auto;
		right: max(10px, env(safe-area-inset-right));
		top: calc(max(10px, env(safe-area-inset-top)) + 54px);
		bottom: auto;
		width: 360px;
		max-height: calc(100% - 64px - var(--gph-dock, 62px) - 30px);
	}
}

/* Narrow phones: the title gives way to the buttons */
@media (max-width: 520px) {
	.gpgpl-app .gpgpl-gph-tray { max-height: 40vh; padding: 8px 12px 12px; }
	.gpgpl-app .gpgpl-gph-tray > * + * { margin-top: 8px; }
	.gpgpl-app .gpgpl-gph-note { font-size: 0.9rem; }
	/* One row of choices that scrolls sideways, rather than three rows */
	.gpgpl-app .gpgpl-gph-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
	.gpgpl-app .gpgpl-gph-chips::-webkit-scrollbar { display: none; }
	.gpgpl-app .gpgpl-gph-chips .gp-chip { flex: none; }
	.gpgpl-app .gpgpl-gph-plants { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 92px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; }
}
@media (max-width: 420px) {
	.gpgpl-app .gpgpl-gph-title { display: none; }
	.gpgpl-app .gpgpl-gph-top-acts { gap: 4px; }
	.gpgpl-app .gpgpl-gph-seg button span { font-size: 0.82rem; }
	.gpgpl-app .gpgpl-gph-seg button svg { display: none; }
}

/* Comfort: bigger text grows the trays too */
html.gp-text-xl .gpgpl-app .gpgpl-gph-tray,
html.gp-text-xl .gpgpl-app .gpgpl-gph-start { zoom: 1.15; }

/* ---------- Ways in: More, and the Explore strip ---------- */

.gpgpl-app .gpgpl-more-row[data-gph-open][hidden],
.gpgpl-app .gpgpl-pop-explore .gpgpl-xp-tile[data-gph-open][hidden] { display: none; }
.gpgpl-app .gpgpl-pop-explore .gpgpl-xp-tile.is-photo { border-left: 1px solid var(--gp-line); padding-left: 2px; flex: 0 1 auto; cursor: pointer; }

/* ---------- Saving to your account (2.1.1) ---------- */

.gpgpl-app .gpgpl-gph-acct {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 14px 0 11px;
	border-radius: 14px;
	border: 0;
	background: var(--gp-moss);
	color: #FAF6EE;
	box-shadow: 0 2px 0 var(--gp-moss-d), var(--gpgpl-float-shadow);
	font: 700 0.92rem/1 var(--gpgpl-font-ui);
	white-space: nowrap;
	cursor: pointer;
	flex: none;
}
.gpgpl-app .gpgpl-gph-acct[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-acct:hover { background: #527539; }
.gpgpl-app .gpgpl-gph-acct:focus-visible { outline: 3px solid var(--gp-straw); outline-offset: 2px; }
/* Once saving, it's a quiet status, not a call to action */
.gpgpl-app .gpgpl-gph-acct.is-ok,
.gpgpl-app .gpgpl-gph-acct.is-busy,
.gpgpl-app .gpgpl-gph-acct.is-warn {
	background: var(--gpgpl-glass);
	color: var(--gp-ink2);
	border: 1px solid rgba(226, 214, 194, 0.9);
	box-shadow: var(--gpgpl-float-shadow);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.gpgpl-app .gpgpl-gph-acct.is-ok { color: var(--gp-moss-d); }
.gpgpl-app .gpgpl-gph-acct.is-warn { color: var(--gp-clay); }
.gpgpl-app .gpgpl-gph-acct.is-premium { background: var(--gp-straw); color: #3B2C1C; box-shadow: 0 2px 0 var(--gp-straw-d), var(--gpgpl-float-shadow); }
.gpgpl-app .gpgpl-gph-acct-short { display: none; }
@media (max-width: 520px) {
	.gpgpl-app .gpgpl-gph-acct { padding: 0 11px 0 10px; font-size: 0.86rem; }
	.gpgpl-app .gpgpl-gph-acct-long { display: none; }
	.gpgpl-app .gpgpl-gph-acct-short { display: inline; }
}

.gpgpl-app .gpgpl-gph-keep {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
	border-radius: 14px;
	background: var(--gp-moss-l);
	border: 1.5px solid rgba(93, 110, 80, 0.35);
}
.gpgpl-app .gpgpl-gph-keep .gp-btn { align-self: stretch; }
.gpgpl-app .gpgpl-gph-keep .gpgpl-gph-save b { color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-save.is-small { font-size: 0.82rem; color: var(--gp-ink3); }

/* Free plans: the mock-up doesn't print */
@media print {
	.gpgpl-app .gpgpl-gph.is-free .gpgpl-gph-canvas { visibility: hidden; }
}

/* ---------- Place plants for me (2.1.2) ---------- */

.gpgpl-app .gpgpl-gph-mini {
	border-radius: 14px;
	border: 1.5px solid var(--gp-line);
	background: var(--gp-paper);
	padding: 6px;
	touch-action: none;
	cursor: crosshair;
	user-select: none;
	-webkit-user-select: none;
}
.gpgpl-app .gpgpl-gph-mini svg { display: block; width: 100%; height: auto; max-height: 240px; }
.gpgpl-app .gpgpl-gph-next { color: var(--gp-moss-d); }
.gpgpl-app .gpgpl-gph-tray .gp-btn[disabled] { opacity: 0.45; cursor: default; }
@media (max-width: 520px) {
	.gpgpl-app .gpgpl-gph-mini svg { max-height: 190px; }
	.gpgpl-app .gpgpl-gph-tray.is-tall { max-height: 54vh; }
}

/* ---------- 2D | 3D | Photo ---------- */

.gpgpl-app .gpgpl-design-area .gpgpl-top-actions .gpgpl-view-switch.gpgpl-view-float.is-top.has-photo {
	grid-template-rows: 1fr 1fr 1fr;
	height: 140px;
}
.gpgpl-top-actions .gpgpl-view-float.is-top.has-photo .gpgpl-view-thumb { height: calc((100% - 8px) / 3); }
.gpgpl-app .gpgpl-design-area .gpgpl-view-switch.gpgpl-view-float.has-photo:not(.is-top) {
	grid-template-columns: 1fr 1fr 1fr;
	width: 186px;
}
.gpgpl-view-float.has-photo:not(.is-top) .gpgpl-view-thumb { width: calc((100% - 8px) / 3); }
/* Photo opens its own screen: a hairline sets it apart from the 2D / 3D pair */
.gpgpl-app .gpgpl-design-area .gpgpl-view-float.is-top .gpgpl-view-photo::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 8px;
	right: 8px;
	border-top: 1px solid rgba(51, 41, 31, 0.15);
}
.gpgpl-app .gpgpl-design-area .gpgpl-view-float .gpgpl-view-photo[hidden] { display: none; }
@media (max-width: 380px) {
	.gpgpl-app .gpgpl-design-area .gpgpl-top-actions .gpgpl-view-switch.gpgpl-view-float.is-top.has-photo { height: 134px; }
}
@media (orientation: landscape) and (max-height: 500px) {
	.gpgpl-app .gpgpl-design-area .gpgpl-top-actions .gpgpl-view-switch.gpgpl-view-float.is-top.has-photo { height: 122px; }
}

/* ---------- Plants: match my plan · add plants (2.1.3) ---------- */

.gpgpl-app .gpgpl-gph-step { display: flex; align-items: flex-start; gap: 10px; }
.gpgpl-app .gpgpl-gph-step p { margin: 2px 0 0; color: var(--gp-ink2); font-size: 0.95rem; line-height: 1.4; }
.gpgpl-app .gpgpl-gph-step p b { color: var(--gp-ink); }
.gpgpl-app .gpgpl-gph-step-n {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gp-ink);
	color: var(--gp-paper);
	font: 700 0.85rem/1 var(--gpgpl-font-ui);
}
.gpgpl-app .gpgpl-gph-step.is-done .gpgpl-gph-step-n { background: var(--gp-moss); }
.gpgpl-app .gpgpl-gph-pick {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 9px;
	border-radius: 10px;
	background: var(--gp-straw-l);
	color: var(--gp-straw-d);
	font-weight: 700;
	font-size: 0.86rem;
}
.gpgpl-app .gpgpl-gph-row .gpgpl-gph-seg { flex: 0 1 auto; }
.gpgpl-app .gpgpl-gph-brush { flex: 1 1 80px; min-width: 70px; height: 32px; accent-color: var(--gp-moss); }
.gpgpl-app .gpgpl-gph-mini { cursor: pointer; }

/* The planner's own "add plants" choices, as rows */
.gpgpl-app .gpgpl-gph-choices { display: flex; flex-direction: column; gap: 6px; }
.gpgpl-app .gpgpl-gph-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 12px 0 14px;
	border: 1.5px solid var(--gp-line);
	border-radius: 14px;
	background: var(--gp-paper);
	color: var(--gp-ink);
	font: 700 0.98rem/1.25 var(--gpgpl-font-ui);
	text-align: left;
	cursor: pointer;
}
.gpgpl-app .gpgpl-gph-choice:hover { border-color: var(--gp-moss); }
.gpgpl-app .gpgpl-gph-choice:focus-visible { outline: 3px solid var(--gp-straw); outline-offset: 2px; }
.gpgpl-app .gpgpl-gph-choice > svg:first-child { flex: none; width: 22px; height: 22px; color: var(--gp-moss-d); }
.gpgpl-app .gpgpl-gph-choice > span { flex: 1; min-width: 0; }
.gpgpl-app .gpgpl-gph-choice-go { flex: none; transform: rotate(180deg); color: var(--gp-ink3); }

/* "Back to your photo", floating over the planner while plants are added */
.gpgpl-app .gpgpl-gph-back {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	left: 50%;
	transform: translateX(-50%);
	z-index: 1050;
	display: flex;
	align-items: stretch;
	border-radius: 24px;
	background: var(--gp-ink);
	box-shadow: 0 6px 18px rgba(30, 20, 10, 0.3);
	overflow: hidden;
}
.gpgpl-app .gpgpl-gph-back[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-back button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	border: 0;
	background: transparent;
	color: var(--gp-paper);
	font: 700 0.95rem/1 var(--gpgpl-font-ui);
	white-space: nowrap;
	cursor: pointer;
}
.gpgpl-app .gpgpl-gph-back-go { padding: 0 14px 0 16px; }
.gpgpl-app .gpgpl-gph-back-x { padding: 0 14px; border-left: 1px solid rgba(250, 246, 238, 0.2) !important; opacity: 0.8; }
.gpgpl-app .gpgpl-gph-back.has-new { background: var(--gp-moss); }
.gpgpl-app .gpgpl-gph-back button:focus-visible { outline: 3px solid var(--gp-straw); outline-offset: -3px; }

/* ---------- Line up my plan (2.2.0) ---------- */

.gpgpl-app .gpgpl-gph-line-tools { padding: 2px; border-radius: 14px; background: var(--gp-paper2); }
.gpgpl-app .gpgpl-gph-line-tools .gpgpl-tool { min-height: 50px; }
.gpgpl-app .gpgpl-gph-line-tools .gpgpl-tool:active { background: var(--gp-ink); color: var(--gp-paper); }
.gpgpl-app .gpgpl-gph-line-tools .gpgpl-tool[data-gph="line-left"] svg,
.gpgpl-app .gpgpl-gph-line-tools .gpgpl-tool[data-gph="line-right"] svg { transform: scale(0.95); }
.gpgpl-app .gpgpl-gph-line-tip { margin: 0; }
.gpgpl-app .gpgpl-design-area .gpgpl-gph.is-lining .gpgpl-gph-canvas { cursor: move; }

/* ---------- 2D | 3D | Photo, on the photo too (2.2.1) ---------- */

.gpgpl-app .gpgpl-gph-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; flex: none; pointer-events: none; }
.gpgpl-app .gpgpl-gph-top-right > * { pointer-events: auto; }
.gpgpl-app .gpgpl-gph-top-right .gpgpl-gph-top-acts { margin-left: 0; }
.gpgpl-app .gpgpl-gph .gpgpl-gph-switch { display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
/* The planner hides its switch while sheets are open or in idle full screen; this one stays */
.gpgpl-app .gpgpl-design-area .gpgpl-gph .gpgpl-gph-switch > *,
.gpgpl-app .gpgpl-design-area .gpgpl-gph .gpgpl-gph-viewswitch { opacity: 1 !important; pointer-events: auto !important; }
/* Its thumb sits on Photo, whatever the planner's own view */
.gpgpl-app .gpgpl-design-area .gpgpl-gph .gpgpl-gph-viewswitch .gpgpl-view-thumb { transform: translateY(200%) !important; }
.gpgpl-app .gpgpl-design-area .gpgpl-gph .gpgpl-gph-viewswitch .gpgpl-view-btn:not(.is-active) { color: var(--gpgpl-ink, var(--gp-ink)); }
.gpgpl-app .gpgpl-design-area .gpgpl-gph .gpgpl-gph-viewswitch .gpgpl-view-btn:not(.is-active) svg { transform: none; }
/* Wide screens: the side panel starts below the switch */
@media (min-width: 900px) {
	.gpgpl-app .gpgpl-gph-tray { top: calc(max(10px, env(safe-area-inset-top)) + 54px + 150px); max-height: calc(100% - 214px - var(--gph-dock, 62px) - 30px); }
}
/* The switch makes the right side taller: everything keeps to the top */
.gpgpl-app .gpgpl-gph-top { align-items: flex-start; }

/* ---------- The chosen plant's handles (2.3.2): move, push back / bring forward, size ---------- */

.gpgpl-app .gpgpl-gph-handle {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid rgba(51, 41, 31, 0.14);
	border-radius: 50%;
	background: #FCF9F3;
	color: var(--gp-ink, #33291F);
	box-shadow: 0 6px 16px rgba(20, 16, 10, 0.35);
	cursor: grab;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
.gpgpl-app .gpgpl-gph-handle[hidden] { display: none; }
.gpgpl-app .gpgpl-gph-handle::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.gpgpl-app .gpgpl-gph-handle.is-move { background: var(--gp-ink, #33291F); color: #FCF9F3; border-color: rgba(255, 255, 255, 0.5); }
.gpgpl-app .gpgpl-gph-handle.is-dragging { cursor: grabbing; box-shadow: 0 0 0 4px rgba(224, 176, 74, 0.55), 0 8px 20px rgba(20, 16, 10, 0.4); }
.gpgpl-app .gpgpl-gph-handle:focus-visible { outline: 3px solid var(--gp-straw); outline-offset: 2px; }

/* 2.3.3: adding plants from the photo. The photo stays, just under the
   planner's Add sheet (and its dimmed backdrop), then the plant comes back
   into it. */
.gpgpl-app .gpgpl-gph.is-adding { z-index: 24; }
.gpgpl-app .gpgpl-gph.is-adding .gpgpl-gph-tray,
.gpgpl-app .gpgpl-gph.is-adding .gpgpl-gph-selbar,
.gpgpl-app .gpgpl-gph.is-adding .gpgpl-gph-handle { visibility: hidden; }
