.pm-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.pm-badge-none {
	background: #f0f0f1;
	color: #50575e;
}

.pm-badge-future {
	background: #e7f3ff;
	color: #0a4b78;
}

.pm-badge-soon {
	background: #fff4d6;
	color: #8a6500;
}

.pm-badge-today {
	background: #fde7c3;
	color: #8a4b00;
}

.pm-badge-overdue {
	background: #fbeaea;
	color: #b32d2e;
}

.pm-badge-done {
	background: #e7f7ed;
	color: #157347;
}

.pm-frontend-board {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.pm-project-card {
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pm-project-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.pm-project-card-header h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
}

.pm-project-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pm-project-description {
	margin-bottom: 14px;
	color: #333;
}

.pm-project-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 14px;
	margin-bottom: 14px;
	font-size: 14px;
}

.pm-project-terms {
	font-size: 14px;
	color: #444;
}

.pm-frontend-alert {
	color: #b32d2e;
	font-weight: 700;
}

.pm-task-kanban-wrap {
	margin: 20px 0;
}

.pm-task-kanban-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pm-task-kanban-filter label {
	font-weight: 600;
	color: #1d2327;
}

.pm-task-kanban-filter select {
	min-width: 240px;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	background: #fff;
}

.pm-task-kanban {
	display: grid;
	grid-template-columns: repeat(4, minmax(240px, 1fr));
	gap: 18px;
	align-items: start;
}

.pm-kanban-column {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 16px;
	padding: 14px;
	min-height: 320px;
}

.pm-kanban-column-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.pm-kanban-column-header h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.pm-kanban-column-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #dcdcde;
	font-weight: 700;
	color: #1d2327;
}

.pm-kanban-column-body {
	display: grid;
	gap: 14px;
}

.pm-kanban-empty {
	padding: 18px 14px;
	background: #ffffff;
	border: 1px dashed #c3c4c7;
	border-radius: 12px;
	color: #646970;
	text-align: center;
}

.pm-kanban-column-open {
	background: #f7fbff;
}

.pm-kanban-column-in_progress {
	background: #fffaf0;
}

.pm-kanban-column-blocked {
	background: #fff7f7;
}

.pm-kanban-column-done {
	background: #f6fcf8;
}

.pm-task-card {
	--pm-project-accent: #2271b1;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	padding: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pm-task-card-topline {
	height: 4px;
	border-radius: 999px;
	background: var(--pm-project-accent);
	margin-bottom: 12px;
}

.pm-task-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.pm-task-card-header h4 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	color: #1d2327;
}

.pm-task-project {
	font-size: 13px;
	font-weight: 600;
	color: #2271b1;
	margin-bottom: 10px;
}

.pm-task-description {
	font-size: 14px;
	line-height: 1.5;
	color: #3c434a;
	margin-bottom: 12px;
}

.pm-task-priority {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.pm-task-priority-low {
	background: #eef7ee;
	color: #157347;
}

.pm-task-priority-medium {
	background: #eef4fb;
	color: #0a4b78;
}

.pm-task-priority-high {
	background: #fff3d6;
	color: #8a6500;
}

.pm-task-priority-critical {
	background: #fbeaea;
	color: #b32d2e;
}

.pm-task-deadline {
	margin-bottom: 12px;
}

.pm-task-meta {
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: #3c434a;
	margin-bottom: 12px;
}

.pm-task-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13px;
	color: #1d2327;
}

.pm-task-progress-bar {
	height: 8px;
	background: #eef0f1;
	border-radius: 999px;
	overflow: hidden;
}

.pm-task-progress-bar span {
	display: block;
	height: 100%;
	background: var(--pm-project-accent);
	border-radius: 999px;
}

@media (max-width: 1200px) {
	.pm-task-kanban {
		grid-template-columns: repeat(2, minmax(240px, 1fr));
	}
}

@media (max-width: 782px) {
	.pm-project-meta {
		grid-template-columns: 1fr;
	}

	.pm-task-kanban-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.pm-task-kanban-filter select {
		min-width: 0;
		width: 100%;
	}

	.pm-task-kanban {
		grid-template-columns: 1fr;
	}
}

.pm-task-kanban-hint {
	margin-bottom: 14px;
	padding: 10px 14px;
	background: #eef4fb;
	border: 1px solid #cfe1f0;
	border-radius: 12px;
	font-size: 14px;
	color: #0a4b78;
}

.pm-kanban-message {
	display: none;
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

.pm-kanban-message.is-visible {
	display: block;
}

.pm-kanban-message.is-success {
	background: #e7f7ed;
	border: 1px solid #cfe9d8;
	color: #157347;
}

.pm-kanban-message.is-error {
	background: #fbeaea;
	border: 1px solid #f0cccc;
	color: #b32d2e;
}

.pm-task-kanban-wrap.is-saving {
	opacity: 0.88;
}

.pm-task-kanban-wrap.is-drag-locked .pm-kanban-column-body {
	transition: opacity 0.15s ease;
}

.pm-task-card.is-draggable {
	cursor: grab;
}

.pm-task-card.is-draggable:active,
.pm-task-card.is-sorting {
	cursor: grabbing;
}

.pm-task-kanban-wrap.is-drag-locked .pm-task-card.is-draggable {
	cursor: wait;
}

.pm-task-card.is-busy {
	cursor: grab;
	opacity: 0.92;
}

.pm-task-card.is-busy:active,
.pm-task-card.is-busy.is-sorting {
	cursor: grabbing;
}

.pm-task-card.is-locked {
	opacity: 0.92;
}

.pm-task-card.ui-sortable-helper {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
	transform: rotate(1deg);
}

.pm-task-card-placeholder {
	min-height: 120px;
	border: 2px dashed #8bb6da;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.65);
	visibility: visible !important;
}

.pm-kanban-column.is-drop-hover {
	border-color: #8bb6da;
	box-shadow: inset 0 0 0 2px rgba(34, 113, 177, 0.08);
}

.pm-task-card-actions {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.pm-task-detail-button {
	appearance: none;
	border: 1px solid #c3c4c7;
	background: #ffffff;
	color: #1d2327;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pm-task-detail-button:hover,
.pm-task-detail-button:focus {
	background: #eef4fb;
	border-color: #8bb6da;
	color: #0a4b78;
	outline: none;
}

.pm-task-modal-open {
	overflow: hidden;
}

.pm-task-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.pm-task-modal.is-open {
	display: block;
}

.pm-task-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.pm-task-modal-dialog {
	position: relative;
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 40px);
	overflow: auto;
	margin: 20px auto;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
	padding: 24px;
}

.pm-task-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	appearance: none;
	border: 0;
	background: #f0f0f1;
	color: #1d2327;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pm-task-modal-close:hover,
.pm-task-modal-close:focus {
	background: #e2e8f0;
	outline: none;
}

.pm-task-modal-header {
	padding-right: 44px;
	margin-bottom: 18px;
}

.pm-task-modal-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.pm-task-modal-title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	color: #111827;
}

.pm-task-modal-project {
	font-size: 15px;
	font-weight: 700;
	color: #2271b1;
	margin-bottom: 10px;
}

.pm-task-modal-deadline {
	margin-bottom: 6px;
}

.pm-task-modal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.pm-task-modal-grid div {
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.pm-task-modal-grid strong,
.pm-task-modal-section strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
}

.pm-task-modal-grid span,
.pm-task-modal-description {
	color: #111827;
	font-size: 15px;
	line-height: 1.55;
}

.pm-task-modal-progress {
	margin-bottom: 20px;
}

.pm-task-modal-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 14px;
	color: #111827;
}

.pm-task-modal-section {
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
}

.pm-task-modal-description em {
	color: #646970;
}

@media (max-width: 782px) {
	.pm-task-modal-dialog {
		padding: 18px;
	}

	.pm-task-modal-title {
		font-size: 22px;
	}

	.pm-task-modal-grid {
		grid-template-columns: 1fr;
	}
}

.pm-task-modal-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.pm-task-modal-edit-toggle,
.pm-task-modal-save-button,
.pm-task-modal-cancel-button {
	appearance: none;
	border-radius: 10px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.pm-task-modal-edit-toggle,
.pm-task-modal-cancel-button {
	border: 1px solid #c3c4c7;
	background: #ffffff;
	color: #1d2327;
}

.pm-task-modal-save-button {
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #ffffff;
}

.pm-task-modal-edit-toggle:hover,
.pm-task-modal-edit-toggle:focus,
.pm-task-modal-cancel-button:hover,
.pm-task-modal-cancel-button:focus {
	background: #eef4fb;
	border-color: #8bb6da;
	color: #0a4b78;
	outline: none;
}

.pm-task-modal-save-button:hover,
.pm-task-modal-save-button:focus {
	background: #135e96;
	border-color: #135e96;
	outline: none;
}

.pm-task-modal-edit-note {
	margin-bottom: 12px;
	color: #475569;
	font-size: 14px;
	line-height: 1.45;
}

.pm-task-modal-edit-message {
	display: none;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
}

.pm-task-modal-edit-message.is-visible {
	display: block;
}

.pm-task-modal-edit-message.is-success {
	background: #e7f7ed;
	border: 1px solid #cfe9d8;
	color: #157347;
}

.pm-task-modal-edit-message.is-error {
	background: #fbeaea;
	border: 1px solid #f0cccc;
	color: #b32d2e;
}

.pm-task-modal-edit-form.is-saving {
	opacity: 0.72;
	pointer-events: none;
}

.pm-task-modal-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.pm-task-modal-form-grid label {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.pm-task-modal-form-grid label span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
}

.pm-task-modal-form-grid input,
.pm-task-modal-form-grid select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	font-size: 14px;
	color: #111827;
	box-sizing: border-box;
}

.pm-task-modal-form-grid input:focus,
.pm-task-modal-form-grid select:focus {
	outline: none;
	border-color: #8bb6da;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.pm-task-modal-edit-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

@media (max-width: 782px) {
	.pm-task-modal-section-head,
	.pm-task-modal-edit-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.pm-task-modal-form-grid {
		grid-template-columns: 1fr;
	}
}


.pm-task-modal-form-field-full {
	display: block;
	margin-top: 14px;
}

.pm-task-modal-form-field-full span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #475569;
}

.pm-task-modal-form-field-full textarea {
	width: 100%;
	min-height: 120px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	resize: vertical;
	font: inherit;
	line-height: 1.45;
	box-sizing: border-box;
}


.pm-pin-gate-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 24px 0;
}

.pm-pin-gate-card {
	width: min(100%, 440px);
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.pm-pin-gate-icon {
	font-size: 36px;
	line-height: 1;
	margin-bottom: 12px;
}

.pm-pin-gate-card h2 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.2;
}

.pm-pin-gate-card p {
	margin: 0 0 18px;
	color: #3c434a;
}

.pm-pin-gate-message {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

.pm-pin-gate-message.is-error {
	background: #fbeaea;
	color: #b32d2e;
	border: 1px solid #f0c0c0;
}

.pm-pin-gate-form {
	display: grid;
	gap: 12px;
	text-align: left;
}

.pm-pin-gate-form label {
	font-weight: 700;
	color: #1d2327;
}

.pm-pin-gate-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 12px;
	background: #fff;
	color: #000000 !important;
	caret-color: #000000;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-align: center;
}

.pm-pin-gate-form input[type="password"]::placeholder {
	color: #444444;
}

.pm-pin-gate-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: #2271b1;
	color: #ffdf00 !important;
	font-weight: 700;
	cursor: pointer;
}

.pm-pin-gate-button:hover,
.pm-pin-gate-button:focus {
	background: #135e96;
	color: #ffdf00 !important;
}
