:root{
  --bg-color:#F4F5F7;
  --card-bg:#ffffff;
  --text-color:#1F242D;
  --text-secondary:#6B7280;
  --primary-color:#4E2A84;
  --cta-color:#D99B26;
  --cta-hover:#C48918;
  --primary-hover:#3D2169;
  --accent-soft:#F0F1F4;
  --border-color:#d9d9d9;
  --green-bg:#e6f4ea;
  --green-text:#137333;
  --red-bg:#fce8e6;
  --red-text:#c5221f;
}
*{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
body{
  background-color:var(--bg-color)!important;
  color:var(--text-color)!important;
}
.app-card{
  background:var(--card-bg);
  border-color:var(--border-color)!important;
  box-shadow:0 4px 20px rgba(67,44,122,.04);
}
.soft-input{
  border-color:#dcd7e5!important;
  background:#fff!important;
  color:var(--text-color)!important;
}
.soft-input:focus{
  border-color:var(--primary-color)!important;
  box-shadow:0 0 0 2px rgba(67,44,122,.10)!important;
}
.primary-btn{
  background:var(--primary-color)!important;
  color:#fff!important;
}
.primary-btn:hover{background:var(--primary-hover)!important}
button{transition:all .15s ease}
header h1,#student-public-view h1{letter-spacing:-.04em}
.border{border-color:var(--border-color)!important}
.day-circle{width:44px;height:44px;border-radius:9999px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;color:var(--text-color)!important;background:transparent!important}.day-circle.selected{background:var(--primary-color)!important;color:#fff!important;border-radius:9999px!important}.day-circle.today{box-shadow:0 0 0 1px var(--primary-color)}.day-dot{display:block!important;width:5px!important;height:5px!important;min-width:5px!important;border-radius:9999px!important;background:var(--primary-color)!important;margin-top:2px}.day-circle.selected .day-dot{background:#fff!important}.day-circle.selected span.font-bold{color:#fff!important}
.balance-green{background:var(--green-bg)!important;color:var(--green-text)!important}
.balance-orange{background:#fff4df!important;color:#8a5a00!important}
.balance-red{background:var(--red-bg)!important;color:var(--red-text)!important}
.modal-bg{background:rgba(43,35,67,.42)}
.status{font-size:11px;font-weight:600;padding:4px 8px;border-radius:999px;white-space:nowrap}
.teacher-detail-list{max-height:230px;overflow-y:auto;padding-right:4px}
.teacher-detail-list::-webkit-scrollbar,#public-lessons::-webkit-scrollbar{width:5px}
.teacher-detail-list::-webkit-scrollbar-thumb,#public-lessons::-webkit-scrollbar-thumb{background:#cfc9da;border-radius:99px}

/* Цветовая палитра из референса — без изменения размеров/раскладки */
.text-slate-800,.text-slate-900,.font-bold,.font-semibold{color:var(--text-color)}
.text-slate-500,.text-slate-400{color:var(--text-secondary)!important}
.bg-slate-50{background:#F4F5F7!important}
.bg-slate-100{background:var(--accent-soft)!important;color:var(--primary-color)!important}
.bg-indigo-50,.bg-violet-50{background:var(--accent-soft)!important;color:var(--primary-color)!important}
.bg-indigo-600{background:var(--primary-color)!important;color:#fff!important}
.hover\\:bg-indigo-700:hover{background:var(--primary-hover)!important}
.text-indigo-700{color:var(--primary-color)!important}
.bg-emerald-50{background:var(--green-bg)!important;color:var(--green-text)!important}
.text-emerald-600{color:var(--green-text)!important}
.bg-red-50{background:var(--red-bg)!important;color:var(--red-text)!important}
.bg-red-100{background:#f7dddd!important;color:var(--red-text)!important}
.text-red-600,.text-red-700{color:var(--red-text)!important}
.bg-amber-100{background:#fff1d8!important;color:#8a5a00!important}
.bg-emerald-100{background:var(--green-bg)!important;color:var(--green-text)!important}
.bg-blue-100{background:#e9e5f4!important;color:var(--primary-color)!important}
.bg-slate-100{background:var(--accent-soft)!important;color:var(--primary-color)!important}

@media(max-width:640px){
  .day-circle{width:38px;height:38px}
  .status{font-size:10px;padding:3px 6px}
  .app-card{border-radius:20px}
  .fixed.right-6{right:1rem;bottom:1rem}
  .modal-bg{align-items:flex-end!important}
  .modal-bg>.app-card{border-radius:24px 24px 0 0;max-height:92vh;overflow:auto}
}

/* Dark landing section */
.bg-slate-900,
.bg-slate-900 h2,
.bg-slate-900 h3,
.bg-slate-900 p,
.bg-slate-900 .font-bold,
.bg-slate-900 .text-white,
.bg-slate-900 .text-slate-300{
  color:#fff!important;
}
.bg-slate-900 .text-slate-300{
  color:#cbd5e1!important;
}

/* Password visibility controls */
.password-field{position:relative;width:100%}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b6475;background:transparent}
.password-toggle:hover{background:#F0F1F4;color:var(--primary-color)}
.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fixed.right-6.bottom-6{line-height:1;align-items:center;justify-content:center}


/* Modern weekday selector for recurring lessons */
#recurring-days{
  gap:8px;
  margin-top:10px;
}
#recurring-days label{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:8px 10px;
  border:1px solid #e5deed;
  border-radius:12px;
  background:#fff;
  color:#62566f;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  user-select:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
#recurring-days label:hover{
  border-color:#c8b5df;
  background:#faf7fd;
  transform:translateY(-1px);
}
#recurring-days label:has(.rec-day:checked){
  border-color:#4b1b70;
  background:#4b1b70;
  color:#fff;
  box-shadow:0 3px 8px rgba(75,27,112,.16);
}
#recurring-days .rec-day{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}
#recurring-days label:has(.rec-day:focus-visible){
  outline:3px solid #c8b5df;
  outline-offset:2px;
}
@media(max-width:420px){
  #recurring-days label{min-height:38px;padding:7px 4px;border-radius:10px}
}

/* Profile settings menu */
.profile-menu-button{color:var(--text-color);border:1px solid var(--border-color);transition:background .15s ease,transform .15s ease}
.profile-menu-button:hover{background:var(--accent-soft)!important;transform:translateY(-1px)}
.profile-menu-dropdown{background:var(--card-bg);border:1px solid var(--border-color);color:var(--text-color)}
.profile-menu-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;font-size:14px}
.profile-menu-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border-radius:10px;font-size:14px;font-weight:500;color:var(--text-color)}
.profile-menu-item:hover{background:var(--accent-soft)}
.profile-menu-item svg{width:19px;height:19px;flex-shrink:0}
.profile-menu-divider{height:1px;background:var(--border-color);margin:5px 3px}
.profile-logout{color:var(--red-text)}
:root[data-theme="dark"]{
 color-scheme:dark;--bg-color:#111018;--card-bg:#1d1a27;--text-color:#f2eef8;--text-secondary:#aaa2b7;
 --primary-color:#a879d4;--primary-hover:#8f5fbd;--accent-soft:#30283d;--border-color:#3c3549;
 --green-bg:#193529;--green-text:#9de0b6;--red-bg:#3b2228;--red-text:#ffaaa9;
}
:root[data-theme="dark"] body{background-color:var(--bg-color)!important;color:var(--text-color)!important}
:root[data-theme="dark"] .app-card{background:var(--card-bg)!important;color:var(--text-color);box-shadow:0 4px 20px rgba(0,0,0,.18)}
:root[data-theme="dark"] .text-slate-800,:root[data-theme="dark"] .text-slate-900,:root[data-theme="dark"] .font-bold,:root[data-theme="dark"] .font-semibold{color:var(--text-color)}
:root[data-theme="dark"] .text-slate-500,:root[data-theme="dark"] .text-slate-400{color:var(--text-secondary)!important}
:root[data-theme="dark"] .bg-slate-50,:root[data-theme="dark"] .bg-slate-100,:root[data-theme="dark"] .bg-white{background:#292433!important;color:var(--text-color)!important}
:root[data-theme="dark"] .bg-indigo-50,:root[data-theme="dark"] .bg-violet-50{background:#30263d!important;color:#d9b9f4!important}
:root[data-theme="dark"] .bg-indigo-600{background:var(--primary-color)!important;color:#17101f!important}
:root[data-theme="dark"] .text-indigo-700{color:#d9b9f4!important}
:root[data-theme="dark"] .soft-input{background:#17141e!important;color:var(--text-color)!important;border-color:#4a4158!important}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{color-scheme:dark}
:root[data-theme="dark"] .border,:root[data-theme="dark"] .border-t{border-color:var(--border-color)!important}
:root[data-theme="dark"] .bg-amber-100{background:#45351f!important;color:#f3d39a!important}
:root[data-theme="dark"] .bg-emerald-100{background:#193529!important;color:#9de0b6!important}
:root[data-theme="dark"] .bg-blue-100{background:#202e43!important;color:#a9ccff!important}
:root[data-theme="dark"] .bg-red-100{background:#3b2228!important;color:#ffaaa9!important}
:root[data-theme="dark"] .bg-slate-900{background:#09080d!important}
:root[data-theme="dark"] .modal-bg{background:rgba(0,0,0,.68)}
:root[data-theme="dark"] #student-sort-menu,:root[data-theme="dark"] #lesson-delete-dropdown{background:var(--card-bg)!important;color:var(--text-color);border-color:var(--border-color)!important}
:root[data-theme="dark"] .password-toggle{color:#c3b5d3}
:root[data-theme="dark"] .password-toggle:hover{background:#30283d;color:#e3c8ff}
/* Dashboard cards */
#tab-dashboard button.app-card{transition:transform .15s ease,box-shadow .15s ease}
#tab-dashboard button.app-card:hover{box-shadow:0 8px 24px rgba(67,44,122,.09)}


/* Keep student and group names readable on hover in both themes. */
#students-list .cursor-pointer:hover,
#groups-list .group-card > div:first-child:hover{
  background:var(--accent-soft)!important;
  color:var(--text-color)!important;
}
#students-list .cursor-pointer:hover .font-semibold,
#groups-list .group-card > div:first-child:hover button{
  color:var(--text-color)!important;
}
:root[data-theme="dark"] #students-list .cursor-pointer:hover,
:root[data-theme="dark"] #groups-list .group-card > div:first-child:hover{
  background:#30283d!important;
  color:#f2eef8!important;
}
:root[data-theme="dark"] #students-list .cursor-pointer:hover .font-semibold,
:root[data-theme="dark"] #groups-list .group-card > div:first-child:hover button{
  color:#f2eef8!important;
}

/* Public student cabinet: keep contrast readable in both themes. */
#student-public-view .student-summary-card{background:#F0F1F4;color:#30213f}
#student-public-view .student-summary-card .student-summary-label{color:#6f617e}
#student-public-view .student-price-card{background:#eee7f7;color:#30213f}
#student-public-view .student-price-card .student-summary-label{color:#6f617e}
#student-public-view .student-secondary-text{color:#6f617e}
:root[data-theme="dark"] #student-public-view .student-summary-card{background:#292433!important;color:#f2eef8!important}
:root[data-theme="dark"] #student-public-view .student-summary-card .student-summary-label{color:#c3b8d1!important}
:root[data-theme="dark"] #student-public-view .student-price-card{background:#30263d!important;color:#f2eef8!important}
:root[data-theme="dark"] #student-public-view .student-price-card .student-summary-label{color:#d0c1e0!important}
:root[data-theme="dark"] #student-public-view .student-secondary-text{color:#c3b8d1!important}
:root[data-theme="dark"] #student-public-view .text-emerald-600{color:#9de0b6!important}

/* Student cabinet contrast fixes */
#student-public-view .student-theme-panel{background:#F0F1F4!important;color:#30213f!important}
#student-public-view .student-theme-panel .text-slate-500{color:#6f617e!important}
:root[data-theme="dark"] #student-public-view .student-theme-panel{background:#292433!important;color:#f2eef8!important}
:root[data-theme="dark"] #student-public-view .student-theme-panel .text-slate-500{color:#c3b8d1!important}
:root[data-theme="dark"] #student-public-view .text-emerald-600{color:#9de0b6!important}


/* Calendar contrast fixes for dark mode, including touch/hover states. */
:root[data-theme="dark"] #day-lessons > button:hover,
:root[data-theme="dark"] #day-lessons > button:focus,
:root[data-theme="dark"] #day-lessons > button:active{
  background:#30283d!important;
  color:#f2eef8!important;
}
:root[data-theme="dark"] #day-lessons > button .text-slate-500{
  color:#c3b8d1!important;
}
:root[data-theme="dark"] #day-lessons > button[class*="text-indigo-600"]{
  color:#d9b9f4!important;
}
:root[data-theme="dark"] #day-lessons > button[class*="text-indigo-600"]:hover,
:root[data-theme="dark"] #day-lessons > button[class*="text-indigo-600"]:focus,
:root[data-theme="dark"] #day-lessons > button[class*="text-indigo-600"]:active{
  background:#30263d!important;
  color:#f2eef8!important;
}


#student-public-view .public-calendar-week-grid{grid-template-columns:repeat(7,minmax(105px,1fr));gap:7px;overflow-x:auto;padding-bottom:7px}
#student-public-view .public-calendar-week-grid .calendar-day-column{min-height:150px;padding:7px}
#student-public-view .public-calendar-week-grid .calendar-event-card{padding:7px;cursor:default}
#student-public-view .public-calendar-week-grid .calendar-event-card:hover{transform:none;border-color:var(--border-color)}
@media(max-width:640px){#student-public-view .public-calendar-week-grid{grid-template-columns:repeat(7,minmax(135px,1fr))}}

/* Weekly calendar: show every lesson directly in its day column. */
.calendar-week-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.calendar-day-column{
  min-width:0;
  min-height:190px;
  padding:10px;
  border:1px solid var(--border-color);
  border-radius:16px;
  background:var(--card-bg);
  display:flex;
  flex-direction:column;
}
.calendar-day-column.is-today{border-color:var(--primary-color)}
.calendar-day-column.is-selected{box-shadow:inset 0 0 0 1px var(--primary-color)}
.calendar-day-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  width:100%;
  padding:2px 2px 10px;
  border-bottom:1px solid var(--border-color);
  text-align:left;
}
.calendar-weekday{font-size:12px;color:var(--text-secondary);text-transform:capitalize}
.calendar-day-number{font-size:18px;font-weight:700}
.calendar-day-events{display:flex;flex-direction:column;gap:8px;padding-top:9px;flex:1}
.calendar-event-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  width:100%;
  padding:9px;
  border-radius:12px;
  border:1px solid var(--border-color);
  background:var(--accent-soft);
  text-align:left;
  overflow-wrap:anywhere;
}
.calendar-event-card:hover{border-color:var(--primary-color);transform:translateY(-1px)}
.calendar-event-card.is-cancelled > :not(.status){text-decoration:line-through;opacity:.58}
.calendar-event-card.is-cancelled{background:var(--card-bg);border-style:dashed}
.calendar-event-time{font-size:12px;font-weight:700;color:var(--primary-color)}
.calendar-event-title{font-size:12px;font-weight:650;line-height:1.35;color:var(--text-color)}
.calendar-event-title.is-cancelled{text-decoration:line-through;opacity:.65}
.calendar-event-meta,.calendar-event-comment{font-size:11px;line-height:1.35;color:var(--text-secondary)}
.calendar-event-card .status{white-space:normal;max-width:100%;font-size:10px}
.calendar-empty-day{font-size:11px;color:var(--text-secondary);opacity:.7;padding:5px 2px}
.calendar-add-day{font-size:11px;font-weight:600;color:var(--primary-color);text-align:left;padding:10px 2px 0;margin-top:auto}
.calendar-add-day:hover{text-decoration:underline}
:root[data-theme="dark"] .calendar-event-card{background:#30283d;border-color:#4a4158}
:root[data-theme="dark"] .calendar-event-time{color:#d9b9f4}
@media(max-width:900px){
  .calendar-week-grid{grid-template-columns:repeat(7,minmax(145px,1fr));overflow-x:auto;padding-bottom:8px}
}
@media(max-width:640px){
  .calendar-week-grid{grid-template-columns:repeat(7,minmax(210px,1fr));gap:8px}
  .calendar-day-column{min-height:170px}
}

.lesson-date-picker{position:absolute;z-index:80;top:100%;left:0;margin-top:6px;width:min(330px,calc(100vw - 48px));padding:14px;border:1px solid var(--border-color);border-radius:16px;background:var(--card-bg);color:var(--text-color);box-shadow:0 12px 32px rgba(0,0,0,.2)}
.lesson-date-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lesson-date-picker-head strong{text-transform:capitalize;font-size:14px}
.lesson-date-picker-head button{width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--text-color);font-size:22px}
.lesson-date-weekdays,.lesson-date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.lesson-date-weekdays{margin-bottom:5px;color:var(--text-secondary);font-size:11px;font-weight:600}
.lesson-date-weekdays span{padding:6px 0}
.lesson-date-cell{height:36px;border-radius:9px;font-size:13px;color:var(--text-color)}
.lesson-date-cell:hover{background:var(--accent-soft)}
.lesson-date-cell.is-outside{opacity:.35}
.lesson-date-cell.is-today{box-shadow:inset 0 0 0 1px var(--primary-color)}
.lesson-date-cell.is-selected{background:var(--primary-color);color:#fff;font-weight:700}
.lesson-date-picker-foot{display:flex;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--border-color)}
.lesson-date-picker-foot button{padding:6px 9px;border-radius:8px;color:var(--primary-color);font-size:13px;font-weight:600}

#lesson-save-dropdown button:hover,#lesson-delete-dropdown button:hover{background:var(--accent-soft);color:var(--text-color)}
#lesson-save-dropdown button,#lesson-delete-dropdown button{transition:background-color .15s ease,color .15s ease}

/* Keep teacher pages aligned with the header; scroll the week inside its own viewport. */
#teacher-app>.max-w-5xl{width:100%;max-width:64rem;min-width:0;box-sizing:border-box}
#teacher-app #tab-dashboard,#teacher-app #tab-calendar,#teacher-app #tab-students,#teacher-app #tab-admin{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#teacher-app #tab-calendar>.app-card{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#teacher-app #week-calendar.calendar-week-grid{display:grid;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
@media(max-width:900px){
 #teacher-app #week-calendar.calendar-week-grid{grid-template-columns:repeat(7,minmax(145px,1fr));overflow-x:auto;overscroll-behavior-x:contain}
}
@media(max-width:640px){
 #teacher-app #week-calendar.calendar-week-grid{grid-template-columns:repeat(7,minmax(210px,1fr))}
}

/* Restore the same centered content width as the teacher header. */
#teacher-app #teacher-main{
  display:block;
  width:100%;
  max-width:64rem;
  min-width:0;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
#teacher-app #teacher-main>section{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
#teacher-app #tab-calendar>.app-card{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  box-sizing:border-box;
}
#teacher-app #week-calendar{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
@media(max-width:900px){
  #teacher-app #week-calendar{
    display:grid;
    grid-template-columns:repeat(7,minmax(145px,1fr));
    overflow-x:auto;
    overscroll-behavior-x:contain;
  }
}
/* Compact dashboard header: keep the key overview visible without scrolling. */
#tab-dashboard .dashboard-heading{margin-bottom:12px!important}
#tab-dashboard .dashboard-greeting{padding:0!important;margin:0 0 6px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#tab-dashboard .dashboard-greeting p{margin:0 0 2px!important;line-height:1.2!important}
#tab-dashboard .dashboard-greeting h1{margin:0!important;line-height:1.2!important}
#tab-dashboard #dashboard-cards{margin-bottom:12px!important}
#tab-dashboard .dashboard-heading h2{line-height:1.2!important}

/* Compact week calendar cards: show time and learner on one line when space allows. */
.calendar-event-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:7px;row-gap:3px;overflow:visible;min-width:0}
.calendar-event-card .calendar-event-time{grid-column:1;white-space:nowrap;line-height:1.35}
.calendar-event-card .calendar-event-title{grid-column:2;min-width:0;overflow-wrap:anywhere;line-height:1.35}
.calendar-event-card .calendar-event-meta{grid-column:1/-1}
.calendar-event-card .calendar-event-comment{grid-column:1/-1}
.calendar-event-card .status{grid-column:1/-1;max-width:100%;width:max-content;min-width:0;line-height:1.25;padding:3px 7px;overflow-wrap:anywhere}
@media(max-width:1050px){.calendar-week-grid{overflow-x:auto;grid-template-columns:repeat(7,minmax(145px,1fr));padding-bottom:6px}}

/* Next UI: opt-in visual preview (?ui=next). No changes to application logic. */
:root.next-ui-preview{
  --bg-color:#f6f7fb;
  --card-bg:#ffffff;
  --text-color:#1b2340;
  --text-secondary:#68738b;
  --primary-color:#6255d9;
  --primary-hover:#4e42be;
  --accent-soft:#efedff;
  --border-color:#e6e9f2;
}
.next-ui-preview body{background:#f6f7fb!important}
.next-ui-preview #teacher-app>.max-w-5xl{
  max-width:1440px;
  padding:24px 32px;
}
.next-ui-preview #teacher-header{
  position:sticky;
  top:12px;
  z-index:40;
  border:1px solid #e6e9f2!important;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  box-shadow:0 8px 28px rgba(28,39,76,.06);
  border-radius:22px;
  padding:14px 22px;
}
.next-ui-preview #teacher-header img{width:48px;height:48px}
.next-ui-preview #teacher-header .teacher-nav{
  margin-right:12px;
  gap:4px;
  padding:5px;
  background:#f3f4fa;
  border-radius:14px;
}
.next-ui-preview #teacher-header .teacher-nav button{
  border-radius:10px;
  padding:10px 15px;
  font-size:13px;
  letter-spacing:.01em;
}
.next-ui-preview #teacher-header .teacher-nav button:not(.bg-indigo-600):hover{
  background:#fff!important;
}
.next-ui-preview #teacher-main{
  max-width:100%!important;
}
.next-ui-preview #teacher-main .app-card{
  border:1px solid #e6e9f2!important;
  border-radius:20px;
  box-shadow:0 4px 18px rgba(28,39,76,.035);
}
.next-ui-preview #tab-dashboard .dashboard-greeting h1{
  font-size:clamp(23px,2.4vw,32px);
  font-weight:750;
  letter-spacing:-.035em;
}
.next-ui-preview #tab-dashboard #dashboard-cards .app-card{
  transition:transform .18s ease,box-shadow .18s ease;
}
.next-ui-preview #tab-dashboard #dashboard-cards .app-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(28,39,76,.09);
}
.next-ui-preview .primary-btn,
.next-ui-preview .bg-indigo-600{
  background:#6255d9!important;
  color:#fff!important;
}
.next-ui-preview .soft-input{
  background:#fff!important;
  border:1px solid #e1e5ef!important;
  border-radius:12px;
}
.next-ui-preview .calendar-day-column{
  background:#fff;
  border-radius:14px;
  border-color:#e8eaf3;
}
.next-ui-preview .calendar-event-card{
  border-radius:10px;
  background:#f6f5ff;
}
.next-ui-preview #profile-menu{
  border:1px solid #e6e9f2;
  box-shadow:0 16px 40px rgba(28,39,76,.12);
}
@media(max-width:800px){
  .next-ui-preview #teacher-app>.max-w-5xl{padding:12px}
  .next-ui-preview #teacher-header{top:4px;padding:12px;flex-wrap:wrap}
  .next-ui-preview #teacher-header .teacher-nav{margin-right:0;width:100%;overflow-x:auto}
  .next-ui-preview #teacher-header .teacher-nav button{padding:9px 11px}
}
@media(max-width:640px){
  .next-ui-preview #teacher-header{position:relative}
  .next-ui-preview #teacher-header .teacher-nav{padding:4px!important;display:flex!important;gap:4px}
  .next-ui-preview #teacher-header .teacher-nav button{flex:1;min-width:0}
}

