img,video,canvas{max-width:100%}
button,.button{padding:8px 14px;font-size:13px;line-height:1.5}
.form input:not([type=checkbox]):not([type=file]),.form textarea,.form select{padding:9px 11px}
.chip,.tags a{padding:6px 11px}
.search button{min-width:88px}
.wizard-actions button{min-width:0}
.vote-button{min-width:60px;font-size:14px}
.grid>*,.cards>*,.stats>*,.panel,.form,.form label,.workspace-menu>div,.dashboard-card,.wizard-progress,.rich-content{min-width:0}
.panel,.dashboard-card,.lesson-card,.question,.faq,.rich-content{overflow-wrap:anywhere}
.form input,.form select,.form textarea{min-width:0;max-width:100%}
.rich-content img,.rich-editor-body img{height:auto;max-width:100%}
.rich-content table,.rich-editor-body table{max-width:100%}
.workspace-menu>div{flex-wrap:wrap}
.workspace-menu a{min-width:0}
.file-preview-header{flex-shrink:0;max-height:45%;overflow-y:auto}
.file-preview-toolbar{min-width:0}
@media(max-width:800px){
  .nav{height:auto;min-height:72px;flex-wrap:wrap;gap:8px 16px;padding-top:10px;padding-bottom:10px}
  .nav nav{flex-wrap:wrap;min-width:0;gap:4px 12px}
  .nav nav>a:first-child{display:inline-flex}
  .workspace-menu>div{align-items:center}
  .manage,.detail{grid-template-columns:minmax(0,1fr)}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .wrap{padding-inline:12px}
  .nav{align-items:center}
  .nav nav{width:100%;justify-content:flex-start;font-size:12px}
  .nav nav a,.nav nav button{min-height:40px}
  .brand{font-size:17px}
  .brand-icon{width:38px;height:38px}
  .workspace-menu>div{gap:6px;padding:10px}
  .workspace-menu strong{min-width:0;flex-basis:100%}
  .workspace-menu a{min-height:42px;padding:6px 8px}
  .panel{padding:16px}
  .lesson-create,.lesson-wizard{padding:12px}
  .section-heading,.timeline-heading{flex-wrap:wrap}
  .cards{grid-template-columns:minmax(0,1fr)}
  .stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))}
  .dashboard-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
  .hero-copy{width:100%;min-width:0}
  .hero h1{font-size:clamp(22px,7vw,27px)}
  .search button{min-width:0;padding-inline:12px}
  .footer{gap:12px;flex-wrap:wrap}
  .timeline-public .timeline-item{gap:6px}
  .timeline-public .timeline-marker{flex-basis:30px;height:30px}
  .timeline-public::before{right:14px}
  .timeline-public .timeline-card{padding:10px;gap:8px}
  .timeline-public .timeline-thumbnail,.timeline-public .thumbnail-fallback-timeline{width:55px;height:45px}
  .file-preview-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
  .file-preview-header{padding:8px 10px}
  .file-preview-header .file-preview-toolbar{justify-content:flex-start}
  .pdf-viewer{padding:8px}
}
@media(max-width:360px){
  .nav nav{gap:4px 8px}
  .hero-copy{padding:24px 16px}
  .search{flex-wrap:wrap;gap:6px}
  .search input{flex-basis:100%}
  .search button{width:100%}
  .wizard-actions button{flex-basis:100%}
}
@media(max-width:650px){.wizard-actions button{flex:0 1 auto;min-height:40px}}
@media(pointer:coarse){.actions>.button,.actions>button,.form>button,.wizard-actions button{min-height:40px}}
.header{position:relative;z-index:20}.nav{position:relative;flex-wrap:nowrap;min-height:68px}.header-menu{position:relative;flex:none}.header-menu>summary{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 13px;border:1px solid #dedcf4;border-radius:10px;background:#f5f4ff;color:#4d42c8;font-weight:700;font-size:13px;cursor:pointer;list-style:none}.header-menu>summary::-webkit-details-marker{display:none}.header-menu>summary:focus-visible{outline:3px solid #a9a3fa;outline-offset:2px}.header-menu[open]>summary{background:#e9e7ff}.header-menu-icon{display:grid;place-items:center;width:20px;height:20px}.header-menu-icon span,.header-menu-icon span::before,.header-menu-icon span::after{display:block;width:17px;height:2px;border-radius:2px;background:currentColor}.header-menu-icon span{position:relative}.header-menu-icon span::before,.header-menu-icon span::after{content:'';position:absolute;right:0}.header-menu-icon span::before{top:-6px}.header-menu-icon span::after{top:6px}.header-menu-panel{position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:min(540px,calc(100vw - 24px));max-height:min(75vh,650px);overflow:auto;padding:12px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 18px 45px #18263e2b}.header .header-main-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.header .header-main-links a,.header .header-main-links button{display:flex;align-items:center;min-height:40px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#40516a;text-align:right;font-size:12px;font-weight:700;box-shadow:none}.header .header-main-links a:hover,.header .header-main-links button:hover{background:#f2f1ff;color:var(--brand)}.header .header-main-links form{margin:0}.header .workspace-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 0;padding-top:10px;border-top:1px solid var(--border)}.header .workspace-menu>div{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0;padding:0;border:0;box-shadow:none}.header .workspace-menu strong{width:auto;min-width:0;margin:0;padding:4px 8px;color:#7a8799;font-size:11px}.header .workspace-menu a{display:flex;align-items:center;gap:7px;min-height:40px;padding:6px 8px;font-size:12px}.header .workspace-icon{flex:none}.header .workspace-menu a[aria-current=page]{background:#eeecff;color:var(--brand)}
@media(max-width:520px){.nav{width:100%;min-height:62px}.header-menu-panel{position:fixed;inset-inline:12px;top:68px;width:auto;max-height:calc(100dvh - 80px)}.header .header-main-links,.header .workspace-menu{grid-template-columns:minmax(0,1fr)}.header .workspace-menu a{min-height:42px}}
.people-create,.people-record{margin:14px 0;border:1px solid var(--border);border-radius:12px;background:#fff}.people-create{padding:14px 16px;background:#f8faff}.people-create>summary,.people-reset>summary{color:var(--brand);font-weight:700;cursor:pointer}.people-create>p{margin:10px 0 0}.people-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-items:end}.people-form>button,.people-form>.check{grid-column:1 / -1}.people-form>button{margin-top:2px}.people-optional{color:#7b899c;font-size:11px;font-weight:400}.people-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 10px}.people-list-heading h2{margin:0}.people-list-heading span{color:var(--muted);font-size:12px}.people-record>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.people-record>summary::-webkit-details-marker{display:none}.people-record>summary>span:first-child{display:grid;min-width:0}.people-record>summary small{color:var(--muted);overflow-wrap:anywhere}.people-status{flex:none;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700}.people-status.is-active{background:#e8f6ee;color:#126343}.people-status.is-inactive{background:#f1f3f7;color:#68788d}.people-record-body{padding:0 16px 16px;border-top:1px solid var(--border)}.people-reset{margin-top:20px;padding-top:14px;border-top:1px solid var(--border)}.people-empty{padding:14px;border-radius:10px;background:#f8faff}.public-user-search{margin-bottom:16px}
@media(max-width:520px){.people-form{grid-template-columns:minmax(0,1fr)}.people-create{padding:12px}.people-record>summary{padding:12px}.people-record-body{padding:0 12px 12px}}
