/* Shared browser layout: keep intrinsic table widths inside their scroll regions. */
.app-main,.dashboard-grid>*,.dashboard-primary>*,.panel,.table-wrap,.table-responsive{min-width:0}
.table-wrap,.table-responsive{max-width:100%}
.app-main .panel-heading{flex-wrap:wrap;gap:10px}
.app-main .panel-heading>*{min-width:0}
.app-main :is(h1,h2,h3,p,dd,.notice,.alert){overflow-wrap:anywhere}
.app-main .form-actions{flex-wrap:wrap}
.mobile-menu summary{cursor:pointer;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:22px;list-style:none}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu nav,.mobile-public-menu nav{max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
.mobile-menu nav a,.mobile-public-menu nav a{min-height:44px;display:flex;align-items:center;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){
 .app-main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .sidebar{gap:12px}.sidebar .brand{min-width:0}.sidebar .brand small{letter-spacing:1px;white-space:normal}
 .mobile-menu{position:relative;flex-shrink:0}.mobile-menu nav{width:min(280px,calc(100vw - 32px));min-width:0;z-index:110}
 .dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .app-main .button{max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
 .app-main :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:16px;max-width:100%}
 .app-main :is(.btn,.button){min-height:44px}
 .legacy-content .modal-dialog{max-width:calc(100% - 16px);margin:8px auto}
 .legacy-content .modal-body{min-width:0;overflow-wrap:anywhere}
 .legacy-content .modal-body textarea{max-width:100%;width:100%;box-sizing:border-box}
 .legacy-content .modal-footer{gap:8px;flex-wrap:wrap}
 .legacy-content .modal-content{max-width:100%}
 .legacy-content .form-control,.legacy-content .form-select{min-height:44px}
 .legacy-content :is(audio,video,img){max-width:100%}
 .legacy-content .e-grid{max-width:100%}.legacy-content .e-grid .e-gridcontent{overflow-x:auto}
 .login-section{display:flex;flex-direction:column}
 .login-section .login-card{order:0;padding:24px 20px;border-radius:16px 16px 0 0;min-width:0}
 .login-section .login-story{order:1;padding:24px 20px;border-radius:0 0 16px 16px}
 .login-section .login-story h1{font-size:24px;line-height:1.25}
 .login-section .login-decoration{display:none}
 .enterprise-site :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:16px;max-width:100%}
 .enterprise-site .login-card h2{font-size:24px;line-height:1.25;overflow-wrap:anywhere}
 .enterprise-site .form-actions{flex-wrap:wrap}
}
@media(max-width:600px){
 /* Native table semantics/labels remain present; JS enhances these selected lists. */
 .mobile-records-ready,.mobile-records-ready tbody,.mobile-records-ready tr,.mobile-records-ready td{display:block;width:100%;min-width:0!important}
 .mobile-records-ready thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-records-ready tbody{display:grid;gap:16px}
 .mobile-records-ready tr{border:1px solid #d9e4ef;border-radius:12px;padding:12px;background:#fff}
 .app-main .mobile-records-ready td{padding:8px!important;border:0;overflow-wrap:anywhere;text-align:left}
 .mobile-records-ready td:before{content:attr(data-label);display:block;font-weight:600;font-size:12px;color:#526c86;margin-bottom:5px}
 .mobile-records-ready td .billing-actions{display:flex;flex-wrap:wrap;gap:8px}
 .mobile-records-ready td :is(.button,.btn){white-space:normal}
 .mobile-records-ready :is(.submission-actions,.billing-actions)>*{flex:1 1 120px}
 .enterprise-site header .brand img{max-width:100%;height:auto}
}

/* Compact saved answer artwork in the builder and browser survey. */
.preview-image-r img.r-imgsrc{width:56px!important;height:56px!important;max-width:56px!important;object-fit:contain;vertical-align:middle}
.preview-image-r .row{margin-top:8px!important;margin-bottom:8px!important}
.native-answer-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-block:8px}
.native-answer-choice{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border:1px solid #ccd9e7;border-radius:12px;background:#f5f8fc;color:#15334e;font:inherit;text-align:left;overflow-wrap:anywhere}
.native-answer-choice.is-selected{background:#175fe4;border-color:#175fe4;color:#fff}
.native-answer-choice:focus-visible{outline:3px solid #82b6ff;outline-offset:2px}
.native-answer-image{flex:0 0 40px;width:40px!important;height:40px!important;max-width:40px!important;object-fit:contain}
#native-survey .native-choice-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;clip-path:inset(50%);overflow:hidden;opacity:0}
@media(max-width:600px){
 .preview-image-r img.r-imgsrc{width:40px!important;height:40px!important;max-width:40px!important}
 .native-answer-image{flex-basis:36px;width:36px!important;height:36px!important;max-width:36px!important}
 .native-answer-choices{grid-template-columns:minmax(0,1fr)}
 .native-answer-choice{min-height:48px;padding:7px 10px}
}
