/* Patiyiz 29 Oct — accessible contrast in both display modes.
   User photos/videos and full-screen Reel media are deliberately not recolored. */
html[data-pati-theme="light"]{color-scheme:light}
html[data-pati-theme="dark"]{color-scheme:dark}
html[data-pati-theme="dark"] #main-content :is(
 .pati-edu-path-home,.pati-edu-path-list,.edu-v2-detail,.pati-ref-academy-home,
 .pati-ref-academy-list,.pati-settings-list,.pati-pets-page,.pati-own-pets,
 .pati-saved-posts,.pati-pet-hub,.pati-community-head,.pati-notifications-simple,
 .pati-question-list,.pati-knowledge-home,.pati-explore-media-screen
){
 background-color:transparent!important;color:#f3f3f6!important;
}
html[data-pati-theme="dark"] #main-content :is(
 .pati-edu-path-topic-head,.pati-edu-path-progress,.pati-academy-total-progress,
 .pati-edu-path-complete,.pati-ref-academy-section,.pati-edu-quiz,
 .pati-edu-lesson-body,.pati-edu-step,.pati-settings-list section,
 .pati-pet-hub .p4-hub-status,.pati-mobile-menu-list,.pati-feature-group,
 .pati-community-card,.pati-saved-heading,.pati-own-pets-list article,
 .pati-notifications-simple-head,.pati-theme-card,.pati-dm-top,
 .pati-ig-summary,.pati-ig-highlights,.pati-ig-tabs
){
 background-color:#202126!important;color:#f4f4f6!important;
 border-color:#44464f!important;
}
html[data-pati-theme="dark"] #main-content .pati-edu-path-topic-icon{
 background-color:#32313a!important;
}
html[data-pati-theme="dark"] #main-content :is(
 .pati-ref-academy-header h1,.pati-ref-academy-section h2,
 .pati-edu-path-topic-head h1,.pati-edu-path-progress strong,
 .pati-academy-total-progress strong,.edu-v2-results-head h2,
 .pati-edu-lesson-head h1,.pati-edu-quiz strong,
 .pati-saved-heading h1,.pati-settings-list h3,
 .pati-community-card h3,.pati-ig-profile .pati-ig-stats b
){color:#f7f7f9!important}
html[data-pati-theme="dark"] #main-content :is(
 .pati-ref-academy-header p,.pati-edu-path-topic-head p,
 .pati-edu-path-topic-head>div:last-child>span,
 .pati-edu-path-progress small,.pati-academy-total-progress small,
 .edu-v2-sync,.pati-edu-notice,.pati-saved-heading p,
 .pati-ref-academy-section>span,.pati-edu-step p,.pati-edu-quiz p,
 .pati-settings-list p,.pati-community-card p,.pati-pet-hub small,
 .pati-ig-stats small,.pati-ig-bio,.pati-profile-handle
){color:#c3c5ce!important}
html[data-pati-theme="dark"] #main-content .pati-ref-academy-topic{
 background:#292a31!important;border:1px solid #494b53!important;
 color:#f5f5f7!important;box-shadow:none!important;
}
html[data-pati-theme="dark"] #main-content .pati-ref-academy-topic :is(strong,small,.pati-topic-open){
 color:#f5f5f7!important;
}
html[data-pati-theme="dark"] #main-content .pati-ref-academy-topic small{color:#c4c6cf!important}
html[data-pati-theme="dark"] #main-content .pati-edu-path-list .pati-ref-topic-toolbar button,
html[data-pati-theme="dark"] #main-content :is(.pati-page-back,.pati-edu-back){
 background:#292a31!important;border-color:#4a4c55!important;color:#f4f4f6!important;
}
html[data-pati-theme="dark"] #main-content :is(
 .pati-feed-card,.pati-story-card,.pati-ig-profile,.pati-card,
 .pati-pets-tile,.pati-community-card,.pati-dm-list-row,
 .pati-modal-surface,.pati-feature-group
){border-color:#3b3d45!important}
html[data-pati-theme="dark"] #main-content :is(
 .pati-home-feed-tabs,.pati-feed-posts,.pati-post-head,.pati-ig-actions,
 .pati-settings-list,.pati-own-pets,.pati-pets-page
){color:#f2f2f5!important}
html[data-pati-theme="dark"] #main-content .pati-home-feed-tabs button{
 color:#c8c9d0!important;background:#202126!important;border-color:#3b3c45!important;
}
html[data-pati-theme="dark"] #main-content .pati-home-feed-tabs button.active{
 color:#101114!important;background:#f1f1f4!important;border-color:#f1f1f4!important;
}
html[data-pati-theme="dark"] #tools-form :is(
 .pati-feature-group,.pati-feature-notifications,.pati-mobile-menu-item,
 .pati-menu-notifications-list,.pati-feature-add-pet
){
 background:#222329!important;border-color:#41434a!important;color:#f3f3f6!important;
}
html[data-pati-theme="dark"] #tools-form :is(
 .pati-mobile-menu-item span,.pati-feature-group h3,.pati-menu-notifications-top h3,
 .pati-menu-notifications-all,.pati-feature-intro
){color:#f2f2f4!important}
html[data-pati-theme="dark"] #tools-form :is(
 .pati-menu-notifications-empty,.pati-mobile-menu-item small
){color:#c0c2cc!important}
html[data-pati-theme="dark"] #modal-root :is(
 .modal,.modal-content,.modal-header,.modal-footer,
 .pati-question-fullscreen,.pati-community-form-intro,.pati-pet-editor
){background-color:#1e1f24!important;color:#f4f4f7!important;border-color:#42434c!important}
html[data-pati-theme="dark"] #modal-root :is(
 label,small,.pati-field p,.modal-muted,.pati-community-form-note
){color:#c8cad3!important}
html[data-pati-theme="dark"] #modal-root :is(
 input:not([type="checkbox"]),select,textarea
){background:#292a30!important;color:#f9f9fb!important;border-color:#51535d!important}
html[data-pati-theme="dark"] #main-content :is(
 input:not([type="checkbox"]),select,textarea
){background:#26272d!important;color:#f9f9fb!important;border-color:#50525a!important}
html[data-pati-theme="dark"] #main-content :is(input,textarea)::placeholder,
html[data-pati-theme="dark"] #modal-root :is(input,textarea)::placeholder{color:#b0b3c0!important}
html[data-pati-theme="dark"] #app-root .sidebar .nav-link:not(.active){
 color:#d3d4dd!important;
}
html[data-pati-theme="dark"] #app-root .sidebar .nav-link.active{
 background:#303139!important;color:#fdfdff!important;
}
html[data-pati-theme="dark"] #main-content .pati-dm-layout .chat-person-info :is(strong,small){
 color:#f3f3f6!important;
}
html[data-pati-theme="dark"] #main-content .pati-dm-layout .chat-person-info small{color:#bfc1ca!important}
html[data-pati-theme="dark"] #story-overlay .story-viewers-sheet{
 background:#17181d!important;color:#f6f6f9!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-top,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-preview{
 background:#222329!important;color:#f6f6f9!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-section,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-list{
 background:#17181d!important;border-color:#3c3e48!important;color:#f4f4f7!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-person,
html[data-pati-theme="dark"] #story-overlay .story-view-user{border-color:#353741!important}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-top button{
 background:#34353e!important;color:#fff!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-section strong,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-hero-meta,
html[data-pati-theme="dark"] #story-overlay .pati-story-view-person strong,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-message,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-top strong{
 color:#f6f6f8!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-view-person small,
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-empty{
 color:#bfc1cc!important;
}
html[data-pati-theme="dark"] #story-overlay .pati-story-activity-avatar>.pati-story-view-like{
 border-color:#17181d!important;
}
html[data-pati-theme="light"] #story-overlay .story-viewers-sheet{
 background:#fff!important;color:#17181d!important;
}
html[data-pati-theme="light"] #main-content .pati-edu-path-home{
 background:#fff!important;color:#17181d!important;
}
@media(prefers-contrast:more){
 #main-content .pati-edu-path-items>.pati-edu-path-item,
 #main-content .pati-delight-card{border-width:2px!important}
 #main-content :is(.pati-delight-details>small,.pati-delight-next,.pati-edu-path-copy small){
  font-weight:650!important;
 }
}
