* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--text);
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: clamp(15px, 1.55vw, 17px);
	line-height: 1.45;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	/* background-image set dynamically */
	transition: background-image 0.3s;
}
:root {
	--bg: #ebe6d9;
	--surface: #d8d1bd;
	--line: #8e9877;
	--text: #263224;
	--muted: #52634a;
	--primary: #4f6f3d;
	--primary-dark: #3f5a31;
	--accent: #8c5a2d;
	--accent-soft: #dec39f;
	--vivid: #6f8d47;
	--danger: #a5342f;
	--radius: 16px;
	--shadow: 0 16px 38px rgba(40, 50, 30, 0.2);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.topbar-controls {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-left: auto;
	position: relative;
	z-index: 10;
}

.brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
.brand-icon {
	height: 56px;
	width: auto;
	vertical-align: middle;
	flex-shrink: 0;
}

.section-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 0.4rem;
	transform: translateY(-1px);
}

.hero-actions .hero-btn {
	text-transform: uppercase;
	font-weight: 800;
	font-family: inherit;
	font-size: 1.08rem;
	letter-spacing: 0.04em;
	border-radius: 12px;
	padding: 0.7em 2.1em;
	box-shadow: 0 10px 22px rgba(35, 45, 28, 0.18);
	border-width: 2px;
	text-decoration: none !important;
	outline: none;
	transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.hero-actions .hero-btn:focus-visible {
	outline: 2px solid #7a4e2b;
	outline-offset: 2px;
}

.hero-actions .hero-btn:active {
	box-shadow: 0 4px 10px rgba(35, 45, 28, 0.13);
}

.hero h1 {
	margin: 0.2rem 0 1rem;
	font-size: 1.2rem;
	line-height: 1.15;
}
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	}
	
	.modal-card {
		background: #fff;
		border-radius: 16px;
		box-shadow: 0 8px 32px rgba(0,0,0,0.18);
		padding: 2rem 1.5rem 1.5rem 1.5rem;
		max-width: 420px;
		width: 96vw;
		text-align: center;
	}

	.bg-options {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem;
		justify-content: center;
		margin: 1.2rem 0 1.5rem 0;
	}

	.bg-thumb {
		width: 72px;
		height: 48px;
		border: 2px solid #ccc;
		border-radius: 8px;
		background-size: cover;
		background-position: center;
		cursor: pointer;
		outline: none;
		transition: border 0.18s;
	}
	.bg-thumb:hover, .bg-thumb:focus {
		border: 2px solid var(--primary);
	}

.topbar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	min-height: 72px;
	background: rgba(58, 74, 48, 0.92);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
}

.brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	color: #effbff;
	font-size: clamp(1.22rem, 2.4vw, 1.62rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.topnav {
	display: none;
	position: fixed;
	right: 1rem;
	top: 4.6rem;
	width: auto;
	max-width: min(92vw, 320px);
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 0.5rem;
	background: rgba(47, 60, 39, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
	margin-left: 0;
	z-index: 1000;
}

.topnav.open {
	display: flex;
}

.menu-toggle {
	display: inline-flex;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 0.4rem 0.5rem;
	cursor: pointer;
	gap: 4px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 0;
	margin-right: 0;
}

.menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: #f3f8ea;
	border-radius: 2px;
}

.topnav a,
.topnav .btn-link {
	display: block;
	width: auto;
	text-align: left;
	background: rgba(255, 255, 255, 0.08);
	color: #d5edf5;
	text-decoration: none;
	border: 0;
	padding: 0.32rem 0.5rem;
	border-radius: 8px;
	font-size: 0.95rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.forgot-trigger {
	justify-self: start;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--primary-dark);
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.forgot-trigger:hover,
.forgot-trigger:focus-visible {
	color: #2b3f22;
}

.reset-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(24, 30, 20, 0.45);
	display: grid;
	place-items: center;
	padding: 1rem;
	z-index: 30;
}

.reset-modal-card {
	width: min(560px, 100%);
	max-height: 86vh;
	overflow: auto;
}

.topnav a:hover,
.topnav .btn-link:hover {
	color: #fff9df;
	background: rgba(255, 245, 204, 0.24);
	transform: translateX(-2px);
}

.topnav a:focus-visible,
.topnav .btn-link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 1px;
}

.topnav .btn-link.btn-danger-link {
	color: #ffd9d9;
	background: rgba(150, 31, 31, 0.35);
	border: 1px solid rgba(255, 168, 168, 0.45);
}

.topnav .btn-link.btn-danger-link:hover,
.topnav .btn-link.btn-danger-link:focus-visible {
	color: #fff4f4;
	background: rgba(196, 43, 43, 0.55);
	border-color: rgba(255, 194, 194, 0.72);
}

.topnav .nav-submenu {
	display: grid;
	gap: 0.35rem;
	padding-left: 0.65rem;
	border-left: 2px solid rgba(255, 245, 204, 0.28);
	margin-left: 0.2rem;
}

.topnav .nav-submenu[hidden] {
	display: none !important;
}

.topnav .nav-separator {
	height: 1px;
	width: 100%;
	margin: 0.25rem 0 0.1rem;
	background: linear-gradient(90deg, rgba(255, 240, 199, 0.08), rgba(255, 240, 199, 0.7), rgba(255, 240, 199, 0.08));
	border-radius: 999px;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	justify-content: center;
	padding: 0.2rem 0.3rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.82rem;
	color: #e8f7fb;
}

.topbar-lang {
	width: auto;
	justify-content: center;
	margin-left: 0;
	padding: 0.22rem 0.4rem;
	flex-shrink: 0;
}

.topbar-lang span {
	display: none;
}

.lang-btn {
	border: 1px solid transparent;
	background: transparent;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	cursor: pointer;
	color: #e8f7fb;
	font-size: 0.8rem;
}

.lang-btn.active {
	background: #fff;
	color: #054d43;
}

.topbar-lang .lang-btn {
	padding: 0.18rem 0.42rem;
}

.container {
	width: min(1000px, 92vw);
	margin: clamp(1rem, 2.5vw, 2rem) auto;
	display: grid;
	gap: clamp(0.85rem, 1.8vw, 1.2rem);
}

.hero {
	background:
		radial-gradient(circle at 15% 20%, rgba(91, 109, 67, 0.28) 0 18%, transparent 19%),
		radial-gradient(circle at 78% 35%, rgba(134, 103, 64, 0.22) 0 16%, transparent 17%),
		linear-gradient(128deg, #cfc5ab 0%, #bcc5a8 45%, #bea984 100%);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: clamp(1.4rem, 3.6vw, 2.8rem);
	box-shadow: var(--shadow);
	animation: rise-in 420ms ease both;
	overflow: hidden;
}

.hero h1 {
	margin: 0.2rem 0 1rem;
	font-size: clamp(1.6rem, 4.8vw, 2.6rem);
	line-height: 1.15;
}

.hero-kicker {
	text-transform: uppercase;
	letter-spacing: 0.13em;
	font-size: 0.78rem;
	color: var(--primary);
	margin: 0;
	font-weight: 700;
}

.hero-text {
	max-width: 120ch;
	color: #1f261d;
	font-weight: 600;
	line-height: 1.8;
	background: rgba(245, 243, 234, 0.74);
	border: 1px solid rgba(64, 76, 48, 0.16);
	border-radius: 14px;
	padding: 0.9rem 1rem;
	box-shadow: 0 8px 18px rgba(33, 40, 27, 0.12);
}

.hero-actions {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.hero-actions .btn {
	min-height: 48px;
	font-weight: 700;
	padding-inline: 1rem;
	box-shadow: 0 10px 22px rgba(35, 45, 28, 0.2);
	border-width: 2px;
}

.hero-actions .btn-outline-success {
	background: linear-gradient(180deg, rgba(106, 167, 78, 0.26), rgba(60, 118, 47, 0.34));
	border-color: #5f8c43;
	color: #173216;
	box-shadow: 0 12px 24px rgba(30, 48, 21, 0.28);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hero-actions .btn-outline-success:hover,
.hero-actions .btn-outline-success:focus-visible {
	background: linear-gradient(180deg, #72b855, #4f8d38);
	border-color: #376326;
	color: #f4fff1;
	box-shadow: 0 14px 30px rgba(34, 66, 24, 0.38);
	transform: translateY(-1px);
}

.hero-actions .btn-outline-success:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(34, 66, 24, 0.28);
}
.btn-primary,
.btn-secondary,
.btn-dark,
.btn-outline-success {
	border-width: 2px;
	box-shadow: 0 10px 22px rgba(35, 45, 28, 0.2);
	font-weight: 700;
}

.btn-primary {
	background: linear-gradient(180deg, #7a4e2b, #6a4224) !important;
	border-color: #4c2e18 !important;
	color: #fff8ef !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: linear-gradient(180deg, #8a5a33, #764b2a) !important;
	border-color: #4c2e18 !important;
	color: #fffdf6 !important;
}

.btn-secondary {
	background: linear-gradient(180deg, #7a663b, #627a45);
	border-color: #566b35;
	color: #fffaf0;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: linear-gradient(180deg, #8d7847, #708a4f);
	border-color: #4b5f2c;
	color: #fffdf4;
}

.btn-dark {
	background: #111111 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

.btn-dark:hover,
.btn-dark:focus-visible {
	background: #1d1d1d !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

.btn-dark:focus,
.btn-dark:focus-visible,
.btn-dark:active:focus,
.btn-dark.active:focus {
	outline: none !important;
	box-shadow: 0 0 0 0.18rem rgba(17, 17, 17, 0.35) !important;
}

.btn-outline-success {
	border-color: #5f8c43;
	color: #173216;
}

.btn-outline-success:hover,
.btn-outline-success:focus-visible {
	background: linear-gradient(180deg, #72b855, #4f8d38);
	border-color: #376326;
	color: #f4fff1;
}

.btn-outline-success:active,
.btn-primary:active,
.btn-secondary:active,
.btn-dark:active {
	transform: translateY(0);
}

.btn:focus,
.btn:focus-visible,
.btn:active:focus,
.btn.active:focus {
	outline: none !important;
	box-shadow: 0 0 0 0.18rem rgba(95, 140, 67, 0.28) !important;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active:focus,
.btn-primary.active:focus {
	outline: none !important;
	box-shadow: 0 0 0 0.18rem rgba(122, 78, 43, 0.36) !important;
}

.card {
	background:
		radial-gradient(circle at 10% 15%, rgba(84, 100, 63, 0.2) 0 14%, transparent 15%),
		radial-gradient(circle at 80% 30%, rgba(122, 95, 64, 0.18) 0 13%, transparent 14%),
		linear-gradient(155deg, #d1c7ac, #c7bea3 52%, #b7ad90);
	border: 1px solid rgba(84, 99, 60, 0.28);
	border-radius: var(--radius);
	padding: clamp(0.85rem, 2vw, 1.15rem);
	box-shadow: var(--shadow);
}

.card h1,
.card h2,
.card h3 {
	margin-top: 0;
}

.intro-card {
	background:
		radial-gradient(circle at 18% 25%, rgba(88, 106, 66, 0.24) 0 15%, transparent 16%),
		linear-gradient(132deg, #d9ccb0, #c4cdab 58%, #b8a384);
}

.intro-card.guest-banner {
	border: 2px solid rgba(184, 120, 32, 0.5);
	background:
		radial-gradient(circle at 8% 20%, rgba(215, 160, 44, 0.25) 0 12%, transparent 13%),
		linear-gradient(135deg, #e2d3b0, #d4c190 55%, #c6ad79);
	box-shadow: 0 12px 28px rgba(112, 78, 24, 0.22);
	position: relative;
}

.intro-card.guest-banner::before {
	content: "Info";
	position: absolute;
	top: -10px;
	right: 12px;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: #7a4e2b;
	color: #fff8ef;
	border: 1px solid rgba(255, 235, 194, 0.45);
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.7rem, 1.6vw, 1rem);
}

body[data-page="dashboard"] .intro-card {
	width: min(760px, 92vw);
	margin-inline: auto;
	padding: clamp(0.7rem, 1.5vw, 0.95rem);
	text-align: center;
}

body[data-page="dashboard"] .dashboard-grid {
	width: min(760px, 92vw);
	margin-inline: auto;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.5vw, 0.9rem);
}

.nav-card {
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(84, 99, 60, 0.18);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-icon {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
	margin: 0.3rem auto 0.45rem;
}

.card-icon-inline {
	width: 24px;
	height: 24px;
	display: inline-block;
	margin: 0 0 0 0.35rem;
	vertical-align: middle;
}

.places-empty-state {
	display: grid;
	gap: 0.35rem;
}

.places-empty-option {
	font-weight: 700;
	margin: 0;
}

.nav-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 14px 30px rgba(62, 72, 46, 0.22);
}

.auth-grid {
	place-items: center;
}

.auth-card {
	width: min(500px, 100%);
}

.stack {
	display: grid;
	gap: 0.65rem;
}

label,
legend {
	font-size: 0.95rem;
	font-weight: 600;
}

input,
textarea,
select,
button {
	font: inherit;
}

input,
textarea,
select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0.62rem 0.7rem;
	background: #d7cfb8;
	color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
	border-color: var(--primary);
}

.password-wrap {
	position: relative;
}

.password-wrap input {
	padding-right: 2.8rem;
}

.password-toggle {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.1rem;
	height: 2.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #e7dfca;
	color: var(--text);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.password-toggle:hover,
.password-toggle:focus-visible {
	border-color: var(--primary);
	background: #f2ead5;
}

.card-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
}

.fish-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 0.6rem;
}

.weight-inline {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	gap: 0.4rem;
}

.weight-inline select {
	text-transform: lowercase;
	padding-inline: 0.35rem;
}

.filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	align-items: end;
}

.filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-self: stretch;
}

.list-grid {
	display: grid;
	gap: 0.75rem;
}

.list-item {
	border: 1px solid rgba(84, 99, 60, 0.28);
	border-radius: 12px;
	padding: 0.9rem;
	background:
		radial-gradient(circle at 16% 20%, rgba(88, 105, 66, 0.2) 0 12%, transparent 13%),
		linear-gradient(160deg, #cec4aa, #bdb496);
}

.list-item .btn {
	margin-top: 0.45rem;
}

.field-hint {
	margin: -0.15rem 0 0.25rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.image-compress-option {
	display: grid;
	gap: 0.2rem;
	margin-top: -0.2rem;
}

.check-label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 600;
}

.check-label input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--primary);
}

.image-compress-option .field-hint {
	margin: 0;
}

.list-item h3 {
	margin-bottom: 0.45rem;
}

.list-item[data-catch-id] {
	cursor: pointer;
}

.list-item[data-catch-id]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(37, 49, 29, 0.22);
	border-color: rgba(70, 110, 56, 0.45);
}

.logbook-carousel-list {
	display: flex;
	overflow-x: auto;
	gap: 0.7rem;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.3rem;
}

.logbook-carousel-list .list-item {
	min-width: min(360px, 85vw);
	max-width: min(420px, 92vw);
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 1rem;
}

.logbook-carousel-list .list-item p {
	font-size: 0.98rem;
	line-height: 1.4;
	margin: 0.3rem 0;
}

.logbook-fullscreen-overlay {
	padding: 0;
	z-index: 1200;
	background: rgba(15, 20, 14, 0.74);
}

.logbook-fullscreen-card {
	width: min(1180px, 96vw);
	height: min(92vh, 980px);
	max-height: 92vh;
	border-radius: 16px;
	overflow: auto;
	padding: clamp(0.85rem, 2.2vw, 1.25rem);
}

.logbook-fullscreen-card .card-head {
	position: sticky;
	top: 0;
	background: color-mix(in srgb, #d1c7ac 86%, white 14%);
	padding-bottom: 0.4rem;
	z-index: 3;
}

.logbook-card-thumb {
	height: 220px;
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
	margin-bottom: 0.55rem;
}

.logbook-carousel-list .list-item.just-saved {
	border-color: rgba(122, 78, 43, 0.75);
	box-shadow: 0 0 0 3px rgba(122, 78, 43, 0.18), 0 16px 30px rgba(37, 49, 29, 0.24);
	transform: translateY(-2px);
}

.fine-print {
	font-size: 0.9rem;
	color: var(--muted);
}

.message {
	margin: 0.5rem 0 0;
	min-height: 1.2rem;
	font-weight: 600;
}

.message.success {
	color: #21623a;
}

.message.error {
	color: var(--danger);
}

.badge {
	background: #2f4a2b;
	color: #f8fcea;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 0.32rem 0.78rem;
	font-size: 0.93rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.badge[hidden] {
	display: none;
}

.badge-empty {
	background: #7b2d29;
	color: #fff7f6;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
}

.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 0.7rem;
}

.detail-actions .btn {
	min-width: 120px;
}

.fish-table {
	width: 100%;
	border-collapse: collapse;
}

.fish-table th,
.fish-table td {
	border: 1px solid var(--line);
	padding: 0.5rem;
	text-align: left;
}

.image-preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.55rem;
}

.preview-thumb-wrap {
	display: grid;
	gap: 0.4rem;
}

.preview-remove-btn {
	width: 100%;
}

.thumb {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--line);
}

.photo-viewer {
	display: grid;
	gap: 0.6rem;
}

.photo-main {
	width: 100%;
	height: min(48vh, 420px);
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.22);
}

.photo-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 0.45rem;
}

.photo-thumb-btn {
	border: 1px solid rgba(72, 93, 54, 0.3);
	padding: 0.15rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
}

.photo-thumb-btn.active {
	border-color: rgba(49, 93, 41, 0.76);
	box-shadow: 0 0 0 2px rgba(113, 170, 72, 0.24);
}

.catch-carousel {
	display: flex;
	gap: 0.55rem;
	overflow-x: auto;
	padding: 0.2rem 0.1rem 0.55rem;
	scroll-snap-type: x mandatory;
	margin-bottom: 0.6rem;
}

.carousel-catch-card {
	min-width: 220px;
	max-width: 260px;
	flex: 0 0 auto;
	display: grid;
	gap: 0.3rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(80, 100, 58, 0.32);
	background: linear-gradient(160deg, #cec4aa, #bdb496);
	text-align: left;
	cursor: pointer;
	scroll-snap-align: start;
}

.carousel-catch-card.active {
	border-color: rgba(47, 88, 38, 0.7);
	box-shadow: 0 0 0 2px rgba(84, 150, 61, 0.24);
}

.catch-preview-card {
	margin-top: 0.4rem;
}

.place-layout {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.places-minimal-card {
	display: grid;
	gap: 0.7rem;
}

.places-toolbar-minimal {
	display: grid;
	gap: 0.45rem;
	justify-items: end;
}

.places-toolbar-actions {
	display: flex;
	gap: 0.4rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.btn-mini {
	padding: 0.26rem 0.5rem;
	font-size: 0.8rem;
	line-height: 1.2;
	border-radius: 8px;
	min-height: 30px;
	box-shadow: 0 4px 10px rgba(35, 45, 28, 0.14);
}

.place-search-row {
	margin-bottom: 0.55rem;
	width: min(540px, 100%);
	justify-content: flex-end;
}

.place-search-row input {
	min-width: 220px;
	flex: 1;
}

#recommendedEditorSection[hidden],
#placeSearchPanel[hidden] {
	display: none !important;
}

.place-carousel-list {
	display: flex;
	overflow-x: auto;
	gap: 0.7rem;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.35rem;
}

.place-carousel-card {
	min-width: min(350px, 84vw);
	max-width: min(420px, 92vw);
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.place-btn {
	width: 100%;
	text-align: left;
	border: 1px solid rgba(14, 116, 144, 0.22);
	cursor: pointer;
}

.place-btn.active {
	border-color: rgba(47, 88, 38, 0.7);
	box-shadow: 0 0 0 2px rgba(84, 150, 61, 0.24);
}

.recommended-editor-card {
	margin-top: 0.85rem;
}

.recommended-place-btn p {
	margin: 0;
}

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

@media (max-width: 980px) {
   .topbar {
	   padding: 0.85rem 0.95rem;
	   min-height: 68px;
   }

   .topbar-lang {
	   order: 2;
   }

   .menu-toggle {
	   order: 3;
	   margin-left: 0;
	   margin-right: 0;
   }

   .topnav {
	   order: 4;
	   right: 0.95rem;
	   left: auto;
	   align-items: flex-start;
	   margin-left: 0;
   }

	.dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.logbook-carousel-list {
		display: flex;
		overflow-x: auto;
		gap: 0.6rem;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.2rem;
	}

	.logbook-carousel-list .list-item {
		min-width: min(84vw, 290px);
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.logbook-fullscreen-card {
		width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}

	.place-layout {
		grid-template-columns: 1fr;
	}

	.places-toolbar-minimal {
		justify-items: stretch;
	}

	.places-toolbar-actions {
		justify-content: flex-start;
	}

	.place-carousel-card {
		min-width: min(84vw, 300px);
	}
}

@media (max-width: 640px) {
	.topbar {
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 0.55rem;
		padding: 0.75rem 0.85rem 0.95rem;
	}

	.topbar-controls {
		order: 1;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-left: 0;
	}

	.topbar-lang {
		order: 1;
		justify-content: flex-start;
	}

	.menu-toggle {
		order: 2;
		margin-left: auto;
	}

	.brand {
		order: 2;
		position: static;
		left: auto;
		transform: none;
		width: 100%;
		justify-content: center;
		font-size: clamp(1rem, 5vw, 1.2rem);
		padding: 0;
		white-space: normal;
		line-height: 1.15;
	}

	.brand-icon {
		height: 46px;
	}

	.section-icon {
		width: 24px;
		height: 24px;
	}

	.card-icon-inline {
		width: 22px;
		height: 22px;
	}

	.topnav {
		top: 8.4rem;
		right: 0.85rem;
		max-width: min(92vw, 300px);
	}
}

@media (max-width: 680px) {
	.container {
		width: min(1080px, 95vw);
		margin: 0.95rem auto 1.5rem;
	}

	.topnav {
		gap: 0.4rem;
		max-width: min(93vw, 280px);
	}

	.topnav a,
	.topnav .btn-link {
		font-size: 0.88rem;
		padding: 0.45rem 0.55rem;
	}

	.hero-actions {
		flex-direction: column;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.dashboard-grid,
	.filter-grid,
	.detail-grid,
	.fish-row {
		grid-template-columns: 1fr;
	}

	/* On small phones keep dashboard concise: Places/Caught are already in hamburger. */
	.dashboard-grid .nav-card:nth-child(3),
	.dashboard-grid .nav-card:nth-child(4) {
		display: none;
	}

	.card-head {
		align-items: flex-start;
	}

	.card-head .btn {
		width: 100%;
	}

	.filter-actions {
		width: 100%;
	}

	.filter-actions .btn {
		flex: 1;
	}

	.detail-actions .btn {
		min-width: 0;
	}

	.place-search-row input {
		min-width: 0;
		width: 100%;
	}

	.logbook-card-thumb {
		height: 130px;
	}

	/* Minimum 44px touch targets for interactive elements */
	.btn:not(.btn-mini) {
		min-height: 44px;
	}

	/* Dashboard single-column on mobile (override higher-specificity rule) */
	body[data-page="dashboard"] .dashboard-grid {
		grid-template-columns: 1fr;
		width: min(480px, 92vw);
	}

	body[data-page="dashboard"] .intro-card {
		width: min(480px, 92vw);
	}

	input,
	textarea,
	select {
		font-size: 16px;
	}
}

@media (max-width: 430px) {
	.brand {
		font-size: 1.08rem;
	}

	.brand-icon {
		height: 40px;
	}

	.section-icon {
		width: 22px;
		height: 22px;
	}

	.card-icon-inline {
		width: 20px;
		height: 20px;
	}

	.hero h1 {
		font-size: clamp(1.35rem, 7.2vw, 1.8rem);
	}

	.list-item {
		padding: 0.75rem;
	}

	.container {
		width: min(1000px, 97vw);
	}

	/* Hamburger dropdown: topbar is ~110px on 430px screens */
	.topnav {
		top: 7.8rem;
		right: 0.65rem;
	}

	/* Large photo viewer not so tall on small phones */
	.photo-main {
		height: min(38vh, 280px);
	}

	/* Slightly smaller image preview thumbnails */
	.image-preview {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.thumb {
		height: 120px;
	}

	/* Keep dashboard intro card and grid contained */
	body[data-page="dashboard"] .intro-card,
	body[data-page="dashboard"] .dashboard-grid {
		width: min(430px, 97vw);
	}
}
