/* ========================================
マスター追加モーダル（背景）
======================================== */
.master-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 2000;
}

/* ========================================
モーダル本体
======================================== */
.master-modal {
	position: absolute;
	left: 50%;
	top: 70px;
	transform: translateX(-50%);
	width: 92%;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	padding: 16px 14px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	animation: modalFadeIn 0.15s ease-out;
}

/* 開閉アニメーション */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	transform: translate(-50%, -10px);
	}
	to   {
		opacity: 1;
	transform: translate(-50%, 0);
	}
}

/* ========================================
ヘッダー
======================================== */
.master-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.master-modal-header h3 {
	font-size: 18px;
	margin: 0;
}

.master-modal-header button {
	background: #ddd;
	border: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
}

/* ========================================
マスター項目
======================================== */
.master-item {
	padding: 10px 6px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background 0.15s;
}

.master-item:hover {
	background: #f5faff;
}

.master-item-name {
	font-size: 15px;
	font-weight: bold;
}

.master-item-time {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}

/* 最後の項目のボーダー消し */
.master-item:last-child {
	border-bottom: none;
}

/* ========================================
スマホ最適化
======================================== */
@media (max-width: 480px) {
	.master-modal {
		top: 50px;
		padding: 14px 12px;
	}

	.master-item {
		padding: 12px 8px;
	}

	.master-modal-header h3 {
		font-size: 17px;
	}
}
