.ii-27 {
	max-width: 100%;
	margin: 0;
	padding: 24px 0 48px;
}

.ii-27__title {
	margin: 0 0 6px;
	font-size: 1.75rem;
}

.ii-27__sub {
	color: #5a6474;
	margin-bottom: 16px;
	font-size: .95rem;
}

.ii-27-payment {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
}

.ii-27-payment--guest {
	cursor: pointer;
	transition: box-shadow 0.15s;
}

.ii-27-payment--guest:hover {
	box-shadow: 0 2px 16px rgba(0, 96, 137, 0.1);
}

.ii-27-payment--guest:focus-visible {
	outline: 2px solid rgba(0, 96, 137, 0.35);
	outline-offset: 2px;
}

.ii-27-payment__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.ii-27-payment__main {
	flex: 1;
	min-width: 0;
}

.ii-27-payment__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
}

.ii-27-payment__lead {
	margin: 3px 0 0;
	color: #5a6474;
	font-size: .85rem;
	line-height: 1.35;
}

.ii-27-payment__lead strong {
	color: #006089;
}

.ii-27-payment__balance {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(0, 96, 137, 0.06);
	border: 1px solid rgba(0, 96, 137, 0.16);
	text-align: center;
	white-space: nowrap;
}

.ii-27-payment__balance-label {
	font-size: .68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #6b7280;
	line-height: 1.2;
}

.ii-27-payment__balance-value {
	color: #006089;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
}

.ii-27-payment__balance-checks {
	color: #6b7280;
	font-size: .75rem;
	line-height: 1.2;
}

.ii-27-payment__notice {
	margin: 0;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: .85rem;
	line-height: 1.35;
}

.ii-27-payment__notice--ok {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.ii-27-payment__notice--fail {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.ii-27-payment__form {
	margin: 0;
}

.ii-27-payment__controls {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 6px;
}

.ii-27-payment__hint,
.ii-27-payment__note {
	margin: 0;
	color: #6b7280;
	font-size: .85rem;
	line-height: 1.4;
}

.ii-27__back {
	display: inline-block;
	margin-top: 20px;
	font-size: .9rem;
	color: #687385;
	text-decoration: none;
}

.ii-27__back:hover {
	color: #000c2d;
	text-decoration: underline;
}

.ii-27-access {
	padding: 24px;
	text-align: center;
}

.ii-27-access__text {
	margin: 0 0 16px;
	color: #5a6474;
	font-size: .95rem;
	line-height: 1.5;
}

.ii-27-access__btn {
	display: inline-block;
	padding: 4px 14px;
	font-size: 13px;
	line-height: 1.35;
	color: #006089;
	background: #f9fafa;
	border: 2px solid #006089;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ii-27-access__btn:hover {
	background: #006089;
	color: #ffeded;
	border-color: #006089;
	text-decoration: none;
}

.ii-27-auth {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 96, 137, 0.18);
	border-radius: 8px;
	background: rgba(0, 96, 137, 0.05);
}

.ii-27-auth__text {
	margin: 0;
	color: #5a6474;
	font-size: .9rem;
	line-height: 1.5;
}

.ii-27-auth__text a {
	color: #006089;
	font-weight: 600;
	text-decoration: none;
}

.ii-27-auth__text a:hover {
	color: #004a6b;
	text-decoration: none;
}

.ii-27-form--locked textarea:disabled {
	background: #f3f4f6;
	color: #9ca3af;
	cursor: not-allowed;
}

.ii-27-form--locked #ii27-submit {
	opacity: .55;
	cursor: not-allowed;
}

.ii-27-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
	margin-bottom: 20px;
}

.ii-27-card.ii-27-payment {
	padding: 12px 14px;
}

.ii-27 label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ii-27 .hint {
	font-weight: 400;
	color: #6b7280;
	font-size: .85rem;
	margin-bottom: 8px;
}

.ii-27 textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	font: inherit;
	resize: vertical;
	line-height: 1.5;
	box-sizing: border-box;
}

.ii-27 #source_text {
	min-height: 180px;
}

.ii-27 #problem {
	min-height: 56px;
}

.ii-27 #essay {
	min-height: 220px;
}

.ii-27 .field {
	margin-bottom: 18px;
}

.ii-27 .field:last-of-type {
	margin-bottom: 0;
}

.ii-27 button[type="submit"] {
	display: inline-block;
	padding: 4px 14px;
	margin-top: 16px;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
	color: #006089;
	background: #f9fafa;
	border: 2px solid #006089;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ii-27 button[type="submit"]:hover:not(:disabled) {
	background: #006089;
	color: #ffeded;
	border-color: #006089;
}

.ii-27 button[type="submit"]:disabled {
	opacity: .6;
	cursor: wait;
}

.ii-27 .ii-27-payment__controls input.ii-27-payment__amount-input,
.ii-27 .ii-27-payment__controls button.ii-27-payment__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	height: 34px;
	min-height: 34px;
	max-height: 34px;
	margin: 0;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid;
	border-radius: 4px;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	vertical-align: top;
}

.ii-27 .ii-27-payment__controls input.ii-27-payment__amount-input {
	width: 88px;
	border-color: #d0d7de;
	background: #fff;
	-moz-appearance: textfield;
	appearance: textfield;
}

.ii-27 .ii-27-payment__controls input.ii-27-payment__amount-input::-webkit-outer-spin-button,
.ii-27 .ii-27-payment__controls input.ii-27-payment__amount-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ii-27 .ii-27-payment__controls button.ii-27-payment__submit {
	cursor: pointer;
	color: #006089;
	background: #f9fafa;
	border-color: #006089;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ii-27 .ii-27-payment__controls button.ii-27-payment__submit:hover {
	background: #006089;
	color: #ffeded;
	border-color: #006089;
}

.ii-27 .error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 12px;
	margin-top: 12px;
	display: none;
}

.ii-27 .hidden,
.ii-27-card.hidden,
.ii-27-history .hidden {
	display: none !important;
}

.ii-27 .score-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.ii-27 .score-big {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1d4ed8;
}

.ii-27 .score-big span {
	font-size: 1.25rem;
	color: #6b7280;
	font-weight: 500;
}

.ii-27 .badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
}

.ii-27 .badge-warn {
	background: #fef3c7;
	color: #92400e;
}

.ii-27 .badge-ok {
	background: #d1fae5;
	color: #065f46;
}

.ii-27 .disclaimer {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: .85rem;
	color: #64748b;
	margin-bottom: 16px;
}

.ii-27 table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
}

.ii-27 th:nth-child(2),
.ii-27 td:nth-child(2) {
	width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.ii-27 th,
.ii-27 td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
}

.ii-27 th {
	background: #f8fafc;
	font-weight: 600;
}

.ii-27 .pts {
	font-weight: 700;
	white-space: nowrap;
	color: #1d4ed8;
}

.ii-27 .pts-zero {
	color: #dc2626;
}

.ii-27 .pts-full {
	color: #059669;
}

.ii-27 .section-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 20px 0 10px;
	color: #374151;
}

.ii-27 .recs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ii-27 .recs li {
	margin-bottom: 6px;
	padding-left: 0;
}

.ii-27 .recs li::before {
	content: "→ ";
}

.ii-27 .errors-list {
	margin: 4px 0 0;
	padding-left: 18px;
	font-size: .85rem;
	color: #6b7280;
}

.ii-27 .errors-list li {
	margin-bottom: 2px;
}

.ii-27-history__title {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.ii-27-history__note {
	margin: 0;
	color: #6b7280;
	font-size: .9rem;
	line-height: 1.5;
}

.ii-27-history__note code {
	font-size: .85em;
}

.ii-27-history__empty {
	margin: 0;
	color: #6b7280;
	font-size: .9rem;
}

.ii-27-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ii-27-history-item + .ii-27-history-item {
	margin-top: 8px;
}

.ii-27-history-item__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ii-27-history-item__btn:hover {
	border-color: rgba(0, 96, 137, 0.35);
	background: rgba(0, 96, 137, 0.03);
}

.ii-27-history-item.is-active .ii-27-history-item__btn {
	border-color: #006089;
	background: rgba(0, 96, 137, 0.06);
}

.ii-27-history-item__main {
	min-width: 0;
}

.ii-27-history-item__topic {
	display: block;
	font-weight: 600;
	color: #111827;
	margin-bottom: 4px;
}

.ii-27-history-item__meta {
	display: block;
	font-size: .82rem;
	color: #6b7280;
}

.ii-27-history-item__score {
	flex-shrink: 0;
	font-weight: 700;
	color: #1d4ed8;
	white-space: nowrap;
}

.ii-27-history-item__score.is-zero {
	color: #dc2626;
}

.ii-27-history-item--collapsed {
	display: none;
}

.ii-27-history__show-all {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 10px 14px;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: .9rem;
	color: #006089;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ii-27-history__show-all:hover {
	border-color: rgba(0, 96, 137, 0.35);
	background: rgba(0, 96, 137, 0.03);
}
