:root {
	--bg: #f3f6f1;
	--ink: #14241a;
	--muted: #5d6b62;
	--brand: #062e0f;
	--brand-dark: #031a09;
	--accent: #e6b325;
	--line: #d5e2d8;
	--card: #fff;
	--danger: #9f2d22;
	--wait: #8a6410;
	--wait-bg: #fff4d6;
	--ok-bg: #e5f4ea;
	--done: #1d3f8a;
	--done-bg: #e7eefc;
	--stop-bg: #fde8e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font: 16px/1.45 Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	padding-bottom: calc(76px + env(safe-area-inset-bottom));
	position: relative;
	min-height: 100vh;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background: url("campus-bg.jpg") center / cover no-repeat;
	opacity: .18;
	pointer-events: none;
}
main,
noscript { position: relative; z-index: 1; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.wrap { width: min(1080px, calc(100% - 24px)); margin: 0 auto; }
.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--brand);
	color: #fff;
	padding-top: env(safe-area-inset-top);
	box-shadow: 0 8px 24px rgba(6, 46, 15, .22);
}
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-text { min-width: 0; line-height: 1.15; }
.brand-text strong, .brand-text small { display: block; overflow: hidden; text-overflow: ellipsis; }
.brand-text strong { font-size: 15px; white-space: nowrap; }
.brand-text small { color: var(--accent); font-weight: 700; font-size: 12px; white-space: nowrap; }
.hero-logo, .auth-logo { display: block; background: #fff; object-fit: contain; }
.brand-logo { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
.hero-logo { width: min(280px, 100%); height: auto; margin: 0 0 14px; border-radius: 16px; }
.auth-logo { width: min(280px, 100%); height: auto; margin: 0 auto 16px; border-radius: 16px; }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.account { position: relative; }
button.account-btn {
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
}
.account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 40;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	color: var(--ink);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(6, 46, 15, .22);
}
.account-menu[hidden] { display: none; }
.account-name {
	margin: 0;
	padding: 8px 10px 10px;
	font-weight: 800;
	border-bottom: 1px solid var(--line);
}
.account-menu a, .account-menu button {
	display: flex;
	width: 100%;
	min-height: 40px;
	align-items: center;
	justify-content: flex-start;
	margin-top: 4px;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ink);
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--bg); }
.bell, .signin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	padding: 0 10px 0 14px;
}
.bell em {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	margin: 0;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--accent);
	color: #1d240c;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}
.tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	background: #062e0f;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -8px 24px rgba(6, 46, 15, .28);
}
.tabs { display: flex; }
.tabs a {
	flex: 1;
	text-align: center;
	text-decoration: none;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	font-weight: 800;
	padding: 12px 4px 14px;
}
.tabs a.is-on {
	color: #fff;
	box-shadow: inset 0 3px 0 var(--accent);
}
main { padding: 16px 0 24px; }
.hero {
	background: linear-gradient(155deg, var(--brand-dark), var(--brand) 58%, #0a4a1c);
	color: #fff;
	border-radius: 22px;
	padding: 22px 18px 18px;
	box-shadow: 0 16px 40px rgba(6, 46, 15, .22);
}
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; }
.hero p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px; }
.steps strong { display: block; }
.steps span { display: block; font-size: 12px; opacity: .85; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn, button, .signin {
	min-height: 48px;
}
.btn, button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	border-radius: 14px;
	padding: 12px 14px;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}
.btn.gold { background: var(--accent); color: #1d240c; }
.btn.ghost, button.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.stop, button.stop { background: var(--danger); }
button:disabled { opacity: .6; cursor: wait; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 10px; }
.section-title h2 { margin: 0; font-size: 20px; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 700; }
.note, .panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 14px;
}
.note { background: var(--wait-bg); color: var(--wait); }
.stack { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; }
.form-row > label { margin: 0; }
.role-block { display: grid; gap: 12px; }
.role-extra:empty { display: none; }
.role-extra { display: grid; gap: 12px; }
.role-extra > label { margin: 0; }
.grid { display: grid; gap: 12px; }
.card {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 12px;
	background: var(--card);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 8px 24px rgba(20, 36, 26, .06);
}
.card img, .ph {
	width: 104px;
	height: 104px;
	object-fit: contain;
	background: #fff;
}
.ph { display: grid; place-items: center; font-weight: 800; color: var(--brand); padding: 8px; text-align: center; }
.card-body { padding: 10px 12px 10px 0; }
.card-body strong { display: block; }
.card-body p { margin: 2px 0; }
.pill {
	display: inline-block;
	margin-top: 6px;
	border-radius: 999px;
	padding: 2px 8px;
	background: var(--ok-bg);
	color: var(--brand);
	font-size: 12px;
	font-weight: 800;
}
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.done { background: var(--done-bg); color: var(--done); }
.pill.stop { background: var(--stop-bg); color: var(--danger); }
.score { font-weight: 800; color: var(--brand); }
.photo-lg {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	object-position: center;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--line);
}
.photo-pick .photo-preview {
	display: block;
	width: min(220px, 100%);
	max-height: 220px;
	margin-top: 10px;
	object-fit: contain;
	object-position: center;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
}
.photo-pick .photo-preview[hidden] { display: none; }
.photo-pick-dual {
	display: grid;
	gap: 8px;
	margin: 8px 0;
}
.photo-pick-label {
	font-weight: 700;
}
.photo-pick-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.photo-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--brand);
	border-radius: 12px;
	background: #fff;
	color: var(--brand);
	font-weight: 800;
	cursor: pointer;
	text-align: center;
	overflow: hidden;
}
.photo-pick-dual input[type="file"],
.photo-action input[type="file"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
	font-size: 0;
}
.photo-pick-dual > input[name="resolve_photo"],
.photo-pick-dual > input[name="release_photo"],
.photo-pick-dual > input[name="proof_photo"],
.photo-pick-dual > input[name="photo"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.photo-action input[type="file"]::file-selector-button,
.photo-action input[type="file"]::-webkit-file-upload-button {
	display: none;
}
.photo-action:has(input:focus-visible) {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
.photo-pick-status {
	margin: 0;
}
.photo-pick-label .req {
	color: var(--danger);
	font-style: normal;
}
.captcha-field { display: grid; gap: 8px; }
.captcha-label { font-weight: 700; }
.captcha-label em { color: var(--danger); font-style: normal; }
.captcha-media { display: flex; align-items: center; gap: 8px; }
.captcha-image {
	display: block;
	width: 220px;
	height: 70px;
	border: 1px solid #cad8cc;
	border-radius: 8px;
	background: #f5f7f5;
	object-fit: contain;
}
button.captcha-refresh {
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid #cad8cc;
	border-radius: 8px;
	background: #fff;
	color: var(--brand);
	cursor: pointer;
}
button.captcha-refresh:hover { background: #eef5f0; }
.captcha-field input[name="captcha"] {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
}
.hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
label { display: block; margin: 12px 0; font-weight: 700; }
input, select, textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.filters { display: grid; gap: 8px; }
.auth-card { max-width: 420px; margin: 8vh auto; padding: 22px; background: #fff; border-radius: 20px; box-shadow: 0 12px 40px rgba(20, 36, 26, .08); }
.auth-card h1 { margin: 0 0 8px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
}
.password-toggle .eye-off { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-off { display: block; }
#passwordRules { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; font-weight: 400; }
#passwordRules li.ok { color: var(--brand); }
#passwordRules li.bad { color: var(--danger); }
.links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.match { display: block; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fine { font-size: 13px; color: var(--muted); font-weight: 400; }
a.phone { font-weight: 800; text-decoration: none; }
a.phone:hover { text-decoration: underline; }
.contacted-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}
.contacted-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--brand);
}
.prose { white-space: pre-wrap; }

.track-shell {
	max-width: 520px;
	margin: 0 auto;
}
.track-shell.panel.stack { gap: 8px; padding: 14px 16px; }
.track-shell .section-title { margin: 0; }
.track-shell > p { margin: 0; }
.track-shell #trackForm.stack { gap: 8px; }
.track-shell .track-code {
	display: block;
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: .04em;
	color: var(--brand);
}
.track-result[hidden] { display: none; }
.track-card {
	display: grid;
	gap: 2px;
	margin-top: 4px;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #f7faf8;
}
.track-card > p { margin: 0; }
.track-card .track-title {
	font-weight: 700;
	margin: 0 0 2px;
}
.track-card .track-email { margin: 0 0 4px; }
.track-history-wrap {
	overflow-x: auto;
	margin-top: 2px;
}
.track-history {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}
.track-history th,
.track-history td {
	padding: 5px 4px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.track-history th {
	color: var(--muted, #5d6b62);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.track-history td:first-child {
	font-weight: 700;
	color: var(--brand);
	width: 42%;
}
.track-history tbody tr:last-child td { border-bottom: 0; }

/* Two-column report form (Lost / Found) */
main.wrap:has(.report-shell) {
	width: min(1120px, calc(100% - 20px));
}
.report-shell {
	display: grid;
	gap: 0;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(6, 46, 15, .14);
	border: 1px solid rgba(213, 226, 216, .9);
}
.report-aside {
	background: #062e0f;
	color: #fff;
	padding: 28px 22px 22px;
	display: grid;
	align-content: start;
	gap: 16px;
}
.report-art {
	width: min(220px, 70%);
	margin: 0 auto 4px;
	aspect-ratio: 1;
}
.report-art svg { width: 100%; height: 100%; display: block; }
.report-aside h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
	color: #fff;
	text-align: center;
}
.report-aside > p {
	margin: 0;
	color: rgba(255, 255, 255, .78);
	text-align: center;
	font-size: 14px;
}
.report-steps {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.report-steps li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 12px;
	align-items: start;
	background: transparent;
	padding: 0;
	border-radius: 0;
}
.report-steps .step-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .12);
	color: var(--accent);
	flex-shrink: 0;
}
.report-steps strong {
	display: block;
	font-size: 14px;
	color: #fff;
}
.report-steps span {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, .72);
	opacity: 1;
	margin-top: 2px;
}
.report-safe {
	margin-top: 8px;
	padding: 14px 14px 14px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}
.report-safe svg { color: var(--accent); }
.report-main {
	padding: 22px 20px 20px;
	min-width: 0;
}
.report-main-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.report-main-head .doc-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #e8f3eb;
	color: var(--brand);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.report-main-head h2 {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.2;
	color: var(--brand);
}
.report-main-head p {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
	font-weight: 400;
}
.report-main .panel {
	border: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.report-main .panel.stack { gap: 4px; }
.report-main label { margin: 8px 0; }
.report-main button[type="submit"] {
	margin-top: 10px;
	gap: 8px;
}

@media (min-width: 800px) {
	.hero h1 { font-size: 44px; }
	.grid.cards { grid-template-columns: 1fr 1fr; }
	.form-row-2 { grid-template-columns: 1fr 1fr; }
	.form-row-3 { grid-template-columns: repeat(3, 1fr); }
	.role-extra { grid-template-columns: repeat(3, 1fr); }
	.filters { grid-template-columns: 1.4fr repeat(4, 1fr) auto; align-items: end; }
	.filters button { margin-bottom: 12px; }
	.auth-card { margin-top: 10vh; }
	.report-shell {
		grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	}
	.report-aside {
		padding: 32px 24px 24px;
		border-right: 0;
	}
	.report-aside h1 { font-size: 30px; }
	.report-main { padding: 28px 28px 24px; }
}
@media (min-width: 1100px) {
	.grid.cards { grid-template-columns: 1fr 1fr 1fr; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Toastr — keep default layout, brand colors only */
#toast-container {
	z-index: 99999;
}
#toast-container.toast-top-right {
	top: 16px;
	right: 16px;
}
#toast-container > div {
	position: relative;
	opacity: 1;
	width: 320px;
	padding: 15px 40px 15px 50px;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(6, 46, 15, .18);
	background-position: 15px center;
	background-repeat: no-repeat;
}
#toast-container > .toast-success { background-color: #062e0f; }
#toast-container > .toast-info { background-color: #1d3f8a; }
#toast-container > .toast-warning { background-color: #8a6410; }
#toast-container > .toast-error { background-color: #9f2d22; }
#toast-container .toast-title,
#toast-container .toast-message {
	color: #fff;
	font-weight: 600;
	line-height: 1.4;
	padding-right: 8px;
}
#toast-container button.toast-close-button,
#toast-container .toast-close-button {
	position: absolute;
	right: 8px;
	top: 6px;
	z-index: 2;
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 28px;
	height: 28px;
	min-height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	text-shadow: none;
	opacity: .85;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
#toast-container button.toast-close-button:hover,
#toast-container button.toast-close-button:focus,
#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
	color: #fff;
	opacity: 1;
	background: rgba(255, 255, 255, .12);
}
#toast-container .toast-progress {
	opacity: .35;
	background: #fff;
}
@media (max-width: 480px) {
	#toast-container.toast-top-right {
		top: 12px;
		right: 12px;
		left: 12px;
		width: auto;
	}
	#toast-container > div {
		width: 100%;
	}
}
