.otchet-page {
	--ot-text: #000c2d;
	--ot-muted: #687385;
	--ot-border: #dde4ea;
	--ot-teal: #006089;
	--ot-surface: #f9f9f9;
	--ot-radius: 8px;
	padding: 0 0 48px;
	color: var(--ot-text);
	font-size: 14px;
	line-height: 1.45;
}

.otchet-page *,
.otchet-page *::before,
.otchet-page *::after {
	box-sizing: border-box;
}

.otchet-breadcrumb {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--ot-muted);
}

.otchet-breadcrumb a {
	color: var(--ot-teal);
	text-decoration: none;
}

.otchet-breadcrumb a:hover {
	text-decoration: underline;
}

.otchet-page-head {
	margin-bottom: 16px;
}

.otchet-page__title {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.otchet-page__sub {
	margin: 0;
	color: var(--ot-muted);
}

.otchet-muted {
	color: var(--ot-muted);
}

.otchet-card {
	background: #fff;
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius);
	padding: 16px;
	margin-bottom: 12px;
}

.otchet-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}

.otchet-card__title {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 600;
}

.otchet-card__head .otchet-card__title {
	margin-bottom: 0;
}

.otchet-card__hint {
	font-weight: 400;
	font-size: 13px;
}

.otchet-dashboard {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.otchet-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--ot-teal);
	border: 2px solid var(--ot-teal);
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.otchet-btn:hover {
	background: #004d6e;
	border-color: #004d6e;
}

.otchet-btn--ghost {
	color: var(--ot-teal);
	background: #fff;
}

.otchet-btn--ghost:hover {
	background: rgba(0, 96, 137, 0.08);
}

.otchet-btn--danger {
	color: #b42318;
	background: #fff;
	border-color: #fecdca;
}

.otchet-btn--danger:hover {
	background: #fef3f2;
	border-color: #f97066;
}

.otchet-btn--sm {
	padding: 5px 10px;
	font-size: 13px;
}

.otchet-input,
.otchet-textarea {
	width: 100%;
	padding: 9px 11px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ot-text);
	background: #fff;
	border: 1px solid var(--ot-border);
	border-radius: 6px;
}

.otchet-textarea {
	resize: vertical;
	min-height: 88px;
}

.otchet-input:focus,
.otchet-textarea:focus {
	outline: none;
	border-color: var(--ot-teal);
	box-shadow: 0 0 0 2px rgba(0, 96, 137, 0.15);
}

.otchet-field {
	margin-bottom: 12px;
}

.otchet-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

.otchet-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.otchet-field-row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.otchet-student-list,
.otchet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.otchet-student-item,
.otchet-list-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--ot-border);
}

.otchet-student-item:first-child,
.otchet-list-item:first-child {
	border-top: none;
	padding-top: 0;
}

.otchet-student-item__name,
.otchet-list-item__title {
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--ot-text);
	text-decoration: none;
}

.otchet-list-item__title:hover {
	color: var(--ot-teal);
}

.otchet-student-item__sub,
.otchet-list-item__sub,
.otchet-student-item__count {
	margin: 0;
	font-size: 13px;
	color: var(--ot-muted);
}

.otchet-student-item__actions,
.otchet-list-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.otchet-student-item__icon-group {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.otchet-student-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #c5ccd3;
	cursor: pointer;
	border-radius: 4px;
}

.otchet-student-icon:hover {
	color: #8a93a0;
	background: transparent;
}

.otchet-load-more {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.otchet-badge {
	display: inline-block;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	background: #eef2f6;
	color: #475467;
}

.otchet-badge--published {
	background: rgba(18, 183, 106, 0.12);
	color: #027a48;
}

.otchet-badge--draft {
	background: rgba(247, 144, 9, 0.12);
	color: #b54708;
}

.otchet-auth {
	padding: 24px 16px;
}

.otchet-auth__text {
	margin: 0;
	text-align: center;
}

.otchet-auth__text a {
	color: var(--ot-teal);
	font-weight: 600;
}

.otchet-auth__hint {
	margin: 8px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--ot-muted);
}

.otchet-modal[hidden] {
	display: none;
}

.otchet-modal {
	--ot-text: #000c2d;
	--ot-muted: #687385;
	--ot-border: #dde4ea;
	--ot-teal: #006089;
	--ot-surface: #f9f9f9;
	--ot-radius: 8px;
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 12, 45, 0.45);
}

.otchet-modal__box {
	width: 100%;
	max-width: 440px;
	padding: 18px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 12, 45, 0.18);
}

.otchet-modal__title {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
}

.otchet-modal__box .otchet-input {
	margin-top: 8px;
}

.otchet-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.otchet-modal__actions .otchet-btn {
	min-width: 120px;
}

.otchet-error {
	margin: 8px 0 0;
	color: #b42318;
	font-size: 13px;
}

.otchet-edit-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.otchet-back {
	color: var(--ot-teal);
	text-decoration: none;
	font-weight: 600;
}

.otchet-back:hover {
	text-decoration: underline;
}

.otchet-edit-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.otchet-save-status {
	font-size: 13px;
	color: var(--ot-muted);
	min-width: 80px;
	text-align: right;
}

.otchet-save-status--foot:empty {
	display: none;
}

.otchet-save-status.is-ok {
	color: #027a48;
}

.otchet-save-status.is-error {
	color: #b42318;
}

.otchet-student-line {
	margin: 0 0 12px;
}

.otchet-status-picks,
.otchet-hw-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.otchet-status-pick,
.otchet-hw-pick {
	padding: 8px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	border: 1px solid var(--ot-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ot-muted);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.otchet-status-pick:hover,
.otchet-hw-pick:hover {
	border-color: rgba(0, 96, 137, 0.35);
	color: var(--ot-text);
}

.otchet-status-pick--good.is-active {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.otchet-status-pick--work.is-active {
	background: rgba(0, 96, 137, 0.07);
	border-color: rgba(0, 96, 137, 0.22);
	color: #006089;
}

.otchet-status-pick--attention.is-active {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.otchet-hw-pick.is-active[data-value=""] {
	background: var(--ot-surface);
	border-color: var(--ot-border);
	color: var(--ot-text);
}

.otchet-hw-pick--done.is-active {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.otchet-hw-pick--partial.is-active {
	background: rgba(0, 96, 137, 0.07);
	border-color: rgba(0, 96, 137, 0.22);
	color: #006089;
}

.otchet-hw-pick--none.is-active {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.otchet-edit-layout {
	position: relative;
}

.otchet-preview-panel[hidden] {
	display: none;
}

.otchet-preview-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: min(480px, 100vw);
	height: 100vh;
	z-index: 150;
	background: #fff;
	border-left: 1px solid var(--ot-border);
	box-shadow: -8px 0 30px rgba(0, 12, 45, 0.12);
	display: flex;
	flex-direction: column;
}

.otchet-preview-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--ot-border);
}

.otchet-preview-panel__head h2 {
	margin: 0;
	font-size: 16px;
}

.otchet-preview-panel__body {
	flex: 1;
	overflow: auto;
	padding: 12px;
	background: var(--ot-surface);
}

.otchet-edit-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.otchet-edit-notes {
	margin-top: 12px;
}

.otchet-edit-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ot-muted);
}

.otchet-edit-note + .otchet-edit-note {
	margin-top: 6px;
}

@media screen and (max-width: 900px) {
	.otchet-dashboard {
		grid-template-columns: 1fr;
	}

	.otchet-field-row--3 {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 640px) {
	.otchet-student-item,
	.otchet-list-item {
		flex-direction: column;
	}

	.otchet-edit-head {
		flex-direction: column;
		align-items: stretch;
	}

	.otchet-edit-head__actions {
		justify-content: flex-start;
	}
}

/* --- Prep map --- */

/* --- Prep map (editor card) --- */

.otchet-prep-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.otchet-prep-card__meta {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ot-teal);
	background: rgba(0, 96, 137, 0.07);
	border: 1px solid rgba(0, 96, 137, 0.16);
	border-radius: 999px;
}

.otchet-prep-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin: 0;
	background: rgba(0, 96, 137, 0.05);
	border: 1px solid rgba(0, 96, 137, 0.14);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.otchet-prep-switch:hover {
	background: rgba(0, 96, 137, 0.09);
	border-color: rgba(0, 96, 137, 0.22);
}

.otchet-prep-switch__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.otchet-prep-switch__track {
	flex-shrink: 0;
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.2s;
}

.otchet-prep-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s;
}

.otchet-prep-switch__input:checked + .otchet-prep-switch__track {
	background: var(--ot-teal);
}

.otchet-prep-switch__input:checked + .otchet-prep-switch__track .otchet-prep-switch__thumb {
	transform: translateX(18px);
}

.otchet-prep-switch__input:focus-visible + .otchet-prep-switch__track {
	outline: 2px solid rgba(0, 96, 137, 0.35);
	outline-offset: 2px;
}

.otchet-prep-switch__text {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ot-text);
}

.otchet-prep-card__summary {
	padding: 14px;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	transition: opacity 0.15s;
}

.otchet-prep-card.is-prep-off .otchet-prep-card__summary {
	opacity: 0.5;
}

.otchet-prep-card__summary-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ot-muted);
}

.otchet-prep-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.otchet-prep-count {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid var(--ot-border);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.otchet-prep-count--ok {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.otchet-prep-count--weak {
	background: #fef3c7;
	border-color: #fcd34d;
	color: #92400e;
}

.otchet-prep-count--unknown {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.otchet-modal--wide .otchet-modal__box--wide {
	width: min(920px, 96vw);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.otchet-prep-modal__hint {
	margin: 0 0 12px;
	font-size: 13px;
}

.otchet-prep-modal__params {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.otchet-prep-modal__toolbar {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.otchet-prep-modal__toolbar .otchet-input {
	flex: 1;
}

.otchet-prep-modal__body {
	flex: 1;
	overflow: auto;
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 12px;
	max-height: 52vh;
}

.otchet-prep-group {
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	margin-bottom: 8px;
	padding: 0 10px 8px;
}

.otchet-prep-group__title {
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 0 6px;
}

.otchet-prep-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.otchet-prep-row:last-child {
	border-bottom: 0;
}

.otchet-prep-row__label {
	flex: 1 1 220px;
	font-size: 13px;
	line-height: 1.35;
}

.otchet-prep-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.otchet-prep-lvl {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid var(--ot-border);
	background: #fff;
	color: var(--ot-muted);
	cursor: pointer;
}

.otchet-prep-lvl--unknown.is-active {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.otchet-prep-lvl--weak.is-active {
	background: #fef3c7;
	border-color: #fcd34d;
	color: #92400e;
}

.otchet-prep-lvl--ok.is-active {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.otchet-prep-lvl--skip.is-active {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #64748b;
}

@media screen and (max-width: 640px) {
	.otchet-prep-modal__params {
		grid-template-columns: 1fr;
	}

	.otchet-prep-modal__toolbar {
		flex-direction: column;
	}
}
