.cert394-number{left:2mm;top:7mm;width:32mm;text-align:right;direction:rtl;font-weight:400}
.cert394-body{font-weight:400}.cert394-body strong{font-weight:700}.cert394-sign{font-weight:700}
#letter504-frame{width:100%;height:70vh;border:1px solid #d3dce5;margin-top:15px}
/* Shared teacher panels: paired foreground and background in dark mode. */
@media screen {
html[data-theme="dark"] :is(.hero,.teacher-assignment-row,.assignment-course-card,.teacher-profile-card,.presence-time,.presence-day-tabs button,.week-header,.week-cell,.week-time,.week-corner,.weekly-session-list,.weekly-edit-bar,.agenda-session,.agenda-room-heading,.agenda-room-group,.daily-head,.daily-time,.daily-cell){background-color:#182337!important;background-image:none!important;color:#e7edf7!important;border-color:#41536c!important}
html[data-theme="dark"] :is(.hero,.teacher-assignment-row,.assignment-course-card,.teacher-profile-card,.presence-time,.presence-day-tabs button,.week-header,.week-cell,.week-time,.weekly-session-list,.weekly-edit-bar,.agenda-session,.agenda-room-heading,.daily-head,.daily-cell) :is(h1,h2,h3,p,small,strong,span,label){color:inherit!important}
html[data-theme="dark"] :is(.week-event,.daily-event,.presence-time.selected,.presence-time:has(input:checked),.presence-day-tabs button.active){background:#153e46!important;color:#dcf8f5!important;border-color:#548b97!important}
html[data-theme="dark"] :is(.week-event,.daily-event) :is(strong,span,small){color:inherit!important}
html[data-theme="dark"] :is(.chat-layout,.chat-sidebar,.chat-panel,.chat-thread-heading,.chat-compose,.chat-app-header,.chat-message,.chat-file,.chat-pending-file,.chat-attachment-panel,.chat-group-person,.chat-profile,.chat-profile-menu,.chat-search-panel,.chat-emoji-picker,.chat-edit-banner){background-color:#182337!important;color:#e7edf7!important;border-color:#41536c!important}
html[data-theme="dark"] .chat-history{background-color:#101a2b!important}
html[data-theme="dark"] .chat-contact{color:#e7edf7!important;border-color:#34455e!important}
html[data-theme="dark"] :is(.chat-contact:hover,.chat-contact.selected,.chat-message.mine){background-color:#173e43!important;color:#e5faf5!important;border-color:#447b80!important}
html[data-theme="dark"] :is(.chat-layout,.chat-profile,.chat-profile-menu,.chat-search-panel) :is(small,time,.chat-empty,.chat-message-meta,.chat-message-sender,.chat-compose-meta,.chat-contact-copy strong,.chat-contact-copy small,.chat-contact-copy time){color:#c2d3e8!important}
html[data-theme="dark"] .chat-compose textarea{background:#101a2b!important;color:#edf3ff!important;border-color:#506782!important}
html[data-theme="dark"] .chat-emoji-grid button:hover{background:#294360!important}
}
.pr504-route{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.pr504-route .btn{white-space:normal;padding:20px;font-size:14px;border:2px solid #6e9b91;border-radius:14px}#pr397-next[hidden]{display:none!important}@media(max-width:600px){.pr504-route{grid-template-columns:1fr}}
@media screen {
html[data-theme="dark"] :is(.daily-day-controls,.daily-day-heading,.daily-tabs,.daily-tab,.week-wrap,.daily-chart,.chat-thread-menu,.chat-tabs,.chat-tabs button,.chat-compose .telegram-compose,.chat-text-box){background-color:#182337!important;background-image:none!important;color:#e7edf7!important;border-color:#41536e!important}
html[data-theme="dark"] :is(.daily-day-heading,.daily-tabs,.daily-tab,.stat) :is(h2,small,strong,b,.stat-value,.stat-number){color:#e7edf7!important}
html[data-theme="dark"] :is(.chat-tabs button.active,.daily-tab.active){background-color:#174a50!important;color:#efffff!important;border-color:#66a5ac!important}
html[data-theme="dark"] .chat-compose .telegram-compose #chat-text{background-color:#182337!important;color:#e7edf7!important}
html[data-theme="dark"] .sidebar .nav-item:not(.active){color:#c7d5e7!important}
}
@media screen {
html[data-theme="dark"] :is(.daily-timetable,.daily-grid,.daily-room,.daily-hour-cell,.agenda-time,.agenda-room,.agenda-day,.week-time-label){background-color:#182337!important;color:#e7edf7!important;border-color:#41536e!important}
html[data-theme="dark"] :is(.daily-room,.agenda-time,.agenda-room,.agenda-day) :is(strong,small,span){color:#dce8f8!important}
}

html:has(.pr397),body:has(.pr397){overflow-anchor:none;scroll-behavior:auto}

.cert394-paper .cert394-number{direction:rtl!important;text-align:right!important}
