
/* KamaiX v29 complete readability and responsive admin pass */
:root{--tz-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html,body,button,input,select,textarea{font-family:var(--tz-font)!important}
body{font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body :where(p,li,label,small,strong,b,span,div,a,button,input,select,textarea,th,td){letter-spacing:normal}
body :where(p,li,label,small,.muted,.subtext,.hint,.description){color:inherit}
:where(.admin-shell,.admin-layout,.admin-main,.admin-card,.admin-panel,.admin-content,.admin-section){min-width:0;max-width:100%}
.admin-layout{grid-template-columns:minmax(220px,270px) minmax(0,1fr);align-items:stretch}
.admin-sidebar{position:sticky;top:0;align-self:start;max-height:100vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.admin-nav{font-family:var(--tz-font)!important;font-size:12px;line-height:1.45;min-height:42px;white-space:normal;overflow-wrap:anywhere}
.admin-main{overflow-x:clip;min-width:0}
.admin-main :where(input,select,textarea,button){max-width:100%;min-width:0}
.admin-main :where(input,select,textarea){font-size:14px;line-height:1.4}
.admin-main :where(.admin-card,.admin-section,.admin-panel,.admin-table-wrap){min-width:0;overflow-wrap:anywhere}
.admin-main :where(.admin-content-grid,.admin-stat-grid,.admin-form-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.admin-main :where(table){width:100%;border-collapse:collapse}
.admin-main :where(th,td){overflow-wrap:anywhere;word-break:normal;white-space:normal}
.admin-main :where(button,.primary-btn,.secondary-btn){min-height:40px;white-space:normal;line-height:1.35}
/* Remove low-contrast decorative text treatments without flattening status meaning. */
body :where(.admin-nav,.admin-main,.admin-card,.admin-footer){text-shadow:none}
body :where(.admin-main small,.admin-main .hint,.admin-main .muted){color:#526477}
body :where(.admin-sidebar .admin-nav){color:#d5e0e9}
body :where(.admin-sidebar .admin-nav.active){color:#fff}
@media(max-width:900px){.admin-layout{display:block;min-height:0}.admin-sidebar{position:relative;top:auto;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px}.admin-nav{min-width:0;padding:10px;font-size:11px}.admin-main{padding:18px 14px 30px}.admin-main :where(.admin-content-grid,.admin-stat-grid,.admin-form-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admin-sidebar{grid-template-columns:1fr 1fr}.admin-main{padding:14px 10px 28px}.admin-main :where(.admin-content-grid,.admin-stat-grid,.admin-form-grid){grid-template-columns:minmax(0,1fr)}.admin-main :where(.admin-card){padding:14px!important}.admin-main :where(h1){font-size:clamp(21px,6vw,28px);line-height:1.2}.admin-main :where(h2){font-size:19px}.admin-main :where(button,.primary-btn,.secondary-btn){width:auto;max-width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}



/* KamaiX notification visibility fix — keep feedback above every modal/sheet */
#toast.toast,
.toast {
  position: fixed !important;
  z-index: 2147483000 !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -10px) !important;
  max-width: min( min( calc(100vw - 24px), 520px), calc(100% - 24px) ) !important;
  width: max-content;
  pointer-events: none !important;
}
#toast.toast.show,
.toast.show {
  transform: translate(-50%, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#kamaiXNotificationPanel {
  z-index: 2147482000 !important;
}
#kamaiXNotificationPanel [data-notice-close] {
  color: #101827 !important;
  background: #f3f6fb !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 4px !important;
  display: grid !important;
  place-items: center !important;
}
.modal [aria-label*="Close"],
.modal .close,
.modal .modal-close,
.modal button.close,
dialog [aria-label*="Close"],
dialog .close,
dialog .modal-close {
  color: #101827 !important;
  font-weight: 900 !important;
}
@media (max-width: 600px) {
  #toast.toast, .toast {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    max-width: calc(100vw - 20px) !important;
    width: max-content;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}
