/* QAJ visual refresh */
:root{
  --bg:#fbfaf5;
  --card:#fffefd;
  --text:#103730;
  --muted:#65736d;
  --line:#eadfce;
  --main:#0b604f;
  --main-dark:#073f34;
  --accent:#ddb024;
  --soft-main:#e8f5f1;
  --soft-accent:#fff4d3;
  --radius:22px;
  --shadow:none;
  --theme-bg:var(--bg);
  --theme-surface:var(--card);
  --theme-text:var(--text);
  --theme-muted:var(--muted);
  --theme-line:var(--line);
  --theme-primary:var(--main);
  --theme-primary-dark:var(--main-dark);
  --theme-accent:var(--accent);
  --theme-soft-primary:var(--soft-main);
  --theme-soft-accent:var(--soft-accent);
  --theme-primary-card-gradient:
    radial-gradient(circle at 92% 82%,rgba(255,255,255,.13),transparent 25%),
    linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 72%,#2563eb) 0%,color-mix(in srgb,var(--theme-primary) 84%,#1d4ed8) 45%,var(--theme-primary-dark) 100%);
  --bottom-nav-height:82px;
}
body{
  font-weight:650;
  background:#fbfaf5;
}
body:before{
  background-image:radial-gradient(rgba(11,96,79,.13) .8px,transparent .9px);
  background-size:31px 31px;
  opacity:.28;
}
h1,h2,.course-title{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--text);
  letter-spacing:0;
  line-height:.96;
}
h1{font-size:clamp(44px,9vw,62px)}
h2{font-size:clamp(32px,7vw,50px)}
h3{font-size:20px;color:var(--text)}
.eyebrow{
  color:#005b52;
  letter-spacing:.16em;
  font-size:14px;
}
.muted{color:var(--muted)}
.app-shell{padding-bottom:92px}
.app-header{
  position:static;
  height:0;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
.app-header>div{display:none}
.notification{
  position:fixed!important;
  top:max(14px,calc(env(safe-area-inset-top) + 14px))!important;
  right:max(14px,calc(env(safe-area-inset-right) + 14px))!important;
  bottom:auto!important;
  left:auto!important;
  z-index:2147483000!important;
  width:56px;
  height:56px;
  min-width:56px;
  min-height:56px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.48);
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.72),rgba(255,255,255,.18) 36%,rgba(255,255,255,.08) 68%),
    color-mix(in srgb,var(--theme-primary) 18%,transparent);
  color:var(--accent);
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 16px 34px color-mix(in srgb,var(--theme-primary) 24%,transparent),
    0 0 28px color-mix(in srgb,var(--theme-accent) 18%,transparent);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  pointer-events:auto;
  animation:bell-breathe 2.4s ease-in-out infinite;
  will-change:transform;
  transform-origin:center;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.notification:hover{
  transform:translateY(-2px) scale(1.04);
  border-color:rgba(255,255,255,.72);
}
.notification:before,
.notification:after{content:none}
.notification .bell-icon{
  position:static;
  inset:auto;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 26%,rgba(255,255,255,.78),transparent 26%),
    linear-gradient(145deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 72%,#b86e00));
  color:#fff8dc;
  font-size:22px;
  line-height:1;
  padding:0;
  box-shadow:
    0 2px 0 rgba(255,255,255,.35) inset,
    0 9px 22px color-mix(in srgb,var(--theme-accent) 36%,transparent);
}
.notification .bell-icon:before{
  content:"\1F514";
}
.notification span#notificationBadge,
.notification-badge{
  position:absolute;
  right:-5px;
  top:-4px;
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  padding:0 7px;
  border:3px solid #fffdf7;
  background:#ef4444;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 8px 16px rgba(239,68,68,.32);
}
@keyframes bell-breathe{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.055)}
}
.app-main{
  max-width:640px;
  padding:22px 16px 0;
}
.page-heading{
  position:relative;
  display:grid;
  gap:18px;
  margin:10px 0 24px;
  padding:24px 84px 22px 22px;
  border:1px solid rgba(234,223,206,.9);
  border-radius:30px;
  background:
    radial-gradient(circle at 100% 0,rgba(221,176,36,.16),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,251,240,.72));
  box-shadow:0 18px 45px rgba(11,96,79,.08);
  overflow:hidden;
}
.page-heading:before{
  content:"";
  position:absolute;
  right:20px;
  bottom:18px;
  width:74px;
  height:74px;
  border-radius:50%;
  background:linear-gradient(135deg,#e9f5f1,#fff4ce);
  opacity:.85;
}
.page-heading h1{
  margin:6px 0 6px;
  max-width:430px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(38px,7.6vw,54px);
  line-height:.98;
  text-wrap:balance;
}
.greeting-copy{
  position:relative;
  z-index:1;
}
.greeting-name{
  margin:0;
  color:#0b604f;
  font-size:clamp(21px,4.5vw,28px);
  line-height:1.15;
  font-weight:950;
}
.greeting-meta{
  display:inline-flex;
  width:fit-content;
  margin:14px 0 0;
  padding:8px 12px;
  border-radius:999px;
  background:#eef7f3;
  color:#315a51;
  font-size:13px;
  font-weight:950;
}
.lead{
  position:relative;
  z-index:1;
  margin:0;
  max-width:500px;
  padding:14px 16px;
  border-left:4px solid var(--accent);
  border-radius:16px;
  background:rgba(255,255,255,.64);
  color:#173f38;
  font-size:16px;
  line-height:1.5;
  font-weight:700;
}
.quick-section{
  margin:22px 0 18px;
}
.notice-card{
  margin:18px 0;
  padding:18px;
  border:1px solid #ead15e;
  border-radius:18px;
  background:#fff8dc;
  color:#8a5a00;
  font-weight:1000;
}
.action-tiles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:14px 0 18px;
}
.action-tiles button{
  min-height:104px;
  border-radius:22px;
  text-align:left;
  padding:18px;
}
.month-label{
  min-width:140px;
  opacity:1;
  color:var(--text);
  background:#fffefa;
}
.card,.hero-card,.item-card,.course-card,.stat-box,.profile-box,.date-bubble,.accordion{
  border-color:var(--line);
  box-shadow:none;
}
.card{
  background:rgba(255,254,251,.84);
  border-radius:22px;
  padding:20px;
}
.card:has(>.eyebrow:first-child+h2),
.card:has(.card-head .eyebrow){
  background:transparent;
  border-color:transparent;
  padding:0;
}
.hero-card{
  position:relative;
  overflow:hidden;
  border:0;
  border-radius:28px;
  padding:28px 28px 31px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.hero-card:after,.course-card:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-86px;
  width:190px;
  height:190px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.hero-card h2,.hero-card h3,.hero-card .course-title{color:#fff}
.hero-card h2{
  margin:25px 0 10px;
  font-size:clamp(34px,6.2vw,42px);
  line-height:.95;
}
.hero-card>p{
  margin:0 0 17px;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}
.hero-card .stat-box{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.18);
  color:#fff;
  min-height:64px;
  padding:12px 16px;
  border-radius:16px;
}
.hero-card .stat-box small{
  color:rgba(255,255,255,.72);
  font-size:11px;
}
.hero-card .stat-box strong{
  color:#fff;
  display:block;
  margin-top:2px;
  font-size:18px;
  line-height:1.18;
  white-space:nowrap;
}
.instructor-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.instructor-box>div{
  min-width:0;
}
.zoom-chip{
  flex:0 0 auto;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#2f8fff;
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(47,143,255,.25);
}
.zoom-chip span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#2f8fff;
  font-size:14px;
  font-weight:1000;
  line-height:1;
}
.zoom-chip:hover{
  transform:translateY(-1px);
}
.hero-top{align-items:flex-start}
.hero-top .pill.light{
  padding:9px 17px;
  font-size:12px;
}
.hero-top .ghost-btn{
  width:184px;
  min-height:50px;
  padding:9px 17px;
  background:rgba(255,255,255,.20);
  font-size:15px;
  text-align:center;
}
.live-stat-grid{
  position:relative;
  z-index:1;
  grid-template-columns:1fr 1fr;
  gap:13px;
}
.hero-actions:empty{
  display:none;
}
.pill{
  padding:7px 13px;
  font-size:12px;
  letter-spacing:0;
}
.pill.light,.pill.gold{
  background:var(--accent);
  color:#fff;
}
.pill.green,.status-done{
  background:#e7f2ef;
  color:#045749;
}
.pill.gray{
  background:#fff6df;
  color:#835900;
}
.pill.blue{
  background:#2f8fff;
  color:#fff;
}
.primary-btn,.secondary-btn,.ghost-btn,.mini-btn,.danger-btn{
  border-radius:999px;
  font-weight:1000;
  line-height:1.05;
}
.primary-btn{background:var(--main);color:#fff}
.secondary-btn{background:var(--accent);color:#fff}
.ghost-btn{
  background:rgba(255,255,255,.18);
  color:#fff;
  border:0;
}
.mini-btn{
  background:#fffdf8;
  border:1px solid var(--line);
  color:var(--main);
}
.stat-grid,.profile-grid,.summary-grid{gap:12px}
.stat-box,.profile-box{
  background:#f6f1e7;
  border-radius:14px;
}
.item-card,.course-card{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.82);
  border-radius:22px;
}
.course-card{
  min-height:190px;
  padding:28px 26px 24px;
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
  background:
    radial-gradient(circle at 94% 80%,rgba(11,96,79,.08),transparent 28%),
    rgba(255,255,255,.88);
  cursor:pointer;
  box-shadow:0 12px 30px rgba(11,96,79,.055);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.course-card:hover{
  transform:translateY(-2px);
  border-color:#e4cf99;
  box-shadow:0 16px 36px rgba(11,96,79,.09);
}
.course-title{
  margin:22px 0 10px;
  font-size:clamp(31px,6vw,40px);
  text-transform:none;
  letter-spacing:0;
}
.classes-head{
  position:relative;
  margin:10px 0 20px;
}
.classes-head>h2{
  margin:4px 0 10px;
}
.classes-head>.muted{
  max-width:500px;
  margin:0 0 18px;
  font-size:17px;
  font-weight:750;
}
.classes-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:18px 0 18px;
}
.classes-summary div{
  min-height:76px;
  padding:14px;
  border:1px solid rgba(234,223,206,.75);
  border-radius:18px;
  background:
    radial-gradient(circle at 90% 0,rgba(221,176,36,.10),transparent 38%),
    rgba(255,255,255,.82);
}
.classes-summary small{
  display:block;
  color:#68746f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.classes-summary strong{
  display:block;
  margin-top:4px;
  color:#073f34;
  font-size:27px;
  line-height:1;
  font-weight:1000;
}
.classes-list{
  gap:15px;
}
.course-card-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.course-level,.teacher-pill,.course-progress{
  display:inline-flex;
  width:fit-content;
  border-radius:999px;
  padding:8px 14px;
  font-size:12px;
  font-weight:1000;
  line-height:1;
  text-transform:uppercase;
}
.course-level{
  background:#e9f5f1;
  color:#075749;
}
.teacher-tools{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.teacher-pill{
  background:var(--accent);
  color:#fff;
}
.course-zoom{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:8px 14px;
  background:#2f8fff;
  color:#fff;
  font-size:12px;
  font-weight:1000;
  line-height:1;
  text-transform:uppercase;
  text-decoration:none;
}
.course-times{
  position:relative;
  z-index:1;
  color:#65736d;
  font-size:15px;
  font-weight:1000;
}
.course-progress{
  position:relative;
  z-index:1;
  margin-top:15px;
  background:#fff4d8;
  color:#8a5d00;
}
.course-theme-1{
  border-left-color:#0b604f;
  background:
    radial-gradient(circle at 94% 80%,rgba(47,143,255,.08),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,252,255,.88));
}
.course-theme-1 .course-level{background:#eef2ff;color:#3730a3}
.course-theme-1 .teacher-pill{background:#c47b16}
.course-theme-2{border-left-color:#2f8fff}
.course-theme-2 .course-level{background:#eaf3ff;color:#175cd3}
.course-theme-2 .teacher-pill{background:#0b604f}
.course-theme-3{border-left-color:#c45a2c}
.course-theme-3 .course-level{background:#fff1e8;color:#9a3412}
.course-theme-3 .teacher-pill{background:#8a5d00}
.other-courses-card{
  position:relative;
  overflow:hidden;
  margin:22px 0 8px;
  padding:28px 23px 24px;
  border-radius:30px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.other-courses-card:after{
  content:"";
  position:absolute;
  right:-28px;
  bottom:-62px;
  width:164px;
  height:164px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
}
.other-courses-card h2{
  position:relative;
  z-index:1;
  margin:18px 0 12px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:#fff;
  font-size:30px;
  line-height:1.1;
  font-weight:1000;
}
.other-courses-card p{
  position:relative;
  z-index:1;
  margin:0 0 18px;
  color:rgba(255,255,255,.75);
  font-size:19px;
  line-height:1.45;
  font-weight:700;
}
.other-courses-card button{
  position:relative;
  z-index:1;
  width:100%;
  min-height:58px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.20);
  color:#fff;
  font-size:18px;
  font-weight:1000;
}
.progress-fill{background:var(--accent)}
.quick-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  overflow:visible;
  padding-bottom:0;
}
.quick-btn,.story-btn{
  min-width:0;
  min-height:96px;
  border-radius:20px;
  background:#fffdfb;
  color:#063c35;
  border-color:#eadfce;
  padding:12px 5px 10px;
}
.quick-btn:before,.story-btn:before{
  content:"";
  display:block;
  width:44px;
  height:44px;
  margin:0 auto 8px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff7d9,#e6f3ef);
}
.quick-btn:before{display:none}
.quick-btn{
  display:grid;
  place-items:center;
  gap:8px;
}
.quick-btn span:last-child{
  font-size:12px;
  line-height:1;
}
.quick-icon{
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,#fff8df,#e9f4ef);
  color:var(--main);
  font-size:23px;
  font-weight:1000;
}
.quick-feed:before{content:"💬"}
.quick-classes:before{content:"🎓"}
.quick-calendar:before{content:"🗓️"}
.quick-records:before{content:"▶"}
.quick-quran:before{content:"☾"}
.progress-card{
  position:relative;
  overflow:hidden;
  padding:24px;
  border-color:#eadfce;
  background:
    radial-gradient(circle at 96% 0,rgba(221,176,36,.14),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,253,248,.88));
  box-shadow:0 14px 38px rgba(11,96,79,.07);
}
.progress-card:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-52px;
  width:128px;
  height:128px;
  border-radius:50%;
  background:rgba(11,96,79,.06);
}
.progress-card .card-head{
  position:relative;
  z-index:1;
  align-items:flex-start;
}
.progress-card h2{
  margin:2px 0 12px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:30px;
  line-height:1.05;
  font-weight:1000;
}
.progress-card .muted{
  margin:0 0 16px;
  color:#6a7671;
  font-size:17px;
  font-weight:800;
}
.progress-star{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#edf6f2;
  color:var(--main);
  font-size:16px;
  line-height:1;
}
.progress-card .progress-track{
  position:relative;
  z-index:1;
  height:9px;
  margin:1px 0 18px;
  background:#e8e1d4;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
}
.progress-card .progress-fill{
  background:linear-gradient(90deg,#0b604f,#087060);
}
.progress-card .progress-stats{
  position:relative;
  z-index:1;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.progress-card .stat-box{
  min-height:82px;
  background:linear-gradient(180deg,#f8f3e9,#f3eee4);
  border:1px solid rgba(234,223,206,.62);
  padding:14px 14px;
}
.progress-card .stat-box small{
  font-size:11px;
  color:#68746f;
}
.progress-card .stat-box strong{
  display:block;
  margin-top:5px;
  color:#073f34;
  font-size:30px;
  line-height:1;
}
.bottom-nav{
  left:8px;
  right:8px;
  bottom:8px;
  min-height:78px;
  border-radius:24px;
  background:var(--theme-primary-card-gradient);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 28px rgba(0,55,44,.18);
  padding:8px;
  align-items:center;
}
.nav-btn{
  min-height:62px;
  display:grid;
  place-items:center;
  gap:3px;
  border-radius:20px;
  color:rgba(255,255,255,.76);
  padding:7px 4px;
}
.nav-btn .nav-icon{
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:800;
}
.nav-btn span:last-child{
  font-size:12px;
  line-height:1;
}
.nav-btn.active{
  background:#fffefa;
  color:var(--theme-primary);
}
.sheet-backdrop{
  z-index:68;
  padding:36px 8px 124px;
  background:rgba(6,14,11,.38);
}
.more-sheet{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:min(610px,100%);
  max-height:calc(100vh - 150px);
  overflow:auto;
  margin:0 auto;
  border-radius:34px;
  padding:22px;
  background:#fffefa;
}
.sheet-head{margin-bottom:24px}
.sheet-head h2{margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:30px;line-height:1.1}
.sheet-head .muted{margin:0;font-weight:950}
.sheet-close{
  width:42px;
  height:42px;
  padding:0;
  border:0;
  background:#eef6f2;
  font-size:24px;
}
.brand-mark{
  width:66px;
  height:66px;
  border-radius:22px;
  background:var(--main);
  color:#fff;
}
.more-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.more-grid button{
  display:grid;
  grid-template-columns:56px 1fr 20px;
  align-items:center;
  gap:12px;
  min-height:76px;
  border-radius:22px;
  background:#fff;
}
.more-grid button:after{
  content:">";
  color:#69766f;
  font-size:23px;
  font-weight:1000;
}
.more-grid strong{display:block;font-size:18px;color:var(--text)}
.more-grid small{display:block;margin-top:3px;color:var(--muted);font-weight:900}
.more-icon{
  width:50px;
  height:50px;
  border-radius:16px;
  background:#eaf3f0;
  color:var(--main);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:1000;
}
.more-icon.gold{background:#fff8dc;color:#8c6a00}
.danger-lite strong{color:#c91f1f}
.calendar-weekdays span{font-size:14px}
.calendar-grid{gap:8px}
.calendar-day{
  min-height:92px;
  border:0;
  background:transparent;
  text-align:center;
  place-items:center;
  color:var(--text);
  font-size:20px;
  font-weight:1000;
}
.calendar-day.completed-only{
  background:#e7f6f0;
  border:1px solid #b8ded3;
}
.calendar-day.upcoming-day{
  background:#edf6ff;
  border:1px solid #b9d6ff;
}
.calendar-day.today{
  color:#fff;
  background:var(--main);
  outline:0;
}
.calendar-count{display:none}
.feed-head{
  margin:10px 0 18px;
}
.feed-head h2{
  margin:5px 0 20px;
}
.feed-stories{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:0 0 12px;
  scrollbar-width:none;
}
.feed-stories::-webkit-scrollbar{display:none}
.story-btn{
  flex:0 0 86px;
  min-height:auto;
  display:grid;
  justify-items:center;
  gap:8px;
  border:0;
  background:transparent;
  color:#073f34;
  padding:0;
  font-size:12px;
  font-weight:1000;
}
.story-btn:before{display:none}
.story-btn span{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border:3px solid transparent;
  border-radius:50%;
  background:linear-gradient(#fffdfb,#fffdfb) padding-box,linear-gradient(135deg,#ff7a1a,#e02cc9,#4f46e5) border-box;
}
.story-btn span:before{
  content:"";
  width:56px;
  height:56px;
  border-radius:50%;
  background:linear-gradient(135deg,#fff9dd,#edf6f1);
}
.story-own span:before{
  content:"+";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:32px;
  font-weight:1000;
}
.story-dhikr span:before{
  content:"☾";
  display:grid;
  place-items:center;
  color:#8a6a00;
  font-size:30px;
  font-weight:1000;
}
.story-jummah span:before{
  content:"J";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:29px;
  font-weight:1000;
}
.story-news span:before{
  content:"Q";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:29px;
  font-weight:1000;
}
.story-recent span:before{
  content:"↻";
  display:grid;
  place-items:center;
  color:#6a54d9;
  font-size:28px;
  font-weight:1000;
}
.feed-list{
  display:grid;
  gap:16px;
}
.feed-post{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:25px;
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 32px rgba(11,96,79,.06);
}
.feed-post-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 17px 13px;
}
.feed-avatar{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--main);
  color:#fff;
  font-size:20px;
  font-weight:1000;
}
.feed-post-head h3{
  margin:0 0 4px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:17px;
  font-weight:1000;
  line-height:1.15;
}
.feed-post-head p{
  margin:0;
  color:#6a7671;
  font-size:13px;
  font-weight:800;
}
.feed-image{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-top:1px solid #f0e6d8;
  border-bottom:1px solid #f0e6d8;
}
.feed-text-card{
  min-height:280px;
  display:grid;
  place-items:center;
  padding:44px 42px;
  background:
    radial-gradient(circle at 84% 22%,rgba(255,255,255,.12),transparent 26%),
    linear-gradient(135deg,var(--main),var(--main-dark));
  color:#fff;
  text-align:center;
  font-size:24px;
  line-height:1.45;
  font-weight:1000;
}
.feed-actions{
  display:grid;
  grid-template-columns:42px 42px 1fr;
  align-items:center;
  padding:9px 11px 2px;
}
.feed-actions button{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#073f34;
  font-size:25px;
  font-weight:900;
}
.feed-actions button.active{
  color:#d92d20;
}
.feed-caption{
  padding:0 17px 17px;
}
.feed-caption strong{
  display:block;
  margin:0 0 7px;
  color:#073f34;
  font-size:14px;
}
.feed-caption p{
  margin:0 0 10px;
  color:#173f38;
  line-height:1.45;
  font-weight:700;
}
.feed-comment-link{
  border:0;
  background:transparent;
  padding:0;
  color:#6a7671;
  font-size:14px;
  font-weight:850;
}
.feed-compose-fab{
  position:fixed;
  right:max(18px,calc(env(safe-area-inset-right) + 18px));
  bottom:calc(96px + env(safe-area-inset-bottom));
  z-index:60;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:var(--main);
  color:#fff;
  box-shadow:0 16px 34px rgba(11,96,79,.28);
  font-size:34px;
  font-weight:800;
  line-height:1;
}
.messages-compose-fab{
  position:fixed;
  right:max(18px,calc(env(safe-area-inset-right) + 18px));
  bottom:calc(var(--bottom-nav-height,82px) + 18px + env(safe-area-inset-bottom));
  z-index:60;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:var(--theme-primary-card-gradient);
  color:#fff;
  box-shadow:0 16px 34px color-mix(in srgb,var(--theme-primary) 30%,transparent);
  font-size:34px;
  font-weight:900;
  line-height:1;
  transition:transform .16s ease, box-shadow .16s ease;
}
.messages-compose-fab:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 20px 42px color-mix(in srgb,var(--theme-primary) 38%,transparent);
}
.modal-card{
  border-radius:30px;
  background:#fffefa;
}
.modal-root:has(.notification-popover){
  z-index:2147482000;
  place-items:start end;
  padding:
    max(82px,calc(env(safe-area-inset-top) + 82px))
    max(14px,calc(env(safe-area-inset-right) + 14px))
    calc(var(--bottom-nav-height,82px) + 18px)
    14px;
}
.modal-card:has(.notification-popover){
  width:min(420px,calc(100vw - 28px));
  max-height:min(70vh,520px);
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.58);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 0, color-mix(in srgb,var(--theme-accent) 18%,transparent), transparent 32%),
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,253,247,.84));
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 26px 64px rgba(22,37,32,.22);
  backdrop-filter:blur(18px) saturate(1.1);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
}
.modal-card:has(.notification-popover)>.modal-head{
  display:none;
}
.notification-popover{
  display:grid;
  max-height:min(70vh,520px);
  color:var(--theme-text);
}
.notification-popover-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(234,223,206,.72);
  background:rgba(255,253,247,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.notification-popover-head h3{
  margin:0 0 3px;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:24px;
  line-height:1.05;
}
.notification-popover-head p{
  margin:0;
  color:var(--theme-muted);
  font-size:13px;
  font-weight:800;
}
.notification-close-btn{
  width:38px;
  height:38px;
  flex:0 0 auto;
  border:1px solid var(--theme-line);
  border-radius:50%;
  background:#fffdf8;
  color:var(--theme-primary);
  font-size:18px;
  font-weight:1000;
  box-shadow:0 8px 18px rgba(11,96,79,.06);
}
.notification-list{
  overflow-y:auto;
  display:grid;
  padding:6px 0;
}
.notification-row{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 10px;
  gap:11px;
  align-items:center;
  width:100%;
  border:0;
  border-bottom:1px solid rgba(234,223,206,.68);
  background:transparent;
  color:var(--theme-text);
  padding:13px 18px;
  text-align:left;
  transition:background .15s ease, transform .15s ease;
}
.notification-row:hover{
  background:rgba(255,255,255,.52);
}
.notification-row-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:15px;
  font-weight:1000;
}
.notification-row.unread .notification-row-icon{
  background:linear-gradient(145deg,var(--theme-primary),var(--theme-primary-dark));
  color:#fff;
}
.notification-row-main{
  display:grid;
  min-width:0;
  gap:4px;
}
.notification-row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.notification-row-top strong{
  min-width:0;
  color:var(--theme-text);
  font-size:14px;
  font-weight:1000;
  line-height:1.25;
}
.notification-row-top em{
  flex:0 0 auto;
  color:var(--theme-muted);
  font-size:11px;
  font-style:normal;
  font-weight:850;
}
.notification-row-main small{
  color:var(--theme-muted);
  font-size:12px;
  font-weight:760;
  line-height:1.35;
}
.notification-row-type{
  justify-self:start;
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:var(--theme-primary);
  padding:4px 8px;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.notification-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.12);
}
.notification-clear-btn{
  margin:10px 18px 18px;
  min-height:42px;
  border:1px solid rgba(239,68,68,.18);
  border-radius:16px;
  background:rgba(254,226,226,.72);
  color:#b42318;
  font-size:13px;
  font-weight:1000;
}
.notification-empty{
  display:grid;
  justify-items:center;
  gap:8px;
  padding:34px 24px 32px;
  text-align:center;
}
.notification-empty-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:var(--theme-soft-accent);
  color:var(--theme-accent);
}
.notification-empty-icon:before{
  content:"\1F514";
  font-size:26px;
}
.notification-empty strong{
  color:var(--theme-text);
  font-size:18px;
  font-weight:1000;
}
.notification-empty p{
  margin:0;
  color:var(--theme-muted);
  font-weight:800;
  line-height:1.4;
}
.modal-card:has(.bubble-grid),
.modal-card:has(.class-entry-recording-section){
  max-height:calc(100vh - var(--bottom-nav-height,82px) - 40px);
  overflow-y:auto;
  margin-bottom:calc(var(--bottom-nav-height,82px) + 12px);
  padding-bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));
}
.class-entry-recording-section{
  display:grid;
  gap:12px;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:#fffefa;
  padding:16px;
}
.class-entry-recording-section h3{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:20px;
}
.recording-title-line{
  margin:0;
  color:var(--theme-text);
  font-weight:950;
}
.class-entry-recording-section .secondary-btn{
  justify-self:start;
  background:var(--theme-accent);
  color:#fff;
}
.class-entry-resource-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.class-entry-resource-links .secondary-btn{
  background:#f6f2e8;
  color:var(--theme-primary);
  min-height:auto;
  padding:8px 11px;
  font-size:12px;
}
.profile-page{
  display:grid;
  gap:16px;
}
.profile-hero-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid var(--theme-line);
  border-radius:30px;
  background:
    radial-gradient(circle at 92% 12%,rgba(156,200,255,.22),transparent 30%),
    var(--theme-primary-card-gradient);
  color:#fff;
  padding:22px;
  box-shadow:0 18px 38px rgba(11,96,79,.14);
}
.profile-hero-card:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-62px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
}
.profile-hero-card>*{
  position:relative;
  z-index:1;
}
.profile-avatar{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:24px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:25px;
  font-weight:1000;
}
.profile-hero-card .eyebrow{
  color:var(--theme-accent);
}
.profile-hero-card h2{
  margin:2px 0 10px;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:30px;
  line-height:1.06;
}
.profile-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.profile-hero-meta span{
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
}
.profile-hero-meta .status-dot{
  background:var(--theme-accent);
  color:#1f1a00;
  text-transform:capitalize;
}
.profile-section-card{
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:rgba(255,255,255,.92);
  padding:18px;
  box-shadow:0 12px 28px rgba(11,96,79,.06);
}
.profile-accordion{
  display:grid;
  gap:10px;
}
.profile-accordion-item{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 14%,rgba(221,176,36,.08),transparent 30%),
    rgba(255,255,255,.94);
  box-shadow:0 10px 24px rgba(11,96,79,.045);
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.profile-accordion-item:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 30px rgba(11,96,79,.08);
}
.profile-accordion-item.open{
  border-color:rgba(221,176,36,.42);
  box-shadow:0 16px 34px rgba(11,96,79,.08);
}
.profile-accordion-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:17px 18px 16px;
  text-align:left;
  cursor:pointer;
}
.profile-accordion-copy{
  display:grid;
  min-width:0;
  gap:5px;
}
.profile-accordion-copy .section-pill{
  justify-self:start;
  margin:0 0 3px;
}
.profile-accordion-copy strong{
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:26px;
  font-weight:1000;
  line-height:1.02;
}
.profile-accordion-copy small{
  color:var(--theme-muted);
  font-size:15px;
  font-weight:700;
  line-height:1.3;
}
.profile-accordion-side{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.profile-accordion-chevron{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:0;
  transition:transform .18s ease;
}
.profile-accordion-chevron:before{
  content:"v";
  font-size:15px;
  font-weight:1000;
  line-height:1;
}
.profile-accordion-item.open .profile-accordion-chevron{
  transform:rotate(180deg);
}
.profile-accordion-body{
  display:none;
  border-top:1px solid rgba(234,223,206,.75);
  padding:16px 18px 18px;
}
.profile-accordion-item.open .profile-accordion-body{
  display:block;
}
.profile-accordion-body .profile-teaser-card{
  margin:0;
  box-shadow:none;
}
.profile-edit-bubble{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:var(--theme-primary);
  color:#fff;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 12px 22px rgba(11,96,79,.16);
}
.profile-color-preview{
  display:flex;
  align-items:center;
  gap:0;
  padding:5px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--theme-line);
  box-shadow:0 8px 18px rgba(11,96,79,.08);
}
.profile-color-preview i,
.profile-color-preview b{
  display:block;
  width:28px;
  height:28px;
  border-radius:50%;
  border:2px solid #fff;
}
.profile-color-preview i{
  background:var(--theme-primary);
}
.profile-color-preview b{
  margin-left:-5px;
  background:var(--theme-accent);
}
.profile-section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.profile-section-head h3,
.customization-card summary{
  margin:0 0 5px;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  font-weight:1000;
}
.profile-section-head p{
  margin:0;
}
.profile-readonly-details{
  display:grid;
  gap:0;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:rgba(255,253,248,.72);
  overflow:hidden;
}
.profile-readonly-details div{
  display:grid;
  grid-template-columns:minmax(92px,.75fr) minmax(0,1.25fr);
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border-bottom:1px solid rgba(234,223,206,.72);
}
.profile-readonly-details div:last-child{
  border-bottom:0;
}
.profile-readonly-details span{
  color:var(--theme-text);
  font-size:13px;
  font-weight:1000;
}
.profile-readonly-details strong{
  min-width:0;
  color:var(--theme-primary);
  font-size:14px;
  font-weight:1000;
  word-break:break-word;
}
.profile-edit-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.profile-edit-form-hidden{
  display:none;
}
.profile-accordion-item.is-editing .profile-readonly-details{
  display:none;
}
.profile-accordion-item.is-editing .profile-edit-form-hidden{
  display:grid;
}
.profile-edit-form label,
.profile-password-form,
.custom-select-label,
.custom-color-grid label{
  display:grid;
  gap:7px;
}
.profile-edit-form label span,
.custom-select-label span,
.custom-color-grid label span{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.profile-edit-form textarea{
  min-height:88px;
}
.profile-edit-form button,
.profile-edit-form .message{
  grid-column:1/-1;
}
.profile-edit-form [disabled]{
  opacity:.58;
  background:#f7f2e8;
}
.profile-password-form{
  gap:11px;
}
.customization-card details{
  display:grid;
  gap:12px;
}
.customization-card summary{
  cursor:pointer;
  list-style:none;
}
.customization-card summary::-webkit-details-marker{
  display:none;
}
.customization-body{
  display:grid;
  gap:14px;
}
.custom-note{
  margin:0;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:12px;
  font-size:13px;
  font-weight:850;
}
.theme-presets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.theme-preset{
  display:grid;
  grid-template-columns:28px 28px minmax(0,1fr);
  align-items:center;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:#fffdf8;
  color:var(--theme-text);
  padding:12px;
  text-align:left;
  font-size:13px;
  font-weight:950;
}
.theme-preset span{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.08);
}
.custom-color-grid{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  align-items:end;
  gap:10px;
}
.custom-color-grid input{
  min-height:46px;
  padding:5px;
}
.profile-request-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.profile-request-grid button{
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:#fffdf8;
  color:var(--theme-primary);
  padding:14px;
  text-align:left;
  font-weight:1000;
}
.profile-teaser-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(156,200,255,.42);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 18%,rgba(156,200,255,.28),transparent 30%),
    linear-gradient(135deg,rgba(17,24,39,.96),rgba(20,83,98,.92));
  color:#fff;
  padding:22px;
  box-shadow:0 18px 40px rgba(17,24,39,.16);
}
.profile-teaser-card span{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:16px;
  background:rgba(255,255,255,.14);
}
.profile-teaser-card h3{
  margin:14px 0 8px;
  color:#fff;
  font-size:24px;
}
.profile-teaser-card p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.55;
  font-weight:800;
}
.home-board{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:12px;
  margin-bottom:18px;
  padding:24px 22px 20px;
  border:1px solid var(--theme-line);
  border-radius:30px;
  background:
    radial-gradient(circle at 92% 14%,rgba(221,176,36,.18),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,253,246,.9));
}
.home-board:after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-52px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:rgba(11,96,79,.07);
}
.home-board-copy,.home-board blockquote,.student-selector{position:relative;z-index:1}
.home-board h1{
  max-width:none;
  margin:8px 0 6px;
  font-size:clamp(34px,7.5vw,58px);
  white-space:nowrap;
}
.home-board .greeting-name{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin:0;
  color:var(--theme-primary);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(21px,4.4vw,30px);
  font-style:italic;
  font-weight:900;
  line-height:1.1;
}
.home-board .greeting-name strong{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:#31584f;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:12px;
  font-style:normal;
  font-weight:1000;
}
.home-board blockquote{
  max-width:none;
  margin:0;
  padding:12px 15px;
  border-left:4px solid var(--theme-accent);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  color:var(--theme-text);
  font-size:14px;
  font-weight:850;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.student-selector{
  justify-self:start;
  display:grid;
  gap:6px;
  min-width:min(100%,320px);
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.student-selector select{
  width:100%;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-surface);
  color:var(--theme-text);
  padding:12px 14px;
  font-size:15px;
  font-weight:900;
}
.next-class-card{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:16px;
  margin-bottom:18px;
  padding:24px;
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.next-class-card:after{
  content:"";
  position:absolute;
  right:-35px;
  bottom:-58px;
  width:175px;
  height:175px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.next-class-card>*{position:relative;z-index:1}
.next-class-main h2{
  margin:16px 0 6px;
  color:#fff;
  font-size:clamp(34px,7vw,50px);
}
.next-class-main p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:19px;
  font-weight:900;
}
.next-class-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.next-class-details div{
  min-height:66px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.15);
}
.next-class-details small{
  display:block;
  margin-bottom:5px;
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.next-class-details strong{
  color:#fff;
  font-size:18px;
  line-height:1.15;
}
.next-class-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.next-class-actions .primary-btn{
  width:auto;
  min-height:44px;
  padding:0 20px;
  background:#fff;
  color:var(--theme-primary);
}
.zoom-chip.wide{
  width:auto;
  height:44px;
  padding:0 16px;
  gap:7px;
  text-decoration:none;
}
.home-zoom-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  background:#2f8fff;
  color:#fff;
  padding:0 18px;
  font-weight:1000;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(47,143,255,.26);
}
.home-zoom-btn span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#2f8fff;
  font-size:13px;
  line-height:1;
}
.home-zoom-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(47,143,255,.34);
}
.empty-next{
  grid-template-columns:1fr auto;
  align-items:center;
}
.home-actions{
  margin-bottom:18px;
}
.section-title-row h2{
  margin:5px 0 14px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.1;
}
.home-action-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.home-action-card{
  min-height:134px;
  display:grid;
  align-content:start;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:22px;
  background:rgba(255,255,255,.9);
  color:var(--theme-text);
  padding:18px;
  text-align:left;
  box-shadow:0 16px 34px rgba(11,96,79,.08);
}
.home-action-card .action-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--theme-soft-accent),var(--theme-soft-primary));
  color:var(--theme-primary);
  font-size:20px;
  font-weight:1000;
}
.home-action-card strong{
  color:var(--theme-text);
  font-size:17px;
  line-height:1.15;
}
.home-action-card small{
  color:var(--theme-muted);
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
.home-easy-access-card{
  position:relative;
  overflow:hidden;
  margin-bottom:18px;
  padding:20px;
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,172,70,.34),transparent 30%),
    linear-gradient(135deg,rgba(255,248,229,.76),rgba(255,255,255,.54));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:
    0 2px 0 rgba(255,255,255,.95) inset,
    0 18px 38px rgba(11,96,79,.14),
    0 5px 14px rgba(221,176,36,.10);
  transform:translateY(-2px);
}
.home-easy-access-card:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,0) 46%);
  pointer-events:none;
}
.home-easy-access-card>*{
  position:relative;
  z-index:1;
}
.section-pill{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:6px 11px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.home-easy-access-card h2{
  margin:12px 0 6px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:25px;
  line-height:1.1;
}
.easy-action-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(95px,1fr));
  gap:10px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.easy-action-row::-webkit-scrollbar{display:none}
.easy-action-tile{
  min-width:95px;
  min-height:106px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:7px;
  border:1px solid var(--theme-line);
  border-radius:19px;
  background:#fffdf8;
  color:var(--theme-text);
  padding:12px 7px;
  text-align:center;
  box-shadow:0 8px 18px rgba(11,96,79,.05);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.easy-action-tile:hover{
  transform:translateY(-3px) scale(1.015);
  box-shadow:0 16px 30px rgba(11,96,79,.13);
}
.easy-action-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:23px;
  font-weight:1000;
}
.easy-action-tile strong{
  color:var(--theme-text);
  font-size:14px;
  line-height:1.1;
}
.easy-action-tile small{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:900;
}
.easy-action-recordings,
.easy-action-messages{
  background:var(--theme-primary-card-gradient);
  border-color:var(--theme-primary);
}
.easy-action-recordings .easy-action-icon,
.easy-action-messages .easy-action-icon{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.easy-action-recordings strong,
.easy-action-recordings small,
.easy-action-messages strong,
.easy-action-messages small{
  color:#fff;
}
.easy-action-payments{
  border:3px solid var(--theme-accent);
  box-shadow:0 14px 30px color-mix(in srgb,var(--theme-accent) 26%,transparent);
}
.easy-action-payments .easy-action-icon{
  background:var(--theme-soft-accent);
  color:var(--theme-primary);
}
.announcement-preview.card{
  padding:22px;
}
.announcement-preview .card-head h2{
  margin-top:4px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.1;
}
.compact-list{
  gap:10px;
}
.compact-list .item-card{
  padding:16px 18px;
  border-radius:20px;
}
.compact-list .item-card h3{
  margin:9px 0 6px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:18px;
}
.compact-list .item-card p{
  margin:0;
}
.recordings-page{
  display:grid;
  gap:16px;
}
.recordings-head{
  padding:4px 4px 0;
}
.recordings-head h2{
  margin:6px 0 10px;
}
.recordings-head .muted{
  max-width:620px;
  margin:0;
  font-size:17px;
  line-height:1.55;
}
.recording-player,
.recording-player-modal{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr);
  border:1px solid var(--theme-line);
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.modal-card:has(.recording-player-modal){
  width:min(1120px,calc(100vw - 22px));
  max-height:calc(100vh - 22px);
  overflow:auto;
  padding:14px;
  border-radius:30px;
}
.modal-card:has(.recording-player-modal) .modal-head{
  padding:6px 6px 12px;
}
.modal-card:has(.recording-player-modal) .modal-head h2{
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  line-height:1.12;
}
.recording-player-frame{
  min-height:min(68vh,620px);
  background:#062d27;
}
.recording-player-frame iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:min(68vh,620px);
  border:0;
  background:#062d27;
}
.recording-player-info{
  position:relative;
  overflow:hidden;
  display:grid;
  align-content:center;
  gap:12px;
  padding:26px;
}
.recording-player-info:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-64px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.recording-player-info>*{position:relative;z-index:1}
.recording-player-info .eyebrow{
  color:#f4d257;
}
.recording-player-info h2{
  margin:0;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.08;
}
.recording-player-info p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-weight:850;
}
.recording-player-actions .primary-btn{
  width:auto;
  display:inline-flex;
  min-height:44px;
  padding:0 18px;
  background:#fff;
  color:var(--theme-primary);
  text-decoration:none;
}
.empty-player{
  min-height:220px;
  align-items:center;
  padding:28px;
}
.recordings-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.recordings-summary span{
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:var(--theme-muted);
  padding:9px 13px;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.recording-batch{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:rgba(255,255,255,.88);
}
.recording-batch-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px 14px;
  border-bottom:1px solid rgba(234,223,206,.7);
}
.recording-batch-head h3{
  margin:10px 0 0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  line-height:1.15;
}
.recording-batch-head small{
  color:var(--theme-muted);
  font-weight:950;
  white-space:nowrap;
}
.recording-list{
  display:grid;
}
.recording-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:start;
  gap:14px;
  margin:12px;
  padding:18px;
  border:1px solid var(--theme-line);
  border-left:5px solid var(--theme-primary);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(11,96,79,.05);
}
.recording-row:first-child{
  border-top:1px solid var(--theme-line);
}
.recording-play-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:18px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:24px;
  font-weight:1000;
}
.recording-date span,
.recording-main small{
  display:block;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:950;
}
.recording-date strong{
  display:block;
  margin-top:5px;
  color:var(--theme-text);
  font-size:16px;
  line-height:1.1;
}
.recording-title{
  display:block;
  margin:9px 0 3px;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:0;
  text-align:left;
  font-size:19px;
  font-weight:1000;
  line-height:1.18;
}
.recording-title:hover{
  color:var(--theme-primary);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.recording-main small{
  margin-top:5px;
}
.recording-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:12px;
}
.recording-meta-row strong{
  color:var(--theme-primary);
  font-size:13px;
}
.recording-docs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.recording-docs a,
.recording-docs span{
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:#795a00;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
}
.recording-docs span{
  background:#f7f2e8;
  color:var(--theme-muted);
}
.direct-link{
  text-decoration:none;
  white-space:nowrap;
}
.recording-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  justify-content:stretch;
  gap:8px;
}
.play-recording{
  background:var(--theme-primary);
  color:#fff;
  flex:1 1 220px;
  min-height:42px;
}
.recording-actions .direct-link{
  min-height:42px;
}
.payments-page{
  display:grid;
  gap:16px;
}
.payments-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  padding:2px 4px 0;
}
.payments-head h2{
  margin:6px 0 0;
}
.payment-student-switcher{
  display:grid;
  gap:6px;
  min-width:220px;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.payment-student-switcher select{
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-surface);
  color:var(--theme-text);
  padding:12px 14px;
  font-size:14px;
  font-weight:900;
}
.payment-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:16px;
  margin-bottom:16px;
  padding:24px;
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.payment-hero:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-62px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.payment-hero>*{position:relative;z-index:1}
.payment-hero h2{
  margin:16px 0 8px;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:34px;
  line-height:1;
}
.payment-hero p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:16px;
  font-weight:850;
}
.payment-hero .primary-btn{
  background:#fff;
  color:var(--theme-primary);
}
.payment-overview{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.payment-overview div{
  min-height:76px;
  padding:14px 16px;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:rgba(247,242,232,.82);
}
.payment-overview small,
.payment-detail-card small{
  display:block;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.payment-overview strong{
  display:block;
  margin-top:7px;
  color:var(--theme-text);
  font-size:24px;
  line-height:1;
}
.payment-section{
  display:grid;
  gap:12px;
  margin-top:18px;
}
.payment-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-inline:2px;
}
.payment-section-head h3{
  margin:0 0 5px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:23px;
}
.payment-section-head p{
  margin:0;
}
.payment-due-list,
.payment-receipt-list{
  display:grid;
  gap:12px;
}
.payment-due-card,
.payment-receipt-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  padding:18px;
  border:1px solid var(--theme-line);
  border-left:5px solid var(--theme-accent);
  border-radius:22px;
  background:rgba(255,255,255,.9);
}
.payment-due-card h3,
.payment-receipt-card h3{
  margin:12px 0 8px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
}
.payment-due-card>strong{
  color:var(--theme-primary);
  font-size:20px;
  white-space:nowrap;
}
.payment-due-actions{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(120px,.45fr);
  gap:10px;
}
.payment-receipt-card{
  border-left-color:var(--theme-line);
}
.payment-receipt-card .secondary-btn{
  align-self:center;
  white-space:nowrap;
}
.payment-submit-form select,
.payment-submit-form input,
.payment-submit-form textarea{
  font-weight:850;
}
.payment-month-list{
  display:grid;
  gap:9px;
}
.payment-month-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:#fffdf8;
}
.payment-month-option input{
  width:18px;
  height:18px;
}
.payment-month-option span{
  display:grid;
  gap:3px;
}
.payment-month-option strong{
  color:var(--theme-text);
}
.payment-month-option small{
  color:var(--theme-muted);
  font-weight:900;
}
.payment-detail-card{
  display:grid;
  gap:12px;
}
.payment-detail-card div{
  padding:14px;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:#fffdf8;
}
.payment-detail-card strong{
  display:block;
  margin-top:5px;
  color:var(--theme-text);
}

/* Simplified recordings accordion */
.recording-batch-card{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(11,96,79,.05);
}
.recording-batch-card+.recording-batch-card{
  margin-top:12px;
}
.recording-batch-card .recording-batch-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:0;
  background:transparent;
  padding:18px;
  text-align:left;
}
.recording-batch-card .recording-batch-head h3{
  margin:10px 0 0;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:20px;
  line-height:1.15;
}
.batch-pill{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:#7b5900;
  padding:5px 10px;
  font-size:11px;
  font-weight:1000;
}
.recording-batch-meta{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--theme-muted);
  font-size:12px;
  white-space:nowrap;
}
.recording-batch-meta strong{
  color:var(--theme-primary);
}
.recording-batch-meta .chevron{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:18px;
  transition:transform .18s ease;
}
.recording-batch-card.is-open .chevron{
  transform:rotate(180deg);
}
.recording-batch-body{
  border-top:1px solid rgba(234,223,206,.75);
}
.recording-batch-body .recording-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  margin:0;
  padding:13px 18px;
  border:0;
  border-top:1px solid rgba(234,223,206,.58);
  border-left:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.recording-batch-body .recording-row:first-child{
  border-top:0;
}
.recording-play-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:13px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:16px;
  font-weight:1000;
}
.recording-row-main{
  min-width:0;
}
.recording-batch-body .recording-title{
  display:block;
  width:100%;
  margin:0;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:0;
  text-align:left;
  font-size:15px;
  font-weight:1000;
  line-height:1.25;
}
.recording-batch-body .recording-title:hover{
  color:var(--theme-primary);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.recording-row-main small{
  display:block;
  margin-top:4px;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
}
.recording-resources{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:7px;
}
.recording-resources a{
  color:var(--theme-primary);
  font-size:12px;
  font-weight:950;
  text-decoration:underline;
  text-underline-offset:3px;
}
.recording-direct-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:#fffdf8;
  color:var(--theme-primary);
  padding:0 12px;
  font-size:12px;
  font-weight:1000;
  text-decoration:none;
  white-space:nowrap;
}
.recording-limit-note{
  margin:0;
  padding:10px 18px 14px 67px;
  border-top:1px solid rgba(234,223,206,.58);
  color:var(--theme-muted);
  font-size:12px;
  font-weight:900;
}
@media(max-width:600px){
  .app-main{padding:18px 14px 0}
  .page-heading{padding:22px 72px 20px 18px;border-radius:28px}
  .page-heading h1{font-size:43px}
  .greeting-name{font-size:24px}
  .lead{font-size:15px;padding:12px 14px}
  .notification{top:max(12px,calc(env(safe-area-inset-top) + 12px))!important;right:max(12px,calc(env(safe-area-inset-right) + 12px))!important}
  .card{padding:18px}
  .hero-card{padding:27px 20px 30px}
  .hero-card h2{font-size:38px;margin-top:25px}
  .hero-card>p{font-size:18px;margin-bottom:16px}
  .hero-card .stat-box{min-height:64px;padding:12px 14px}
  .hero-card .stat-box strong{font-size:17px;white-space:nowrap}
  .live-stat-grid{grid-template-columns:1fr 1fr;gap:12px}
  .hero-top{gap:10px}
  .hero-top .ghost-btn{max-width:184px}
  .quick-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .quick-btn{min-height:96px;padding-inline:3px}
  .quick-icon{width:39px;height:39px;font-size:20px}
  .quick-btn span:last-child{font-size:11px}
  .course-card{padding:26px 22px 22px;min-height:182px}
  .classes-summary{gap:8px}
  .classes-summary div{min-height:70px;padding:12px 10px}
  .classes-summary small{font-size:10px}
  .classes-summary strong{font-size:24px}
  .course-card-top{align-items:flex-start}
  .teacher-tools{max-width:58%}
  .teacher-pill,.course-zoom,.course-level{font-size:11px;padding:8px 12px}
  .course-title{font-size:34px;margin-top:21px}
  .course-times{font-size:14px}
  .other-courses-card{padding:26px 22px 24px}
  .other-courses-card h2{font-size:29px}
  .other-courses-card p{font-size:18px}
  .progress-card{padding:22px 18px}
  .progress-card h2{font-size:28px}
  .progress-card .muted{font-size:16px}
  .progress-card .progress-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .progress-card .stat-box{min-height:74px;padding:12px 10px}
  .progress-card .stat-box small{font-size:10px}
  .progress-card .stat-box strong{font-size:27px}
  .story-btn{flex-basis:78px;font-size:11px}
  .story-btn span{width:72px;height:72px}
  .story-btn span:before{width:51px;height:51px}
  .feed-text-card{min-height:250px;padding:34px 28px;font-size:21px}
  .feed-compose-fab{right:18px;bottom:96px;width:56px;height:56px}
  .bottom-nav{min-height:78px}
  .nav-btn{min-height:62px;padding:7px 4px}
  .nav-btn span:last-child{font-size:11px}
  .home-board{padding:22px 18px 18px;border-radius:28px}
  .home-board h1{font-size:clamp(31px,8.6vw,42px)}
  .home-board blockquote{font-size:12px}
  .next-class-card{padding:22px 20px;border-radius:27px}
  .next-class-main h2{font-size:36px}
  .next-class-main p{font-size:17px}
  .next-class-details{grid-template-columns:1fr 1fr;gap:10px}
  .next-class-details div{padding:12px}
  .next-class-details strong{font-size:15px}
  .home-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-action-card{min-height:124px;padding:12px 9px;border-radius:18px}
  .home-action-card .action-icon{width:39px;height:39px;border-radius:14px;font-size:17px}
  .home-action-card strong{font-size:12px}
  .home-action-card small{font-size:10px;line-height:1.25}
  .home-easy-access-card{padding:17px;border-radius:24px}
  .home-easy-access-card h2{font-size:22px}
  .easy-action-row{grid-template-columns:repeat(3,minmax(94px,1fr));gap:8px}
  .easy-action-tile{min-height:98px;padding:10px 5px;border-radius:17px}
  .easy-action-icon{width:46px;height:46px;border-radius:15px;font-size:21px}
  .easy-action-tile strong{font-size:12px}
  .easy-action-tile small{font-size:10px}
  .recording-player,.recording-player-modal{grid-template-columns:1fr}
  .recording-player-frame,.recording-player-frame iframe{min-height:56vh}
  .recording-player-info{padding:21px}
  .recording-row{grid-template-columns:50px minmax(0,1fr);align-items:start;gap:11px;margin:10px;padding:15px}
  .recording-play-icon{width:48px;height:48px;border-radius:16px;font-size:21px}
  .recording-date{display:flex;justify-content:space-between;gap:12px}
  .recording-date strong{margin-top:0}
  .recording-actions{justify-content:flex-start}
  .direct-link{justify-self:start}
  .recording-batch-card .recording-batch-head{align-items:flex-start;padding:16px}
  .recording-batch-card .recording-batch-head h3{font-size:17px}
  .recording-batch-meta{display:grid;justify-items:end;gap:6px}
  .recording-batch-body .recording-row{grid-template-columns:36px minmax(0,1fr);padding:13px 15px}
  .recording-direct-link{grid-column:2;justify-self:start;margin-top:2px}
  .recording-limit-note{padding-left:61px}
  .payments-head{display:grid;align-items:start}
  .payment-student-switcher{min-width:0;width:100%}
  .payment-hero{padding:21px 18px;border-radius:26px}
  .payment-hero h2{font-size:31px}
  .payment-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .payment-overview div{min-height:68px;padding:11px 9px}
  .payment-overview small{font-size:9px}
  .payment-overview strong{font-size:18px}
  .payment-section-head{align-items:flex-start}
  .payment-section-head .mini-btn{white-space:nowrap}
  .payment-due-card,.payment-receipt-card{grid-template-columns:1fr;padding:16px}
  .payment-due-card>strong{font-size:21px}
  .payment-due-actions{grid-template-columns:1fr 1fr}
  .profile-hero-card{padding:19px;border-radius:27px;align-items:flex-start}
  .profile-avatar{width:58px;height:58px;border-radius:20px;font-size:21px}
  .profile-hero-card h2{font-size:24px}
  .profile-section-card{padding:16px;border-radius:23px}
  .profile-accordion-head{padding:15px 16px;font-size:16px}
  .profile-accordion-body{padding:14px 15px 16px}
  .profile-edit-form,.theme-presets,.profile-request-grid{grid-template-columns:1fr}
  .custom-color-grid{grid-template-columns:1fr 1fr}
  .custom-color-grid .mini-btn{grid-column:1/-1}
  .calendar-day{min-height:92px}
  .stat-grid,.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .progress-card .progress-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* =========================================================
   QAJ PROFILE ACCORDION ANIMATION PATCH
   Paste at bottom of styles.css / qaj-refresh.css
========================================================= */

.profile-accordion {
  display: grid;
  gap: 12px;
}

.profile-accordion-item {
  background: var(--card, #ffffff);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.profile-accordion-item.open {
  border-color: color-mix(in srgb, var(--accent, #9cc8ff) 55%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.profile-accordion-head {
  width: 100%;
  border: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72)
  );
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.profile-accordion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-accordion-copy strong {
  font-size: 16px;
  color: var(--text, #111827);
}

.profile-accordion-copy small {
  color: var(--muted, #667085);
  line-height: 1.35;
}

.profile-accordion-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-accordion-chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  transition:
    transform 260ms ease,
    background 260ms ease;
}

.profile-accordion-chevron::before {
  content: "⌄";
  font-size: 18px;
  line-height: 1;
  color: var(--primary, #111827);
  transform: translateY(-1px);
}

.profile-accordion-item.open .profile-accordion-chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--accent, #9cc8ff) 28%, white);
}

/* The actual animation */
.profile-accordion-body {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 16px;
  pointer-events: none;
  transition:
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    transform 280ms ease,
    padding-top 280ms ease,
    padding-bottom 280ms ease;
}

.profile-accordion-item.open .profile-accordion-body {
  opacity: 1;
  transform: translateY(0);
  padding-top: 4px;
  padding-bottom: 16px;
  pointer-events: auto;
}

/* Nice tap effect */
.profile-accordion-head:active {
  transform: scale(0.99);
}

/* Edit bubble polish */
.profile-edit-bubble {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent, #9cc8ff) 30%, white);
  color: var(--primary, #111827);
}

/* Mobile refinement */
@media (max-width: 520px) {
  .profile-accordion-head {
    padding: 14px;
  }

  .profile-accordion-copy strong {
    font-size: 15px;
  }

  .profile-accordion-copy small {
    font-size: 12px;
  }

  .profile-accordion-chevron {
    width: 30px;
    height: 30px;
  }
}

/* =========================================================
   CLEAN MORE OPTIONS BOTTOM SHEET FIX
   Paste at the VERY BOTTOM of qaj-refresh.css
========================================================= */

/* Backdrop should behave like a bottom sheet container */
.sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;

  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;

  padding: 0 10px calc(var(--bottom-nav-height, 82px) + 14px + env(safe-area-inset-bottom)) !important;

  background: rgba(6, 14, 11, 0.34) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  overflow: hidden !important;
}

.sheet-backdrop.hidden {
  display: none !important;
}

/* Actual More panel */
.more-sheet {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  width: 100% !important;
  max-width: 460px !important;
  max-height: min(62vh, 520px) !important;

  margin: 0 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  border-radius: 28px !important;
  border: 1px solid rgba(234, 223, 206, 0.95) !important;

  background:
    radial-gradient(circle at 92% 0%, rgba(221, 176, 36, 0.13), transparent 32%),
    rgba(255, 254, 250, 0.96) !important;

  box-shadow:
    0 24px 60px rgba(6, 14, 11, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;

  padding: 16px !important;

  animation: qajMoreSheetRise 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Smooth bottom opening */
@keyframes qajMoreSheetRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Small handle */
.sheet-handle {
  width: 44px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(15, 55, 48, 0.18) !important;
  margin: 2px auto 14px !important;
}

/* Header */
.sheet-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 2px !important;
}

.sheet-head h2 {
  margin: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  color: var(--theme-text, #103730) !important;
}

.sheet-head .muted {
  margin: 3px 0 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--theme-muted, #65736d) !important;
}

.sheet-close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--theme-soft-primary, #e8f5f1) !important;
  color: var(--theme-primary, #0b604f) !important;
  font-size: 22px !important;
  font-weight: 1000 !important;
}

/* More option buttons */
.more-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  overflow: visible !important;
}

.more-grid button {
  width: 100% !important;
  min-height: 68px !important;

  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 12px !important;

  border: 1px solid rgba(234, 223, 206, 0.9) !important;
  border-radius: 20px !important;

  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--theme-text, #103730) !important;

  padding: 10px 12px !important;
  text-align: left !important;

  box-shadow: 0 8px 20px rgba(11, 96, 79, 0.045) !important;
}

.more-grid button:after {
  content: "›" !important;
  color: var(--theme-muted, #65736d) !important;
  font-size: 24px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

.more-grid button:active {
  transform: scale(0.985);
}

.more-grid strong {
  display: block !important;
  margin: 0 !important;
  color: var(--theme-text, #103730) !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 1000 !important;
}

.more-grid small {
  display: block !important;
  margin-top: 3px !important;
  color: var(--theme-muted, #65736d) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.more-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 15px !important;
  background: var(--theme-soft-primary, #e8f5f1) !important;
  color: var(--theme-primary, #0b604f) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

.more-icon.gold {
  background: var(--theme-soft-accent, #fff4d3) !important;
  color: #8c6a00 !important;
}

/* Logout button */
.more-grid .danger-lite {
  background: rgba(254, 226, 226, 0.9) !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
}

.more-grid .danger-lite strong {
  color: #b42318 !important;
}

.more-grid .danger-lite .more-icon {
  background: rgba(255, 255, 255, 0.68) !important;
  color: #b42318 !important;
}

/* Prevent ugly horizontal scrollbar */
body,
.app-shell,
.app-main,
.sheet-backdrop,
.more-sheet {
  max-width: 100vw !important;
}

/* Mobile refinements */
@media (max-width: 600px) {
  .sheet-backdrop {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: calc(var(--bottom-nav-height, 82px) + 12px + env(safe-area-inset-bottom)) !important;
  }

  .more-sheet {
    max-height: min(60vh, 500px) !important;
    border-radius: 26px !important;
    padding: 14px !important;
  }

  .more-grid {
    grid-template-columns: 1fr !important;
  }

  .more-grid button {
    min-height: 64px !important;
    border-radius: 18px !important;
  }
}

/* =========================================================
   PAYMENT STUDENT CARD SELECTOR
========================================================= */

.payment-student-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.payment-student-card {
  width: 100%;
  border: 1px solid var(--theme-line, #eadfce);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;

  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;

  text-align: left;
  color: var(--theme-text, #103730);
  box-shadow: 0 8px 20px rgba(11, 96, 79, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.payment-student-card:active {
  transform: scale(0.985);
}

.payment-student-card.selected {
  border-color: var(--theme-primary, #0b604f);
  background:
    radial-gradient(circle at top right, rgba(221, 176, 36, 0.16), transparent 38%),
    rgba(232, 245, 241, 0.92);
  box-shadow: 0 12px 28px rgba(11, 96, 79, 0.12);
}

.payment-student-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--theme-soft-primary, #e8f5f1);
  color: var(--theme-primary, #0b604f);
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.payment-student-card.selected .payment-student-avatar {
  background: var(--theme-primary, #0b604f);
  color: #fff;
}

.payment-student-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-student-card-copy strong {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.payment-student-card-copy small {
  color: var(--theme-muted, #65736d);
  font-size: 12px;
  font-weight: 850;
}

.payment-student-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 55, 48, 0.08);
  color: transparent;
  font-weight: 1000;
}

.payment-student-card.selected .payment-student-check {
  background: var(--theme-accent, #ddb024);
  color: #fff;
}

@media (min-width: 560px) {
  .payment-student-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}