.tc-form { display: grid; gap: 18px; }
.tc-form .field { margin: 0; }
.tc-form textarea { width: 100%; min-height: 120px; resize: vertical; line-height: 1.55; }
.tc-form input:not([type="checkbox"]), .tc-form textarea { box-sizing: border-box; }
.tc-form .button { justify-self: start; }
.tc-form .form-message:empty { display: none; }
.tc-consent { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.tc-consent input { margin-top: 6px; flex-shrink: 0; }
.tc-action-form { margin-top: 22px; }
.tc-prose { overflow-wrap: anywhere; line-height: 1.75; }
.tc-work h4 { margin: 24px 0 8px; }
.tc-rubric dt { margin-top: 16px; font-weight: 700; }
.tc-rubric dd { margin: 4px 0 0; }
.tc-feedback { margin-top: 24px; padding: 20px; border-radius: 16px; background: #f5f7fb; }
@media print { .tc-controls, .tc-form, .tc-action-form { display: none; } .tc-work { break-inside: avoid; } }
.seo-guide .tc-intro {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 31vw, 444px);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    margin-block: clamp(24px, 3vw, 42px) clamp(36px, 4.5vw, 64px);
}
.tc-intro__copy .eyebrow { margin: 0 0 14px; text-wrap: pretty; }
.tc-intro__copy h1 { margin: 0; font-size: clamp(2.1rem, 4.15vw, 3.65rem); }
.tc-intro__copy .seo-lead { max-width: 64ch; margin: 16px 0 0; text-wrap: pretty; }
.tc-intro__copy .contest-actions { margin-top: 24px; }
.tc-intro__note, .tc-diploma-samples__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    color: #3c635a;
    font-size: .875rem;
}
.tc-intro__note .icon, .tc-diploma-samples__hint .icon { flex: none; color: #176b5b; }
.tc-diploma-samples {
    min-width: 0;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid #cce2d9;
    border-radius: 24px;
    background: linear-gradient(150deg, #fff, #edf7f2);
    box-shadow: 0 14px 36px -24px #194a3f50;
}
.tc-diploma-samples h2 { margin: 0 0 16px; color: #214d43; font-size: 1.2rem; }
.tc-diploma-samples .tc-diploma-gallery { gap: clamp(6px, 1vw, 12px); }
.tc-diploma-samples .tc-diploma-option { border-color: #d0e0d8; border-radius: 12px; }
.tc-diploma-samples .tc-diploma-option .teacher-diploma-sample {
    padding: clamp(4px, .75vw, 8px);
    border-radius: 11px;
}
.tc-diploma-samples .tc-diploma-option img { width: 100%; border-radius: 5px; }
.tc-diploma-samples__hint { margin-top: 12px; font-size: .8125rem; }

.tc-catalog :is(.tc-list, .tc-directions) { margin-bottom: clamp(20px, 2.3vw, 32px); }
.tc-list > h2 { margin: 0 0 16px; }
.tc-catalog :is(.tc-list, .tc-directions) .contest-panel { margin: 0; }
.tc-catalog__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e7f3ed;
    color: #176b5b;
}
.tc-catalog-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}
.tc-catalog-empty h3 { margin: 0 0 4px; font-size: 1.125rem; }
.tc-catalog-empty p, .tc-directions p { margin: 0; color: #425950; text-wrap: pretty; }
.tc-catalog-empty .text-link { justify-self: start; white-space: nowrap; }
.tc-directions h2 { margin: 14px 0 10px; font-size: clamp(1.25rem, 2vw, 1.625rem); }

.tc-diploma-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 480px; }
.tc-diploma-option { display: flex; flex-direction: column; min-width: 0; border: 1px solid #b8d9d1; border-radius: 14px; background: #fff; }
.tc-diploma-option .teacher-diploma-sample { flex: 1; width: 100%; border: 0; padding: 10px 6px; background: transparent; font-size: .83rem; overflow-wrap: anywhere; }
.tc-diploma-option .teacher-diploma-sample:hover { background: #f0f7f1; }
.tc-diploma-option img { width: min(100%, 108px); height: auto; }
.tc-diploma-picker { min-width: 0; padding: 0; margin: 0; border: 0; }
.tc-diploma-picker legend { padding: 0; font-weight: 700; }
.tc-diploma-picker p { margin: 4px 0 12px; }
.tc-diploma-option:has(input:checked) { border-color: #23705a; background: #eef5ed; }
.tc-diploma-option__choice { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 8px 4px; border-top: 1px solid #b8d9d1; font-size: .8rem; cursor: pointer; }
.tc-diploma-option__choice input { accent-color: #23705a; }
.tc-receipt { padding: 12px 16px; border-radius: 12px; background: #e2f5e9; color: #185343; }
.seo-guide :is(#my-work, #manage, #entries, #results, .tc-work) { scroll-margin-top: 100px; }
@media (max-width: 880px) {
    .seo-guide .tc-intro { grid-template-columns: 1fr; }
    .tc-diploma-samples { width: min(100%, 444px); }
}
@media (max-width: 760px) {
    .tc-catalog-empty { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .tc-catalog-empty .text-link { grid-column: 2; }
    .tc-directions { gap: 16px; }
}
@media (max-width: 440px) {
    .tc-intro__copy .contest-actions { display: grid; justify-items: stretch; gap: 8px; }
    .tc-catalog-empty { gap: 12px; }
    .tc-catalog-empty .tc-catalog__mark { width: 36px; height: 36px; }
}
