.page-template-page-workout-log-php #page {
	max-width: 1200px;
	margin: 0 auto;
}

.page-template-page-workout-log-php #page .page-container {
	display: block;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 20px;
	box-sizing: border-box;
}

.page-template-page-workout-log-php #page .card {
	width: 100%;
	max-width: 100%;
}

.pdswl-app {
	background: #0f0f12;
	border: 1px solid #1f1f26;
	border-radius: 10px;
	padding: 18px;
	color: #f5f7fb;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	max-width: 1100px;
	margin: 0 auto;
}

.pdswl-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.pdswl-header h3 {
	margin: 0;
	font-size: 20px;
}

.pdswl-header p {
	margin: 2px 0 0;
	color: #b8bfcc;
}

.pdswl-key-block {
	margin-bottom: 10px;
}

.pdswl-key-form label {
	display: block;
	font-size: 13px;
	color: #e7d9b1;
	margin-bottom: 6px;
}

.pdswl-key-row {
	display: flex;
	gap: 8px;
}

.pdswl-key-row input {
	flex: 1;
	border-radius: 6px;
	border: 1px solid #5c4530;
	background: #1b1610;
	color: #f5f7fb;
	padding: 8px;
}

.pdswl-key-ok {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #8bd69f;
	font-size: 13px;
}

.pdswl-key-warning {
	background: #35240a;
	color: #f4c76b;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	border: 1px solid #704f18;
}

.pdswl-day-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin: 12px 0 16px;
}

.pdswl-day {
	border: 1px solid #1f1f26;
	background: #16161c;
	color: #f5f7fb;
	padding: 12px;
	border-radius: 8px;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.1s ease;
}

.pdswl-day:hover {
	border-color: #3b60ff;
	transform: translateY(-1px);
}

.pdswl-day.is-active {
	border-color: #3b60ff;
	box-shadow: 0 0 0 1px rgba(59, 96, 255, 0.4);
}

.pdswl-day-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #1f2537;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9bb4ff;
}

.pdswl-day-label {
	font-weight: 600;
}

.pdswl-content {
	border-top: 1px solid #1f1f26;
	padding-top: 14px;
}

.pdswl-section {
	margin-bottom: 18px;
}

.pdswl-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.pdswl-section h4 {
	margin: 0;
	font-size: 18px;
}

.pdswl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.pdswl-card {
	border: 1px solid #1f1f26;
	background: #16161c;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pdswl-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.pdswl-card-title {
	font-weight: 600;
	margin-bottom: 6px;
	flex: 1;
}

.pdswl-card-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pdswl-card-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pdswl-metric {
	display: flex;
	justify-content: space-between;
	color: #b8bfcc;
}

.pdswl-metric strong {
	color: #f5f7fb;
}

.pdswl-meta {
	color: #7f8794;
	font-size: 12px;
	margin-top: 6px;
}

.pdswl-muted {
	color: #7f8794;
	margin: 0;
}

.pdswl-error {
	color: #ff8b8b;
	font-weight: 600;
}

.pdswl-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #b8bfcc;
}

.pdswl-form {
	border: 1px solid #1f1f26;
	background: #16161c;
	border-radius: 8px;
	padding: 12px;
}

.pdswl-field {
	margin-bottom: 10px;
}

.pdswl-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.pdswl-field input,
.pdswl-field textarea {
	width: 100%;
	border-radius: 6px;
	border: 1px solid #252a36;
	background: #0f1119;
	color: #f5f7fb;
	padding: 8px;
}

.pdswl-field.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}

.pdswl-actions {
	text-align: right;
}

.pdswl-button {
	background: linear-gradient(135deg, #3b60ff, #8b9bff);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 700;
	transition: transform 0.1s ease;
}

.pdswl-button:hover {
	transform: translateY(-1px);
}

.pdswl-inline-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.pdswl-inline-fields input {
	width: 100%;
	border-radius: 6px;
	border: 1px solid #252a36;
	background: #0f1119;
	color: #f5f7fb;
	padding: 8px;
	box-sizing: border-box;
}

.pdswl-inline-fields label {
	display: block;
	font-size: 12px;
	color: #9ba4b3;
	margin-bottom: 4px;
}

.pdswl-readonly {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.pdswl-readonly-value {
	padding: 8px 10px;
	border: 1px dashed #2d3140;
	border-radius: 6px;
	color: #c7cedd;
	background: #0f1119;
	font-weight: 600;
}

.pdswl-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.pdswl-card-subtext {
	color: #9ba4b3;
	font-size: 12px;
}

.pdswl-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 6px;
	background: #1f2537;
	color: #9bb4ff;
	font-size: 12px;
	font-weight: 600;
}

.pdswl-tag.pdswl-target {
	border: 1px solid #3b60ff;
	background: rgba(59, 96, 255, 0.12);
	color: #bcd0ff;
}

.pdswl-subtext {
	color: #9ba4b3;
	font-size: 12px;
}

@media (max-width: 600px) {
	.pdswl-header {
		flex-direction: column;
		align-items: flex-start;
	}
}
