.dz-page {
	--dz-teal: #006089;
	--dz-border: #dde4ea;
	--dz-muted: #5a6474;
	--dz-surface: #f9f9f9;
	max-width: 100%;
	margin: 0;
	padding: 24px 0 48px;
	font-size: 14px;
	line-height: 1.45;
	color: #000;
	box-sizing: border-box;
}

.dz-page *,
.dz-page *::before,
.dz-page *::after {
	box-sizing: inherit;
}

.dz-page__title {
	margin: 0 0 6px;
	font-size: 1.75rem;
	line-height: 1.2;
}

.dz-page__sub {
	margin: 0 0 20px;
	color: var(--dz-muted);
	font-size: 0.95rem;
}

.dz-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin-bottom: 16px;
}

.dz-card__title {
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.dz-muted {
	color: var(--dz-muted);
	margin: 0;
}

.dz-hint {
	color: var(--dz-muted);
	font-size: 0.88rem;
	margin: 0 0 12px;
}

.dz-back {
	display: inline-block;
	margin-top: 8px;
	color: var(--dz-teal);
	text-decoration: none;
	font-weight: 600;
}

.dz-back:hover {
	text-decoration: underline;
}

.dz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #ffeded;
	background: var(--dz-teal);
	border: 2px solid var(--dz-teal);
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s;
}

.dz-btn:hover {
	background: #004d6d;
	border-color: #004d6d;
	color: #fff;
}

.dz-btn--ghost {
	color: var(--dz-teal);
	background: #fff;
}

.dz-btn--ghost:hover {
	background: rgba(0, 96, 137, 0.08);
	color: var(--dz-teal);
}

.dz-btn--danger {
	color: #b42318;
	background: #fff;
	border-color: #fecdca;
}

.dz-btn--danger:hover {
	background: #fef3f2;
	border-color: #fecdca;
	color: #912018;
}

.dz-field {
	margin-bottom: 14px;
}

.dz-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.dz-field--inline .dz-input {
	width: 100%;
}

.dz-input,
.dz-textarea {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--dz-border);
	border-radius: 6px;
	background: #fff;
}

.dz-input:focus,
.dz-textarea:focus {
	outline: none;
	border-color: var(--dz-teal);
	box-shadow: 0 0 0 2px rgba(0, 96, 137, 0.15);
}

.dz-textarea {
	resize: vertical;
	min-height: 80px;
}

.dz-textarea--work {
	font-family: inherit;
	line-height: 1.55;
}

.dz-error {
	color: #b42318;
	margin: 8px 0 0;
}

.dz-auth__text {
	margin: 0;
	text-align: center;
}

.dz-auth__text a {
	color: var(--dz-teal);
	font-weight: 600;
}

.dz-auth__hint {
	margin: 8px 0 0;
	text-align: center;
	font-size: 14px;
	color: #64748b;
}

.dz-btn--copied {
	background: #15803d;
	border-color: #15803d;
	color: #fff;
}

.dz-btn--copy-fail {
	background: #b42318;
	border-color: #b42318;
	color: #fff;
}

.dz-hub-new {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.dz-btn--hub-new {
	flex: 1 1 220px;
	padding: 12px 16px;
	box-sizing: border-box;
	text-align: center;
	justify-content: center;
}

.dz-hub-demo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.dz-hub-demo__col {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dz-border);
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dz-hub-demo__title {
	margin: 0 0 8px;
	font-size: 1.12rem;
	line-height: 1.3;
}

.dz-hub-demo__lead {
	margin: 0 0 14px;
	color: var(--dz-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.dz-hub-demo__preview {
	flex: 1 1 auto;
	background: var(--dz-surface);
	border: 1px solid var(--dz-border);
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 14px;
}

.dz-hub-demo__text {
	font-size: 0.92rem;
	line-height: 1.6;
}

.dz-hub-demo__text p {
	margin: 0;
}

.dz-hub-demo__mark {
	display: inline;
	border-radius: 2px;
	padding: 0 2px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.dz-hub-demo__mark-num {
	display: inline-flex;
	vertical-align: middle;
	width: 14px;
	height: 14px;
	margin: 0 3px 0 0;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.dz-hub-demo__mark--yellow {
	background: rgba(250, 204, 21, 0.45);
}

.dz-hub-demo__mark--yellow .dz-hub-demo__mark-num {
	background: #ca8a04;
}

.dz-hub-demo__mark--red {
	background: rgba(248, 113, 113, 0.42);
}

.dz-hub-demo__mark--red .dz-hub-demo__mark-num {
	background: #dc2626;
}

.dz-hub-demo__mark--green {
	background: rgba(74, 222, 128, 0.42);
}

.dz-hub-demo__mark--green .dz-hub-demo__mark-num {
	background: #16a34a;
}

.dz-hub-demo__ann {
	list-style: none;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--dz-border);
	display: grid;
	gap: 8px;
}

.dz-hub-demo__ann li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.86rem;
	line-height: 1.4;
}

.dz-hub-demo__ann-num {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}

.dz-hub-demo__ann-num--yellow {
	background: #ca8a04;
}

.dz-hub-demo__ann-num--red {
	background: #dc2626;
}

.dz-hub-demo__ann-num--green {
	background: #16a34a;
}

.dz-hub-demo__photo-stage {
	position: relative;
	max-width: 220px;
	margin: 0 auto;
}

.dz-hub-demo__photo-sheet {
	background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
	border: 1px solid #d8e0e6;
	border-radius: 6px;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dz-hub-demo__photo-text {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	color: #334155;
}

.dz-hub-demo__photo-text--muted {
	color: #94a3b8;
}

.dz-hub-demo__photo-rect-wrap {
	position: relative;
	display: inline-block;
	border: 2px solid #ca8a04;
	border-radius: 3px;
	background: rgba(234, 179, 8, 0.14);
	padding: 0 1px;
	vertical-align: baseline;
}

.dz-hub-demo__photo-rect-wrap--line {
	display: block;
	padding: 3px 5px;
}

.dz-hub-demo__photo-rect-num {
	position: absolute;
	top: -11px;
	left: -11px;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #ca8a04;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.dz-hub-demo__photo-rect-word {
	position: relative;
	z-index: 1;
}

.dz-hub-demo__photo-pin-inline {
	position: relative;
	display: inline-block;
	width: 0;
	height: 1em;
	vertical-align: baseline;
}

.dz-hub-demo__photo-pin-inline--after .dz-hub-demo__photo-pin-inline__num {
	left: 2px;
	transform: translate(0, -50%);
}

.dz-hub-demo__photo-pin-inline__num {
	position: absolute;
	left: 0;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translate(-35%, -65%);
	border: 2px solid #fff;
	border-radius: 50%;
	background: #dc2626;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.dz-hub-demo__photo-pin-inline--red .dz-hub-demo__photo-pin-inline__num {
	background: #dc2626;
}

.dz-hub-demo__btn {
	width: 100%;
	justify-content: center;
	padding: 10px 16px;
}

@media (max-width: 760px) {
	.dz-hub-demo {
		grid-template-columns: 1fr;
	}
}

.dz-type-pick {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.dz-type-pick__item {
	flex: 1;
	cursor: pointer;
}

.dz-type-pick__item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dz-type-pick__item span {
	display: block;
	padding: 14px;
	text-align: center;
	font-weight: 600;
	border: 2px solid var(--dz-border);
	border-radius: 10px;
	background: var(--dz-surface);
	transition: border-color 0.15s, color 0.15s;
}

.dz-type-pick__item input:checked + span,
.dz-type-pick__item span:hover {
	border-color: var(--dz-teal);
	color: var(--dz-teal);
}

.dz-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dz-list-item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--dz-border);
}

.dz-list-item:last-child {
	border-bottom: none;
}

.dz-list-item__title {
	font-weight: 700;
	font-size: 1rem;
	color: #000;
	text-decoration: none;
}

.dz-list-item__title:hover {
	color: var(--dz-teal);
}

.dz-list-item__meta {
	margin: 4px 0 0;
	color: var(--dz-muted);
	font-size: 0.85rem;
}

.dz-list-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dz-grade-block {
	background: #fff;
	border: 1px solid var(--dz-border);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.dz-grade-block__score {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--dz-teal);
	margin-bottom: 6px;
}

.dz-grade-block__summary {
	color: #222;
	line-height: 1.5;
}

.dz-grade-form .dz-grade-fields {
	margin-bottom: 14px;
}

.dz-grade-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dz-grade-row .dz-input {
	width: auto;
	min-width: 72px;
	max-width: 120px;
}

.dz-template-panel {
	margin-bottom: 16px;
	padding-top: 4px;
	border-top: 1px solid var(--dz-border);
}

.dz-template-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.dz-template-panel__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dz-template-panel__sub {
	color: var(--dz-muted);
	font-size: 0.88rem;
}

.dz-template-panel__total {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dz-teal);
	white-space: nowrap;
}

.dz-template-panel__section {
	margin: 16px 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
}

.dz-template-item {
	padding: 12px 0;
	border-top: 1px solid #edf1f4;
}

.dz-template-item:first-of-type {
	border-top: 0;
}

.dz-template-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.dz-template-item__code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f4f8;
	color: var(--dz-teal);
	font-size: 0.82rem;
	font-weight: 700;
}

.dz-template-item__title {
	flex: 1 1 220px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.dz-template-item__max {
	color: var(--dz-muted);
	font-size: 0.82rem;
	white-space: nowrap;
}

.dz-template-item__scores {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.dz-template-score {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--dz-border);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dz-template-score:hover {
	border-color: #9ec6d8;
	background: #f8fcfe;
}

.dz-template-score.is-active {
	border-color: var(--dz-teal);
	background: #e8f4f8;
	box-shadow: inset 0 0 0 1px rgba(0, 96, 137, 0.12);
}

.dz-template-score__num {
	font-size: 1rem;
	font-weight: 700;
	color: var(--dz-teal);
}

.dz-template-score__label {
	font-size: 0.78rem;
	line-height: 1.35;
	color: #475569;
}

.dz-template-item__comment {
	margin: 0;
}

.dz-template-view {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--dz-border);
}

.dz-template-view__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
}

.dz-template-view__section {
	margin: 14px 0 8px;
	font-size: 0.92rem;
	font-weight: 700;
	color: #334155;
}

.dz-template-view__item {
	padding: 10px 0;
	border-top: 1px solid #edf1f4;
}

.dz-template-view__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.dz-template-view__code {
	font-weight: 700;
	color: var(--dz-teal);
}

.dz-template-view__name {
	flex: 1 1 220px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.dz-template-view__score {
	font-weight: 700;
	white-space: nowrap;
}

.dz-template-view__comment {
	margin: 0;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.45;
}

.dz-template-view__score--pass {
	color: #15803d;
}

.dz-template-view__score--fail {
	color: #b42318;
}

.dz-view-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.dz-view-head__main .dz-page__sub {
	margin-bottom: 0;
}

@media (max-width: 760px) {
	#dz-print-btn {
		display: none;
	}
}

.dz-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 12, 45, 0.45);
	--dz-teal: #006089;
	--dz-border: #dde4ea;
	--dz-muted: #5a6474;
	--dz-surface: #f9f9f9;
}

.dz-modal[hidden] {
	display: none;
}

.dz-modal__box {
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dz-modal__title {
	margin: 0 0 4px;
	font-size: 1.15rem;
}

.dz-modal__sub {
	margin: 0 0 18px;
	font-size: 0.88rem;
	line-height: 1.4;
}

.dz-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.dz-upload-zone {
	margin-bottom: 0;
}

.dz-photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hidden {
	display: none !important;
}
