/* Kelasava Studio — refreshed editorial interface */
:root {
  --ink: #1b1c2d;
  --muted: #727385;
  --line: #e7e5e9;
  --paper: #f6f5f2;
  --white: #fff;
  --navy: #202137;
  --violet: #6549e8;
  --violet-dark: #4f35c9;
  --lav: #eeeaff;
  --mint: #c9f45c;
  --orange: #ff764f;
  --shadow: 0 12px 40px rgba(34, 32, 53, .07);
  --radius: 18px;
  --font: "Ava", "Kelasava Persian", Tahoma, Arial, sans-serif;
}

html { scroll-padding-top: 84px; }
body { color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; }
button, input, textarea, select { font-family: var(--font); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(101, 73, 232, .45);
  outline-offset: 3px;
}

/* Public home */
.site-shell { background: #fbfaf8; color: var(--ink); }
.topbar {
  height: 76px;
  padding-inline: max(28px, calc((100% - 1240px) / 2));
  background: rgba(251, 250, 248, .88);
  border-bottom: 1px solid rgba(37, 35, 49, .07);
}
.brand { gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; background: var(--navy); }
.brand-mark svg { stroke: var(--mint); }
.brand b { font-size: 16px; letter-spacing: -.4px; }
.brand small { color: #8a8995; font-size: 11px; margin-top: 0; }
.top-links { gap: 30px; color: #555665; font-size: 13px; }
.top-links a { transition: color .18s, transform .18s; }
.top-links a:hover { transform: translateY(-1px); }
.top-actions { gap: 8px; }
.top-actions .btn { min-height: 44px; padding-inline: 18px; border-radius: 12px; font-size: 13px; }
.btn { min-height: 44px; padding: 10px 17px; border-radius: 12px; font-size: 13px; }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.btn-large { min-height: 52px; padding: 13px 22px; border-radius: 14px; font-size: 14px; }
.btn-primary { background: var(--violet); box-shadow: 0 8px 22px rgba(101, 73, 232, .2); }
.btn-primary:hover { background: var(--violet-dark); }
.btn-dark { background: var(--navy); }
.btn-outline { border-color: #dedce4; }

.hero {
  min-height: 590px;
  padding-block: 70px 58px;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(24px, 5vw, 70px);
}
.hero-copy { padding-inline-start: 4px; }
.eyebrow { font-size: 12px; letter-spacing: 0; }
.hero .eyebrow { padding: 8px 12px; border-radius: 999px; background: #f0edff; }
.pulse-dot { width: 8px; height: 8px; box-shadow: 0 0 0 5px rgba(201, 244, 92, .5); background: #516c16; }
.hero h1 {
  margin: 22px 0 17px;
  color: var(--ink);
  font-size: clamp(43px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -2.4px;
}
.hero h1 #homeHeroAccent { color: var(--violet); }
.hero-lead { max-width: 510px; color: #656674; font-size: 17px; line-height: 2; }
.hero-actions { margin-top: 26px; gap: 20px; }
.hero-proof { margin-top: 26px; color: #777684; font-size: 12px; }
.avatar-stack i { width: 30px; height: 30px; border: 2px solid #fbfaf8; font-size: 11px; }
.hero-art {
  height: 464px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 20%, rgba(201, 244, 92, .46), transparent 22%),
    radial-gradient(circle at 13% 86%, rgba(255, 118, 79, .28), transparent 28%),
    linear-gradient(145deg, #f0edff, #e5e1f8 52%, #ddd8f2);
  overflow: visible;
}
.orbit { border-color: rgba(101, 73, 232, .15); }
.orbit-one { width: 350px; height: 350px; border-width: 1px; }
.orbit-two { width: 435px; height: 435px; border-style: solid; border-color: rgba(101, 73, 232, .11); }
.live-card {
  width: min(430px, 86%);
  padding: 20px 21px 14px;
  transform: rotate(-2deg) translateY(4px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: #202137;
  box-shadow: 0 32px 70px rgba(32, 33, 55, .28);
}
.live-title { font-size: 17px; margin-block: 16px 13px; }
.speaker-stage { height: 196px; border-radius: 17px; background: linear-gradient(135deg, #3c3971, #6a55a9 55%, #376a70); }
.stage-glow {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
  background: radial-gradient(circle, rgba(201, 244, 92, .2), transparent 62%);
}
.speaker-avatar { width: 92px; height: 92px; background: linear-gradient(140deg, #ffc8a8, #c56f60); }
.speaker-label b { font-size: 11px; }
.speaker-label small { font-size: 10px; }
.participant-row { padding-block: 14px; font-size: 11px; }
.mini-avatars i { width: 25px; height: 25px; font-size: 9px; }
.call-controls { height: 44px; gap: 24px; font-size: 15px; }
.ai-float {
  top: 45px; left: 4px; padding: 12px 15px; border-radius: 16px;
  box-shadow: 0 18px 42px rgba(36, 34, 57, .15); transform: rotate(2deg);
}
.ai-spark { width: 36px; height: 36px; border-radius: 12px; background: var(--mint); color: #31420d; }
.ai-float b { font-size: 12px; }
.ai-float small { font-size: 10px; }
.note-float { bottom: 28px; right: 8px; padding: 11px 17px; font-size: 11px; background: #fff8ed; }
.trust-strip {
  min-height: 92px; background: #f1f0ed; color: #777683; font-size: 12px;
  gap: clamp(18px, 4vw, 54px); padding: 18px 24px;
}
.trust-strip > div { flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; }
.trust-strip i { width: 5px; height: 5px; background: var(--violet); }
.feature-section { padding-block: 94px 100px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -1.2px; }
.section-heading p, .section-note { font-size: 14px; color: #747482; }
.feature-grid { gap: 16px; }
.feature-card {
  min-height: 350px; padding: 27px; border-radius: 21px; border-color: #e9e7eb;
  box-shadow: 0 6px 18px rgba(32, 33, 55, .025);
}
.feature-card.feature-dark { background: #202137; border-color: #202137; }
.feature-card:nth-child(2) { background: #f0edff; border-color: #e5e0fb; }
.feature-card:nth-child(3) { background: #f0f7dd; border-color: #e3edc8; }
.feature-card h3 { font-size: 21px; line-height: 1.55; letter-spacing: -.4px; }
.feature-card > p { font-size: 14px; line-height: 1.9; color: inherit; opacity: .75; }
.feature-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 19px; }
.feature-visual { border-radius: 15px; min-height: 108px; }
.schedule-visual { background: #2a2c45; border-color: #404259; }
.note-visual { background: rgba(255,255,255,.68); border-color: #ded8f5; }
.progress-visual { background: rgba(255,255,255,.7); border-color: #deebc1; }
.course-section { background: #f1f0ed; padding-block: 82px 88px; }
.course-section .section-heading, .plan-section .section-heading { align-items: end; }
.course-grid { gap: 16px; }
.public-course {
  border-radius: 22px;
  border-color: #e3e1e6;
  box-shadow: 0 12px 30px rgba(32, 33, 55, .045);
  transition: transform .2s, box-shadow .2s;
}
.public-course:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(32, 33, 55, .1);
}
.app-course-card { border-radius: 22px; border-color: #e3e1e6; box-shadow: 0 10px 28px rgba(32, 33, 55, .045); }
.public-course .course-color { border-radius: 16px; }
.public-course h3 { font-size: 19px; }
.public-course p { line-height: 1.9; }
.public-course .course-tag { display: inline-flex; }
.public-course .text-link { color: var(--violet); font-weight: 700; }
.public-course .course-meta { border-top: 1px solid #eeecf0; padding-top: 13px; }
.empty-course { border-radius: 18px; background: #fff; border-color: #e7e4ea; }
.plan-section { padding-block: 90px 98px; }
.plans-grid { gap: 16px; }
.plan-card { border-radius: 20px; border-color: #e5e2e9; padding: 25px; box-shadow: none; }
.plan-card.plan-featured { transform: translateY(-8px); border-color: var(--violet); box-shadow: 0 18px 38px rgba(101, 73, 232, .12); }
.plan-top > span:first-child { font-size: 20px; }
.plan-price b { font-size: 31px; letter-spacing: -1px; }
.plan-card > p, .plan-card li { font-size: 14px; }
.plans-note { color: #747482; font-size: 13px; }
.cta-inner { min-height: 245px; padding: 44px 48px; border-radius: 27px; background: #202137; color: #fff; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.cta-inner p { font-size: 14px; color: #c6c5d2; }
.cta-inner .btn-primary { background: var(--mint); color: #242b18; box-shadow: none; }
.cta-orb { border-color: rgba(201,244,92,.28); }
.cta-orb:after { border-color: rgba(201,244,92,.24); }
.footer { min-height: 96px; color: #8b8994; font-size: 12px; }
.footer-cms-links a, .public-page-link { font-size: 12px; }

/* App frame and workspace navigation */
.app-shell { grid-template-columns: 264px minmax(0, 1fr); background: #f4f3f0; }
.sidebar {
  z-index: 10;
  padding: 24px 17px 18px;
  background: #fbfaf8;
  border-left: 1px solid #e8e5e1;
}
.sidebar-brand { padding: 1px 8px 22px; border-color: #ebe9e4; }
.workspace-switch {
  margin: 16px 0 24px; padding: 13px 12px; border-color: #e8e5eb;
  border-radius: 15px; background: #f4f2f8;
}
.workspace-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--lav); color: var(--violet); }
.workspace-switch b, .user-chip b { font-size: 13px; }
.workspace-switch small, .user-chip small { font-size: 11px; }
.side-label { color: #9a98a1; font-size: 11px; padding-inline: 11px; }
.side-nav { gap: 5px; }
.side-nav-group-label { padding-top: 18px; padding-bottom: 5px; font-size: 11px; color: #9896a2; }
.side-nav-group-label:first-child { padding-top: 0; }
.side-link {
  position: relative; min-height: 46px; padding: 10px 12px; gap: 12px;
  border-radius: 13px; color: #696a7a; font-size: 13px;
}
.side-link > span:first-child {
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 8px; color: #858495; font-size: 17px; transition: .18s;
}
.side-link:hover { background: #f0eef8; color: var(--ink); }
.side-link.active { background: #ebe8fb; color: #4635a6; font-weight: 700; }
.side-link.active > span:first-child { color: var(--violet); background: rgba(255,255,255,.65); }
.side-link.active::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 4px; background: var(--violet);
}
.sidebar-bottom { display: grid; gap: 9px; }
.support-card { padding: 15px; border-radius: 16px; background: #efedff; border-color: #e5e0ff; }
.support-card > span { font-size: 18px; color: var(--violet); }
.support-card b { font-size: 12px; color: #403575; }
.support-card small { font-size: 11px; color: #77728c; }
.sidebar-bottom .side-link { min-height: 44px; }
.kelasava-create-room-button { min-height: 50px !important; border-radius: 14px !important; font-size: 14px !important; border: 0 !important; }
.chromatic-button.kelasava-create-room-button:not(:has([data-renderer="webgl"])) {
  background: linear-gradient(120deg, #7558f0 0%, #6041df 68%, #4e37ba 100%) !important;
  box-shadow: 0 10px 25px rgba(97, 65, 223, .19) !important;
}
.app-main { min-width: 0; }
.app-topbar {
  position: sticky; top: 0; z-index: 8; height: 74px; padding-inline: clamp(20px, 3.2vw, 52px);
  background: rgba(250, 249, 247, .86); backdrop-filter: blur(16px);
  border-bottom-color: #e8e6e2;
}
.breadcrumb { font-size: 12px; color: #92919c; }
.breadcrumb b { color: #353548; }
.app-top-actions { gap: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; background: #fff; color: #676679; border-color: #e6e3eb; font-size: 16px; }
.top-divider { border-color: #e2dfe6; }
.user-chip { min-height: 44px; gap: 9px; padding: 4px 8px; }
.user-avatar { width: 38px; height: 38px; border-radius: 13px; background: #e9e5fb; color: #5943c9; font-size: 14px; }
.user-chip b { font-size: 12px; }
.user-chip small { font-size: 10px; }
.top-popover { border-radius: 17px; box-shadow: 0 18px 46px rgba(31,30,48,.14); border-color: #e7e4eb; }
.app-content { max-width: 1500px; padding: 32px clamp(18px, 3.1vw, 52px) 76px; }
.org-context { padding: 20px 24px; border-radius: 19px; background: #fff; border-color: #e8e5eb; box-shadow: 0 2px 7px rgba(31,30,48,.025); }
.org-context small { font-size: 12px; }
.org-context b { font-size: 20px; }
.view-panel > .welcome-row { margin-bottom: 26px; }
.welcome-row { align-items: center; margin-bottom: 28px; gap: 22px; }
.welcome-row .eyebrow { font-size: 12px; }
.welcome-row h1 { font-size: 31px; letter-spacing: -1px; margin: 6px 0 4px; }
.welcome-row p { font-size: 14px; color: #777684; }
.welcome-actions { gap: 11px; }
.welcome-actions .btn { min-height: 48px; }
#view-dashboard .welcome-row {
  position: relative; overflow: hidden; min-height: 198px; padding: 34px 38px;
  border-radius: 25px; margin-bottom: 22px;
  background:
    radial-gradient(circle at 12% 5%, rgba(201,244,92,.26), transparent 25%),
    linear-gradient(120deg, #25263f 0%, #343253 58%, #443a7d 100%);
  color: #fff;
}
#view-dashboard .welcome-row::after {
  content: ""; position: absolute; pointer-events: none; width: 250px; height: 250px;
  inset-inline-start: 23%; top: -148px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);
}
#view-dashboard .welcome-row > * { position: relative; z-index: 1; }
#view-dashboard .welcome-row .eyebrow { color: #d6f295; }
#view-dashboard .welcome-row h1 { color: #fff; font-size: 34px; }
#view-dashboard .welcome-row p { color: #d4d2e2; }
#view-dashboard .welcome-row .btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
#view-dashboard .welcome-row .btn-outline:hover { background: rgba(255,255,255,.17); }
#view-dashboard .welcome-row .chromatic-button { border: 0 !important; }
.stat-grid { gap: 14px; margin-bottom: 20px; }
.stat-card {
  position: relative; min-height: 117px; padding: 20px 21px;
  border-radius: 18px; border-color: #e7e4ea; background: #fff;
  box-shadow: 0 3px 12px rgba(31,30,48,.025);
  grid-template-columns: 46px minmax(0,1fr); column-gap: 12px;
}
.stat-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 18px; }
.stat-icon.violet { background: #eeeaff; color: #6449df; }
.stat-icon.mint { background: #eef7d9; color: #607c19; }
.stat-icon.orange { background: #fff0e9; color: #ce5d3e; }
.stat-label { font-size: 13px; color: #777684; }
.stat-card > b { font-size: 26px; letter-spacing: -.6px; }
.stat-card > small { font-size: 11px; color: #92919c; }
.dashboard-columns { grid-template-columns: minmax(0,1.35fr) minmax(290px,.8fr); gap: 17px; }
.panel-card { padding: 23px; border-radius: 20px; border-color: #e7e4ea; box-shadow: 0 3px 13px rgba(31,30,48,.025); }
.panel-heading { margin-bottom: 15px; }
.panel-heading .eyebrow { font-size: 11px; }
.panel-heading h2 { font-size: 20px; letter-spacing: -.35px; }
.link-button { color: var(--violet); font-size: 12px; }
.upcoming-item { gap: 14px; padding: 14px 0; border-color: #f0eef1; }
.date-tile { width: 50px; height: 52px; border-radius: 14px; background: #f0edff; color: #5741c5; }
.date-tile b { font-size: 18px; }
.date-tile small { font-size: 10px; }
.upcoming-copy b { font-size: 14px; }
.upcoming-copy small { font-size: 12px; }
.join-mini { width: 38px; height: 38px; border-radius: 12px; color: var(--violet); }
.mini-course { gap: 12px; padding: 12px 0; }
.mini-course-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 17px; }
.mini-course b { font-size: 13px; }
.mini-course small { font-size: 11px; }
.empty-state { gap: 8px; color: #858492; }
.empty-state > span { font-size: 25px; color: var(--violet); }
.empty-state > b { font-size: 14px; color: #3f4051; }
.empty-state > small { font-size: 12px; }
.app-course-grid { gap: 18px; }
.app-course-card { border-radius: 20px; border-color: #e7e4ea; box-shadow: 0 3px 12px rgba(31,30,48,.025); transition: transform .2s, box-shadow .2s; }
.app-course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,30,48,.09); }
.app-course-art { height: 132px; padding: 20px; }
.app-course-art > span { font-size: 36px; }
.app-course-art small { font-size: 11px; }
.app-course-body { padding: 20px; }
.app-course-body h3 { font-size: 19px; letter-spacing: -.4px; }
.app-course-body p { font-size: 13px; line-height: 1.9; }
.app-course-body .course-meta { font-size: 12px; }
.course-tag, .status-chip { font-size: 11px; padding: 5px 10px; border-radius: 999px; }
.room-link-row { gap: 8px; }
.course-card-actions { gap: 8px; flex-wrap: wrap; }
.session-row { padding: 16px; gap: 14px; border-radius: 15px; }
.session-date { font-size: 12px; }
.session-date small, .session-main small { font-size: 11px; }
.session-main b { font-size: 14px; }
.session-actions { gap: 7px; }
.table-card { padding: 12px; }
.settings-card { padding: 24px; border-radius: 20px; border-color: #e7e4ea; box-shadow: 0 3px 12px rgba(31,30,48,.025); }
.settings-card-heading h2 { font-size: 19px; }
.settings-card-heading p { font-size: 13px; }
.field-label > span, .settings-clear { font-size: 13px; }
.field-label input, .field-label textarea, .field-label select, .org-context select, .org-system-row select {
  min-height: 46px; border: 1px solid #dedce4; border-radius: 12px; background: #fff;
  color: var(--ink); font-size: 14px; padding: 10px 13px; transition: border .16s, box-shadow .16s;
}
.field-label input:focus, .field-label textarea:focus, .field-label select:focus {
  border-color: #8d7bf0; box-shadow: 0 0 0 4px rgba(101,73,232,.1);
}
.form-message, .form-footnote { font-size: 12px; }
.modal-backdrop { background: rgba(25, 26, 43, .58); backdrop-filter: blur(5px); }
.modal-card { border: 1px solid rgba(255,255,255,.55); border-radius: 24px; padding: 30px; box-shadow: 0 24px 80px rgba(16,18,34,.25); }
.modal-card h2 { font-size: 24px; }
.modal-card > p { font-size: 14px; }
.toast { bottom: 26px; border-radius: 14px; padding: 13px 18px; font-size: 13px; }
.ai-intro { padding: 22px; border-radius: 18px; }
.ai-intro b { font-size: 16px; }
.ai-intro p { font-size: 13px; }
.job-card { padding: 18px; border-radius: 17px; border-color: #e8e5eb; }
.job-head > b { font-size: 14px; }
.job-error { font-size: 13px; }
.job-date, .job-results > small { font-size: 11px; }
.job-results summary { font-size: 13px; }
.job-results p, .job-results pre { font-size: 13px; }
.ai-output-editor summary { font-size: 13px; }
.ai-output-editor label { font-size: 12px; }
.ai-output-editor textarea { font-size: 13px; }
.plan-usage { gap: 14px; }
.settings-status, .org-status { font-size: 12px; }
.org-member, .org-system-row, .org-order { padding: 15px 0; }
.org-member small, .org-system-row small, .org-order small { font-size: 12px; }
.org-empty { font-size: 14px; }
.org-usage-grid { gap: 12px; }
.org-metric { border-radius: 16px; padding: 18px; }
.org-metric small { font-size: 12px; }
.org-metric b { font-size: 20px; }
.admin-teacher-stat { border-radius: 17px; padding: 19px; }
.admin-teacher-main small, .admin-teacher-metrics, .admin-teacher-metrics small,
.admin-detail-placeholder, .admin-teacher-contact-grid small, .admin-detail-muted,
.admin-membership-chip small, .admin-teacher-course summary small, .admin-teacher-course > small,
.admin-teacher-lesson-head small, .admin-teacher-lesson-meta, .admin-recording-main small,
.admin-recording-meta small { font-size: 12px; }
.admin-teacher-row, .admin-teacher-course, .admin-teacher-lesson, .admin-recording-row, .admin-event-card {
  border-radius: 16px; border-color: #e7e4ea; padding: 15px;
}
.admin-teacher-course p, .admin-ai-output { font-size: 13px; }
.admin-ai-output pre { font-size: 12px; }
.admin-recording-icon { border-radius: 13px; }
.org-accordion>summary, .org-sub-accordion>summary { font-size: 14px; }
.org-accordion-body { font-size: 14px; }
.org-accordion-body p, .field-hint { font-size: 13px; line-height: 1.85; }
.support-card small, .job-date, .empty-state > small { line-height: 1.75; }

/* Role-specific login entry */
.login-header { max-width: 1240px; padding: 25px 32px; }
.login-brand b { font-size: 22px; letter-spacing: -.6px; }
.login-brand small { font-size: 12px; }
.brand-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--navy); }
.brand-icon svg { stroke: var(--mint); }
.back-home, .other-entry { color: var(--violet); font-size: 13px; }
.login-main { max-width: 1240px; margin-top: 40px; }
.entry-panel { grid-template-columns: minmax(0,1fr) minmax(0,470px); gap: clamp(40px,8vw,110px); align-items: center; }
.entry-story { position: relative; padding: 34px 0; }
.entry-story::before {
  content: ""; position: absolute; z-index: -1; inset-inline-end: -30px; top: 4px;
  width: 150px; height: 150px; border-radius: 42px;
  background: radial-gradient(circle, rgba(201,244,92,.52), rgba(201,244,92,0) 70%);
}
.entry-story h1 { max-width: 600px; font-size: clamp(36px,4.6vw,58px); line-height: 1.35; letter-spacing: -1.8px; }
.entry-description { max-width: 590px; font-size: 16px; line-height: 2; }
.story-divider { width: 88px; border-radius: 9px; height: 4px; background: var(--violet); margin-block: 28px; }
.entry-story ul { gap: 12px; }
.entry-story li { font-size: 14px; }
.entry-story li:before { width: 28px; height: 28px; border-radius: 10px; background: #eff6d9; color: #526e1a; }
.security-note { color: #767481; font-size: 12px; line-height: 1.9; }
.entry-form-card { padding: 30px; border-radius: 22px; border-color: #e4e0e9; box-shadow: 0 18px 52px rgba(38,35,62,.08); }
.org-caption { font-size: 12px; }
.form-heading h2 { font-size: 25px; letter-spacing: -.6px; }
.form-heading p { font-size: 13px; }
.auth-tabs { background: #f0eef4; border-radius: 13px; padding: 4px; }
.auth-tabs button { min-height: 46px; border-radius: 10px; font-size: 13px; }
.auth-tabs .active { color: var(--violet); box-shadow: 0 2px 8px rgba(31,30,48,.08); }
.auth-methods button { min-height: 46px; border-radius: 11px; font-size: 13px; }
.auth-methods button.active { background: var(--lav); border-color: #b7a9fa; color: #5038bc; }
.field { gap: 7px; margin: 17px 0; }
.field > span { font-size: 13px; }
.field small { font-size: 12px; }
.field input { min-height: 48px; border-color: #dfdce5; border-radius: 11px; font-size: 15px; }
.button { min-height: 50px; border-radius: 12px; font-size: 14px; }
.button-primary { background: var(--violet); }
.button-primary:hover { background: var(--violet-dark); }
.text-button { color: var(--violet); font-size: 13px; }
.entry-message, .form-footnote { font-size: 12px; }
.session-box { border-radius: 14px; font-size: 13px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 236px minmax(0,1fr); }
  .sidebar { padding-inline: 13px; }
  .app-content { padding-inline: 24px; }
  .hero { grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr); }
  .hero-art { height: 420px; }
  .entry-panel { gap: 44px; }
}
@media (max-width: 760px) {
  .topbar { height: 68px; padding-inline: 18px; }
  .top-actions .btn { min-height: 42px; font-size: 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 48px 34px; gap: 18px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); letter-spacing: -1.4px; }
  .hero-lead { font-size: 15px; }
  .hero-art { height: 390px; margin-inline: -5px; border-radius: 25px; }
  .orbit-one { width: 285px; height: 285px; }
  .orbit-two { width: 360px; height: 360px; }
  .live-card { width: min(410px, 88%); }
  .trust-strip { flex-direction: column; gap: 7px; }
  .feature-section, .plan-section { padding-block: 64px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .section-heading h2 { font-size: 29px; }
  .feature-card { min-height: 305px; padding: 22px; }
  .feature-card h3 { font-size: 19px; }
  .plan-card.plan-featured { transform: none; }
  .cta-inner { padding: 28px 24px; border-radius: 21px; }
  .footer { justify-content: center; text-align: center; gap: 15px; }
  .footer > div { width: 100%; }
  .entry-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    max-width: 560px;
    margin-inline: auto;
  }
  .entry-story { min-width: 0; padding: 4px 0 0; }
  .entry-story h1 {
    max-width: 100%;
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.4;
    letter-spacing: -.6px;
  }
  .entry-description { max-width: 100%; font-size: 15px; line-height: 1.9; }
  .entry-story ul, .story-divider { display: none; }
  .security-note { max-width: 100%; margin: 14px 0 0; font-size: 12px; }
  .login-header { padding: 18px 17px; gap: 12px; }
  .login-main { margin-top: 20px; padding-inline: 16px; }
  .entry-form-card { min-width: 0; padding: 23px 19px; border-radius: 20px; }
  .entry-form-card input { min-width: 0; max-width: 100%; }
  .login-footer { padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; }
  .sidebar {
    position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: auto; min-height: 0;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e2e8; background: rgba(251,250,248,.93);
    backdrop-filter: blur(20px); box-shadow: 0 -8px 24px rgba(30,29,48,.08);
  }
  .sidebar-brand, .workspace-switch, .side-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav-group-label { display: none; }
  .side-link {
    display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 70px;
    min-height: 57px; padding: 5px 7px; flex: 0 0 auto; border-radius: 13px;
    text-align: center; font-size: 11px;
  }
  .side-link > span:first-child { width: 24px; height: 24px; font-size: 17px; }
  .side-link.active::after { display: none; }
  .side-link-label { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-topbar { height: 64px; padding-inline: 16px; }
  .breadcrumb { font-size: 11px; }
  .app-top-actions { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .user-chip { gap: 7px; padding-inline: 3px; }
  .user-chip b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .user-chip small, .user-chip .switch-chevron { display: none; }
  .user-avatar { width: 35px; height: 35px; }
  .app-content { padding: 14px 16px calc(110px + env(safe-area-inset-bottom)); }
  .org-context { margin-bottom: 12px; padding: 13px; }
  .org-context b { font-size: 17px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .welcome-row h1 { font-size: 25px; }
  .welcome-row p { font-size: 13px; }
  #view-dashboard .welcome-row { min-height: 0; padding: 19px 18px; border-radius: 21px; }
  #view-dashboard .welcome-row h1 { font-size: 24px; line-height: 1.4; }
  .welcome-actions { width: 100%; flex-wrap: wrap; }
  .welcome-actions > .btn, .welcome-actions #createRoomAction { flex: 1 1 auto; }
  #createRoomAction .kelasava-create-room-button, #createRoomAction > .btn { width: 100%; }
  .welcome-actions .btn { min-height: 47px; padding-inline: 13px; font-size: 12px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 98px; padding: 10px 8px; grid-template-columns: 25px minmax(0,1fr); column-gap: 5px; border-radius: 16px; }
  .stat-icon { width: 25px; height: 25px; border-radius: 10px; font-size: 13px; }
  .stat-label { font-size: 10px; }
  .stat-card > b { font-size: 22px; }
  .stat-card > small { font-size: 9px; }
  .dashboard-columns { grid-template-columns: 1fr; gap: 11px; }
  .progress-panel { display: block; }
  .panel-card { padding: 17px; border-radius: 17px; }
  .panel-heading h2 { font-size: 18px; }
  .app-course-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-course-art { height: 112px; }
  .app-course-body { padding: 17px; }
  .app-course-body h3 { font-size: 18px; }
  .course-card-actions .btn { flex: 1 1 auto; }
  .session-row { align-items: flex-start; padding: 14px; gap: 10px; }
  .session-date, .session-main { min-width: calc(50% - 8px); font-size: 11px; }
  .session-date small, .session-main small { font-size: 10px; }
  .session-main b { font-size: 13px; }
  .session-actions { width: 100%; margin-inline: 0; }
  .session-actions .btn { min-height: 40px; font-size: 11px; }
  .job-card { gap: 10px; padding: 14px; }
  .job-head { flex-wrap: wrap; }
  .job-head > b { font-size: 13px; }
  .settings-card { padding: 17px; border-radius: 17px; }
  .settings-grid, .settings-form { gap: 0; }
  .field-label { margin-bottom: 14px; }
  .field-label > span, .settings-clear { font-size: 12px; }
  .field-label input, .field-label textarea, .field-label select { font-size: 14px; }
  .settings-form-footer { align-items: stretch; }
  .settings-form-footer .btn { width: 100%; }
  .plan-usage { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .org-usage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .org-metric { padding: 14px; }
  .org-metric small { font-size: 11px; }
  .org-metric b { font-size: 18px; }
  .admin-teacher-stats { grid-template-columns: 1fr; }
  .admin-teacher-row { grid-template-columns: 40px minmax(0,1fr) auto; }
  .admin-teacher-metrics { grid-column: 2/-1; display: flex; gap: 10px; }
  .admin-teacher-chevron { display: none; }
  .admin-teacher-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-recording-row { grid-template-columns: 36px minmax(0,1fr); }
  .admin-recording-meta, .admin-recording-actions { grid-column: 2; }
  .admin-recording-actions .btn { flex: 1; }
  .admin-event-head, .admin-event-lesson { flex-direction: column; align-items: stretch; }
  .admin-event-actions { width: 100%; }
  .admin-event-actions .btn { flex: 1; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 92vh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
}
@media (max-width: 420px) {
  .topbar { padding-inline: 13px; }
  .top-actions .btn { padding-inline: 11px; }
  .hero-art { height: 352px; }
  .live-card { padding: 15px 15px 9px; }
  .speaker-stage { height: 160px; }
  .ai-float { top: 25px; left: 0; }
  .note-float { bottom: 18px; }
  .trust-strip > div { gap: 9px; font-size: 11px; }
  .stat-card { padding: 11px 9px; }
  .stat-card > b { font-size: 20px; }
  .side-link { min-width: 64px; font-size: 10px; }
  .admin-teacher-contact-grid { grid-template-columns: 1fr; }
  .org-inline-form .btn, .org-link-row .btn { width: 100%; }
}
@media (max-width: 359px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card { min-height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}