.mrtb-app {
	max-width: 1000px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2933;
}

.mrtb-loading { padding: 2em 0; text-align: center; color: #6b7280; }

.mrtb-duration-picker { text-align: center; padding: 3em 1em; }
.mrtb-duration-buttons { display: flex; gap: 1em; justify-content: center; margin-top: 1.5em; }

.mrtb-btn {
	padding: 0.55em 1.1em;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	font-size: 0.95em;
}
.mrtb-btn:hover { background: #f3f4f6; }
.mrtb-btn-primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.mrtb-btn-primary:hover { background: #185fce; }
.mrtb-btn-active { background: #1f2933; color: #fff; border-color: #1f2933; }
.mrtb-btn-link { border: none; background: none; text-decoration: underline; padding: 0; }

.mrtb-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75em;
	padding: 0.75em 0;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 0.5em;
}
.mrtb-toolbar-mid { display: flex; align-items: center; gap: 0.75em; }
.mrtb-anchor-label { font-weight: 600; min-width: 180px; text-align: center; }
.mrtb-toolbar-right { display: flex; gap: 0.5em; }

.mrtb-tz-note { font-size: 0.85em; color: #6b7280; margin-bottom: 1em; }

.mrtb-week-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.5em;
}
.mrtb-day-col {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.5em;
	min-height: 120px;
}
.mrtb-day-header { font-weight: 600; font-size: 0.85em; margin-bottom: 0.5em; text-align: center; }
.mrtb-no-slots { color: #9ca3af; text-align: center; font-size: 0.85em; padding: 1em 0; }

.mrtb-slot-btn {
	display: block;
	width: 100%;
	margin-bottom: 0.35em;
	padding: 0.4em;
	border-radius: 6px;
	border: 1px solid #1f6feb;
	background: #eaf2ff;
	color: #1f6feb;
	cursor: pointer;
	font-size: 0.85em;
}
.mrtb-slot-btn:hover { background: #1f6feb; color: #fff; }

.mrtb-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.mrtb-month-dow { text-align: center; font-weight: 600; font-size: 0.8em; padding: 0.3em 0; color: #6b7280; }
.mrtb-month-cell {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	min-height: 70px;
	padding: 0.35em;
}
.mrtb-outside-month { opacity: 0.35; }
.mrtb-month-daynum { font-size: 0.8em; margin-bottom: 0.3em; }
.mrtb-month-badge {
	display: inline-block;
	background: #eaf2ff;
	color: #1f6feb;
	font-size: 0.75em;
	padding: 0.2em 0.5em;
	border-radius: 12px;
	cursor: pointer;
}

.mrtb-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex; align-items: center; justify-content: center;
	z-index: 9999;
	padding: 1em;
}
.mrtb-modal {
	background: #fff;
	border-radius: 12px;
	padding: 1.5em;
	max-width: 420px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
}
.mrtb-modal h3 { margin-top: 0; }
.mrtb-input {
	display: block;
	width: 100%;
	padding: 0.6em;
	margin-bottom: 0.6em;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-sizing: border-box;
}
.mrtb-form-msg { color: #dc2626; font-size: 0.85em; min-height: 1.2em; margin-bottom: 0.5em; }

@media print {
	body * { visibility: hidden; }
	.mrtb-app, .mrtb-app * { visibility: visible; }
	.mrtb-app { position: absolute; left: 0; top: 0; width: 100%; }
	.mrtb-toolbar-right, .mrtb-duration-buttons, .mrtb-overlay { display: none !important; }
	.mrtb-slot-btn { border-color: #000; color: #000; background: #fff; }
	.mrtb-month-badge { border: 1px solid #000; color: #000; background: #fff; }
}
