/* Kurushin Academy UI, v1.0.0. Native Tutor events, navigation and submissions stay intact. */
body .tutor-apply-coupon-form:not(.tutor-d-none){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px!important;padding:16px!important;background:var(--ka-panel-soft)!important;border:1px solid var(--ka-line)!important;border-radius:14px!important;box-shadow:none!important}
body .tutor-apply-coupon-form input{width:100%!important;min-width:0!important;background:var(--ka-panel)!important;outline-offset:-3px!important}
body .tutor-apply-coupon-form #tutor-apply-coupon-button{background:var(--ka-accent)!important;color:#172238!important;border:1px solid transparent!important;min-height:44px!important;font-size:16px!important;line-height:1.4!important;white-space:nowrap!important}
body .tutor-apply-coupon-form:has(.tutor-form-feedback){grid-template-columns:minmax(0,1fr)}
body .tutor-apply-coupon-form :is(.tutor-form-feedback,.tutor-error-message){grid-column:1/-1;color:var(--ka-text)!important;line-height:1.5}
body .tutor-learning-header .tutor-learning-header-back a,
body .tutor-learning-header .tutor-learning-header-toggle-mobile button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;padding:0!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important}
body .tutor-learning-header-back{flex:0 0 44px!important;margin:0!important}
body .tutor-learning-header-content{min-width:0!important;gap:12px!important}
body .tutor-learning-header-title{min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important}
body .tutor-learning-area-footer{gap:12px!important;padding:12px 20px!important;background:var(--ka-panel)!important;border-color:var(--ka-line)!important;box-sizing:border-box}
body .tutor-learning-area-footer > .tutor-btn{min-width:104px!important;min-height:44px!important;width:auto!important;padding:10px 16px!important;font-size:16px!important;line-height:1.4!important;white-space:nowrap!important;word-break:normal!important;flex-shrink:0!important;border:1px solid var(--ka-line)!important;border-radius:12px!important;background:var(--ka-panel-soft)!important;color:var(--ka-link)!important;gap:8px!important}
body .tutor-learning-area-footer .tutor-mark-as-complete-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;min-height:44px!important;width:100%!important;min-width:0!important;padding:10px 18px!important;border:1px solid transparent!important;border-radius:12px!important;background:var(--ka-accent)!important;color:#172238!important;font:600 16px/1.4 Moula,Arial,sans-serif!important;white-space:normal!important;word-break:normal!important}
body .tutor-learning-area-footer .tutor-mark-as-complete-button span{width:auto!important;white-space:normal!important;word-break:normal!important}
body .tutor-learning-area-footer .tutor-mark-as-complete-button svg{color:currentColor!important;width:20px!important;height:20px!important;flex:0 0 20px!important}
body .tutor-learning-area-footer .tutor-mark-as-complete-button.completed{background:var(--ka-panel-soft)!important;color:var(--ka-text)!important;border-color:var(--ka-line)!important;opacity:1!important}
body .tutor-learning-area-footer > .tutor-btn.disabled{opacity:.5!important;cursor:default}
body .tutor-learning-area :is(pre,table){max-width:100%}
body:has(.tutor-page-permission-denied){min-height:100svh;display:flex;flex-direction:column;background:var(--ka-bg)!important}
body:has(.tutor-page-permission-denied) > .tutor-page-permission-denied{flex:1 0 auto;width:100%!important;max-width:none!important;margin:0!important;display:grid!important;place-items:center;padding:clamp(32px,6vh,80px) 20px!important;min-height:500px;box-sizing:border-box}
body .tutor-page-permission-denied > .tutor-card{width:min(100%,680px)!important;margin:0!important;padding:clamp(24px,5vw,56px)!important;background:var(--ka-panel)!important;border:1px solid var(--ka-line)!important;border-radius:24px!important;color:var(--ka-text)!important;box-sizing:border-box}
body .tutor-page-permission-denied :is(.tutor-h4,.tutor-fs-5){font:600 clamp(22px,2vw,28px)/1.35 Moula,Arial,sans-serif!important;color:var(--ka-text)!important;margin:24px 0 12px!important}
body .tutor-page-permission-denied :is(.tutor-text-muted,.tutor-fs-6){font:400 16px/1.6 Moula,Arial,sans-serif!important;color:var(--ka-muted)!important;margin:0 auto 24px!important;max-width:48ch}
body .tutor-page-permission-denied img{display:block;width:168px!important;height:136px!important;object-fit:contain;margin:auto!important}
body .tutor-page-permission-denied .tutor-btn{margin-top:8px!important;min-height:48px!important;font:600 16px/1.4 Moula,Arial,sans-serif!important;padding:12px 24px!important}
body .tutor-user-public-profile .pp-area .profile-pic{background-size:cover!important;background-position:center!important;border:4px solid var(--ka-bg)!important;box-shadow:0 12px 36px #03091726!important}
body .tutor-user-public-profile .pp-area .profile-name > span{display:inline-flex;align-items:center;gap:.4em;font-size:16px!important;line-height:1.6!important;white-space:nowrap}
body .tutor-user-public-profile .pp-area .profile-name > span+span{margin-left:.6em}
body .tutor-user-public-profile .pp-area .ratings{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;line-height:1.5}
body .tutor-user-public-profile .pp-area .rating-digits{font-size:16px!important;font-weight:600}
body .tutor-user-public-profile .pp-area .rating-total-meta{font-size:14px!important}
body .tutor-user-public-profile .pp-area .tutor-ratings-stars{display:flex;gap:4px}
body .tutor-screen-frontend-dashboard input::placeholder{color:var(--ka-muted)!important}
@media(max-width:767px){
 body .tutor-apply-coupon-form:not(.tutor-d-none){grid-template-columns:minmax(0,1fr)}
 body .tutor-apply-coupon-form #tutor-apply-coupon-button{width:100%!important}
 body .tutor-learning-area,body .tutor-learning-page{min-width:0!important;max-width:100vw!important}
 body .tutor-learning-header{padding-left:12px!important;padding-right:12px!important}
 body .tutor-learning-header-inner{gap:10px!important}
 body .tutor-learning-header-content{gap:8px!important;flex:1 1 auto!important}
 body .tutor-learning-header-title{font-size:16px!important;line-height:1.35!important}
 body .tutor-learning-area-footer[data-lesson]{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;height:auto!important;min-height:64px!important;max-width:100%!important}
 body .tutor-learning-area-footer[data-lesson] > .tutor-btn{width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 12px!important;justify-content:center!important;box-sizing:border-box!important}
 body .tutor-learning-area-footer[data-lesson] > .tutor-btn:first-child{grid-column:1;grid-row:1}
 body .tutor-learning-area-footer[data-lesson] > .tutor-btn:last-child{grid-column:2;grid-row:1}
 body .tutor-learning-area-footer[data-lesson] > form{grid-column:1/-1;grid-row:2;width:100%!important;min-width:0!important;margin:0!important}
 body .tutor-learning-area-footer .tutor-mark-as-complete-button{font-size:15px!important;min-height:44px!important}
 body .tutor-learning-area :is(.tutor-learning-area-body,.tutor-learning-main-content){min-width:0!important;max-width:100%!important}
 body .tutor-learning-area .tutor-learning-content{padding-left:16px!important;padding-right:16px!important}
 body .tutor-learning-area :is(.tutor-tab,.tutor-nav){max-width:100%;flex-wrap:wrap}
 body .tutor-user-public-profile{padding-top:24px!important}
 body .tutor-user-public-profile .photo-area{height:auto!important;min-height:0!important;margin-bottom:32px!important;padding-inline:16px!important}
 body .tutor-user-public-profile .cover-area{height:190px!important;min-height:0!important;border-radius:18px!important;background-position:center!important}
 body .tutor-user-public-profile .pp-area{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:16px!important;width:100%!important;height:auto!important;min-height:0!important;top:auto!important;left:auto!important;bottom:auto!important;padding:0 12px!important;margin:-58px 0 0!important;box-sizing:border-box}
 body .tutor-user-public-profile .pp-area .profile-pic{position:relative!important;top:auto!important;left:auto!important;bottom:auto!important;transform:none!important;flex:0 0 144px!important;width:144px!important;height:144px!important;min-height:144px!important;max-width:144px!important;border-radius:22px!important;margin:0!important}
 body .tutor-user-public-profile .pp-area .profile-name{position:static!important;padding:0!important;margin:0!important;min-width:0!important;max-width:100%!important;text-align:center!important;color:var(--ka-text)!important}
 body .tutor-user-public-profile .pp-area .profile-name h3{font:600 clamp(24px,6vw,30px)/1.3 Moula,Arial,sans-serif!important;color:var(--ka-text)!important;margin:12px 0!important;overflow-wrap:break-word;word-break:normal!important}
 body .tutor-user-public-profile .pp-area .profile-name > span{color:var(--ka-muted)!important;font-size:16px!important;line-height:1.8!important}
 body .tutor-user-public-profile .pp-area .profile-name .rating-digits,body .tutor-user-public-profile .pp-area .profile-name .rating-total-meta{color:var(--ka-muted)!important}
 body .tutor-user-public-profile .pp-area .content-for-desktop{display:none!important}
 body .tutor-user-public-profile .pp-area .profile-rating-media.content-for-mobile{display:block!important;margin:0 0 12px!important}
 body .tutor-user-public-profile .tutor-social-container:empty{display:none!important}
 body .tutor-user-public-profile .tutor-container > .tutor-row{margin-top:0!important}
 body .tutor-page-permission-denied{min-height:420px!important}
 body .tutor-page-permission-denied > .tutor-card{border-radius:20px!important}
 body.tutor-screen-frontend-dashboard :is(input,textarea,select){max-width:100%;min-width:0}
 body.tutor-screen-frontend-dashboard :is(.tutor-modal,.tutor-popover){max-width:calc(100vw - 24px)!important;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.tutor-learning-area-footer *{transition:none!important}}

@media(max-width:767px){
 body .tutor-learning-area:has(.tutor-learning-area-footer[data-lesson]>form) .tutor-learning-area-body{padding-bottom:140px!important}
 body .tutor-learning-area-footer[data-lesson]>form{box-sizing:border-box!important}
 body .tutor-apply-coupon-form:not(.tutor-d-none){padding:12px!important}
}
/* Tutor Starter may wrap restricted pages in #page/#content. Grow that chain too. */
body:has(.tutor-page-permission-denied) .site,
body:has(.tutor-page-permission-denied) .site-content{display:flex!important;flex-direction:column!important;flex:1 0 auto!important;width:100%!important;min-width:0!important}
body:has(.tutor-page-permission-denied) .tutor-page-permission-denied{flex:1 0 auto!important;width:100%!important;max-width:none!important;margin:0!important;display:grid!important;place-items:center!important;padding:clamp(32px,6vh,72px) 20px!important;box-sizing:border-box;min-height:460px}
body:has(.tutor-page-permission-denied) footer{margin-top:auto!important;flex-shrink:0}
body.admin-bar:has(.tutor-page-permission-denied){min-height:calc(100svh - 32px)}
body .tutor-page-permission-denied > .tutor-card{justify-self:center}
body .tutor-page-permission-denied .tutor-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;text-align:center!important}
body:has(.tutor-learning-page) #ka-theme-toggle{display:none!important}
@media(max-width:767px){body.admin-bar:has(.tutor-page-permission-denied){min-height:calc(100svh - 46px)}body:has(.tutor-page-permission-denied) .tutor-page-permission-denied{padding:28px 16px!important;min-height:420px!important}}
@media(max-width:767px){
 body .tutor-calendar{min-width:0!important;max-width:100%!important}
 body .tutor-calendar-content > div:has(> .tutor-calendar-actions){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 body .tutor-calendar-content > div:has(> .tutor-calendar-actions) > div:first-child{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
 body .tutor-calendar-actions{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px!important;width:100%!important;max-width:100%!important}
 body .tutor-calendar-actions .tutor-btn{min-width:0!important;width:100%!important;min-height:44px!important;height:44px!important;padding:8px!important;white-space:nowrap!important;font-size:14px!important;box-sizing:border-box!important}
 body .tutor-calendar-tabs{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
 body .tutor-calendar-tabs .tutor-nav-item{min-width:0!important;justify-content:center!important;padding:10px!important;gap:6px!important;white-space:nowrap!important}
 body .tutor-calendar-day{padding:8px 4px!important;min-width:0!important}
}

/* Semantic learning states. Completion comes from Tutor, never from a guessed percentage. */
:root{--ka-course-done-bg:#d9f3e1;--ka-course-done-text:#166534;--ka-course-done-border:#8dcc9f;--ka-course-progress-bg:#e0edff;--ka-course-progress-text:#1d4b7a;--ka-course-progress-border:#98bce5}
html[data-ka-theme="dark"],html[data-tutor-theme="dark"]{--ka-course-done-bg:#143d2b;--ka-course-done-text:#9bf0b8;--ka-course-done-border:#398859;--ka-course-progress-bg:#173759;--ka-course-progress-text:#bddbff;--ka-course-progress-border:#4b779f}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state]{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:44px!important;padding:11px 18px!important;border:1px solid transparent!important;border-radius:12px!important;font:600 16px/1.4 Moula,Arial,sans-serif!important;text-decoration:none!important;letter-spacing:normal!important;opacity:1!important;box-sizing:border-box!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state] :is(span,i,svg){color:inherit!important;opacity:1!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state] svg{flex-shrink:0;width:20px!important;height:20px!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state] svg [stroke]:not([stroke="none"]){stroke:currentColor!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state="start"],html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state="finish"]{background:#ff8a3d!important;color:#172238!important;border-color:#ff8a3d!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state="progress"]{background:var(--ka-course-progress-bg)!important;color:var(--ka-course-progress-text)!important;border-color:var(--ka-course-progress-border)!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state="completed"]{background:var(--ka-course-done-bg)!important;color:var(--ka-course-done-text)!important;border-color:var(--ka-course-done-border)!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state]:focus-visible{outline:2px solid var(--ka-link)!important;outline-offset:3px!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state]:not(:disabled):hover{box-shadow:inset 0 0 0 1px currentColor!important}
html body :is(.tutor-btn,.tutor-mark-as-complete-button)[data-ka-course-state]:disabled{cursor:default!important}
html body .tutor-progress-card-details{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px 8px!important;color:var(--ka-muted)!important;font-size:14px!important;line-height:1.6!important}
html body .tutor-progress-card-actions [data-ka-course-state]{width:100%!important;max-width:100%!important}
html body .tutor-user-public-profile .pp-area .profile-name > span > span{color:inherit!important;font-weight:600!important;font-variant-numeric:tabular-nums}
@media(max-width:767px){
 html body .tutor-user-public-profile .pp-area .profile-name > span > span{color:var(--ka-text)!important}
 html body .tutor-user-public-profile .pp-area{margin-top:-58px!important;padding:0 12px!important}
 html body .tutor-learning-page #tutor-lesson-nav-take-note-btn{position:fixed!important;bottom:calc(var(--ka-lesson-footer-height,128px) + 12px)!important;right:16px!important;left:auto!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--ka-panel-soft)!important;border:1px solid var(--ka-line)!important;color:var(--ka-link)!important;box-shadow:0 4px 14px #03091726!important}
 html body .tutor-learning-page #tutor-lesson-nav-take-note-btn svg{width:22px!important;height:22px!important;flex:0 0 22px!important}
 html body .tutor-learning-page #tutor-lesson-nav-take-note-btn .tutor-sm-hidden{display:none!important}
 html body .tutor-learning-area .tutor-learning-area-body{padding-bottom:calc(var(--ka-lesson-footer-height,128px) + 72px)!important}
 html body .tutor-learning-area-footer .tutor-mark-as-complete-button[data-ka-course-state]{font-size:15px!important}
 html body .tutor-progress-card-details .tutor-progress-card-separator{color:var(--ka-muted)!important}
}

html body .tutor-btn:is([data-ka-course-state="start"],[data-ka-course-state="progress"],[data-ka-course-state="finish"]) svg [fill]:not([fill="none"]){fill:currentColor!important}

/* Native action hook covers stand-alone cards and nested bundle courses. */
html body .ka-course-action{display:flex!important;flex-wrap:wrap;gap:10px;width:100%;min-width:0}
html body .ka-course-action > .tutor-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;min-height:44px!important;padding:11px 18px!important;border:1px solid transparent!important;border-radius:12px!important;font:600 16px/1.4 Moula,Arial,sans-serif!important;box-sizing:border-box!important;opacity:1!important}
html body .ka-course-action[data-ka-native-course-state="start"] > .tutor-btn{background:#ff8a3d!important;color:#172238!important;border-color:#ff8a3d!important}
html body .ka-course-action[data-ka-native-course-state="progress"] > .tutor-btn{background:var(--ka-course-progress-bg)!important;color:var(--ka-course-progress-text)!important;border-color:var(--ka-course-progress-border)!important}
html body .ka-course-action[data-ka-native-course-state="completed"] > .tutor-btn{background:var(--ka-course-done-bg)!important;color:var(--ka-course-done-text)!important;border-color:var(--ka-course-done-border)!important}
html body .ka-course-action > .tutor-btn :is(span,i,svg){color:inherit!important;opacity:1!important}
html body .ka-course-action > .tutor-btn svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
html body .ka-course-action > .tutor-btn svg [stroke]:not([stroke="none"]){stroke:currentColor!important}
html body .ka-course-action:is([data-ka-native-course-state="start"],[data-ka-native-course-state="progress"]) > .tutor-btn svg [fill]:not([fill="none"]){fill:currentColor!important}
:root{--ka-progress-active-fill:#306cb6;--ka-progress-done-fill:#218647}
html[data-ka-theme="dark"],html[data-tutor-theme="dark"]{--ka-progress-active-fill:#75b5ff;--ka-progress-done-fill:#56d889}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state]{--ka-progress-fill:var(--ka-line)}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state="progress"]{--ka-progress-fill:var(--ka-progress-active-fill)}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state="completed"]{--ka-progress-fill:var(--ka-progress-done-fill)}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state] .tutor-progress-bar{height:8px!important;background:var(--ka-line)!important;border:0!important;border-radius:999px!important;overflow:hidden!important;box-shadow:none!important}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state] .tutor-progress-bar-fill{background:var(--ka-progress-fill)!important;background-image:none!important;border-radius:inherit!important;box-shadow:none!important;min-width:0!important}
html body :is(.tutor-progress-card-progress,.tutor-learning-progress)[data-ka-progress-state] .tutor-progress-bar-fill::after{display:none!important}

/* Tutor 4 learning tooltips are portals, separate from course-detail tooltips. */
html body:has(.tutor-learning-page) .tutor-tooltip[data-teleport-target]{box-sizing:border-box!important;max-width:min(320px,var(--ka-tip-max-width,calc(100vw - 24px)))!important;max-height:var(--ka-tip-max-height,calc(100dvh - 24px))!important;padding:12px 14px!important;border:1px solid var(--ka-line)!important;border-radius:12px!important;background:var(--ka-panel-soft)!important;color:var(--ka-text)!important;font:400 14px/1.5 Moula,Arial,sans-serif!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:auto!important;box-shadow:0 8px 24px #03091730!important}
html body:has(.tutor-learning-page) .tutor-tooltip[data-ka-viewport-tooltip="true"]{position:fixed!important;left:var(--ka-tip-left)!important;top:var(--ka-tip-top)!important;transform:none!important}
html body:has(.tutor-learning-page) .tutor-tooltip[data-teleport-target]::before,
html body:has(.tutor-learning-page) .tutor-tooltip[data-teleport-target]::after{display:none!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-modal-content{width:calc(100% - 24px)!important;max-width:426px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;box-sizing:border-box!important;background:var(--ka-panel)!important;border:1px solid var(--ka-line)!important;border-radius:20px!important;color:var(--ka-text)!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] :is(h5,p){color:var(--ka-text)!important;overflow-wrap:break-word!important;text-align:center!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] p{color:var(--ka-muted)!important;font-size:15px!important;line-height:1.6!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-btn{min-height:44px!important;padding:10px 14px!important;border-radius:12px!important;font:600 15px/1.4 Moula,Arial,sans-serif!important;white-space:normal!important;word-break:normal!important;box-sizing:border-box!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-btn-secondary{background:var(--ka-panel-soft)!important;color:var(--ka-text)!important;border:1px solid var(--ka-line)!important}
html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-btn-destructive{background:#c9322a!important;color:#fff!important;border:1px solid #c9322a!important}
@media(max-width:420px){
 html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-modal-content > .tutor-flex{padding:28px 18px 20px!important}
 html body .tutor-modal[data-ka-dialog="reset-progress"] .tutor-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:0 18px 18px!important}
 html body .tutor-modal[data-ka-dialog="reset-progress"] h5{font-size:22px!important;line-height:1.3!important;margin-top:20px!important}
}
