/* Sunlux Maps SEO Portal: client upload page. Phone first. */
:root {
	--accent: #dfc46f;
	--ink: #061222;
	--muted: #5d6470;
	--line: #e6dfd2;
	--bg: #f6f2ea;
	--card: #ffffff;
	--ok: #1a7f4b;
	--bad: #b3261e;
	--radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
[hidden] { display: none !important; }

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	padding-top: calc(14px + env(safe-area-inset-top));
	background: var(--ink);
	color: #fff;
}
.brand { font-weight: 700; letter-spacing: .01em; }
.logo { max-height: 34px; max-width: 180px; display: block; }
.tag { font-size: 13px; opacity: .75; white-space: nowrap; }

.wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 22px 16px calc(40px + env(safe-area-inset-bottom));
}
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.lede { margin: 0 0 18px; color: var(--muted); }
.lede strong { color: var(--ink); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 16px;
	margin: 0 0 14px;
}
.card h2 { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.card h2.plain { display: block; margin-bottom: 6px; }
.center { text-align: center; }

.num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
}
.num.on-btn { background: rgba(255, 255, 255, .18); color: #fff; }

.vh {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pick {
	display: block;
	text-align: center;
	padding: 20px 14px;
	border: 2px dashed #c9c1b0;
	border-radius: var(--radius);
	background: #fbf9f4;
	cursor: pointer;
}
.pick:active { background: #f3eee2; }
.vh:focus-visible + .pick { outline: 3px solid var(--ink); outline-offset: 2px; }
.pick-main { display: block; font-weight: 700; font-size: 18px; }
.pick-sub { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pick.full { opacity: .5; pointer-events: none; }

.grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 12px;
}
.grid:empty { display: none; }
.thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #e9ecef;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hint.good { color: var(--ok); font-weight: 600; }
.rules { margin: 14px 0 0; padding: 0 0 0 20px; color: var(--muted); font-size: 14px; }
.rules li { margin: 3px 0; }

.field { display: block; font-weight: 600; margin: 16px 0 6px; }
.field:first-of-type { margin-top: 0; }
input[type="text"], textarea {
	width: 100%;
	padding: 13px 12px;
	border: 1px solid #c3c8d0;
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}
input[type="text"]:focus, textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
	border-color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
}
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); margin-top: 8px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.note {
	border-radius: var(--radius);
	padding: 12px 14px;
	margin: 0 0 14px;
	background: #e8f5ee;
	color: #14532d;
	font-weight: 600;
}
.note.warn { background: #fff4d6; color: #6b4a00; }
.error {
	border-radius: var(--radius);
	padding: 12px 14px;
	margin: 0 0 14px;
	background: #fdecea;
	color: var(--bad);
	font-weight: 600;
}
.tick {
	width: 64px;
	height: 64px;
	margin: 4px auto 12px;
	border-radius: 50%;
	background: var(--ok);
	color: #fff;
	font-size: 34px;
	line-height: 64px;
}
.foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

@media (min-width: 600px) {
	.wrap { padding-top: 34px; }
	h1 { font-size: 30px; }
}
