/* Shared readable ink; retain bright accents on dark surfaces. */
#kfs-video-modal .tabs button,#video-form .tabs button{color:#465b2d!important;opacity:1!important;font-family:KFSBody,Vazir,sans-serif!important}
#kfs-video-modal .tabs button[aria-selected="true"],#video-form .tabs button[aria-selected="true"]{color:#304719!important;border-color:#465b2d!important;font-weight:700}
#kfs-video-modal .dropzone,#video-form .dropzone{color:#f2edda!important;background:#17220f!important}
#kfs-video-modal .dropzone :is(span,strong,small,p),#video-form .dropzone :is(span,strong,small,p){color:#f2edda!important;opacity:1!important}
#kfs-video-modal .dropzone .lux-icon,#video-form .dropzone .lux-icon{color:#c5e08f!important}
.ksr-youtube-card h3{font-family:KFSBody,Vazir,sans-serif!important;font-weight:400!important;line-height:1.9!important}
:is(.kfr-form-bottom span,.kfr-position,.ksr-youtube-position,.ksp-dates,.ksp-captured,.ticket-inside,.ticket-dates){font-family:KFSBody,Vazir,sans-serif!important}
:is(.kfr-paper,.ksr-paper,.ksp-paper) :is(small,.muted,.hint,.description){color:#465336;opacity:1}

:is(.ksr-paper,.kfr-paper,.gh-paper-surface,.ksp-paper,#kfs-video-modal) :is(.tabs button,.eyebrow,.muted,.hint){color:#465336!important;opacity:1!important}

/* Paper ink is independent of the pale secondary text used on dark pages. */
html body :is(.ksr-paper,.kfr-paper,.kfr-note,.gh-paper-surface,.ksp-paper,.ksp-photo-paper,.ksp-dialog,.kfo-paper,.kfsp-choice,.kfs-feedback,dialog.ksr-guide-popup,dialog.kfa-popup,dialog.kfl-modal,dialog.kfl-player,#kfs-video-modal,#kfc-modal,#kud-solo,#preview-dialog,.kfsap .paper,.kfsap .bug-report,#kqm-root dialog){--kfs-muted:#3f4f2f;--muted:#3f4f2f;--gh-muted:#3f4f2f;--ksr-paper-secondary:#3f4f2f}
html body :is(.ksr-paper,.kfr-paper,.kfr-note,.gh-paper-surface,.ksp-paper,.ksp-photo-paper,.ksp-dialog,.kfo-paper,.kfsp-choice,.kfs-feedback,dialog.ksr-guide-popup,dialog.kfa-popup,dialog.kfl-modal,dialog.kfl-player,#kfs-video-modal,#kfc-modal,#kud-solo,#preview-dialog,.kfsap .paper,.kfsap .bug-report,#kqm-root dialog) :is(p,small,label,legend,.eyebrow,.ksp-eyebrow,.muted,.hint,.description,.note,.ksp-note,.kfl-note,.kfc-intro,.kud-note,.ksp-sample-notice){color:#3f4f2f!important;opacity:1!important}
html body :is(.ksr-paper,.kfr-paper,.kfr-note,.gh-paper-surface,.ksp-paper,.ksp-dialog,.kfo-paper,.kfsp-choice,.kfs-feedback,dialog.ksr-guide-popup,dialog.kfa-popup,dialog.kfl-modal,dialog.kfl-player,#kfs-video-modal,#kfc-modal,#kud-solo,#preview-dialog,.kfsap .paper,.kfsap .bug-report) :is(input,textarea)::placeholder{color:#4a583b!important;opacity:1!important}
/* The upload target is deliberately dark inside the paper dialog. */
html body #kfs-video-modal .dropzone :is(span,strong,small,p),html body #video-form .dropzone :is(span,strong,small,p){color:#f2edda!important;opacity:1!important}

/* Editorial links and forecast captions also sit on the same cream paper. */
html:root{--gh-paper-accent:#3f541f!important}
html body .gh-read,html body .gh-paper-surface a:not(.button),html body .ksp-paper .ksp-time-note>span{color:#3f541f!important;opacity:1!important}

html body #kfs-video-modal #video-form .dropzone,html body #video-form #dropzone{color:#f2edda!important}

/* The player remains scrollable on small screens without a visible scrollbar. */
html:has(#watch-dialog[open]){overflow:hidden!important}
html body .ksp-dialog{scrollbar-width:none!important;-ms-overflow-style:none;scrollbar-gutter:auto}
html body .ksp-dialog::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body #live-player-host,html body #live-player-host iframe{overflow:hidden!important}
