.pvpm-sheet-shell {
	background: linear-gradient(180deg, #f6f2f5 0%, #ffffff 240px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(43, 16, 36, 0.08);
}

.pvpm-sheet-header,
.pvpm-sheet-summary,
.pvpm-sheet-section,
.pvpm-sheet-tabs,
.pvpm-sheet-notice {
	margin: 0 18px 18px;
}

.pvpm-sheet-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 18px;
}

.pvpm-sheet-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.05;
}

.pvpm-sheet-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.pvpm-sheet-tab {
	border: 1px solid #d9d0d6;
	background: #f6eff4;
	color: #4f2e45;
	padding: 10px 14px;
	border-radius: 14px 14px 8px 8px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.pvpm-sheet-tab.active {
	background: #ffffff;
	border-color: #b792a7;
	box-shadow: 0 6px 18px rgba(114, 45, 91, 0.12);
}

.pvpm-sheet-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin-left: 8px;
	border-radius: 999px;
	background: var(--pvpm-theme);
	color: #fff;
	font-size: 12px;
}

.pvpm-sheet-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.pvpm-sheet-card {
	background: #fff;
	border: 1px solid #ece2e8;
	border-radius: 16px;
	padding: 14px 16px;
}

.pvpm-sheet-card-num {
	font-size: 26px;
	font-weight: 800;
	color: var(--pvpm-theme);
}

.pvpm-sheet-card-label {
	margin-top: 4px;
	color: #6f6670;
	font-size: 13px;
}

.pvpm-sheet-notice {
	background: #eef8f2;
	border: 1px solid #c5e4cf;
	color: #27623f;
	border-radius: 12px;
	padding: 12px 14px;
}

.pvpm-sheet-notice.is-error {
	background: #fff2f2;
	border-color: #f0c8c8;
	color: #983939;
}

.pvpm-sheet-section {
	background: #fff;
	border: 1px solid #ece2e8;
	border-radius: 18px;
	padding: 16px;
}

.pvpm-sheet-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pvpm-sheet-table-wrap {
	overflow-x: auto;
	border: 1px solid #ebe3e7;
	border-radius: 14px;
}

.pvpm-sheet-table {
	width: 100%;
	min-width: 1400px;
	border-collapse: collapse;
	background: #fff;
}

.pvpm-sheet-table-people,
.pvpm-sheet-table-completed {
	min-width: 840px;
}

.pvpm-sheet-table th,
.pvpm-sheet-table td {
	border-bottom: 1px solid #f0e8ec;
	padding: 10px;
	vertical-align: top;
	text-align: left;
}

.pvpm-sheet-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #faf7f9;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #736878;
}

.pvpm-sheet-table tr.is-draft td {
	background: #fffaf1;
}

.pvpm-sheet-table tr.is-dirty td {
	background: #f8fbff;
}

.pvpm-sheet-input,
.pvpm-sheet-select,
.pvpm-sheet-textarea,
.pvpm-sheet-report-input {
	width: 100%;
	border: 1px solid #d7c9d1;
	border-radius: 10px;
	background: #fff;
	padding: 8px 10px;
	font: inherit;
	box-sizing: border-box;
}

.pvpm-sheet-reg {
	min-width: 110px;
	font-family: Consolas, monospace;
	text-transform: uppercase;
}

.pvpm-sheet-textarea {
	min-height: 66px;
	resize: vertical;
}

.pvpm-sheet-actions {
	min-width: 180px;
}

.pvpm-sheet-actions .pvpm-btn-sm {
	margin: 0 6px 6px 0;
}

.pvpm-sheet-completed-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}

.pvpm-sheet-completed-box {
	border: 1px solid #ece3e8;
	border-radius: 14px;
	padding: 14px;
	background: #fcfbfc;
}

.pvpm-calendar-section {
	background: linear-gradient(135deg, #ffffff 0%, #fbf7f0 100%);
}

.pvpm-calendar-help {
	color: #6f6670;
	font-size: 13px;
	margin: -4px 0 14px;
}

.pvpm-calendar-board {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

.pvpm-calendar-day {
	border: 1px solid #e6d8c8;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(80, 50, 20, 0.06);
}

.pvpm-calendar-date {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
	background: #fff4df;
	border-bottom: 1px solid #eadcc8;
}

.pvpm-calendar-date-main {
	font-weight: 800;
	color: #4f2e22;
}

.pvpm-calendar-date-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--pvpm-theme);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.pvpm-calendar-events {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
}

.pvpm-calendar-event {
	border-left: 4px solid var(--pvpm-theme);
	background: #fbfafc;
	border-radius: 10px;
	padding: 9px 10px;
}

.pvpm-calendar-event.is-person {
	border-left-color: var(--pvpm-accent);
	background: #fff7fa;
}

.pvpm-calendar-event.kind-expected-back {
	border-left-color: #237938;
	background: #f2faf5;
}

.pvpm-calendar-event.kind-went-in {
	border-left-color: #d88a1a;
	background: #fff8ec;
}

.pvpm-calendar-event-title {
	font-weight: 800;
	color: #382c36;
	font-size: 13px;
}

.pvpm-calendar-event-detail,
.pvpm-calendar-event-raw {
	margin-top: 3px;
	font-size: 12px;
	color: #6f6670;
	line-height: 1.35;
}

.pvpm-calendar-empty {
	margin: 0;
}

.pvpm-sheet-loading {
	padding: 24px 18px 30px;
}

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

	.pvpm-sheet-title {
		font-size: 24px;
	}

	.pvpm-sheet-header .pvpm-btn-row {
		width: 100%;
	}
}
