/* KAVIR V36.5.41 — readable light mode, uncropped catalog media. No behavior changes. */
html[data-theme="light"] {color-scheme:light!important;--ink:#191715!important;--muted:#322d29!important;--ks-text:#191715!important;--ks-muted:#322d29!important;--kv-store-ink:#191715!important;--kv-store-muted:#322d29!important;--kv-store-line:#e7d8ca!important;--ks-line:#e7d8ca!important;--ks-panel:#fff!important;--ks-panel2:#fff8f1!important}
/* Catalog images in both themes. Badges occupy a separate strip, never cover the artwork. */
html body #homeScreen #courses .kv-catalog-card .kv-catalog-art,
html body.kv-store-v2 .kv-store-product-card .kv-product-card-media {position:relative!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:100%!important;height:clamp(150px,16vw,225px)!important;min-height:0!important;aspect-ratio:auto!important;padding:34px 8px 8px!important;overflow:hidden!important}
html body #homeScreen #courses .kv-catalog-card .kv-catalog-art img,
html body.kv-store-v2 .kv-store-product-card .kv-product-card-media img {position:static!important;display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;transform:none!important;padding:0!important}
html body #homeScreen #courses .kv-catalog-art :is(.kv-catalog-type,.kv-catalog-sale-ribbon),html body.kv-store-v2 .kv-product-card-media :is(.kv-product-badge,.kv-product-sale-ribbon){top:5px!important;min-height:0!important;padding:3px 7px!important;font-size:10px!important;line-height:1.55!important;max-width:60%;white-space:nowrap;box-shadow:none!important;animation:none!important}
html body #homeScreen #courses .kv-catalog-card,html body.kv-store-v2 .kv-store-product-card{min-height:0!important}
html body.kv-product-page .kv-product-main-image{display:grid!important;place-items:center!important;height:clamp(260px,35vw,420px)!important;min-height:0!important;padding:12px!important}
html body.kv-product-page .kv-product-main-image img{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain!important;transform:none!important}
html body .kc-summary-line img,html body .kv-product-thumb img{object-fit:contain!important}
/* Scoped contrast reset with higher specificity than old theme sheets. */
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main,.kv-store-header-shell,.kv-store-footer,.ks-footer,.kv33-mobile-dock,.install-nudge) :is(p,small,span,b,strong,em,h1,h2,h3,h4,h5,h6,label,a,button,input,textarea,select,option,output,li,th,td,del,figcaption){color:#191715!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important}
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main) :is(p,small,label,li,td,figcaption){font-weight:500!important}
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main) :is(h1,h2,h3,h4,h5,h6,b,strong,th){font-weight:750!important}
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main) :is(button,.btn,.ks-btn){font-weight:700!important}
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main) :is(input,textarea)::placeholder{color:#504943!important;opacity:1!important}
html[data-theme="light"] body :is(#homeScreen,#adminScreen,#studentScreen,#loginModal,.kv-product-main,.kc-main,.kv-store-v2 main) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;color:#191715!important;border-color:#d6bbaa!important}
html[data-theme="light"] body :is(.kv-product-purchase-box,.kv-product-main-image,.kv-product-rich-content,.kv-product-spec,.kv-product-benefits span,.kv-product-meta-line span,.kv-product-thumb,.kv-variant-option,.kv-qty-control,.kc-card,.kc-summary-card,.kc-help,.kc-progress,.kc-address-book,.kc-coupon,.kc-otp-intro,.kc-register-fields,.kc-terms,.kc-trust-note,.kc-payment-brand,.kc-verified,.kc-digital-note,.kv35-preview-section,.kv35-preview-dialog){background:#fff!important;border-color:#e3cfc0!important;box-shadow:none!important;color:#191715!important}
html[data-theme="light"] body .kv-product-main :is(.kv-product-purchase-box,.kv-product-main-image){border:1px solid #e3cfc0!important;box-shadow:0 6px 20px #54351b0a!important}
html[data-theme="light"] body .kv-product-main :is(.kv-variant-option.active,.kv-product-meta-line span,.kv-product-benefits span){background:#fff1e5!important;border:1px solid #d59b79!important}
html[data-theme="light"] body .kv-product-main .kv-variant-option.active i{background:#e9783e!important;border-color:#99502a!important;box-shadow:inset 0 0 0 4px #fff5eb!important}
html[data-theme="light"] body .kv-product-main .kv-qty-control button{background:#f8e9dc!important;color:#191715!important;border:1px solid #d9bba5!important;width:32px;height:32px}
html[data-theme="light"] body :is(.kv-product-main,.kc-main,#loginModal) :is(.kv-product-add,.ks-btn-primary,.btn-primary,.kv35-preview-open,.kv-review-form button){background:#f08a50!important;color:#191715!important;border:1px solid #bd5828!important;box-shadow:none!important;font-weight:800!important;min-height:46px}
html[data-theme="light"] body :is(.kv-product-main,.kc-main,#loginModal) :is(.kv-product-add,.ks-btn-primary,.btn-primary,.kv35-preview-open) :is(span,b,strong){color:#191715!important}
html[data-theme="light"] body :is(.kv-product-main,.kc-main) :is(.kv-product-price-now,.kc-summary-grand b){font-size:clamp(18px,2.4vw,27px)!important;font-weight:850!important;color:#191715!important}
html[data-theme="light"] body .kc-main :is(.kc-summary-total,.kc-summary-grand,.kc-summary-line,.kc-summary-head){border-color:#e5d7cb!important}
html[data-theme="light"] body .kc-main :is(.kc-summary-line b,.kc-summary-line strong,.kc-summary-total,.kc-summary-total b,.kc-summary-grand,.kc-summary-head a,.kc-form label,.kc-hint,.kc-help){font-size:12px!important;line-height:1.9!important}
html[data-theme="light"] body .kc-main :is(.kc-summary-line small,.kc-trust-note small,.kc-payment-brand span){font-size:11px!important;line-height:1.8!important}
html[data-theme="light"] body .kc-main .kc-summary-remove{background:#fff0eb!important;border:1px solid #d7a29a!important;color:#191715!important}
html[data-theme="light"] body .kc-main .kc-progress li i{background:#fff!important;border:1px solid #d9bba5!important;color:#191715!important}
html[data-theme="light"] body .kc-main .kc-progress li:is(.active,.done) i{background:#ffd9bc!important;color:#191715!important}
html[data-theme="light"] body .kc-main .kc-progress-track span{background:#d86b35!important}
html[data-theme="light"] body #loginModal .modal-backdrop{background:#31251b30!important;backdrop-filter:blur(4px)}
html[data-theme="light"] body #loginModal :is(.modal-card,.auth-glass-card,#kv18OtpForm){background:#fff!important;color:#191715!important;border:1px solid #e5cdbb!important;box-shadow:0 12px 30px #51341c0e!important}
html[data-theme="light"] body #loginModal #kv18OtpForm{background:#fff6ee!important}
html[data-theme="light"] body #loginModal #kv18OtpForm:before,html[data-theme="light"] body #loginModal #kv18OtpForm:after{display:none!important;animation:none!important}
html[data-theme="light"] body #loginModal #kv18OtpCode{background:#fff!important;color:#191715!important;border:1px solid #c18a68!important;box-shadow:none!important}
html[data-theme="light"] body #loginModal #kv18OtpCode:focus{outline:2px solid #b85b30!important;outline-offset:2px}
html[data-theme="light"] body #loginModal .kv18-auth-steps span{background:#f5eee7!important;color:#191715!important}
html[data-theme="light"] body #loginModal .kv18-auth-steps span.active{background:#ffd9bc!important;color:#191715!important;font-weight:800!important}
html[data-theme="light"] body #loginModal :is(p,small,label,.text-button){font-size:12px!important;line-height:1.95!important}
html[data-theme="light"] body #homeScreen #courses .kv-catalog-card,html[data-theme="light"] body.kv-store-v2 .kv-store-product-card{background:#fff!important;border:1px solid #e6d4c5!important;box-shadow:0 5px 16px #56391f0a!important}
html[data-theme="light"] body #homeScreen #courses .kv-catalog-card:before,html[data-theme="light"] body.kv-store-v2 .kv-store-product-card:before{display:none!important}
html[data-theme="light"] body #homeScreen #courses .kv-catalog-card .kv-catalog-art,html[data-theme="light"] body.kv-store-v2 .kv-store-product-card .kv-product-card-media{background:#fbf4ed!important;border-bottom:1px solid #ecded3!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-type,.kv-product-badge,.kv-catalog-tag,.kv-product-sale-ribbon,.kv-catalog-sale-ribbon,.kv-course-sale-label){background:#ffead9!important;color:#191715!important;border:1px solid #e8b795!important;box-shadow:none!important;text-shadow:none!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-info,.kv-product-card-content) :is(h3,a,p,small,span,del,strong,b){color:#191715!important;text-shadow:none!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-price,.kv-product-price,.kv-course-sale-current){color:#191715!important;font-weight:850!important;font-size:15px!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-more,.kv-product-more){background:#fff0e4!important;border:1px solid #dba381!important;box-shadow:none!important;color:#191715!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-info,.kv-product-card-content) p{font-size:12px!important;font-weight:500!important;line-height:1.85!important}
html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-info,.kv-product-card-content) h3{font-size:15px!important;font-weight:750!important;line-height:1.7!important}
html[data-theme="light"] body #admin-courses :is(.kv36-store-nav,.kv36-store-nav button,.kv36-product-editor-panel,.kv36-product-list-head,.kv36-panel-heading,.kv36-store-hero,.kv36-widget,.kv36-metrics article,.kv36-customer,.admin-card,.table-wrap,.kv-store-variant-admin-grid section){background:#fff!important;color:#191715!important;border-color:#e2cfc0!important;box-shadow:none!important}
html[data-theme="light"] body #admin-courses :is(.kv36-store-nav button.active,.kv35-editor-steps button.active,.kv36-primary){background:#ffd9bc!important;color:#191715!important;border-color:#dba381!important}
html[data-theme="light"] body :is(.kv-product-main,.kc-main,#loginModal,#admin-courses) :is(button,a,input,select,textarea):focus-visible{outline:2px solid #a34a24!important;outline-offset:2px}
html[data-theme="light"] body .kv-store-v2 main,html[data-theme="light"] body .kv-product-main,html[data-theme="light"] body .kc-main{background:#fffdfb!important}
/* Keep disabled fields distinguishable without losing contrast. */
html[data-theme="light"] body #admin-courses .kv-store-variant-admin-grid section.is-disabled{opacity:.72!important;filter:none!important;background:#f4efe9!important}
@media(max-width:760px){html body #homeScreen #courses .kv-catalog-card .kv-catalog-art,html body.kv-store-v2 .kv-store-product-card .kv-product-card-media{height:clamp(135px,36vw,190px)!important;padding:30px 5px 5px!important}html body.kv-product-page .kv-product-main-image{height:clamp(245px,78vw,360px)!important;padding:8px!important}html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-info,.kv-product-card-content) h3{font-size:13px!important}html[data-theme="light"] body :is(.kv-catalog-card,.kv-store-product-card) :is(.kv-catalog-info,.kv-product-card-content) p{font-size:11px!important}}
