
:root{--pro-accent:#4f46e5;--pro-border:#dbe2ef;--pro-muted:#475569;--pro-panel:#fff;--pro-text:#172033;color-scheme:light}
.dark{--pro-border:#465269;--pro-muted:#c3cce0;--pro-panel:#1f2937;--pro-text:#f3f4f6;color-scheme:dark}
.pro-panel{min-width:0;background:var(--pro-panel);color:var(--pro-text);border:1px solid var(--pro-border);border-radius:1rem;padding:1rem;margin-block:.9rem;overflow-wrap:anywhere}
.pro-panel h2,.pro-panel h3{font-size:1.125rem;font-weight:750;margin-bottom:.75rem}
.pro-panel label{font-weight:600;font-size:.9rem;display:block}
.pro-panel label :is(input,select,textarea){margin-top:.25rem}
.pro-form{display:grid;gap:.8rem;min-width:0}
.pro-row{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;min-width:0}
.pro-cols{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));min-width:0}
.pro-input{display:block;width:100%;min-width:0;padding:.55rem .65rem;border:1px solid var(--pro-border);border-radius:.55rem;background:var(--pro-panel);color:var(--pro-text);font-size:1rem}
.pro-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.5rem .8rem;border:1px solid var(--pro-border);border-radius:.55rem;background:var(--pro-panel);color:var(--pro-text);font-size:.9rem;font-weight:650;text-align:center;max-width:100%}
.pro-button:hover{border-color:var(--pro-accent)}
.pro-primary{background:var(--pro-accent);color:white;border-color:transparent}
.pro-button:disabled{opacity:.5;cursor:not-allowed}
.pro-muted{color:var(--pro-muted);font-size:.875rem}
.pro-error{color:#b91c1c}
.dark .pro-error{color:#fca5a5}
.pro-toast{position:fixed;z-index:150;left:50%;bottom:1rem;transform:translateX(-50%);width:max-content;max-width:calc(100% - 2rem);padding:.75rem 1rem;color:#fff;background:#172033;border-radius:.75rem;box-shadow:0 8px 24px #0003}
.pro-toast.pro-error{color:white;background:#991b1b}
.pro-list{display:grid;gap:.65rem}
.pro-list>article,.pro-list>li{padding:.7rem .8rem;border:1px solid var(--pro-border);border-radius:.65rem;min-width:0}
.pro-brand-logo{display:block;width:100%;height:100%;max-width:2.6rem;max-height:2.6rem;object-fit:contain;border-radius:.4rem}
.pro-grid-scroll{overflow-x:auto;max-width:100%;padding:.3rem 0}
.pro-puzzle{display:grid;grid-template-columns:repeat(var(--cols),minmax(2.05rem,2.65rem));width:max-content;gap:2px}
.pro-puzzle-cell{width:100%;height:2.3rem;position:relative;background:var(--pro-panel);border:1px solid var(--pro-border);border-radius:3px}
.pro-puzzle-cell input{width:100%;height:100%;text-align:center;background:transparent;color:var(--pro-text);font-size:1rem;font-weight:700;border:0;padding-top:.2rem}
.pro-puzzle-cell span{position:absolute;top:1px;left:3px;pointer-events:none;font-size:.59rem;color:var(--pro-muted)}
.pro-puzzle-cell.pro-block{background:#35455f}
.pro-puzzle-cell.correct{border-color:#047857;background:#10b98120}
.pro-puzzle-cell.wrong{border-color:#be123c;background:#fb718520}
.pro-dialog{margin:auto;max-width:min(46rem,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);width:100%;background:var(--pro-panel);color:var(--pro-text);border:1px solid var(--pro-border);border-radius:1rem;padding:1rem;overflow:auto}
.pro-dialog::backdrop{background:#0f172a88}
.pro-table-scroll{max-width:100%;overflow-x:auto}
.pro-table{min-width:450px;width:100%;font-size:.875rem;border-collapse:collapse}
.pro-table td,.pro-table th{text-align:left;padding:.5rem;border-bottom:1px solid var(--pro-border)}
.pro-checkbox{display:inline-flex!important;gap:.5rem;align-items:center}
.pro-mobile-notify{display:none}
main,main>section,main section .grid>*{min-width:0}
@media (max-width:767px){
  #section-subjects>div:first-child,#section-videos>div:first-child,#section-lectures>div:first-child,#section-books>div:first-child,#section-tests>div:first-child,#section-cross>div:first-child{flex-wrap:wrap;gap:.65rem}
  #section-subjects>div:first-child>div,#section-videos>div:first-child>div,#section-lectures>div:first-child>div,#section-books>div:first-child>div,#section-tests>div:first-child>div,#section-cross>div:first-child>div{flex-wrap:wrap;max-width:100%}
  #section-subjects select,#section-videos select,#section-lectures select,#section-books select,#section-tests select,#section-cross select{min-width:0;max-width:100%}
  :is(#section-subjects,#section-videos,#section-lectures,#section-books,#section-tests,#section-cross) :is(input:not([type=checkbox]):not([type=radio]),textarea){min-width:0;max-width:100%}
  :is(#subjectList,#videoList,#lectureList,#bookList,#testList,#cwList) :is(.flex,.grid){min-width:0}
  :is(#subjectList,#videoList,#lectureList,#bookList,#testList,#cwList) .flex.items-center{flex-wrap:wrap}
  #cwGridWrap{overflow-x:auto;max-width:100%}
  #cwGrid .cw-cell{min-width:30px}
  #cwGrid{min-width:var(--cw-min-width,0)}
  #homeSection,#dx-learning{overflow-wrap:anywhere}
  #homeSection .flex,#dx-learning .flex{min-width:0}
  #dx-learning .flex.justify-between,#homeSection .flex.justify-between{flex-wrap:wrap}
  .pro-mobile-notify{display:inline-flex}
  #dxNotificationPanel{width:min(23rem,calc(100% - 1.25rem));right:.625rem}
  #dx-calendar .dx-cal-grid{min-width:0!important}
  #dx-calendar .dx-day{min-width:0!important;padding:3px!important;min-height:47px!important}
  #dx-calendar .dx-day :is(span,p,div){overflow-wrap:anywhere}
  #dx-calendar .dx-cal-grid>div{min-width:0}
}


@media (max-width:767px){
  #dx-calendar .min-w-\[680px\]{min-width:0}
  #dx-calendar .dx-calendar-day{min-width:0;min-height:50px;padding:.15rem}
  #dx-calendar .dx-calendar-day .event-text{white-space:normal;overflow-wrap:anywhere;line-height:1.1}
  body[data-pro-page=dashboard] header [data-pro-brand]{max-width:7rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  body[data-pro-page=dashboard] header .md\:hidden.flex{gap:.2rem}
}

