/* SAMA 1.0.0 — shared material, restrained depth, no layout or business changes. */
body.sama-ui-polish {
 --sp-blue:#126fd6;--sp-blue-deep:#0754aa;--sp-edge:#d9e7f5;
 --sp-panel:#fff;--sp-panel-tint:#f5f9ff;--sp-text:#193752;--sp-muted:#607891;
 --sp-shadow:0 3px 0 rgba(177,200,225,.32),0 14px 32px rgba(25,65,109,.065);
 --sp-shadow-hover:0 4px 0 rgba(151,183,216,.35),0 20px 42px rgba(25,65,109,.12);
 --sp-inset:inset 0 1px 0 rgba(255,255,255,.85);
 --sp-focus:#0c6ccf;--sp-row:#edf5ff;--sp-control:#fff;
 background-color:#f6f9fe;
}
html[data-sama-theme=dark] body.sama-ui-polish {
 --sp-edge:#35516c;--sp-panel:#172d43;--sp-panel-tint:#1b344d;--sp-text:#e6f0fa;--sp-muted:#b8cbdf;
 --sp-shadow:0 3px 0 #0b1a28,0 14px 32px #0003;
 --sp-shadow-hover:0 4px 0 #0b1a28,0 20px 42px #0005;
 --sp-inset:inset 0 1px 0 #ffffff0a;--sp-focus:#8ac3ff;--sp-row:#233f5b;--sp-control:#172d43;
 background-color:#101f30;
}
/* Keep existing action colors. Never paint delete/cancel buttons as primary. */
body.sama-ui-polish :is(button,input[type=submit],input[type=button],a.button,.elementor-button,.llms-button-primary,.llms-button-secondary,.llms-button-action,.sh-button,.snui-guest-login,.sama-report-link,.sama-report-back):not(:where(.arvan-video-container *,.video-js *,.plyr *,.mejs-container *)) {
 border-radius:12px;
 box-shadow:var(--sp-inset),0 3px 0 #19375224,0 7px 16px #19375212;
 transition:box-shadow .18s ease,filter .18s ease,background-color .18s ease,border-color .18s ease;
 touch-action:manipulation;
}

body.sama-ui-polish :is(.sh-button:not(.sh-button-white):not(.sh-button-outline),.snui-guest-login,.woocommerce a.button.alt,.woocommerce button.button.alt,.single_add_to_cart_button,.llms-button-primary,.sscs-primary) {
 background:linear-gradient(155deg,#2389f3 0%,#126fd6 55%,#0960bd 100%);
 color:#fff;border:1px solid #1167c6;
 box-shadow:inset 0 1px 0 #ffffff45,0 4px 0 #0754aa,0 10px 22px #126fd629;
}
body.sama-ui-polish :is(.sh-button-white,.sh-button-outline,.llms-button-secondary){box-shadow:var(--sp-inset),0 3px 0 #19375220,0 8px 18px #1937520d}
body.sama-ui-polish :is(.sscs-danger,.dc-remove,.snui-logout,.sama-report-logout){box-shadow:inset 0 1px 0 #ffffff30,0 2px 0 #a83c4d22,0 6px 14px #a83c4d0d}
body.sama-ui-polish :is(button,input[type=submit],input[type=button],a.button,.elementor-button,.sh-button,.llms-button-primary,.llms-button-secondary):focus-visible {
 outline:3px solid var(--sp-focus);outline-offset:4px;
}
body.sama-ui-polish :is(button,input[type=submit],input[type=button],a.button,.elementor-button,.sh-button):is(:disabled,[disabled],[aria-disabled=true],.disabled) {
 box-shadow:none;filter:none;transform:none;cursor:not-allowed;
}
/* Surfaces: preserve native sizing, sticky positioning and scroll containers. */
body.sama-ui-polish :is(.sh-course,.sh-teacher,.sh-path,.sh-trust,.sd-content-panel,.sd-account-actions>a,.sp-value-grid>article,.sp-contact-grid>a,.sc-contact-details article,.dc-items,.dc-summary,.sama-report-card,.sama-report-panel,.sama-report-filter,.sscs-card,.sama-school-tools,.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon,.woocommerce-cart-form,.cart_totals,.woocommerce-order,.llms-student-dashboard .llms-sd-section,.llms-lesson-preview,.woocommerce ul.products li.product) {
 border-color:var(--sp-edge);border-radius:20px;
 box-shadow:var(--sp-inset),var(--sp-shadow);
 transition:box-shadow .2s ease,border-color .2s ease;
}
body.sama-ui-polish :is(.sama-report-head,.snui-drawer-profile,.sscs-status){border-color:var(--sp-edge);box-shadow:var(--sp-inset),0 7px 24px #19375208}
body.sama-ui-polish :is(.sh-course,.woocommerce ul.products li.product) img{border-radius:14px}
body.sama-ui-polish :is(.snui-account-drawer,.woocommerce-MyAccount-navigation ul){border-color:var(--sp-edge);box-shadow:var(--sp-inset),var(--sp-shadow)}
body.sama-ui-polish :is(.snui-section-action,.snui-drawer-group a,.woocommerce-MyAccount-navigation a,.sama-role-menu a){border-radius:11px;transition:background-color .18s ease,box-shadow .18s ease,color .18s ease}
body.sama-ui-polish :is(.snui-section-action,.woocommerce-MyAccount-navigation a)[aria-current=page]{box-shadow:inset 0 1px 0 #ffffff35,0 3px 0 #0754aa55,0 8px 18px #126fd622}
/* Restrict input styling to text controls; leave player sliders and choices native. */
body.sama-ui-polish :is(input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=search],input[type=url],input[type=date],input[type=time],input:not([type]),select,textarea):not(:where(.arvan-video-container *,.video-js *,.plyr *,.mejs-container *)) {
 border-color:var(--sp-edge);border-radius:12px;background-color:var(--sp-control);color:var(--sp-text);
 box-shadow:inset 0 2px 4px #19375206,0 2px 0 #19375208;
 transition:border-color .18s ease,box-shadow .18s ease;
}
body.sama-ui-polish :is(input,select,textarea):focus-visible{outline:3px solid var(--sp-focus);outline-offset:2px;box-shadow:0 0 0 5px #3e92e914}
body.sama-ui-polish :is(input[type=checkbox],input[type=radio]){accent-color:var(--sp-blue)}
body.sama-ui-polish :is(.sama-report-table,.woocommerce table.shop_table,.llms-table,.sscs-table-wrap table,.sscs-history table){border-color:var(--sp-edge)}
body.sama-ui-polish :is(.sama-report-table,.woocommerce table.shop_table,.llms-table,.sscs-table-wrap table,.sscs-history table) th{background:var(--sp-panel-tint);color:var(--sp-text);border-color:var(--sp-edge)}
body.sama-ui-polish :is(.sama-report-table,.woocommerce table.shop_table,.llms-table,.sscs-table-wrap table,.sscs-history table) td{border-color:var(--sp-edge);transition:background-color .15s ease}
body.sama-ui-polish :is(.sscs-badge,.sama-report-pill){box-shadow:inset 0 1px 0 #ffffff60,0 2px 5px #1937520b}
body.sama-ui-polish :is(.sh-header,.snui-header){box-shadow:0 6px 24px #19375208}
/* Hover effects only for devices with a mouse; no sticky hover on touchscreens. */
@media(hover:hover) and (pointer:fine){
 body.sama-ui-polish :is(button,input[type=submit],input[type=button],a.button,.elementor-button,.llms-button-primary,.llms-button-secondary,.llms-button-action,.sh-button,.snui-guest-login,.sama-report-link,.sama-report-back):not(:where(:disabled,[disabled],[aria-disabled=true],.disabled,.arvan-video-container *,.video-js *,.plyr *,.mejs-container *)):hover {
  filter:brightness(1.055);box-shadow:var(--sp-inset),0 4px 0 #1937522b,0 12px 24px #19375220;
 }
 body.sama-ui-polish :is(.sh-course,.sh-teacher,.sh-path,.sd-account-actions>a,.sp-contact-grid>a,.sama-report-card,.woocommerce ul.products li.product):hover{box-shadow:var(--sp-inset),var(--sp-shadow-hover);border-color:#a9c9ec}
 body.sama-ui-polish :is(.snui-section-action,.snui-drawer-group a,.woocommerce-MyAccount-navigation a,.sama-role-menu a):not([aria-current=page]):hover{box-shadow:inset -3px 0 0 #2788ed;background-color:var(--sp-row)}
 body.sama-ui-polish :is(.sama-report-table,.woocommerce table.shop_table,.llms-table,.sscs-table-wrap table,.sscs-history table) tbody tr:hover>td{background-color:var(--sp-row)}
}
body.sama-ui-polish :is(button,input[type=submit],input[type=button],a.button,.elementor-button,.sh-button,.llms-button-primary):not(:where(:disabled,[disabled],[aria-disabled=true],.disabled,.arvan-video-container *,.video-js *,.plyr *,.mejs-container *)):active{box-shadow:inset 0 2px 4px #00000016,0 1px 0 #19375222,0 3px 8px #19375212;filter:brightness(.98)}
html[data-sama-theme=dark] body.sama-ui-polish :is(.sama-report-card,.sama-report-panel,.sama-report-filter,.sscs-card,.sama-school-tools,.woocommerce form.login,.woocommerce form.register,.woocommerce-cart-form,.cart_totals,.woocommerce-order,.llms-student-dashboard .llms-sd-section,.llms-lesson-preview,.woocommerce ul.products li.product){background-color:var(--sp-panel);color:var(--sp-text)}
html[data-sama-theme=dark] body.sama-ui-polish :is(.sama-report-table,.sscs-table-wrap table,.sscs-history table) td{color:var(--sp-text)}
@media(max-width:767px){body.sama-ui-polish{--sp-shadow:0 2px 0 #b1c8e133,0 9px 22px #19416d0a}html[data-sama-theme=dark] body.sama-ui-polish{--sp-shadow:0 2px 0 #0b1a28,0 9px 22px #0003}}
@media(prefers-reduced-motion:reduce){body.sama-ui-polish *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){body.sama-ui-polish :is(button,a.button,input,select,textarea){box-shadow:none;border:1px solid ButtonText}}
@media print{body.sama-ui-polish{background:#fff}body.sama-ui-polish *{box-shadow:none!important;filter:none!important;transition:none!important}}
