:root {
	--ink: #18324a;
	--muted: #718096;
	--blue: #2f80a8;
	--blue-deep: #17466a;
	--line: #e7edf2
}

* {
	box-sizing: border-box
}

body {
	background: linear-gradient(145deg, #f8fbff 0%, #eef6f8 55%, #fff4ed 100%);
	color: var(--ink);
	font-family: Inter, 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
	min-height: 100vh
}

body:before {
	content: "";
	position: fixed;
	z-index: -1;
	width: 260px;
	height: 260px;
	right: -100px;
	top: 110px;
	background: #c9f0e7;
	border-radius: 50%;
	filter: blur(4px);
	opacity: .65
}

body:after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 220px;
	height: 220px;
	left: -130px;
	bottom: 30px;
	background: #ffe1c8;
	border-radius: 50%;
	opacity: .65
}

.brand {
	font-weight: 850;
	letter-spacing: .16em;
	color: var(--ink);
	text-decoration: none;
	font-size: 1.02rem
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding: 2px
}

.menu-toggle {
	width: 46px;
	height: 46px;
	border: 1px solid #b7c8d4;
	border-radius: 15px;
	background: #fff;
	color: var(--blue-deep);
	font-size: 23px;
	line-height: 1;
	box-shadow: 0 5px 14px #39718a18
}

.mobile-menu {
	display: none;
	background: #fff;
	border: 1px solid #edf1f4;
	border-radius: 20px;
	padding: 8px;
	margin-bottom: 18px;
	box-shadow: 0 14px 30px #39718a1a
}

.mobile-menu.is-open {
	display: grid
}

.mobile-menu a {
	padding: 14px 13px;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--line)
}

.mobile-menu a:last-child {
	border-bottom: 0
}

.card {
	border: 1px solid #fff;
	border-radius: 21px;
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 12px 28px #36708a12
}

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #175078 0%, #2c87a1 68%, #55b6ad 100%);
	color: #fff;
	border-radius: 25px;
	box-shadow: 0 16px 30px #286b871f
}

.hero:after {
	content: "";
	position: absolute;
	width: 145px;
	height: 145px;
	right: -38px;
	top: -45px;
	border: 25px solid #ffffff20;
	border-radius: 50%
}

.hero>* {
	position: relative;
	z-index: 1
}

.hero h1 {
	letter-spacing: -.04em
}

.resident-summary {
	display: flex;
	gap: 34px;
	border-top: 1px solid #ffffff55;
	padding-top: 13px
}

.resident-summary span {
	display: block;
	font-size: .74rem;
	opacity: .75
}

.resident-summary strong {
	display: block;
	font-size: 1rem
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 3px
}

.section-heading a {
	font-size: .82rem;
	font-weight: 700;
	color: var(--blue);
	text-decoration: none
}

.btn-primary {
	background: linear-gradient(135deg, #17496b, #267c9b);
	border: 0;
	box-shadow: 0 7px 14px #24627d25
}

.btn-outline-primary {
	border-color: #5aaec0;
	color: #176080
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	vertical-align: middle;
	border-radius: 14px;
	min-height: 44px;
	font-weight: 650;
	line-height: 1.2
}

.notice-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px
}

.notice-actions form {
	display: flex;
	margin: 0
}

.notice-actions .btn {
	min-width: 58px
}

.resident-actions {
	display: flex;
	justify-content: flex-end
}

.form-control,
.form-select {
	min-height: 50px;
	border-radius: 14px;
	border: 1px solid #d8e2e8;
	background: #fff;
	box-shadow: inset 0 1px 2px #294c5b08
}

.form-control:focus,
.form-select:focus {
	border-color: #61b8be;
	box-shadow: 0 0 0 4px #61b8be22
}

.reply-box {
	background: #e9f8f5;
	border-left: 4px solid #51b8a7;
	padding: 13px;
	border-radius: 10px
}

.suggestion-body {
	white-space: pre-wrap;
	line-height: 1.8
}

.new-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: .35rem;
	padding: .22rem .45rem;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	vertical-align: middle
}

.survey-options {
	display: grid;
	gap: 9px
}

.survey-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 13px;
	border: 1px solid #d8e2e8;
	border-radius: 13px;
	background: #fff;
	cursor: pointer
}

.survey-option:has(input:checked) {
	border-color: #51b8a7;
	background: #e9f8f5
}

.survey-option input {
	accent-color: #267c9b;
	width: 18px;
	height: 18px
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	border-radius: 999px;
	padding: .45em .7em;
	line-height: 1.2;
	min-height: 32px
}

.text-bg-warning {
	background: #fff0c7 !important;
	color: #986b00 !important
}

.text-bg-success {
	background: #d9f4e9 !important;
	color: #147052 !important
}

.text-bg-secondary {
	background: #edf1f4 !important;
	color: #627383 !important
}

h1,
h2,
h3 {
	letter-spacing: -.035em
}

small,
.text-muted {
	color: var(--muted) !important
}

@media(min-width:768px) {
	main {
		max-width: 760px
	}
}

.response-accordion summary:after {
	content: '▼' !important
}

.response-accordion[open] summary:after {
	content: '▲' !important
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: min(86vw, 330px);
	height: 100vh;
	z-index: 1050;
	margin: 0;
	padding: 78px 20px 20px;
	border: 0;
	border-radius: 24px 0 0 24px;
	transform: translateX(105%);
	transition: transform .24s ease;
	display: block;
	overflow-y: auto;
	box-shadow: -14px 0 35px #102b3d35
}

.mobile-menu.is-open {
	transform: translateX(0);
	display: block
}

.menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1040;
	background: rgba(12, 30, 45, .52);
	opacity: 0;
	pointer-events: none;
	transition: opacity .24s ease
}

.menu-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto
}

.mobile-menu .menu-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	border: 1px solid #b7c8d4;
	border-radius: 12px;
	background: #fff;
	color: var(--blue-deep);
	font-size: 25px;
	line-height: 1
}

.mobile-menu a {
	display: block;
	width: 100%;
	padding: 15px 13px;
	white-space: normal
}

.mobile-menu a.logout-link {
	margin-top: 10px;
	border: 1px solid #ffd2ce;
	border-radius: 12px;
	background: #fff1f0;
	color: #b42318;
	font-weight: 750
}

.dashboard-stat-card {
	padding: 12px !important;
	box-shadow: 0 8px 18px #36708a12
}

.dashboard-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	margin: 10px 0 7px
}

.dashboard-stat-grid div {
	padding: 2px 6px;
	text-align: center;
	border-left: 1px solid #e4edf0
}

.dashboard-stat-grid div:first-child {
	border-left: 0
}

.dashboard-stat-grid small {
	display: block;
	font-size: .68rem;
	white-space: nowrap
}

.dashboard-stat-grid strong {
	display: block;
	margin-top: 2px;
	font-size: .98rem;
	color: var(--blue-deep)
}

.dashboard-stat-card .h5 {
	font-size: 1rem
}

.dashboard-stat-card .btn {
	min-height: 38px
}

.dashboard-stat-card p {
	font-size: .78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.dashboard-stat-grid .attention small,
.dashboard-stat-grid .attention strong {
	color: #d92d20
}

.dashboard-stat-grid .attention strong {
	font-weight: 850
}

.survey-period {
	display: block;
	padding: 9px 11px;
	border-radius: 10px;
	background: #eef8f7;
	color: #216b75;
	font-size: .82rem;
	font-weight: 700
}

.survey-status-line {
	margin-bottom: 12px
}

.resident-floor-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 2px 0 10px;
	margin-bottom: 4px;
	scrollbar-width: none
}

.resident-floor-tabs::-webkit-scrollbar {
	display: none
}

.resident-floor-tabs button {
	flex: 0 0 auto;
	border: 1px solid #b8d0d8;
	border-radius: 999px;
	background: #fff;
	color: var(--blue-deep);
	padding: 8px 14px;
	font-weight: 700;
	cursor: pointer
}

.resident-floor-tabs button.active {
	background: linear-gradient(135deg, #17496b, #267c9b);
	border-color: #17496b;
	color: #fff;
	box-shadow: 0 5px 12px #24627d25
}

@media (min-width:992px) {
	main.container {
		max-width: 1280px
	}

	.dashboard-stat-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		display: grid !important
	}

	.dashboard-stat-card {
		min-height: 170px
	}

	.table-responsive {
		overflow-x: visible
	}

	.table-responsive table {
		white-space: nowrap
	}

	.table-responsive th,
	.table-responsive td {
		padding-left: 12px;
		padding-right: 12px
	}

	.resident-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 20px;
		align-items: center;
		padding: 14px !important;
		min-height: 92px
	}

	.resident-card>div:first-child {
		grid-column: 1;
		grid-row: 1
	}

	.resident-card>small {
		grid-column: 1;
		grid-row: 2
	}

	.resident-card>form {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin: 0 !important
	}

	.resident-card .resident-actions {
		justify-content: flex-end
	}
}

@media (min-width:1300px) {
	.dashboard-stat-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr))
	}

	.dashboard-stat-card {
		min-height: 190px
	}
}

@media (min-width:992px) {
	main.container:has(.admin-menu) {
		position: relative
	}

	main.container:has(.admin-menu)>.site-header .menu-toggle {
		display: none
	}

	.admin-menu {
		position: absolute;
		top: 10px;
		right: 0;
		width: auto;
		height: auto;
		z-index: 1050;
		display: flex !important;
		align-items: center;
		gap: 2px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
		transform: none !important
	}

	.admin-menu .menu-close {
		display: none
	}

	.admin-menu a {
		display: inline-flex;
		width: auto;
		padding: 9px 10px;
		border: 0;
		border-radius: 10px;
		white-space: nowrap;
		font-size: .86rem;
		color: var(--ink)
	}

	.admin-menu a:hover {
		background: #fff;
		color: var(--blue-deep)
	}

	.admin-menu a.logout-link {
		margin: 0 0 0 5px;
		padding: 9px 11px
	}

	.admin-menu+.menu-backdrop {
		display: none
	}
}

.menu-toggle {
	position: relative;
	z-index: 1060
}