:root{
  --brand:#b91c1c;
  --brand-strong:#991b1b;
  --brand-soft:#fff1f2;
  --brand-border:#fecdd3;
  --bg:#f6f7f9;
  --surface:#ffffff;
  --surface-2:#fbfcfd;
  --ink:#182230;
  --muted:#667085;
  --subtle:#98a2b3;
  --line:#e5e9f0;
  --line-soft:#eef1f5;
  --green:#15803d;
  --green-soft:#ecfdf3;
  --orange:#c2410c;
  --orange-soft:#fff7ed;
  --blue:#1d4ed8;
  --blue-soft:#eff6ff;
  --violet:#6d28d9;
  --violet-soft:#f5f3ff;
  --cyan:#0e7490;
  --cyan-soft:#ecfeff;
  --slate:#475569;
  --slate-soft:#f1f5f9;
  --shadow-xs:0 1px 2px rgba(16,24,40,.04);
  --shadow-sm:0 5px 16px rgba(16,24,40,.05);
  --shadow-md:0 14px 34px rgba(16,24,40,.08);
  --radius:16px;
  --radius-sm:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-size:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{color:inherit}
img{max-width:100%;display:block}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;display:block;flex:none}
.muted{color:var(--muted)!important}
.muted-box{padding:16px;background:var(--surface-2);border:1px solid var(--line-soft);border-radius:12px;color:var(--muted);font-size:16px}
.eyebrow{display:block;color:var(--brand);font-size:13px;line-height:1;font-weight:850;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.kicker-light{display:block;color:var(--brand);font-size:13px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}
.alert{padding:13px 15px;border-radius:12px;border:1px solid;margin-bottom:18px;font-size:16px;box-shadow:var(--shadow-xs)}
.alert.success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}

/* Shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:50}
.sidebar-brand{min-height:84px;display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line-soft)}
.sidebar-brand img{width:102px;max-height:48px;object-fit:contain}
.sidebar-brand>div{min-width:0;padding-left:12px;border-left:1px solid var(--line)}
.sidebar-brand strong,.sidebar-brand span{display:block}
.sidebar-brand strong{font-size:18px;line-height:1.15;letter-spacing:-.02em}
.sidebar-brand span{font-size:14px;color:var(--muted);margin-top:2px}
.sidebar-nav{padding:14px 12px 18px;overflow:auto;flex:1}
.nav-caption{font-size:12px;font-weight:850;letter-spacing:.14em;color:#98a2b3;padding:15px 12px 7px}
.nav-item{display:flex;align-items:center;gap:11px;min-height:43px;padding:10px 12px;margin:2px 0;border-radius:10px;color:#475467;font-size:16px;font-weight:700;transition:.15s}
.nav-item .icon{width:17px;height:17px}
.nav-item:hover{background:#f8fafc;color:#111827}
.nav-item.active{background:var(--brand-soft);color:var(--brand);box-shadow:inset 3px 0 var(--brand)}
.sidebar-user{padding:14px 14px;border-top:1px solid var(--line);background:#fcfcfd;display:flex;align-items:center;gap:10px}
.sidebar-user-copy{min-width:0;flex:1}
.sidebar-user-copy strong,.sidebar-user-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user-copy strong{font-size:15px}
.sidebar-user-copy span{font-size:13px;color:var(--muted);margin-top:2px}
.avatar{width:38px;height:38px;border-radius:11px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:850;letter-spacing:.02em;flex:none}
.avatar.small{width:32px;height:32px;border-radius:9px;font-size:13px}
.icon-button{width:34px;height:34px;border:0;background:transparent;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#667085}
.icon-button:hover{background:#f2f4f7;color:#111827}
.icon-button.danger,.danger-text{color:#b42318}
.main-area{min-width:0;min-height:100vh;display:flex;flex-direction:column}
.topbar{height:68px;position:sticky;top:0;z-index:35;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}
.topbar-title span,.topbar-title strong{display:block}
.topbar-title span{font-size:13px;color:var(--muted);margin-bottom:1px}
.topbar-title strong{font-size:17px;letter-spacing:-.01em}
.topbar-actions{display:flex;align-items:center;gap:8px}
.top-icon{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;color:#475467;position:relative}
.notify-dot{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:999px;background:var(--brand);color:#fff;border:2px solid #fff;display:grid;place-items:center;padding:0 4px;font-size:12px;font-weight:850}
.top-profile{display:flex;align-items:center;gap:8px;padding:3px 7px 3px 3px;border-radius:10px}
.top-profile:hover{background:#f8fafc}
.top-profile span{font-size:15px;font-weight:700}
.mobile-menu{display:none;width:38px;height:38px;border:0;background:transparent;border-radius:10px;place-items:center}
.content{width:min(1360px,100%);margin:0 auto;padding:30px 32px 56px;flex:1}
.app-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 32px 24px;color:#98a2b3;font-size:13px}
.sidebar-overlay{display:none}

/* Type and page headers */
.page-heading,.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:24px}
.page-heading h1,.welcome-row h1{margin:0 0 7px;font-size:33px;line-height:1.12;letter-spacing:-.04em;font-weight:800}
.page-heading p,.welcome-row p{margin:0;color:var(--muted);font-size:16px;max-width:760px}
.heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.date-chip{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 11px;color:#475467;font-size:15px;font-weight:700;box-shadow:var(--shadow-xs)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.section-head h2{margin:0;font-size:21px;line-height:1.2;letter-spacing:-.02em}
.top-gap{margin-top:28px}

/* Buttons */
.btn{min-height:39px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:15px;font-weight:750;line-height:1;cursor:pointer;transition:.14s;box-shadow:var(--shadow-xs)}
.btn .icon{width:16px;height:16px}
.btn:hover{border-color:#d7dce5;background:#fbfcfd;transform:translateY(-1px)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.primary:hover{background:var(--brand-strong);border-color:var(--brand-strong)}
.btn.subtle{background:#fff;color:#344054}
.btn.ghost{background:#f8fafc;border-color:transparent;box-shadow:none}
.btn.danger{background:#fff;border-color:#fecaca;color:#b42318}
.btn.small{min-height:32px;padding:7px 9px;border-radius:9px;font-size:13px}
.btn.large{min-height:44px;padding:11px 16px;font-size:16px}
.btn.wide{width:100%}
.btn.light{background:#fff;color:var(--brand);border-color:#fff}
.text-link{display:inline-flex;align-items:center;gap:5px;color:var(--brand);font-size:14px;font-weight:800}
.text-link .icon{width:14px;height:14px}

/* Generic cards */
.panel-card,.side-card,.stat-card,.metric-card,.course-card-v3,.gallery-card,.teacher-course-card,.course-section,.builder-section,.activity-main-card,.announcement-card,.calendar-month,.profile-card,.form-card,.table-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-xs)}
.panel-card{padding:21px}
.side-card{padding:17px}
.side-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.side-card-head h3{font-size:16px;margin:0}
.side-card-head>.icon,.side-card-head a .icon{width:16px;height:16px;color:var(--brand)}

/* Student dashboard */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:22px}
.dash-main{min-width:0}
.dash-side{display:flex;flex-direction:column;gap:15px}
.course-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.course-card-v3{overflow:hidden;transition:.16s}
.course-card-v3:hover{transform:translateY(-2px);border-color:#d9dee7;box-shadow:var(--shadow-sm)}
.course-card-accent{height:3px;background:var(--brand)}
.course-card-body{padding:16px}
.course-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.soft-badge{display:inline-flex;align-items:center;width:max-content;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:800}
.course-code{font-size:12px;font-weight:850;letter-spacing:.08em;color:#98a2b3;text-transform:uppercase}
.course-card-v3 h3{font-size:17px;line-height:1.3;margin:12px 0 6px;letter-spacing:-.01em}
.course-card-v3 p{font-size:14px;line-height:1.5;color:var(--muted);margin:0;min-height:50px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.progress-meta{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);margin:14px 0 6px}
.progress-meta strong{color:var(--ink)}
.progress-bar{height:6px;background:#edf0f4;border-radius:999px;overflow:hidden}
.progress-bar span{height:100%;display:block;background:var(--brand);border-radius:inherit}
.progress-bar.large{height:7px}
.feed-list{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-xs)}
.feed-item{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}
.feed-item:last-child{border-bottom:0}
.feed-icon{width:34px;height:34px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.feed-icon .icon{width:16px;height:16px}
.feed-copy{min-width:0}
.feed-meta{font-size:12px;color:#98a2b3;margin-bottom:2px}
.feed-copy h3{font-size:16px;margin:0 0 3px}
.feed-copy p{font-size:14px;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stat-card{padding:18px}
.stat-card.prominent{background:#fff;border-color:#f2d6d6;color:var(--ink)}
.stat-icon{width:34px;height:34px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;margin-bottom:14px}
.stat-icon .icon{width:17px;height:17px}
.stat-card>span{display:block;font-size:13px;color:var(--muted)}
.stat-card>strong{display:block;font-size:33px;letter-spacing:-.04em;margin:2px 0 10px;color:var(--brand)}
.mini-progress{height:5px;background:#f2f4f7;border-radius:999px;overflow:hidden}
.mini-progress span{height:100%;display:block;background:var(--brand)}
.deadline-list{display:flex;flex-direction:column}
.deadline-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.deadline-item:last-child{border-bottom:0;padding-bottom:0}
.deadline-date{width:42px;height:42px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;align-content:center;flex:none}
.deadline-date strong,.deadline-date span{display:block;text-align:center;line-height:1}
.deadline-date strong{font-size:17px}.deadline-date span{font-size:11px;font-weight:850;margin-top:3px}
.deadline-item>div:last-child{min-width:0}
.deadline-item>div:last-child>span,.deadline-item>div:last-child>strong,.deadline-item>div:last-child>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deadline-item>div:last-child>span{font-size:11px;color:#98a2b3}.deadline-item>div:last-child>strong{font-size:13px;margin:2px 0}.deadline-item>div:last-child>small{font-size:12px;color:var(--brand)}
.help-card{text-align:left}
.help-icon{width:31px;height:31px;border-radius:9px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:900;margin-bottom:9px}
.help-card h3{font-size:15px;margin:0 0 3px}.help-card p{font-size:13px;color:var(--muted);margin:0 0 10px}

/* Teacher/admin dashboard */
.metric-grid-v3{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.metric-card{padding:16px;display:flex;align-items:center;gap:12px}
.metric-icon{width:39px;height:39px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.metric-icon .icon{width:18px;height:18px}
.metric-card span,.metric-card strong{display:block}.metric-card span{font-size:12px;color:var(--muted);margin-bottom:1px}.metric-card strong{font-size:25px;letter-spacing:-.03em}
.two-col-dashboard{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px}
.teacher-course-list{display:flex;flex-direction:column}
.teacher-course-row{display:flex;align-items:center;gap:11px;padding:11px 2px;border-bottom:1px solid var(--line-soft)}
.teacher-course-row:last-child{border-bottom:0}
.course-letter{width:35px;height:35px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:850;font-size:14px;flex:none}
.course-letter.big{width:48px;height:48px;border-radius:13px;font-size:18px}
.course-letter.big .icon{width:21px;height:21px}
.teacher-course-copy{min-width:0;flex:1}.teacher-course-copy strong,.teacher-course-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teacher-course-copy strong{font-size:15px}.teacher-course-copy span{font-size:12px;color:var(--muted);margin-top:2px}
.status-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}.status-pill.published{background:var(--green-soft);color:var(--green)}.status-pill.draft{background:#f2f4f7;color:#667085}
.agenda-list{display:flex;flex-direction:column;gap:12px}.agenda-item{display:flex;gap:9px}.agenda-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);margin-top:5px;flex:none}.agenda-item span,.agenda-item strong,.agenda-item small{display:block}.agenda-item span{font-size:11px;color:#98a2b3}.agenda-item strong{font-size:14px;margin:1px 0}.agenda-item small{font-size:12px;color:var(--muted)}
.role-summary{display:grid;gap:14px}.role-summary>div{display:flex;align-items:center;gap:11px}.role-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.role-dot.student{background:#2563eb}.role-dot.teacher{background:#f59e0b}.role-dot.admin{background:var(--brand)}.role-summary strong,.role-summary span{display:block}.role-summary strong{font-size:22px}.role-summary div div span{font-size:13px;color:var(--muted)}

/* Toolbars / lists */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.search-box{width:min(460px,100%);position:relative}.search-box .icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#98a2b3}.search-box input{padding-left:37px}
.toolbar-count{font-size:14px;color:var(--muted)}
.empty-state{padding:30px 22px;text-align:center;background:#fff;border:1px dashed #d4d9e2;border-radius:14px;color:var(--muted)}
.empty-state.full{grid-column:1/-1}.empty-state.small{padding:18px}.empty-state h3{font-size:16px;color:var(--ink);margin:7px 0 3px}.empty-state p{font-size:13px;margin:0}.empty-icon{width:39px;height:39px;margin:0 auto 7px;border-radius:11px;background:#f2f4f7;color:#667085;display:grid;place-items:center}.empty-icon .icon{width:18px;height:18px}

/* Course gallery */
.course-gallery,.teacher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gallery-card,.teacher-course-card{overflow:hidden;transition:.16s}
.gallery-card:hover,.teacher-course-card:hover{transform:translateY(-2px);border-color:#d8dde6;box-shadow:var(--shadow-sm)}
.gallery-cover,.teacher-cover{height:86px;position:relative;background:#fff7f7;border-bottom:1px solid #f3dddd;display:flex;align-items:center;padding:16px}
.cover-pattern{position:absolute;inset:0;background:radial-gradient(circle at 82% 10%,rgba(185,28,28,.10),transparent 28%),linear-gradient(135deg,transparent 65%,rgba(185,28,28,.04) 65%);pointer-events:none}
.course-cover-icon,.teacher-cover-letter{width:38px;height:38px;border-radius:11px;background:#fff;color:var(--brand);border:1px solid #f1cece;display:grid;place-items:center;position:relative;z-index:1;font-size:14px;font-weight:850}
.course-cover-icon .icon{width:18px;height:18px}
.category-chip{position:absolute;right:13px;bottom:13px;background:#fff;color:#7f1d1d;border:1px solid #f0d0d0;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:800}
.teacher-cover .status-pill{position:absolute;right:13px;top:13px}.teacher-cover-letter{font-size:15px}
.gallery-body,.teacher-card-body{padding:16px}.gallery-body h2,.teacher-card-body h2{font-size:17px;line-height:1.3;margin:5px 0 6px}.gallery-body p,.teacher-card-body p{font-size:13px;line-height:1.5;color:var(--muted);margin:0;min-height:46px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.course-info-line,.teacher-card-stats{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;color:#667085;font-size:11px}.course-info-line span,.teacher-card-stats span{display:flex;align-items:center;gap:4px}.course-info-line .icon,.teacher-card-stats .icon{width:11px;height:11px}
.manage-hint{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:10px;border-top:1px solid var(--line-soft);font-size:12px;font-weight:850;color:var(--brand)}.manage-hint .icon{width:13px;height:13px}

/* Course detail */
.course-hero-v3{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-xs);padding:24px 26px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:22px;position:relative;overflow:hidden}
.course-hero-v3:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand)}
.course-hero-main{max-width:820px;min-width:0}.course-crumb{display:flex;gap:6px;font-size:11px;color:#98a2b3;margin-bottom:12px}.course-kicker{font-size:11px;font-weight:850;letter-spacing:.12em;color:var(--brand);text-transform:uppercase}.course-hero-v3 h1{font-size:31px;line-height:1.12;letter-spacing:-.035em;margin:6px 0 7px}.course-hero-v3 p{color:var(--muted);font-size:15px;line-height:1.55;margin:0;max-width:720px}.course-hero-info{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;color:#667085;font-size:12px}.course-hero-info span{display:flex;align-items:center;gap:4px}.course-hero-info .icon{width:12px;height:12px}
.progress-orb{--p:calc(var(--progress)*1%);width:80px;height:80px;border-radius:50%;background:conic-gradient(var(--brand) var(--p),#f3e7e7 0);display:grid;place-items:center;position:relative;flex:none}.progress-orb:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}.progress-orb>div{position:relative;text-align:center}.progress-orb strong,.progress-orb span{display:block}.progress-orb strong{font-size:21px;color:var(--brand)}.progress-orb span{font-size:10px;color:var(--muted)}
.course-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.course-content-column{min-width:0}.course-sidebar{display:flex;flex-direction:column;gap:14px}
.course-notice{display:flex;gap:11px;background:#fff;border:1px solid #f0dddd;border-radius:13px;padding:13px;margin-bottom:18px}.notice-icon{width:32px;height:32px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}.notice-icon .icon{width:15px;height:15px}.course-notice span,.course-notice strong{display:block}.course-notice span{font-size:11px;color:#a06a6a}.course-notice strong{font-size:14px;margin:1px 0 2px}.course-notice p{font-size:12px;color:#7a5a5a;margin:0}
.course-sections{display:flex;flex-direction:column;gap:11px}.course-section{overflow:hidden}.section-toggle{width:100%;border:0;background:#fff;padding:13px 14px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer}.section-toggle:hover{background:#fbfcfd}.section-index{width:31px;height:31px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:12px;font-weight:850;flex:none}.section-toggle>div:nth-child(2){flex:1;min-width:0}.section-toggle h3{font-size:15px;margin:0}.section-toggle p{font-size:12px;color:var(--muted);margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collapse-arrow{font-size:19px;color:#98a2b3;transition:.18s}.section-toggle.collapsed .collapse-arrow{transform:rotate(-90deg)}
.section-activities{border-top:1px solid var(--line-soft)}.section-activities.collapsed{display:none}.activity-row{display:flex;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid var(--line-soft)}.activity-row:last-child{border-bottom:0}.activity-row:hover{background:#fafbfc}.activity-row.activity-hidden{opacity:.55}.activity-type-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none}.activity-type-icon .icon{width:15px;height:15px}.activity-type-icon.large{width:42px;height:42px;border-radius:11px}.activity-type-icon.large .icon{width:19px;height:19px}.activity-type-icon.blue{background:var(--blue-soft);color:var(--blue)}.activity-type-icon.orange{background:var(--orange-soft);color:var(--orange)}.activity-type-icon.green{background:var(--green-soft);color:var(--green)}.activity-type-icon.violet{background:var(--violet-soft);color:var(--violet)}.activity-type-icon.cyan{background:var(--cyan-soft);color:var(--cyan)}.activity-type-icon.red{background:var(--brand-soft);color:var(--brand)}.activity-type-icon.slate{background:var(--slate-soft);color:var(--slate)}
.activity-row-copy{min-width:0;flex:1}.activity-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#98a2b3}.activity-row-copy strong{display:block;font-size:14px;margin:1px 0}.activity-row-copy p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.due-inline{display:flex;align-items:center;gap:4px;font-size:11px;color:#a34a4a;margin-top:3px}.due-inline .icon{width:10px;height:10px}.completion-dot{width:23px;height:23px;border:1.5px solid #d6dae1;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}.completion-dot.done{background:#16a34a;border-color:#16a34a}.completion-dot .icon{width:12px;height:12px}.row-arrow .icon{width:14px;height:14px;color:#98a2b3}.section-empty{padding:13px;color:var(--muted);font-size:12px}
.mini-deadlines{display:flex;flex-direction:column}.mini-deadlines a{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid var(--line-soft)}.mini-deadlines a:last-child{border-bottom:0;padding-bottom:0}.mini-date{width:37px;height:37px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;align-content:center;flex:none}.mini-date strong,.mini-date span{display:block;text-align:center;line-height:1}.mini-date strong{font-size:15px}.mini-date span{font-size:10px;margin-top:2px}.mini-deadlines a>div:last-child{min-width:0}.mini-deadlines a>div:last-child strong,.mini-deadlines a>div:last-child span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-deadlines a>div:last-child strong{font-size:12px}.mini-deadlines a>div:last-child span{font-size:11px;color:var(--muted);margin-top:2px}
.teacher-profile{display:flex;align-items:center;gap:9px}.teacher-profile strong,.teacher-profile span{display:block}.teacher-profile strong{font-size:13px}.teacher-profile span{font-size:11px;color:var(--muted);margin-top:1px}

/* Manage course */
.manage-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.manage-title{display:flex;align-items:flex-start;gap:12px}.manage-title>div:last-child{min-width:0}.breadcrumb-v3{display:flex;gap:6px;font-size:11px;color:#98a2b3;margin-bottom:4px}.manage-title h1{font-size:26px;line-height:1.15;letter-spacing:-.03em;margin:0 0 7px}.manage-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.manage-tabs,.subtabs{display:flex;align-items:center;gap:5px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;box-shadow:var(--shadow-xs);overflow:auto}.manage-tabs a,.subtabs a{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:9px;color:#475467;font-size:13px;font-weight:750;white-space:nowrap}.manage-tabs a .icon{width:14px;height:14px}.manage-tabs a.active,.subtabs a.active{background:var(--brand-soft);color:var(--brand)}.tab-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--brand);color:#fff;font-size:11px}
.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.builder-main{min-width:0}.builder-side{display:flex;flex-direction:column;gap:14px}.builder-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.builder-toolbar h2{font-size:20px;margin:0}.builder-sections{display:flex;flex-direction:column;gap:12px}.builder-section{overflow:hidden}.builder-section-head{display:flex;align-items:center;gap:10px;padding:12px 13px;background:#fbfcfd;border-bottom:1px solid var(--line-soft)}.drag-handle{font-size:16px;color:#98a2b3}.builder-section-copy{flex:1;min-width:0}.builder-section-copy h3{font-size:15px;margin:0}.builder-section-copy p{font-size:12px;color:var(--muted);margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.builder-activities{padding:11px 12px;display:flex;flex-direction:column;gap:8px}.builder-activity{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#fff}.builder-activity.is-hidden{opacity:.62;background:#fafafa}.builder-activity-copy{flex:1;min-width:0}.builder-activity-copy span,.builder-activity-copy strong,.builder-activity-copy small{display:block}.builder-activity-copy span{font-size:10px;color:#98a2b3}.builder-activity-copy strong{font-size:13px;margin:1px 0}.builder-activity-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.visibility-toggle{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 8px;font-size:11px;font-weight:750;cursor:pointer}.empty-add{width:100%;border:1px dashed #d6dbe3;background:#fbfcfd;border-radius:10px;padding:10px 11px;color:#475467;text-align:left;font-size:12px;font-weight:750;cursor:pointer}.builder-summary{display:grid;gap:8px}.builder-summary>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:12px}.builder-summary>div:last-child{border-bottom:0}.builder-summary strong{font-size:15px}

/* Forms / modals */
.form-stack{display:grid;gap:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.span-2{grid-column:1/-1}.form-stack label,.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750;color:#344054}.form-section{grid-column:1/-1;padding-top:4px}.form-section h3{font-size:15px;margin:0 0 4px}.form-section p{font-size:12px;color:var(--muted);margin:0}
input,select,textarea{width:100%;border:1px solid #d9dee7;background:#fff;border-radius:10px;padding:9px 11px;color:var(--ink);outline:none;font-size:14px}textarea{resize:vertical;min-height:94px}input:focus,select:focus,textarea:focus{border-color:#e5a0a0;box-shadow:0 0 0 3px rgba(185,28,28,.08)}
.switch-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}.switch-row input{width:auto}.switch-row span strong,.switch-row span small{display:block}.switch-row span strong{font-size:13px}.switch-row span small{font-size:11px;color:var(--muted);margin-top:1px}
.input-with-icon{position:relative;display:flex;align-items:center}.input-with-icon .icon{position:absolute;left:11px;color:#98a2b3;width:15px;height:15px}.input-with-icon input{padding-left:35px}
.modal{position:fixed;inset:0;z-index:90;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.44);backdrop-filter:blur(2px)}.modal.open{display:flex}.modal-card{position:relative;width:min(620px,100%);max-height:88vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow-md)}.modal-card.modal-wide{width:min(820px,100%)}.modal-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:0;border-radius:9px;background:#f2f4f7;display:grid;place-items:center;font-size:20px;cursor:pointer}.modal-card h2{font-size:22px;margin:0 0 15px;letter-spacing:-.02em}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:3px}

/* Activities */
.activity-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px}.activity-main-card{padding:21px}.activity-side{display:flex;flex-direction:column;gap:14px}.activity-page-head{margin-bottom:15px}.activity-title-row{display:flex;align-items:center;gap:11px}.activity-title-row h1{font-size:26px;line-height:1.15;letter-spacing:-.03em;margin:0}.activity-label{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:850;color:#98a2b3}.activity-due-banner{display:flex;align-items:center;gap:8px;background:#fff8f8;border:1px solid #f5d4d4;color:#8f3030;border-radius:10px;padding:9px 11px;margin:12px 0;font-size:12px}.activity-due-banner .icon{width:14px;height:14px}.activity-facts,.assignment-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.activity-facts>div,.assignment-meta>div{padding:10px 11px;background:#fbfcfd;border:1px solid var(--line-soft);border-radius:10px}.activity-facts span,.activity-facts strong,.assignment-meta span,.assignment-meta strong{display:block}.activity-facts span,.assignment-meta span{font-size:11px;color:var(--muted)}.activity-facts strong,.assignment-meta strong{font-size:13px;margin-top:2px}.rich-content,.intro-text,.assignment-brief{font-size:14px;line-height:1.65;color:#344054}.rich-content p,.intro-text p{margin:0 0 12px}.resource-box{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:14px 0;background:#fff}.resource-icon{width:35px;height:35px;border-radius:10px;background:var(--slate-soft);color:var(--slate);display:grid;place-items:center}.resource-box>div:nth-child(2){flex:1;min-width:0}.resource-box strong,.resource-box span{display:block}.resource-box strong{font-size:13px}.resource-box span{font-size:11px;color:var(--muted)}.media-placeholder{padding:28px;border:1px dashed #d4d9e2;border-radius:12px;text-align:center;color:var(--muted);font-size:13px;background:#fbfcfd}.complete-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line-soft);padding-top:14px;margin-top:18px}.completed-banner{display:flex;align-items:center;gap:8px;background:var(--green-soft);color:var(--green);padding:9px 11px;border-radius:10px;font-size:12px;font-weight:750}.completed-banner .icon{width:14px;height:14px}
.submission-card,.grade-result,.quiz-last-result{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff;margin:12px 0}.submission-status-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.submission-status{font-size:12px;font-weight:800}.submission-status.submitted{color:var(--orange)}.submission-status.graded{color:var(--green)}.submission-text{font-size:13px;color:#475467;white-space:pre-wrap}.file-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--line);border-radius:999px;font-size:11px}.file-pill .icon{width:12px;height:12px}.grade-result{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}.result-circle{width:78px;height:78px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;text-align:center}.result-circle strong{font-size:21px}.result-circle span{display:block;font-size:10px}.grade-summary h3{font-size:15px;margin:0 0 4px}.grade-summary p{font-size:12px;color:var(--muted);margin:0}.grade-form{display:grid;grid-template-columns:120px 1fr auto;gap:9px;align-items:end}.grade-form label{font-size:12px;font-weight:750}.grade-form input,.grade-form textarea{margin-top:5px}
.forum-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.forum-post{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;margin-bottom:9px}.forum-post.reply{margin-left:24px;background:#fbfcfd}.forum-author{display:flex;align-items:center;gap:8px;margin-bottom:7px}.forum-author strong,.forum-author span{display:block}.forum-author strong{font-size:12px}.forum-author span{font-size:10px;color:var(--muted)}.forum-post p{font-size:13px;color:#475467;margin:0;white-space:pre-wrap}.reply-count{font-size:11px;color:var(--muted);margin-top:7px}.forum-reply-form{margin-top:8px}.topic-list{display:flex;flex-direction:column;gap:8px}.topic-row{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;padding:10px}.topic-row>div{flex:1;min-width:0}.topic-row strong,.topic-row span{display:block}.topic-row strong{font-size:13px}.topic-row span{font-size:11px;color:var(--muted)}
.quiz-v3{display:grid;gap:10px}.question-builder-list{display:grid;gap:9px}.question-builder-card{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fff}.question-number{width:27px;height:27px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:12px;font-weight:850;flex:none}.question-builder-copy{flex:1;min-width:0}.question-builder-copy>strong{display:block;font-size:13px;margin-bottom:7px}.question-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.question-options span{padding:7px 8px;border:1px solid var(--line);border-radius:8px;font-size:11px}.question-options span.correct{background:var(--green-soft);border-color:#bbf7d0;color:var(--green)}.quiz-option{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.quiz-option:hover{background:#fbfcfd;border-color:#d8dde6}.quiz-option input{width:auto;margin-top:2px}.option-letter{width:22px;height:22px;border-radius:7px;background:#f2f4f7;display:grid;place-items:center;font-size:11px;font-weight:800}.quiz-option span:last-child{font-size:12px}.score-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:850}

/* Grades */
.grades-stack{display:grid;gap:14px}.grade-course-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.grade-course-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;background:#fbfcfd;border-bottom:1px solid var(--line-soft)}.grade-course-head h2{font-size:16px;margin:0}.grade-course-head span{font-size:12px;color:var(--muted)}.grade-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 80px;gap:12px;align-items:center;padding:10px 15px;border-bottom:1px solid var(--line-soft);font-size:12px}.grade-row:last-child{border-bottom:0}.grade-row strong{font-size:13px}.grades-manage-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.submission-list{display:flex;flex-direction:column}.submission-person{display:flex;align-items:center;gap:8px}.submission-person strong,.submission-person span{display:block}.submission-person strong{font-size:12px}.submission-person span{font-size:11px;color:var(--muted)}

/* Announcements */
.announcement-feed{display:flex;flex-direction:column;gap:11px}.announcement-card{display:flex;gap:12px;padding:15px}.announcement-marker{width:34px;height:34px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}.announcement-marker .icon{width:16px;height:16px}.announcement-card>div:last-child{min-width:0}.announcement-meta{display:flex;gap:6px;flex-wrap:wrap;font-size:11px;color:#98a2b3;margin-bottom:3px}.announcement-card h2{font-size:16px;margin:0 0 5px}.announcement-card p{font-size:13px;line-height:1.55;color:#475467;margin:0}.announcement-author{margin-top:7px;font-size:11px;color:var(--muted)}

/* Calendar */
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.calendar-month{padding:16px;margin-bottom:12px}.month-title{display:flex;align-items:baseline;gap:7px;padding-bottom:10px;border-bottom:1px solid var(--line-soft);margin-bottom:8px}.month-title span{font-size:11px;font-weight:850;letter-spacing:.13em;color:var(--brand)}.month-title strong{font-size:18px}.event-list{display:flex;flex-direction:column}.event-row{display:grid;grid-template-columns:43px 12px minmax(0,1fr);gap:10px;padding:9px 0}.event-day{width:43px;height:43px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;align-content:center}.event-day strong,.event-day span{display:block;text-align:center;line-height:1}.event-day strong{font-size:16px}.event-day span{font-size:10px;margin-top:3px}.event-line{width:2px;background:#edf0f4;justify-self:center;border-radius:999px}.event-copy{min-width:0}.event-type{font-size:10px;color:#98a2b3}.event-copy h3{font-size:13px;margin:2px 0}.event-copy p{font-size:11px;color:var(--muted);margin:0}.legend-list{display:grid;gap:8px}.legend-list span{display:flex;align-items:center;gap:7px;font-size:12px;color:#475467}.legend{width:8px;height:8px;border-radius:50%;display:inline-block}.legend.red{background:#ef4444}.legend.orange{background:#f97316}.legend.blue{background:#2563eb}

/* Tables */
.table-card{overflow:auto}.table-card.flat{border:0;box-shadow:none;border-radius:0}.modern-table{width:100%;border-collapse:collapse;font-size:12px}.modern-table th,.modern-table td{padding:10px 11px;text-align:left;border-bottom:1px solid var(--line-soft);vertical-align:middle}.modern-table th{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#98a2b3;background:#fbfcfd}.modern-table tbody tr:hover{background:#fbfcfd}.modern-table tr:last-child td{border-bottom:0}.table-person{display:flex;align-items:center;gap:8px}.table-person strong,.table-person span{display:block}.table-person strong{font-size:12px}.table-person span,.table-secondary{font-size:11px;color:var(--muted);margin-top:1px}.table-link{color:var(--brand);font-weight:750}.table-empty{text-align:center;padding:20px;color:var(--muted)}

/* Profile / settings */
.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.profile-card{padding:18px;text-align:center}.profile-avatar{width:64px;height:64px;margin:0 auto 10px;border-radius:18px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:21px;font-weight:850}.profile-card h2{font-size:17px;margin:0 0 3px}.profile-card p{font-size:12px;color:var(--muted);margin:0}.profile-details{display:grid;gap:9px;margin-top:15px;text-align:left}.profile-details>div{padding:8px 0;border-bottom:1px solid var(--line-soft)}.profile-details>div:last-child{border-bottom:0}.profile-details span,.profile-details strong{display:block}.profile-details span{font-size:10px;color:#98a2b3}.profile-details strong{font-size:12px;margin-top:1px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.danger-zone{border-color:#fecaca!important}.tip-card{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px;color:#9a3412;font-size:12px}.max-form{max-width:720px}.check-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.role-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:11px;font-weight:750}

/* Login / installer */
.login-body,.install-body{background:#f7f8fa}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(430px,1.03fr) minmax(430px,.97fr)}.login-visual{background:#fff8f8;border-right:1px solid #f0dddd;padding:38px;display:flex;flex-direction:column;justify-content:space-between}.login-logo-card{width:max-content;background:#fff;border:1px solid #f0dddd;border-radius:14px;padding:14px 16px;box-shadow:var(--shadow-sm)}.login-logo-card img{width:150px;max-height:60px;object-fit:contain}.login-hero-copy{margin:30px 0 22px}.login-hero-copy h1{font-size:44px;line-height:1.02;letter-spacing:-.05em;margin:0 0 11px;max-width:500px}.login-hero-copy p{font-size:16px;line-height:1.6;color:#475467;max-width:520px;margin:0}.login-benefits{display:grid;grid-template-columns:1fr;gap:9px}.login-benefits>div{display:flex;gap:10px;padding:10px 11px;background:rgba(255,255,255,.78);border:1px solid #f0dddd;border-radius:12px}.login-benefits>div>span{width:31px;height:31px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}.login-benefits>div>span .icon{width:15px;height:15px}.login-benefits strong,.login-benefits small{display:block}.login-benefits strong{font-size:13px}.login-benefits small{font-size:11px;color:var(--muted);margin-top:1px}.login-company{font-size:12px;color:#475467}.login-company span{color:var(--muted)}.login-access{display:grid;place-items:center;padding:34px}.login-form-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:29px;box-shadow:var(--shadow-md)}.login-form-card h2{font-size:30px;letter-spacing:-.04em;margin:0 0 6px}.login-form-card>p{font-size:14px;color:var(--muted);margin:0 0 17px}.login-form{gap:12px}.login-support{margin-top:15px;padding-top:13px;border-top:1px solid var(--line-soft);display:grid;gap:2px}.login-support strong{font-size:12px}.login-support span{font-size:11px;color:var(--muted)}.mobile-login-logo{display:none}
.install-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1fr) minmax(480px,1fr)}.install-brand{background:#fff8f8;border-right:1px solid #f0dddd;padding:38px}.install-brand h1{font-size:40px;line-height:1.05;letter-spacing:-.05em;margin:0 0 10px}.install-copy{font-size:16px;line-height:1.6;color:#475467;max-width:520px}.feature-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:24px}.feature-checks span{font-size:11px;padding:8px;border-radius:9px;background:#fff;border:1px solid #f0dddd}.install-form{display:grid;place-items:center;padding:34px}.form-card{width:min(560px,100%);padding:24px}.demo-note{margin-top:14px;padding:9px 10px;background:#fff8f8;border:1px solid #f0dddd;border-radius:9px}.demo-note strong,.demo-note span{display:block}.demo-note strong{font-size:11px;color:#8f171b}.demo-note span{font-size:10px;color:#8b6062}

@media(max-width:1160px){.course-cards,.course-gallery,.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.course-layout,.builder-layout,.activity-layout,.calendar-layout,.two-col-dashboard,.settings-grid,.grades-manage-grid,.profile-layout{grid-template-columns:1fr}.dash-side,.course-sidebar,.builder-side,.activity-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.login-page,.install-shell{grid-template-columns:1fr}.login-visual{min-height:430px}.login-benefits{grid-template-columns:repeat(3,1fr)}}
@media(max-width:920px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;width:264px;transform:translateX(-104%);transition:.2s;box-shadow:18px 0 40px rgba(0,0,0,.14)}body.menu-open .sidebar{transform:translateX(0)}.sidebar-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:45}body.menu-open .sidebar-overlay{display:block}.mobile-menu{display:grid}.topbar{padding:0 16px}.content{padding:24px 19px 46px}.app-footer{padding-left:19px;padding-right:19px}}
@media(max-width:650px){.content{padding:20px 13px 38px}.topbar-title span,.top-profile span{display:none}.page-heading,.welcome-row,.manage-header,.builder-toolbar,.toolbar,.course-hero-v3{align-items:flex-start;flex-direction:column}.page-heading h1,.welcome-row h1,.course-hero-v3 h1,.activity-title-row h1{font-size:27px}.course-cards,.course-gallery,.teacher-grid,.metric-grid-v3,.dash-side,.course-sidebar,.builder-side,.activity-side,.question-options{grid-template-columns:1fr}.course-hero-v3{padding:20px 18px}.progress-orb{width:72px;height:72px}.manage-title{align-items:center}.manage-title h1{font-size:23px}.manage-tabs,.subtabs{width:100%}.manage-tabs a{min-width:max-content}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.builder-section-head,.builder-activity{flex-wrap:wrap}.builder-section-copy,.builder-activity-copy{min-width:160px}.grade-form,.grade-result,.activity-facts,.assignment-meta{grid-template-columns:1fr}.forum-post.reply{margin-left:12px}.modern-table{min-width:660px}.login-visual{display:none}.login-access{min-height:100vh;padding:18px}.mobile-login-logo{display:block;width:145px;margin:0 0 22px}.login-form-card{padding:22px}.login-form-card h2{font-size:27px}.modal{padding:10px}.modal-card{padding:19px 14px 15px}.feature-checks{grid-template-columns:1fr}.install-brand{min-height:auto;padding:28px 20px}.install-brand h1{font-size:34px}.install-form{padding:20px 14px}.resource-box,.complete-bar{align-items:flex-start;flex-wrap:wrap}.resource-box .btn{width:100%}}
@media print{.sidebar,.topbar,.app-footer,.mobile-menu,.sidebar-overlay,.course-sidebar,.activity-side,.builder-side,.btn{display:none!important}.app-shell{display:block}.content{padding:0}.panel-card,.side-card,.course-section,.activity-main-card,.announcement-card,.calendar-month{box-shadow:none}}
/* Complementos de consistencia */
.compact-cards{align-items:stretch}
.small-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.activity-form{align-items:start}
.quiz-builder{display:grid;gap:14px}
.back-link{margin-bottom:8px}
.side-back{display:inline-flex;color:var(--brand);font-size:12px;font-weight:800;margin-bottom:10px}
.forum-post.original{border-left:3px solid var(--brand)}
@media(max-width:1160px){.small-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.small-gallery{grid-template-columns:1fr}}


/* ===== V3.4 legibility scale ===== */
body{line-height:1.6}
.page-heading p,.welcome-row p,.course-hero-v3 p,.activity-description,.announcement-card p,.event-copy p{line-height:1.65}
.nav-item{min-height:46px}
.sidebar-user-copy strong{font-size:14px}
.sidebar-user-copy span{font-size:12px}
.topbar-title span{font-size:12px}
.topbar-title strong{font-size:17px}
.top-profile span{font-size:14px}
.eyebrow,.kicker-light{font-size:12px;line-height:1.2}
.page-heading h1,.welcome-row h1{font-size:34px}
.page-heading p,.welcome-row p{font-size:16px}
.section-head h2{font-size:22px}
.btn{font-size:14px;min-height:42px}
.btn.small{font-size:12px;min-height:34px}
.btn.large{font-size:15px;min-height:46px}
.text-link{font-size:13px}
.date-chip{font-size:14px}
.soft-badge,.status-pill,.role-chip{font-size:12px}
.course-code{font-size:12px}
.course-card-v3 h3{font-size:18px}
.course-card-v3 p{font-size:14px;line-height:1.6}
.progress-meta{font-size:13px}
.feed-meta{font-size:12px}
.feed-copy h3{font-size:16px}
.feed-copy p{font-size:14px}
.side-card-head h3{font-size:16px}
.deadline-item>div:last-child>span,.mini-deadlines a>div:last-child>span,.agenda-item span,.agenda-item small{font-size:12px}
.deadline-item>div:last-child>strong,.mini-deadlines a>div:last-child>strong,.agenda-item strong{font-size:14px}
.metric-card span{font-size:13px}
.metric-card strong{font-size:30px}
.teacher-course-copy strong{font-size:15px}
.teacher-course-copy span{font-size:13px}
.gallery-body h2{font-size:20px}
.gallery-body p{font-size:14px;line-height:1.6}
.course-info-line{font-size:12px}
.manage-hint{font-size:13px}
.course-crumb,.breadcrumb-v3{font-size:12px}
.course-kicker{font-size:12px}
.course-hero-v3 h1{font-size:34px}
.course-hero-info{font-size:13px}
.progress-orb strong{font-size:25px}
.progress-orb span{font-size:11px}
.section-toggle h3{font-size:16px}
.section-toggle p{font-size:13px}
.activity-label{font-size:11px}
.activity-row-copy strong{font-size:15px}
.activity-row-copy p{font-size:13px;line-height:1.55}
.due-inline{font-size:12px}
.manage-title h1{font-size:30px}
.manage-sub{font-size:13px}
.manage-tabs a,.subtabs a{font-size:14px}
.builder-toolbar h2{font-size:23px}
.builder-section-copy h3{font-size:16px}
.builder-section-copy p{font-size:13px}
.builder-activity-copy span{font-size:12px}
.builder-activity-copy strong{font-size:15px}
.builder-activity-copy small{font-size:13px;line-height:1.55}
.visibility-toggle{font-size:12px}
.empty-add{font-size:14px}
.form-stack label,.form-grid label{font-size:14px}
input[type=text],input[type=email],input[type=password],input[type=date],input[type=datetime-local],input[type=number],select,textarea{font-size:15px;line-height:1.45}
.activity-title-row h1{font-size:32px}
.activity-kicker{font-size:12px}
.activity-main-card p,.resource-box,.complete-bar,.forum-post{font-size:14px}
.question-card legend{font-size:16px}
.question-options label,.answer{font-size:14px;line-height:1.5}
.announcement-meta,.announcement-author{font-size:12px}
.announcement-card h2{font-size:21px}
.announcement-card p{font-size:14px}
.month-title span{font-size:11px}
.month-title strong{font-size:20px}
.event-day strong{font-size:18px}
.event-day span{font-size:10px}
.event-type{font-size:11px}
.event-copy h3{font-size:15px}
.event-copy p{font-size:13px}
.legend-list span{font-size:13px}
.modern-table{font-size:13px}
.modern-table th{font-size:11px}
.table-person strong{font-size:13px}
.table-person span,.table-secondary{font-size:12px}
.profile-card h2{font-size:18px}
.profile-card p{font-size:13px}
.profile-details span{font-size:11px}
.profile-details strong{font-size:13px}
.tip-card{font-size:13px;line-height:1.55}
.login-hero-copy h1{font-size:46px}
.login-hero-copy p{font-size:16px}
.login-benefits strong{font-size:14px}
.login-benefits small{font-size:12px;line-height:1.5}
.login-company{font-size:12px}
.login-form-card h2{font-size:31px}
.login-form-card>p{font-size:14px}
.login-support strong{font-size:13px}
.login-support span{font-size:12px}
.install-copy{font-size:15px}
.feature-checks span{font-size:12px}
.demo-note strong{font-size:12px}
.demo-note span{font-size:11px}
.alert,.muted-box{font-size:14px}
.app-footer{font-size:12px}
@media(max-width:650px){
  body{font-size:16px}
  .page-heading h1,.welcome-row h1,.course-hero-v3 h1,.activity-title-row h1{font-size:29px}
  .page-heading p,.welcome-row p{font-size:15px}
  .nav-item{font-size:15px}
  .login-form-card h2{font-size:28px}
  .modern-table{font-size:13px}
}
