/* DIN STYRING – felles mobiltilpasning. Lastes sist på alle sider. */
html,body{max-width:100%;overflow-x:hidden}
/* KS 14.10: topplinja vokser når knappene bryter til ny linje (dekket av prosjektlinja i Kursfortegnelse) */
.topbar{height:auto!important;min-height:50px}
img,video,canvas,svg{max-width:100%}
@media(max-width:760px){
.ds-nav{padding:0 12px!important;gap:.6rem!important}
.ds-nav-sep,.ds-nav-title{display:none!important}
.topbar{position:static!important;flex-direction:column!important;flex-wrap:nowrap!important;height:auto!important;max-height:none!important;align-items:stretch!important;padding:12px!important;gap:10px!important}
.topbar-left{flex-wrap:wrap!important;gap:10px!important;min-width:0}
.topbar-title{padding-left:0!important;border-left:0!important}
.topbar-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%}
.topbar-actions>.btn,.topbar-actions>a,.topbar-actions>button{width:100%;min-height:44px;justify-content:center;text-align:center;white-space:normal;margin:0!important}
.workspace{display:block!important;min-height:0!important}
.form-panel{padding:12px!important;border-right:0!important;min-width:0}
.preview-panel{min-height:0!important;min-width:0}
.preview-scroll{overflow-x:auto!important;padding:10px!important}
.field-grid,.cols-2,.cols-3,.cols-4{grid-template-columns:minmax(0,1fr)!important}
.field-full{grid-column:auto!important}
.section-header{flex-wrap:wrap}
input,select,textarea{font-size:16px!important;max-width:100%}
input[type=checkbox],input[type=radio]{font-size:inherit!important}
.btn{min-height:40px}
.form-panel table,.section-body table{display:block;overflow-x:auto;max-width:100%}
.ds-projbar{flex-wrap:wrap!important;gap:6px!important}
.ds-projbar select{flex:1 1 100%!important;min-width:0!important;font-size:16px!important}
.ds-mini{min-height:40px}
.ds-modal-bg{padding:10px!important}
.ds-modal{max-height:90vh!important;padding:16px!important}
.toast,.ds-toast{left:12px!important;right:12px!important;bottom:12px!important}
.header,.toolbar,.buttons{flex-wrap:wrap!important}
.nav{padding:0 12px!important;gap:.6rem!important}
.nav .nav-title,.nav .nav-sep,.nav .badge-new{display:none!important}
.nav-back{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mrad{grid-template-columns:auto minmax(0,1fr)!important;row-gap:8px!important}
.mrad .navn{grid-column:2}
.mrad .akt{grid-column:1/-1;justify-content:flex-start!important;flex-wrap:wrap}
.check-main,.check-title-wrap{min-width:0;flex-wrap:wrap}
.check-title-wrap h3{min-width:0;overflow-wrap:anywhere;white-space:normal!important}
.login-glow{max-width:100vw}
[style*="grid-template-columns: 1fr 1fr"],[style*="grid-template-columns:1fr 1fr"],[style*="grid-template-columns: repeat(3"],[style*="grid-template-columns: repeat(4"]{grid-template-columns:minmax(0,1fr)!important}
}
@media print{html,body{overflow:visible!important}}
