.nest-ct {
	color: #1f2933;
	font-size: 16px;
}

.nest-ct-toolbar,
.nest-ct-nav,
.nest-ct-switch,
.nest-ct-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nest-ct-toolbar {
	justify-content: space-between;
	margin-bottom: 18px;
}

.nest-ct-toolbar h3 {
	font-size: 1.1rem;
	margin: 0;
}

.nest-button {
	background: #f5f7fa;
	border: 1px solid #cad2dc;
	border-radius: 6px;
	color: #1f2933;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 9px 12px;
	text-decoration: none;
}

.nest-button-primary,
.nest-button.is-active {
	background: #2663eb;
	border-color: #2663eb;
	color: #fff;
}

.nest-ct-week-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.nest-ct-day {
	border: 1px solid #d9e0e8;
	border-radius: 8px;
	padding: 12px;
}

.nest-ct-day h4 {
	font-size: 0.95rem;
	margin: 0 0 10px;
}

.nest-ct-item,
.nest-ct-row {
	background: #fff;
	border: 1px solid #dfe5ec;
	border-radius: 8px;
	gap: 12px;
	margin-bottom: 10px;
	padding: 12px;
}

.nest-ct-item {
	display: grid;
}

.nest-ct-item .nest-ct-complete {
	justify-self: start;
	margin-top: 2px;
}

.nest-ct-row {
	display: flex;
	justify-content: space-between;
}

.nest-ct-row > div:first-child {
	display: grid;
	gap: 4px;
}

.nest-ct-item p {
	margin: 4px 0;
}

.nest-ct-item.is-complete,
.nest-ct-row.is-complete {
	background: #f2fbf5;
	border-color: #bfe6c8;
}

.nest-ct-points,
.nest-ct-status {
	color: #287a3e;
	font-size: 0.85rem;
	font-weight: 700;
}

.nest-ct-muted,
.nest-ct-empty {
	color: #667085;
}

.nest-ct-list {
	display: grid;
	gap: 10px;
}

.nest-modal {
	align-items: center;
	background: rgba(15, 23, 42, 0.48);
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 9999;
}

.nest-modal-content {
	background: #fff;
	border-radius: 8px;
	max-height: 90vh;
	max-width: 640px;
	overflow: auto;
	padding: 22px;
	position: relative;
	width: min(640px, 100%);
}

.nest-close {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 28px;
	position: absolute;
	right: 14px;
	top: 10px;
}

.nest-field {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
}

.nest-field input,
.nest-field select,
.nest-field textarea {
	border: 1px solid #cad2dc;
	border-radius: 6px;
	font: inherit;
	padding: 9px 10px;
	width: 100%;
}

.nest-ct-weekdays {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nest-ct-weekdays label {
	align-items: center;
	display: inline-flex;
	gap: 5px;
}

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

.nest-ct-table th,
.nest-ct-table td {
	border-bottom: 1px solid #dfe5ec;
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

@media (max-width: 700px) {
	.nest-ct-item,
	.nest-ct-row {
		display: grid;
	}

	.nest-ct-toolbar {
		align-items: stretch;
		display: grid;
	}
}
